]>
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] | |
243 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
244 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
245 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
246 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
247 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
248 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
249 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
250 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
251 | #define SWIGTYPE_p_long swig_types[40] | |
252 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
253 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
58203fa6 | 254 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] |
74a57fcd RD |
255 | #define SWIGTYPE_p_wxListBox swig_types[44] |
256 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
257 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
258 | #define SWIGTYPE_p_wxButton swig_types[47] | |
259 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
260 | #define SWIGTYPE_p_wxRect swig_types[49] | |
261 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
262 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
263 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
264 | #define SWIGTYPE_p_char swig_types[53] | |
265 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
266 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
267 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
268 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
269 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
270 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
271 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
272 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
273 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
274 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
275 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
276 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
277 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
278 | #define SWIGTYPE_p_wxListbookEvent swig_types[67] | |
279 | #define SWIGTYPE_p_wxNotebookEvent swig_types[68] | |
280 | #define SWIGTYPE_p_wxObject swig_types[69] | |
281 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
282 | #define SWIGTYPE_p_wxKeyEvent swig_types[71] | |
283 | #define SWIGTYPE_p_wxWindow swig_types[72] | |
284 | #define SWIGTYPE_p_wxString swig_types[73] | |
285 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
286 | #define SWIGTYPE_p_wxTreeEvent swig_types[75] | |
287 | #define SWIGTYPE_p_wxMouseEvent swig_types[76] | |
288 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
289 | #define SWIGTYPE_p_wxStaticText swig_types[78] | |
290 | #define SWIGTYPE_p_wxControlWithItems swig_types[79] | |
291 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[80] | |
292 | #define SWIGTYPE_p_wxColour swig_types[81] | |
293 | #define SWIGTYPE_p_wxToolBar swig_types[82] | |
294 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] | |
295 | #define SWIGTYPE_p_wxValidator swig_types[84] | |
296 | static swig_type_info *swig_types[86]; | |
d14a1e28 RD |
297 | |
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
54f9ee45 | 302 | @(target):= _controls_.so |
d14a1e28 | 303 | ------------------------------------------------*/ |
54f9ee45 | 304 | #define SWIG_init init_controls_ |
d14a1e28 | 305 | |
54f9ee45 | 306 | #define SWIG_name "_controls_" |
d14a1e28 | 307 | |
c32bde28 RD |
308 | /* Auxiliar swig macros that appear in the header */ |
309 | ||
310 | #define SWIG_OLDOBJ 1 | |
311 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
312 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 313 | |
994141e6 | 314 | #ifdef __cplusplus |
15afbcd0 | 315 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 316 | #define SWIGSTATIC(a) static a |
c32bde28 RD |
317 | #define swig_new_array(size,Type) (new Type[(size)]) |
318 | #define swig_delete(cptr) delete cptr | |
15afbcd0 | 319 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
320 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
321 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
322 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
323 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
324 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
994141e6 | 325 | |
15afbcd0 RD |
326 | #else /* C case */ |
327 | ||
328 | #define SWIGSTATICINLINE(a) static a | |
329 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
330 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
331 | #define swig_delete(cptr) free((char*)cptr) | |
15afbcd0 | 332 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
333 | #define swig_const_cast(a,Type) (Type)(a) |
334 | #define swig_static_cast(a,Type) (Type)(a) | |
335 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
336 | #define swig_numeric_cast(a,Type) (Type)(a) | |
337 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
15afbcd0 RD |
338 | |
339 | #endif /* __cplusplus */ | |
994141e6 RD |
340 | |
341 | ||
c32bde28 RD |
342 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
343 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
344 | /*@@*/ | |
345 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
346 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
347 | /*@@*/ | |
348 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
349 | #define SWIG_From_short PyInt_FromLong | |
350 | /*@@*/ | |
351 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
352 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
353 | /*@@*/ | |
354 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
355 | #define SWIG_From_int PyInt_FromLong | |
356 | /*@@*/ | |
357 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
358 | #define SWIG_From_long PyInt_FromLong | |
359 | /*@@*/ | |
360 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
361 | #define SWIG_From_float PyFloat_FromDouble | |
362 | /*@@*/ | |
363 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
364 | #define SWIG_From_double PyFloat_FromDouble | |
365 | /*@@*/ | |
994141e6 RD |
366 | |
367 | ||
d14a1e28 RD |
368 | #include "wx/wxPython/wxPython.h" |
369 | #include "wx/wxPython/pyclasses.h" | |
370 | ||
b2dc1044 RD |
371 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
372 | static const wxString wxPyEmptyString(wxEmptyString); | |
373 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4d5c3d91 RD |
374 | |
375 | const wxArrayString wxPyEmptyStringArray; | |
376 | ||
b2dc1044 | 377 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
994141e6 | 378 | |
15afbcd0 RD |
379 | #include <limits.h> |
380 | ||
381 | ||
c32bde28 RD |
382 | SWIGSTATICINLINE(int) |
383 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
384 | const char *errmsg) | |
15afbcd0 | 385 | { |
c32bde28 RD |
386 | if (value < min_value) { |
387 | if (errmsg) { | |
388 | PyErr_Format(PyExc_OverflowError, | |
389 | "value %ld is less than '%s' minimum %ld", | |
390 | value, errmsg, min_value); | |
391 | } | |
392 | return 0; | |
393 | } else if (value > max_value) { | |
394 | if (errmsg) { | |
395 | PyErr_Format(PyExc_OverflowError, | |
396 | "value %ld is greater than '%s' maximum %ld", | |
397 | value, errmsg, max_value); | |
15afbcd0 | 398 | } |
c32bde28 | 399 | return 0; |
15afbcd0 | 400 | } |
c32bde28 | 401 | return 1; |
15afbcd0 RD |
402 | } |
403 | ||
404 | ||
c32bde28 RD |
405 | // See my_fragments.i |
406 | SWIGSTATICINLINE(int) | |
407 | SWIG_AsVal_long(PyObject* obj, long* val) | |
15afbcd0 | 408 | { |
c32bde28 RD |
409 | if (PyNumber_Check(obj)) { |
410 | if (val) *val = PyInt_AsLong(obj); | |
411 | return 1; | |
412 | } | |
69223c70 RD |
413 | else { |
414 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
415 | obj->ob_type->tp_name); | |
416 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
417 | Py_DECREF(errmsg); | |
69223c70 | 418 | } |
c32bde28 | 419 | return 0; |
15afbcd0 RD |
420 | } |
421 | ||
422 | ||
423 | #if INT_MAX != LONG_MAX | |
424 | SWIGSTATICINLINE(int) | |
c32bde28 | 425 | SWIG_AsVal_int(PyObject *obj, int *val) |
994141e6 | 426 | { |
c32bde28 RD |
427 | const char* errmsg = val ? "int" : 0; |
428 | long v; | |
429 | if (SWIG_AsVal_long(obj, &v)) { | |
430 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
431 | if (val) *val = swig_numeric_cast(v, int); | |
432 | return 1; | |
433 | } else { | |
434 | return 0; | |
435 | } | |
436 | } else { | |
437 | PyErr_Clear(); | |
438 | } | |
439 | if (val) { | |
440 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
441 | } | |
442 | return 0; | |
994141e6 | 443 | } |
15afbcd0 | 444 | #else |
c32bde28 RD |
445 | SWIGSTATICINLINE(int) |
446 | SWIG_AsVal_int(PyObject *obj, int *val) | |
447 | { | |
448 | return SWIG_AsVal_long(obj,(long*)val); | |
449 | } | |
15afbcd0 | 450 | #endif |
994141e6 RD |
451 | |
452 | ||
15afbcd0 | 453 | SWIGSTATICINLINE(int) |
c32bde28 | 454 | SWIG_As_int(PyObject* obj) |
994141e6 | 455 | { |
c32bde28 RD |
456 | int v; |
457 | if (!SWIG_AsVal_int(obj, &v)) { | |
458 | /* | |
459 | this is needed to make valgrind/purify happier. the other | |
460 | solution is throw an exception, but since this code should work | |
461 | with plain C .... | |
462 | */ | |
463 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 464 | } |
c32bde28 | 465 | return v; |
15afbcd0 RD |
466 | } |
467 | ||
468 | ||
c32bde28 RD |
469 | SWIGSTATICINLINE(long) |
470 | SWIG_As_long(PyObject* obj) | |
15afbcd0 | 471 | { |
c32bde28 RD |
472 | long v; |
473 | if (!SWIG_AsVal_long(obj, &v)) { | |
474 | /* | |
475 | this is needed to make valgrind/purify happier. the other | |
476 | solution is throw an exception, but since this code should work | |
477 | with plain C .... | |
478 | */ | |
479 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 480 | } |
c32bde28 | 481 | return v; |
994141e6 RD |
482 | } |
483 | ||
c32bde28 RD |
484 | |
485 | SWIGSTATICINLINE(int) | |
486 | SWIG_Check_int(PyObject* obj) | |
487 | { | |
488 | return SWIG_AsVal_int(obj, (int*)0); | |
489 | } | |
994141e6 | 490 | |
c32bde28 RD |
491 | |
492 | SWIGSTATICINLINE(int) | |
493 | SWIG_Check_long(PyObject* obj) | |
994141e6 | 494 | { |
c32bde28 | 495 | return SWIG_AsVal_long(obj, (long*)0); |
994141e6 RD |
496 | } |
497 | ||
c32bde28 | 498 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 RD |
499 | |
500 | SWIGSTATICINLINE(int) | |
c32bde28 | 501 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
15afbcd0 | 502 | { |
c32bde28 RD |
503 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
504 | if (obj == Py_True) { | |
505 | if (val) *val = true; | |
506 | return 1; | |
507 | } | |
508 | if (obj == Py_False) { | |
509 | if (val) *val = false; | |
15afbcd0 RD |
510 | return 1; |
511 | } | |
c32bde28 RD |
512 | int res = 0; |
513 | if (SWIG_AsVal_int(obj, &res)) { | |
514 | if (val) *val = (bool)res; | |
515 | return 1; | |
516 | } | |
517 | if (val) { | |
518 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
519 | } | |
520 | return 0; | |
521 | } | |
522 | ||
523 | ||
524 | SWIGSTATICINLINE(bool) | |
525 | SWIG_As_bool(PyObject* obj) | |
526 | { | |
527 | bool v; | |
528 | if (!SWIG_AsVal_bool(obj, &v)) { | |
529 | /* | |
530 | this is needed to make valgrind/purify happier. the other | |
531 | solution is throw an exception, but since this code should work | |
532 | with plain C .... | |
533 | */ | |
534 | memset((void*)&v, 0, sizeof(bool)); | |
535 | } | |
536 | return v; | |
537 | } | |
538 | ||
539 | ||
540 | SWIGSTATICINLINE(int) | |
541 | SWIG_Check_bool(PyObject* obj) | |
542 | { | |
543 | return SWIG_AsVal_bool(obj, (bool*)0); | |
15afbcd0 RD |
544 | } |
545 | ||
b2dc1044 RD |
546 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
547 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
548 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
549 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
550 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
551 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
552 | |
553 | #include <wx/checklst.h> | |
554 | ||
d14a1e28 | 555 | |
b2dc1044 | 556 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
557 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
558 | if (clientData) { | |
559 | wxPyClientData* data = new wxPyClientData(clientData); | |
560 | self->Insert(item, pos, data); | |
561 | } else | |
562 | self->Insert(item, pos); | |
563 | } | |
564 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
565 | wxArrayInt lst; | |
566 | self->GetSelections(lst); | |
567 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
568 | for(size_t i=0; i<lst.GetCount(); i++) { | |
569 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
570 | } | |
571 | return tup; | |
572 | } | |
c3eb6258 RD |
573 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
574 | #ifdef __WXMSW__ | |
575 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
576 | self->GetItem(item)->SetTextColour(c); | |
577 | #endif | |
578 | } | |
579 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
580 | #ifdef __WXMSW__ | |
581 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
582 | self->GetItem(item)->SetBackgroundColour(c); | |
583 | #endif | |
584 | } | |
585 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
586 | #ifdef __WXMSW__ | |
587 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
588 | self->GetItem(item)->SetFont(f); | |
589 | #endif | |
590 | } | |
b2dc1044 | 591 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 | 592 | |
c32bde28 | 593 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d14a1e28 RD |
594 | PyObject* o2; |
595 | PyObject* o3; | |
c32bde28 | 596 | |
d14a1e28 RD |
597 | if (!target) { |
598 | target = o; | |
599 | } else if (target == Py_None) { | |
600 | Py_DECREF(Py_None); | |
601 | target = o; | |
602 | } else { | |
c32bde28 RD |
603 | o2 = target; |
604 | target = PyTuple_New(1); | |
605 | PyTuple_SetItem(target, 0, o2); | |
606 | ||
d14a1e28 RD |
607 | o3 = PyTuple_New(1); |
608 | PyTuple_SetItem(o3, 0, o); | |
609 | ||
610 | o2 = target; | |
611 | target = PySequence_Concat(o2, o3); | |
612 | Py_DECREF(o2); | |
613 | Py_DECREF(o3); | |
614 | } | |
615 | return target; | |
616 | } | |
617 | ||
15afbcd0 | 618 | |
c32bde28 RD |
619 | |
620 | // See my_fragments.i | |
621 | SWIGSTATICINLINE(int) | |
622 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
15afbcd0 | 623 | { |
c32bde28 RD |
624 | long v = 0; |
625 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
626 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
627 | return 0; | |
15afbcd0 | 628 | } |
c32bde28 RD |
629 | else if (val) |
630 | *val = (unsigned long)v; | |
631 | return 1; | |
15afbcd0 RD |
632 | } |
633 | ||
634 | ||
c32bde28 RD |
635 | SWIGSTATICINLINE(unsigned long) |
636 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
15afbcd0 | 637 | { |
c32bde28 RD |
638 | unsigned long v; |
639 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
640 | /* | |
641 | this is needed to make valgrind/purify happier. the other | |
642 | solution is throw an exception, but since this code should work | |
643 | with plain C .... | |
644 | */ | |
645 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 646 | } |
c32bde28 RD |
647 | return v; |
648 | } | |
649 | ||
650 | ||
651 | SWIGSTATICINLINE(int) | |
652 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
653 | { | |
654 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
15afbcd0 RD |
655 | } |
656 | ||
d14a1e28 RD |
657 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
658 | self->AppendText(text); | |
659 | } | |
660 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
661 | return self->GetValue().Mid(from, to - from); | |
662 | } | |
b2dc1044 RD |
663 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
664 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 665 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
666 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
667 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
668 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
669 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
670 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
671 | ||
672 | #include <wx/slider.h> | |
673 | ||
d14a1e28 | 674 | |
b2dc1044 | 675 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 676 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 677 | |
15afbcd0 RD |
678 | #if !wxUSE_TOGGLEBTN |
679 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
680 | |
681 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
682 | ||
683 | class wxToggleButton : public wxControl | |
684 | { | |
685 | public: | |
686 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
687 | const wxPoint&, const wxSize&, long, | |
688 | const wxValidator&, const wxString&) | |
39f61e25 | 689 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
690 | |
691 | wxToggleButton() | |
39f61e25 | 692 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
693 | }; |
694 | #endif | |
695 | ||
b2dc1044 | 696 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
994141e6 | 697 | |
15afbcd0 | 698 | SWIGSTATICINLINE(PyObject* ) |
c32bde28 | 699 | SWIG_From_unsigned_SS_long(unsigned long value) |
994141e6 | 700 | { |
15afbcd0 RD |
701 | return (value > LONG_MAX) ? |
702 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 703 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
994141e6 RD |
704 | } |
705 | ||
b2dc1044 | 706 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
707 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
708 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
709 | if (udata) { | |
710 | Py_INCREF(udata->m_obj); | |
711 | return udata->m_obj; | |
712 | } else { | |
713 | Py_INCREF(Py_None); | |
714 | return Py_None; | |
715 | } | |
716 | } | |
717 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
718 | self->SetClientData(new wxPyUserData(clientData)); | |
719 | } | |
720 | 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){ | |
721 | wxPyUserData* udata = NULL; | |
722 | if (clientData && clientData != Py_None) | |
723 | udata = new wxPyUserData(clientData); | |
724 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
725 | shortHelp, longHelp, udata); | |
726 | } | |
727 | 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){ | |
728 | wxPyUserData* udata = NULL; | |
729 | if (clientData && clientData != Py_None) | |
730 | udata = new wxPyUserData(clientData); | |
731 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
732 | shortHelp, longHelp, udata); | |
733 | } | |
734 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
735 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
736 | if (udata) { | |
737 | Py_INCREF(udata->m_obj); | |
738 | return udata->m_obj; | |
739 | } else { | |
740 | Py_INCREF(Py_None); | |
741 | return Py_None; | |
742 | } | |
743 | } | |
744 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
745 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
746 | } | |
747 | ||
748 | #include <wx/listctrl.h> | |
749 | ||
33b885b9 | 750 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
751 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
752 | // Python aware sorting function for wxPyListCtrl | |
753 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
754 | int retval = 0; | |
755 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 756 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
757 | |
758 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
759 | PyObject* result = PyEval_CallObject(func, args); | |
760 | Py_DECREF(args); | |
761 | if (result) { | |
762 | retval = PyInt_AsLong(result); | |
763 | Py_DECREF(result); | |
764 | } | |
765 | ||
4f89f6a3 | 766 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
767 | return retval; |
768 | } | |
769 | ||
770 | // C++ Version of a Python aware class | |
771 | class wxPyListCtrl : public wxListCtrl { | |
772 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
773 | public: | |
774 | wxPyListCtrl() : wxListCtrl() {} | |
775 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
776 | const wxPoint& pos, | |
777 | const wxSize& size, | |
778 | long style, | |
779 | const wxValidator& validator, | |
780 | const wxString& name) : | |
781 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
782 | ||
783 | bool Create(wxWindow* parent, wxWindowID id, | |
784 | const wxPoint& pos, | |
785 | const wxSize& size, | |
786 | long style, | |
787 | const wxValidator& validator, | |
788 | const wxString& name) { | |
789 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
790 | } | |
791 | ||
792 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
793 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
794 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
795 | ||
796 | PYPRIVATE; | |
797 | }; | |
798 | ||
799 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
800 | ||
801 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
802 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
803 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
804 | ||
805 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
806 | wxListItem item; | |
807 | item.SetMask( wxLIST_MASK_STATE | | |
808 | wxLIST_MASK_TEXT | | |
809 | wxLIST_MASK_IMAGE | | |
810 | wxLIST_MASK_DATA | | |
811 | wxLIST_SET_ITEM | | |
812 | wxLIST_MASK_WIDTH | | |
813 | wxLIST_MASK_FORMAT | |
814 | ); | |
815 | if (self->GetColumn(col, item)) | |
816 | return new wxListItem(item); | |
817 | else | |
818 | return NULL; | |
819 | } | |
820 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
821 | wxListItem* info = new wxListItem; | |
822 | info->m_itemId = itemId; | |
823 | info->m_col = col; | |
824 | info->m_mask = 0xFFFF; | |
825 | self->GetItem(*info); | |
826 | return info; | |
827 | } | |
828 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
829 | wxPoint pos; | |
830 | self->GetItemPosition(item, pos); | |
831 | return pos; | |
832 | } | |
833 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
834 | wxRect rect; | |
835 | self->GetItemRect(item, rect, code); | |
836 | return rect; | |
837 | } | |
c32bde28 | 838 | |
d14a1e28 RD |
839 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
840 | if (!PyCallable_Check(func)) | |
e811c8ce | 841 | return False; |
d14a1e28 RD |
842 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
843 | } | |
844 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
845 | ||
846 | ||
847 | ||
848 | return (wxWindow*)self->m_mainWin; | |
849 | ||
850 | } | |
851 | ||
852 | #include <wx/treectrl.h> | |
853 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 854 | |
33b885b9 | 855 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
22faec7d RD |
856 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
857 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
858 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
859 | // C++ version of Python aware wxTreeCtrl | |
860 | class wxPyTreeCtrl : public wxTreeCtrl { | |
861 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
862 | public: | |
863 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
864 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
865 | const wxPoint& pos, | |
866 | const wxSize& size, | |
867 | long style, | |
868 | const wxValidator& validator, | |
869 | const wxString& name) : | |
870 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
871 | ||
872 | bool Create(wxWindow *parent, wxWindowID id, | |
873 | const wxPoint& pos, | |
874 | const wxSize& size, | |
875 | long style, | |
876 | const wxValidator& validator, | |
877 | const wxString& name) { | |
878 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
879 | } | |
880 | ||
881 | ||
882 | int OnCompareItems(const wxTreeItemId& item1, | |
883 | const wxTreeItemId& item2) { | |
884 | int rval = 0; | |
885 | bool found; | |
4f89f6a3 | 886 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 887 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
e811c8ce RD |
888 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
889 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
890 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
891 | Py_DECREF(o1); | |
892 | Py_DECREF(o2); | |
893 | } | |
4f89f6a3 | 894 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
895 | if (! found) |
896 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
897 | return rval; | |
898 | } | |
899 | PYPRIVATE; | |
900 | }; | |
901 | ||
902 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
903 | ||
904 | ||
994141e6 | 905 | |
15afbcd0 | 906 | #if UINT_MAX < LONG_MAX |
c32bde28 RD |
907 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
908 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
909 | /*@@*/ | |
15afbcd0 | 910 | #else |
c32bde28 RD |
911 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
912 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
913 | /*@@*/ | |
15afbcd0 RD |
914 | #endif |
915 | ||
916 | ||
c32bde28 RD |
917 | SWIGSTATICINLINE(int) |
918 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
919 | unsigned long max_value, | |
920 | const char *errmsg) | |
15afbcd0 | 921 | { |
c32bde28 RD |
922 | if (value > max_value) { |
923 | if (errmsg) { | |
924 | PyErr_Format(PyExc_OverflowError, | |
925 | "value %ld is greater than '%s' minimum %ld", | |
926 | value, errmsg, max_value); | |
15afbcd0 | 927 | } |
c32bde28 | 928 | return 0; |
15afbcd0 | 929 | } |
c32bde28 RD |
930 | return 1; |
931 | } | |
994141e6 RD |
932 | |
933 | ||
15afbcd0 | 934 | #if UINT_MAX != ULONG_MAX |
c32bde28 RD |
935 | SWIGSTATICINLINE(int) |
936 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
994141e6 | 937 | { |
c32bde28 RD |
938 | const char* errmsg = val ? "unsigned int" : 0; |
939 | unsigned long v; | |
940 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
941 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
942 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
943 | return 1; | |
944 | } | |
945 | } else { | |
946 | PyErr_Clear(); | |
947 | } | |
948 | if (val) { | |
949 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
950 | } | |
951 | return 0; | |
15afbcd0 RD |
952 | } |
953 | #else | |
c32bde28 RD |
954 | SWIGSTATICINLINE(unsigned int) |
955 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
956 | { | |
957 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
958 | } | |
15afbcd0 RD |
959 | #endif |
960 | ||
961 | ||
c32bde28 RD |
962 | SWIGSTATICINLINE(unsigned int) |
963 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
15afbcd0 | 964 | { |
c32bde28 RD |
965 | unsigned int v; |
966 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
967 | /* | |
968 | this is needed to make valgrind/purify happier. the other | |
969 | solution is throw an exception, but since this code should work | |
970 | with plain C .... | |
971 | */ | |
972 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 973 | } |
c32bde28 RD |
974 | return v; |
975 | } | |
976 | ||
977 | ||
978 | SWIGSTATICINLINE(int) | |
979 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
980 | { | |
981 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
982 | } |
983 | ||
d14a1e28 RD |
984 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
985 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
986 | if (data == NULL) { | |
987 | data = new wxPyTreeItemData(); | |
988 | data->SetId(item); // set the id | |
989 | self->SetItemData(item, data); | |
990 | } | |
991 | return data; | |
992 | } | |
993 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
994 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
995 | if (data == NULL) { | |
996 | data = new wxPyTreeItemData(); | |
997 | data->SetId(item); // set the id | |
998 | self->SetItemData(item, data); | |
999 | } | |
1000 | return data->GetData(); | |
1001 | } | |
1002 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
1003 | data->SetId(item); // set the id | |
1004 | self->SetItemData(item, data); | |
1005 | } | |
1006 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
1007 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
1008 | if (data == NULL) { | |
1009 | data = new wxPyTreeItemData(obj); | |
1010 | data->SetId(item); // set the id | |
1011 | self->SetItemData(item, data); | |
1012 | } else | |
1013 | data->SetData(obj); | |
1014 | } | |
1015 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 1016 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1017 | PyObject* rval = PyList_New(0); |
1018 | wxArrayTreeItemIds array; | |
1019 | size_t num, x; | |
1020 | num = self->GetSelections(array); | |
1021 | for (x=0; x < num; x++) { | |
1022 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
e811c8ce | 1023 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 | 1024 | PyList_Append(rval, item); |
1a10c483 | 1025 | Py_DECREF(item); |
d14a1e28 | 1026 | } |
4f89f6a3 | 1027 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1028 | return rval; |
1029 | } | |
1030 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
1031 | void* cookie = 0; |
1032 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 1033 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1034 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
1035 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
1036 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 1037 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1038 | return tup; |
1039 | } | |
58203fa6 RD |
1040 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
1041 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 1042 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1043 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
1044 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
1045 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 1046 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1047 | return tup; |
1048 | } | |
1049 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
1050 | wxRect rect; | |
1051 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 1052 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1053 | wxRect* r = new wxRect(rect); |
e811c8ce | 1054 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
4f89f6a3 | 1055 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1056 | return val; |
1057 | } | |
1058 | else | |
1059 | RETURN_NONE(); | |
1060 | } | |
b2dc1044 | 1061 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 RD |
1062 | |
1063 | SWIGSTATICINLINE(PyObject*) | |
1064 | SWIG_From_bool(bool value) | |
1065 | { | |
1066 | PyObject *obj = value ? Py_True : Py_False; | |
1067 | Py_INCREF(obj); | |
1068 | return obj; | |
1069 | } | |
1070 | ||
1071 | ||
d14a1e28 RD |
1072 | // C++ version of Python aware wxControl |
1073 | class wxPyControl : public wxControl | |
1074 | { | |
1075 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
1076 | public: | |
1077 | wxPyControl() : wxControl() {} | |
1078 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
1079 | const wxPoint& pos = wxDefaultPosition, | |
1080 | const wxSize& size = wxDefaultSize, | |
1081 | long style = 0, | |
1082 | const wxValidator& validator=wxDefaultValidator, | |
1083 | const wxString& name = wxPyControlNameStr) | |
1084 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
1085 | ||
db3e571a | 1086 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
1087 | |
1088 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1089 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1090 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1091 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1092 | ||
1093 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1094 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1095 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1096 | ||
1097 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1098 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1099 | ||
1100 | DEC_PYCALLBACK__(InitDialog); | |
1101 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1102 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1103 | DEC_PYCALLBACK_BOOL_(Validate); | |
1104 | ||
1105 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1106 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1107 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1108 | ||
1109 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1110 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1111 | ||
db3e571a | 1112 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
1cb4a8aa | 1113 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
db3e571a | 1114 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 1115 | |
d14a1e28 RD |
1116 | PYPRIVATE; |
1117 | }; | |
1118 | ||
1119 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
1120 | ||
1121 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
1122 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
1123 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
1124 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
1125 | ||
1126 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
1127 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
1128 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
1129 | ||
1130 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
1131 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
1132 | ||
1133 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
1134 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1135 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1136 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1137 | ||
1138 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1139 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1140 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1141 | ||
1142 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1143 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1144 | ||
db3e571a | 1145 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
1cb4a8aa | 1146 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
db3e571a | 1147 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 RD |
1148 | |
1149 | ||
1150 | ||
1151 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
1152 | |
1153 | #include <wx/generic/dragimgg.h> | |
1154 | ||
d14a1e28 RD |
1155 | #ifdef __cplusplus |
1156 | extern "C" { | |
1157 | #endif | |
c32bde28 | 1158 | static int _wrap_ButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
1159 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1160 | return 1; | |
1161 | } | |
1162 | ||
1163 | ||
1164 | static PyObject *_wrap_ButtonNameStr_get() { | |
1165 | PyObject *pyobj; | |
1166 | ||
1167 | { | |
1168 | #if wxUSE_UNICODE | |
1169 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1170 | #else | |
1171 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1172 | #endif | |
1173 | } | |
1174 | return pyobj; | |
1175 | } | |
1176 | ||
1177 | ||
c32bde28 | 1178 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1179 | PyObject *resultobj; |
1180 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1181 | int arg2 = (int) -1 ; |
1182 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1183 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
1184 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1185 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1186 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1187 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1188 | long arg6 = (long) 0 ; | |
1189 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1190 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1191 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1192 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1193 | wxButton *result; | |
e811c8ce | 1194 | bool temp3 = False ; |
d14a1e28 RD |
1195 | wxPoint temp4 ; |
1196 | wxSize temp5 ; | |
e811c8ce | 1197 | bool temp8 = False ; |
d14a1e28 | 1198 | PyObject * obj0 = 0 ; |
994141e6 | 1199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1200 | PyObject * obj2 = 0 ; |
1201 | PyObject * obj3 = 0 ; | |
1202 | PyObject * obj4 = 0 ; | |
994141e6 | 1203 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1204 | PyObject * obj6 = 0 ; |
1205 | PyObject * obj7 = 0 ; | |
1206 | char *kwnames[] = { | |
1207 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1208 | }; | |
1209 | ||
248ed943 | 1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1213 | if (obj1) { |
c32bde28 | 1214 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1215 | if (PyErr_Occurred()) SWIG_fail; |
1216 | } | |
1217 | if (obj2) { | |
1218 | { | |
1219 | arg3 = wxString_in_helper(obj2); | |
1220 | if (arg3 == NULL) SWIG_fail; | |
1221 | temp3 = True; | |
1222 | } | |
d14a1e28 RD |
1223 | } |
1224 | if (obj3) { | |
1225 | { | |
1226 | arg4 = &temp4; | |
1227 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1228 | } | |
1229 | } | |
1230 | if (obj4) { | |
1231 | { | |
1232 | arg5 = &temp5; | |
1233 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1234 | } | |
1235 | } | |
994141e6 | 1236 | if (obj5) { |
c32bde28 | 1237 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 1238 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1239 | } |
d14a1e28 | 1240 | if (obj6) { |
15afbcd0 RD |
1241 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1242 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1243 | SWIG_fail; | |
d14a1e28 | 1244 | if (arg7 == NULL) { |
15afbcd0 RD |
1245 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1246 | SWIG_fail; | |
d14a1e28 RD |
1247 | } |
1248 | } | |
1249 | if (obj7) { | |
1250 | { | |
1251 | arg8 = wxString_in_helper(obj7); | |
1252 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1253 | temp8 = True; |
d14a1e28 RD |
1254 | } |
1255 | } | |
1256 | { | |
e3b71cb8 | 1257 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1259 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1260 | ||
1261 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1262 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1263 | } |
b0f7404b | 1264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1265 | { |
1266 | if (temp3) | |
1267 | delete arg3; | |
1268 | } | |
1269 | { | |
1270 | if (temp8) | |
1271 | delete arg8; | |
1272 | } | |
1273 | return resultobj; | |
1274 | fail: | |
1275 | { | |
1276 | if (temp3) | |
1277 | delete arg3; | |
1278 | } | |
1279 | { | |
1280 | if (temp8) | |
1281 | delete arg8; | |
1282 | } | |
1283 | return NULL; | |
1284 | } | |
1285 | ||
1286 | ||
c32bde28 | 1287 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1288 | PyObject *resultobj; |
1289 | wxButton *result; | |
1290 | char *kwnames[] = { | |
1291 | NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1295 | { | |
e3b71cb8 | 1296 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1298 | result = (wxButton *)new wxButton(); | |
1299 | ||
1300 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1301 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1302 | } |
b0f7404b | 1303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1304 | return resultobj; |
1305 | fail: | |
1306 | return NULL; | |
1307 | } | |
1308 | ||
1309 | ||
c32bde28 | 1310 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1311 | PyObject *resultobj; |
1312 | wxButton *arg1 = (wxButton *) 0 ; | |
1313 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1314 | int arg3 = (int) -1 ; |
1315 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1316 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
1317 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1318 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1319 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1320 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1321 | long arg7 = (long) 0 ; | |
1322 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1323 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1324 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1325 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1326 | bool result; | |
e811c8ce | 1327 | bool temp4 = False ; |
d14a1e28 RD |
1328 | wxPoint temp5 ; |
1329 | wxSize temp6 ; | |
e811c8ce | 1330 | bool temp9 = False ; |
d14a1e28 RD |
1331 | PyObject * obj0 = 0 ; |
1332 | PyObject * obj1 = 0 ; | |
994141e6 | 1333 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1334 | PyObject * obj3 = 0 ; |
1335 | PyObject * obj4 = 0 ; | |
1336 | PyObject * obj5 = 0 ; | |
994141e6 | 1337 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1338 | PyObject * obj7 = 0 ; |
1339 | PyObject * obj8 = 0 ; | |
1340 | char *kwnames[] = { | |
1341 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1342 | }; | |
1343 | ||
248ed943 | 1344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1347 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1349 | if (obj2) { |
c32bde28 | 1350 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1351 | if (PyErr_Occurred()) SWIG_fail; |
1352 | } | |
1353 | if (obj3) { | |
1354 | { | |
1355 | arg4 = wxString_in_helper(obj3); | |
1356 | if (arg4 == NULL) SWIG_fail; | |
1357 | temp4 = True; | |
1358 | } | |
d14a1e28 RD |
1359 | } |
1360 | if (obj4) { | |
1361 | { | |
1362 | arg5 = &temp5; | |
1363 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1364 | } | |
1365 | } | |
1366 | if (obj5) { | |
1367 | { | |
1368 | arg6 = &temp6; | |
1369 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1370 | } | |
1371 | } | |
994141e6 | 1372 | if (obj6) { |
c32bde28 | 1373 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 1374 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1375 | } |
d14a1e28 | 1376 | if (obj7) { |
15afbcd0 RD |
1377 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1378 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1379 | SWIG_fail; | |
d14a1e28 | 1380 | if (arg8 == NULL) { |
15afbcd0 RD |
1381 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1382 | SWIG_fail; | |
d14a1e28 RD |
1383 | } |
1384 | } | |
1385 | if (obj8) { | |
1386 | { | |
1387 | arg9 = wxString_in_helper(obj8); | |
1388 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1389 | temp9 = True; |
d14a1e28 RD |
1390 | } |
1391 | } | |
1392 | { | |
1393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1394 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1395 | ||
1396 | wxPyEndAllowThreads(__tstate); | |
1397 | if (PyErr_Occurred()) SWIG_fail; | |
1398 | } | |
4f89f6a3 RD |
1399 | { |
1400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1401 | } | |
d14a1e28 RD |
1402 | { |
1403 | if (temp4) | |
1404 | delete arg4; | |
1405 | } | |
1406 | { | |
1407 | if (temp9) | |
1408 | delete arg9; | |
1409 | } | |
1410 | return resultobj; | |
1411 | fail: | |
1412 | { | |
1413 | if (temp4) | |
1414 | delete arg4; | |
1415 | } | |
1416 | { | |
1417 | if (temp9) | |
1418 | delete arg9; | |
1419 | } | |
1420 | return NULL; | |
1421 | } | |
1422 | ||
1423 | ||
c32bde28 | 1424 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1425 | PyObject *resultobj; |
1426 | wxButton *arg1 = (wxButton *) 0 ; | |
1427 | PyObject * obj0 = 0 ; | |
1428 | char *kwnames[] = { | |
1429 | (char *) "self", NULL | |
1430 | }; | |
1431 | ||
1432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1435 | { |
1436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1437 | (arg1)->SetDefault(); | |
1438 | ||
1439 | wxPyEndAllowThreads(__tstate); | |
1440 | if (PyErr_Occurred()) SWIG_fail; | |
1441 | } | |
1442 | Py_INCREF(Py_None); resultobj = Py_None; | |
1443 | return resultobj; | |
1444 | fail: | |
1445 | return NULL; | |
1446 | } | |
1447 | ||
1448 | ||
c32bde28 | 1449 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1450 | PyObject *resultobj; |
1451 | wxSize result; | |
1452 | char *kwnames[] = { | |
1453 | NULL | |
1454 | }; | |
1455 | ||
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1457 | { | |
1458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1459 | result = wxButton::GetDefaultSize(); | |
1460 | ||
1461 | wxPyEndAllowThreads(__tstate); | |
1462 | if (PyErr_Occurred()) SWIG_fail; | |
1463 | } | |
1464 | { | |
1465 | wxSize * resultptr; | |
1466 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1467 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1468 | } |
1469 | return resultobj; | |
1470 | fail: | |
1471 | return NULL; | |
1472 | } | |
1473 | ||
1474 | ||
c32bde28 | 1475 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
1476 | PyObject *resultobj; |
1477 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1478 | wxVisualAttributes result; | |
1479 | PyObject * obj0 = 0 ; | |
1480 | char *kwnames[] = { | |
1481 | (char *) "variant", NULL | |
1482 | }; | |
1483 | ||
1484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1485 | if (obj0) { | |
c32bde28 | 1486 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
1487 | if (PyErr_Occurred()) SWIG_fail; |
1488 | } | |
1489 | { | |
110da5b0 | 1490 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
1491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1492 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1493 | ||
1494 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 1495 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
1496 | } |
1497 | { | |
1498 | wxVisualAttributes * resultptr; | |
1499 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1500 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1501 | } | |
1502 | return resultobj; | |
1503 | fail: | |
1504 | return NULL; | |
1505 | } | |
1506 | ||
1507 | ||
c32bde28 | 1508 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1509 | PyObject *obj; |
1510 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1511 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1512 | Py_INCREF(obj); | |
1513 | return Py_BuildValue((char *)""); | |
1514 | } | |
c32bde28 | 1515 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1516 | PyObject *resultobj; |
1517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1518 | int arg2 = (int) -1 ; |
1519 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1520 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
1521 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1522 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1523 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1524 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1525 | long arg6 = (long) wxBU_AUTODRAW ; | |
1526 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1527 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1528 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1529 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1530 | wxBitmapButton *result; | |
1531 | wxPoint temp4 ; | |
1532 | wxSize temp5 ; | |
e811c8ce | 1533 | bool temp8 = False ; |
d14a1e28 | 1534 | PyObject * obj0 = 0 ; |
994141e6 | 1535 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1536 | PyObject * obj2 = 0 ; |
1537 | PyObject * obj3 = 0 ; | |
1538 | PyObject * obj4 = 0 ; | |
994141e6 | 1539 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1540 | PyObject * obj6 = 0 ; |
1541 | PyObject * obj7 = 0 ; | |
1542 | char *kwnames[] = { | |
1543 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1544 | }; | |
1545 | ||
248ed943 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1549 | if (obj1) { |
c32bde28 | 1550 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1551 | if (PyErr_Occurred()) SWIG_fail; |
1552 | } | |
1553 | if (obj2) { | |
1554 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1556 | SWIG_fail; |
248ed943 RD |
1557 | if (arg3 == NULL) { |
1558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1559 | SWIG_fail; | |
1560 | } | |
d14a1e28 RD |
1561 | } |
1562 | if (obj3) { | |
1563 | { | |
1564 | arg4 = &temp4; | |
1565 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1566 | } | |
1567 | } | |
1568 | if (obj4) { | |
1569 | { | |
1570 | arg5 = &temp5; | |
1571 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1572 | } | |
1573 | } | |
994141e6 | 1574 | if (obj5) { |
c32bde28 | 1575 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 1576 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1577 | } |
d14a1e28 | 1578 | if (obj6) { |
15afbcd0 RD |
1579 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1580 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1581 | SWIG_fail; | |
d14a1e28 | 1582 | if (arg7 == NULL) { |
15afbcd0 RD |
1583 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1584 | SWIG_fail; | |
d14a1e28 RD |
1585 | } |
1586 | } | |
1587 | if (obj7) { | |
1588 | { | |
1589 | arg8 = wxString_in_helper(obj7); | |
1590 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1591 | temp8 = True; |
d14a1e28 RD |
1592 | } |
1593 | } | |
1594 | { | |
e3b71cb8 | 1595 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1597 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1598 | ||
1599 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1600 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1601 | } |
b0f7404b | 1602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1603 | { |
1604 | if (temp8) | |
1605 | delete arg8; | |
1606 | } | |
1607 | return resultobj; | |
1608 | fail: | |
1609 | { | |
1610 | if (temp8) | |
1611 | delete arg8; | |
1612 | } | |
1613 | return NULL; | |
1614 | } | |
1615 | ||
1616 | ||
c32bde28 | 1617 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1618 | PyObject *resultobj; |
1619 | wxBitmapButton *result; | |
1620 | char *kwnames[] = { | |
1621 | NULL | |
1622 | }; | |
1623 | ||
1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1625 | { | |
e3b71cb8 | 1626 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1628 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1629 | ||
1630 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1631 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1632 | } |
b0f7404b | 1633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1634 | return resultobj; |
1635 | fail: | |
1636 | return NULL; | |
1637 | } | |
1638 | ||
1639 | ||
c32bde28 | 1640 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1641 | PyObject *resultobj; |
1642 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1643 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1644 | int arg3 = (int) -1 ; |
1645 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1646 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
1647 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1648 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1649 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1650 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1651 | long arg7 = (long) wxBU_AUTODRAW ; | |
1652 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1653 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1654 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1655 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1656 | bool result; | |
1657 | wxPoint temp5 ; | |
1658 | wxSize temp6 ; | |
e811c8ce | 1659 | bool temp9 = False ; |
d14a1e28 RD |
1660 | PyObject * obj0 = 0 ; |
1661 | PyObject * obj1 = 0 ; | |
994141e6 | 1662 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1663 | PyObject * obj3 = 0 ; |
1664 | PyObject * obj4 = 0 ; | |
1665 | PyObject * obj5 = 0 ; | |
994141e6 | 1666 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1667 | PyObject * obj7 = 0 ; |
1668 | PyObject * obj8 = 0 ; | |
1669 | char *kwnames[] = { | |
1670 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1671 | }; | |
1672 | ||
248ed943 | 1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1678 | if (obj2) { |
c32bde28 | 1679 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1680 | if (PyErr_Occurred()) SWIG_fail; |
1681 | } | |
1682 | if (obj3) { | |
1683 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1685 | SWIG_fail; |
248ed943 RD |
1686 | if (arg4 == NULL) { |
1687 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1688 | SWIG_fail; | |
1689 | } | |
d14a1e28 RD |
1690 | } |
1691 | if (obj4) { | |
1692 | { | |
1693 | arg5 = &temp5; | |
1694 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1695 | } | |
1696 | } | |
1697 | if (obj5) { | |
1698 | { | |
1699 | arg6 = &temp6; | |
1700 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1701 | } | |
1702 | } | |
994141e6 | 1703 | if (obj6) { |
c32bde28 | 1704 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 1705 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1706 | } |
d14a1e28 | 1707 | if (obj7) { |
15afbcd0 RD |
1708 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1709 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1710 | SWIG_fail; | |
d14a1e28 | 1711 | if (arg8 == NULL) { |
15afbcd0 RD |
1712 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1713 | SWIG_fail; | |
d14a1e28 RD |
1714 | } |
1715 | } | |
1716 | if (obj8) { | |
1717 | { | |
1718 | arg9 = wxString_in_helper(obj8); | |
1719 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1720 | temp9 = True; |
d14a1e28 RD |
1721 | } |
1722 | } | |
1723 | { | |
1724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1725 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1726 | ||
1727 | wxPyEndAllowThreads(__tstate); | |
1728 | if (PyErr_Occurred()) SWIG_fail; | |
1729 | } | |
4f89f6a3 RD |
1730 | { |
1731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1732 | } | |
d14a1e28 RD |
1733 | { |
1734 | if (temp9) | |
1735 | delete arg9; | |
1736 | } | |
1737 | return resultobj; | |
1738 | fail: | |
1739 | { | |
1740 | if (temp9) | |
1741 | delete arg9; | |
1742 | } | |
1743 | return NULL; | |
1744 | } | |
1745 | ||
1746 | ||
c32bde28 | 1747 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1748 | PyObject *resultobj; |
1749 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1750 | wxBitmap result; | |
1751 | PyObject * obj0 = 0 ; | |
1752 | char *kwnames[] = { | |
1753 | (char *) "self", NULL | |
1754 | }; | |
1755 | ||
1756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1759 | { |
1760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1761 | result = (arg1)->GetBitmapLabel(); | |
1762 | ||
1763 | wxPyEndAllowThreads(__tstate); | |
1764 | if (PyErr_Occurred()) SWIG_fail; | |
1765 | } | |
1766 | { | |
1767 | wxBitmap * resultptr; | |
1768 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1769 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1770 | } |
1771 | return resultobj; | |
1772 | fail: | |
1773 | return NULL; | |
1774 | } | |
1775 | ||
1776 | ||
c32bde28 | 1777 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1778 | PyObject *resultobj; |
1779 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1780 | wxBitmap result; | |
1781 | PyObject * obj0 = 0 ; | |
1782 | char *kwnames[] = { | |
1783 | (char *) "self", NULL | |
1784 | }; | |
1785 | ||
1786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1789 | { |
1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1791 | result = (arg1)->GetBitmapDisabled(); | |
1792 | ||
1793 | wxPyEndAllowThreads(__tstate); | |
1794 | if (PyErr_Occurred()) SWIG_fail; | |
1795 | } | |
1796 | { | |
1797 | wxBitmap * resultptr; | |
1798 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1799 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1800 | } |
1801 | return resultobj; | |
1802 | fail: | |
1803 | return NULL; | |
1804 | } | |
1805 | ||
1806 | ||
c32bde28 | 1807 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1808 | PyObject *resultobj; |
1809 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1810 | wxBitmap result; | |
1811 | PyObject * obj0 = 0 ; | |
1812 | char *kwnames[] = { | |
1813 | (char *) "self", NULL | |
1814 | }; | |
1815 | ||
1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1819 | { |
1820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1821 | result = (arg1)->GetBitmapFocus(); | |
1822 | ||
1823 | wxPyEndAllowThreads(__tstate); | |
1824 | if (PyErr_Occurred()) SWIG_fail; | |
1825 | } | |
1826 | { | |
1827 | wxBitmap * resultptr; | |
1828 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1830 | } |
1831 | return resultobj; | |
1832 | fail: | |
1833 | return NULL; | |
1834 | } | |
1835 | ||
1836 | ||
c32bde28 | 1837 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1838 | PyObject *resultobj; |
1839 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1840 | wxBitmap result; | |
1841 | PyObject * obj0 = 0 ; | |
1842 | char *kwnames[] = { | |
1843 | (char *) "self", NULL | |
1844 | }; | |
1845 | ||
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1849 | { |
1850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1851 | result = (arg1)->GetBitmapSelected(); | |
1852 | ||
1853 | wxPyEndAllowThreads(__tstate); | |
1854 | if (PyErr_Occurred()) SWIG_fail; | |
1855 | } | |
1856 | { | |
1857 | wxBitmap * resultptr; | |
1858 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1860 | } |
1861 | return resultobj; | |
1862 | fail: | |
1863 | return NULL; | |
1864 | } | |
1865 | ||
1866 | ||
c32bde28 | 1867 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1868 | PyObject *resultobj; |
1869 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1870 | wxBitmap *arg2 = 0 ; | |
1871 | PyObject * obj0 = 0 ; | |
1872 | PyObject * obj1 = 0 ; | |
1873 | char *kwnames[] = { | |
1874 | (char *) "self",(char *) "bitmap", NULL | |
1875 | }; | |
1876 | ||
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1880 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1881 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1882 | SWIG_fail; | |
d14a1e28 | 1883 | if (arg2 == NULL) { |
15afbcd0 RD |
1884 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1885 | SWIG_fail; | |
d14a1e28 RD |
1886 | } |
1887 | { | |
1888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1889 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1890 | ||
1891 | wxPyEndAllowThreads(__tstate); | |
1892 | if (PyErr_Occurred()) SWIG_fail; | |
1893 | } | |
1894 | Py_INCREF(Py_None); resultobj = Py_None; | |
1895 | return resultobj; | |
1896 | fail: | |
1897 | return NULL; | |
1898 | } | |
1899 | ||
1900 | ||
c32bde28 | 1901 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1902 | PyObject *resultobj; |
1903 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1904 | wxBitmap *arg2 = 0 ; | |
1905 | PyObject * obj0 = 0 ; | |
1906 | PyObject * obj1 = 0 ; | |
1907 | char *kwnames[] = { | |
1908 | (char *) "self",(char *) "bitmap", NULL | |
1909 | }; | |
1910 | ||
1911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1914 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1915 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1916 | SWIG_fail; | |
d14a1e28 | 1917 | if (arg2 == NULL) { |
15afbcd0 RD |
1918 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1919 | SWIG_fail; | |
d14a1e28 RD |
1920 | } |
1921 | { | |
1922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1923 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1924 | ||
1925 | wxPyEndAllowThreads(__tstate); | |
1926 | if (PyErr_Occurred()) SWIG_fail; | |
1927 | } | |
1928 | Py_INCREF(Py_None); resultobj = Py_None; | |
1929 | return resultobj; | |
1930 | fail: | |
1931 | return NULL; | |
1932 | } | |
1933 | ||
1934 | ||
c32bde28 | 1935 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1936 | PyObject *resultobj; |
1937 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1938 | wxBitmap *arg2 = 0 ; | |
1939 | PyObject * obj0 = 0 ; | |
1940 | PyObject * obj1 = 0 ; | |
1941 | char *kwnames[] = { | |
1942 | (char *) "self",(char *) "bitmap", NULL | |
1943 | }; | |
1944 | ||
1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1950 | SWIG_fail; | |
d14a1e28 | 1951 | if (arg2 == NULL) { |
15afbcd0 RD |
1952 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1953 | SWIG_fail; | |
d14a1e28 RD |
1954 | } |
1955 | { | |
1956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1957 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1958 | ||
1959 | wxPyEndAllowThreads(__tstate); | |
1960 | if (PyErr_Occurred()) SWIG_fail; | |
1961 | } | |
1962 | Py_INCREF(Py_None); resultobj = Py_None; | |
1963 | return resultobj; | |
1964 | fail: | |
1965 | return NULL; | |
1966 | } | |
1967 | ||
1968 | ||
c32bde28 | 1969 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1970 | PyObject *resultobj; |
1971 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1972 | wxBitmap *arg2 = 0 ; | |
1973 | PyObject * obj0 = 0 ; | |
1974 | PyObject * obj1 = 0 ; | |
1975 | char *kwnames[] = { | |
1976 | (char *) "self",(char *) "bitmap", NULL | |
1977 | }; | |
1978 | ||
1979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1983 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1984 | SWIG_fail; | |
d14a1e28 | 1985 | if (arg2 == NULL) { |
15afbcd0 RD |
1986 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1987 | SWIG_fail; | |
d14a1e28 RD |
1988 | } |
1989 | { | |
1990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1991 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1992 | ||
1993 | wxPyEndAllowThreads(__tstate); | |
1994 | if (PyErr_Occurred()) SWIG_fail; | |
1995 | } | |
1996 | Py_INCREF(Py_None); resultobj = Py_None; | |
1997 | return resultobj; | |
1998 | fail: | |
1999 | return NULL; | |
2000 | } | |
2001 | ||
2002 | ||
c32bde28 | 2003 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2004 | PyObject *resultobj; |
2005 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2006 | int arg2 ; | |
2007 | int arg3 ; | |
2008 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2009 | PyObject * obj1 = 0 ; |
2010 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2011 | char *kwnames[] = { |
2012 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2013 | }; | |
2014 | ||
994141e6 | 2015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2018 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2019 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2020 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 2021 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2022 | { |
2023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2024 | (arg1)->SetMargins(arg2,arg3); | |
2025 | ||
2026 | wxPyEndAllowThreads(__tstate); | |
2027 | if (PyErr_Occurred()) SWIG_fail; | |
2028 | } | |
2029 | Py_INCREF(Py_None); resultobj = Py_None; | |
2030 | return resultobj; | |
2031 | fail: | |
2032 | return NULL; | |
2033 | } | |
2034 | ||
2035 | ||
c32bde28 | 2036 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2037 | PyObject *resultobj; |
2038 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2039 | int result; | |
2040 | PyObject * obj0 = 0 ; | |
2041 | char *kwnames[] = { | |
2042 | (char *) "self", NULL | |
2043 | }; | |
2044 | ||
2045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2048 | { |
2049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2050 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
2051 | ||
2052 | wxPyEndAllowThreads(__tstate); | |
2053 | if (PyErr_Occurred()) SWIG_fail; | |
2054 | } | |
c32bde28 | 2055 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2056 | return resultobj; |
2057 | fail: | |
2058 | return NULL; | |
2059 | } | |
2060 | ||
2061 | ||
c32bde28 | 2062 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2063 | PyObject *resultobj; |
2064 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2065 | int result; | |
2066 | PyObject * obj0 = 0 ; | |
2067 | char *kwnames[] = { | |
2068 | (char *) "self", NULL | |
2069 | }; | |
2070 | ||
2071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2074 | { |
2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2076 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
2077 | ||
2078 | wxPyEndAllowThreads(__tstate); | |
2079 | if (PyErr_Occurred()) SWIG_fail; | |
2080 | } | |
c32bde28 | 2081 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2082 | return resultobj; |
2083 | fail: | |
2084 | return NULL; | |
2085 | } | |
2086 | ||
2087 | ||
c32bde28 | 2088 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2089 | PyObject *obj; |
2090 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2091 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
2092 | Py_INCREF(obj); | |
2093 | return Py_BuildValue((char *)""); | |
2094 | } | |
c32bde28 | 2095 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
2096 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
2097 | return 1; | |
2098 | } | |
2099 | ||
2100 | ||
2101 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
2102 | PyObject *pyobj; | |
2103 | ||
2104 | { | |
2105 | #if wxUSE_UNICODE | |
2106 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2107 | #else | |
2108 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2109 | #endif | |
2110 | } | |
2111 | return pyobj; | |
2112 | } | |
2113 | ||
2114 | ||
c32bde28 | 2115 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2116 | PyObject *resultobj; |
2117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2118 | int arg2 = (int) -1 ; |
2119 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2120 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
2121 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2122 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2123 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2124 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2125 | long arg6 = (long) 0 ; | |
2126 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2127 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2128 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
2129 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2130 | wxCheckBox *result; | |
e811c8ce | 2131 | bool temp3 = False ; |
d14a1e28 RD |
2132 | wxPoint temp4 ; |
2133 | wxSize temp5 ; | |
e811c8ce | 2134 | bool temp8 = False ; |
d14a1e28 | 2135 | PyObject * obj0 = 0 ; |
994141e6 | 2136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2137 | PyObject * obj2 = 0 ; |
2138 | PyObject * obj3 = 0 ; | |
2139 | PyObject * obj4 = 0 ; | |
994141e6 | 2140 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2141 | PyObject * obj6 = 0 ; |
2142 | PyObject * obj7 = 0 ; | |
2143 | char *kwnames[] = { | |
2144 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2145 | }; | |
2146 | ||
248ed943 | 2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2150 | if (obj1) { |
c32bde28 | 2151 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
2152 | if (PyErr_Occurred()) SWIG_fail; |
2153 | } | |
2154 | if (obj2) { | |
2155 | { | |
2156 | arg3 = wxString_in_helper(obj2); | |
2157 | if (arg3 == NULL) SWIG_fail; | |
2158 | temp3 = True; | |
2159 | } | |
d14a1e28 RD |
2160 | } |
2161 | if (obj3) { | |
2162 | { | |
2163 | arg4 = &temp4; | |
2164 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2165 | } | |
2166 | } | |
2167 | if (obj4) { | |
2168 | { | |
2169 | arg5 = &temp5; | |
2170 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2171 | } | |
2172 | } | |
994141e6 | 2173 | if (obj5) { |
c32bde28 | 2174 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 2175 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2176 | } |
d14a1e28 | 2177 | if (obj6) { |
15afbcd0 RD |
2178 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2179 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2180 | SWIG_fail; | |
d14a1e28 | 2181 | if (arg7 == NULL) { |
15afbcd0 RD |
2182 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2183 | SWIG_fail; | |
d14a1e28 RD |
2184 | } |
2185 | } | |
2186 | if (obj7) { | |
2187 | { | |
2188 | arg8 = wxString_in_helper(obj7); | |
2189 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2190 | temp8 = True; |
d14a1e28 RD |
2191 | } |
2192 | } | |
2193 | { | |
e3b71cb8 | 2194 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2196 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2197 | ||
2198 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2199 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2200 | } |
15afbcd0 | 2201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2202 | { |
2203 | if (temp3) | |
2204 | delete arg3; | |
2205 | } | |
2206 | { | |
2207 | if (temp8) | |
2208 | delete arg8; | |
2209 | } | |
2210 | return resultobj; | |
2211 | fail: | |
2212 | { | |
2213 | if (temp3) | |
2214 | delete arg3; | |
2215 | } | |
2216 | { | |
2217 | if (temp8) | |
2218 | delete arg8; | |
2219 | } | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
c32bde28 | 2224 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2225 | PyObject *resultobj; |
2226 | wxCheckBox *result; | |
2227 | char *kwnames[] = { | |
2228 | NULL | |
2229 | }; | |
2230 | ||
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2232 | { | |
e3b71cb8 | 2233 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2235 | result = (wxCheckBox *)new wxCheckBox(); | |
2236 | ||
2237 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2238 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2239 | } |
15afbcd0 | 2240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2241 | return resultobj; |
2242 | fail: | |
2243 | return NULL; | |
2244 | } | |
2245 | ||
2246 | ||
c32bde28 | 2247 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2248 | PyObject *resultobj; |
2249 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2250 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2251 | int arg3 = (int) -1 ; |
2252 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2253 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2254 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2255 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2256 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2257 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2258 | long arg7 = (long) 0 ; | |
2259 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2260 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2261 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2262 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2263 | bool result; | |
e811c8ce | 2264 | bool temp4 = False ; |
d14a1e28 RD |
2265 | wxPoint temp5 ; |
2266 | wxSize temp6 ; | |
e811c8ce | 2267 | bool temp9 = False ; |
d14a1e28 RD |
2268 | PyObject * obj0 = 0 ; |
2269 | PyObject * obj1 = 0 ; | |
994141e6 | 2270 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2271 | PyObject * obj3 = 0 ; |
2272 | PyObject * obj4 = 0 ; | |
2273 | PyObject * obj5 = 0 ; | |
994141e6 | 2274 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2275 | PyObject * obj7 = 0 ; |
2276 | PyObject * obj8 = 0 ; | |
2277 | char *kwnames[] = { | |
2278 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2279 | }; | |
2280 | ||
248ed943 | 2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2284 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2286 | if (obj2) { |
c32bde28 | 2287 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
2288 | if (PyErr_Occurred()) SWIG_fail; |
2289 | } | |
2290 | if (obj3) { | |
2291 | { | |
2292 | arg4 = wxString_in_helper(obj3); | |
2293 | if (arg4 == NULL) SWIG_fail; | |
2294 | temp4 = True; | |
2295 | } | |
d14a1e28 RD |
2296 | } |
2297 | if (obj4) { | |
2298 | { | |
2299 | arg5 = &temp5; | |
2300 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2301 | } | |
2302 | } | |
2303 | if (obj5) { | |
2304 | { | |
2305 | arg6 = &temp6; | |
2306 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2307 | } | |
2308 | } | |
994141e6 | 2309 | if (obj6) { |
c32bde28 | 2310 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 2311 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2312 | } |
d14a1e28 | 2313 | if (obj7) { |
15afbcd0 RD |
2314 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2315 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2316 | SWIG_fail; | |
d14a1e28 | 2317 | if (arg8 == NULL) { |
15afbcd0 RD |
2318 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2319 | SWIG_fail; | |
d14a1e28 RD |
2320 | } |
2321 | } | |
2322 | if (obj8) { | |
2323 | { | |
2324 | arg9 = wxString_in_helper(obj8); | |
2325 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2326 | temp9 = True; |
d14a1e28 RD |
2327 | } |
2328 | } | |
2329 | { | |
2330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2331 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2332 | ||
2333 | wxPyEndAllowThreads(__tstate); | |
2334 | if (PyErr_Occurred()) SWIG_fail; | |
2335 | } | |
4f89f6a3 RD |
2336 | { |
2337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2338 | } | |
d14a1e28 RD |
2339 | { |
2340 | if (temp4) | |
2341 | delete arg4; | |
2342 | } | |
2343 | { | |
2344 | if (temp9) | |
2345 | delete arg9; | |
2346 | } | |
2347 | return resultobj; | |
2348 | fail: | |
2349 | { | |
2350 | if (temp4) | |
2351 | delete arg4; | |
2352 | } | |
2353 | { | |
2354 | if (temp9) | |
2355 | delete arg9; | |
2356 | } | |
2357 | return NULL; | |
2358 | } | |
2359 | ||
2360 | ||
c32bde28 | 2361 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2362 | PyObject *resultobj; |
2363 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2364 | bool result; | |
2365 | PyObject * obj0 = 0 ; | |
2366 | char *kwnames[] = { | |
2367 | (char *) "self", NULL | |
2368 | }; | |
2369 | ||
2370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2373 | { |
2374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2375 | result = (bool)(arg1)->GetValue(); | |
2376 | ||
2377 | wxPyEndAllowThreads(__tstate); | |
2378 | if (PyErr_Occurred()) SWIG_fail; | |
2379 | } | |
4f89f6a3 RD |
2380 | { |
2381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2382 | } | |
d14a1e28 RD |
2383 | return resultobj; |
2384 | fail: | |
2385 | return NULL; | |
2386 | } | |
2387 | ||
2388 | ||
c32bde28 | 2389 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2390 | PyObject *resultobj; |
2391 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2392 | bool result; | |
2393 | PyObject * obj0 = 0 ; | |
2394 | char *kwnames[] = { | |
2395 | (char *) "self", NULL | |
2396 | }; | |
2397 | ||
2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2401 | { |
2402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2403 | result = (bool)(arg1)->IsChecked(); | |
2404 | ||
2405 | wxPyEndAllowThreads(__tstate); | |
2406 | if (PyErr_Occurred()) SWIG_fail; | |
2407 | } | |
4f89f6a3 RD |
2408 | { |
2409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2410 | } | |
d14a1e28 RD |
2411 | return resultobj; |
2412 | fail: | |
2413 | return NULL; | |
2414 | } | |
2415 | ||
2416 | ||
c32bde28 | 2417 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2418 | PyObject *resultobj; |
2419 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2420 | bool arg2 ; | |
2421 | PyObject * obj0 = 0 ; | |
2422 | PyObject * obj1 = 0 ; | |
2423 | char *kwnames[] = { | |
2424 | (char *) "self",(char *) "state", NULL | |
2425 | }; | |
2426 | ||
2427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2430 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 2431 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2432 | { |
2433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2434 | (arg1)->SetValue(arg2); | |
2435 | ||
2436 | wxPyEndAllowThreads(__tstate); | |
2437 | if (PyErr_Occurred()) SWIG_fail; | |
2438 | } | |
2439 | Py_INCREF(Py_None); resultobj = Py_None; | |
2440 | return resultobj; | |
2441 | fail: | |
2442 | return NULL; | |
2443 | } | |
2444 | ||
2445 | ||
c32bde28 | 2446 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2447 | PyObject *resultobj; |
2448 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2449 | int result; | |
2450 | PyObject * obj0 = 0 ; | |
2451 | char *kwnames[] = { | |
2452 | (char *) "self", NULL | |
2453 | }; | |
2454 | ||
2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2458 | { |
2459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2460 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2461 | ||
2462 | wxPyEndAllowThreads(__tstate); | |
2463 | if (PyErr_Occurred()) SWIG_fail; | |
2464 | } | |
c32bde28 | 2465 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2466 | return resultobj; |
2467 | fail: | |
2468 | return NULL; | |
2469 | } | |
2470 | ||
2471 | ||
c32bde28 | 2472 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2473 | PyObject *resultobj; |
2474 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2475 | int arg2 ; | |
2476 | PyObject * obj0 = 0 ; | |
994141e6 | 2477 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2478 | char *kwnames[] = { |
2479 | (char *) "self",(char *) "state", NULL | |
2480 | }; | |
2481 | ||
994141e6 | 2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2485 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2486 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2487 | { |
2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2489 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2490 | ||
2491 | wxPyEndAllowThreads(__tstate); | |
2492 | if (PyErr_Occurred()) SWIG_fail; | |
2493 | } | |
2494 | Py_INCREF(Py_None); resultobj = Py_None; | |
2495 | return resultobj; | |
2496 | fail: | |
2497 | return NULL; | |
2498 | } | |
2499 | ||
2500 | ||
c32bde28 | 2501 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2502 | PyObject *resultobj; |
2503 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2504 | bool result; | |
2505 | PyObject * obj0 = 0 ; | |
2506 | char *kwnames[] = { | |
2507 | (char *) "self", NULL | |
2508 | }; | |
2509 | ||
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2513 | { |
2514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2515 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2516 | ||
2517 | wxPyEndAllowThreads(__tstate); | |
2518 | if (PyErr_Occurred()) SWIG_fail; | |
2519 | } | |
4f89f6a3 RD |
2520 | { |
2521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2522 | } | |
d14a1e28 RD |
2523 | return resultobj; |
2524 | fail: | |
2525 | return NULL; | |
2526 | } | |
2527 | ||
2528 | ||
c32bde28 | 2529 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2530 | PyObject *resultobj; |
2531 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2532 | bool result; | |
2533 | PyObject * obj0 = 0 ; | |
2534 | char *kwnames[] = { | |
2535 | (char *) "self", NULL | |
2536 | }; | |
2537 | ||
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2541 | { |
2542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2543 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2544 | ||
2545 | wxPyEndAllowThreads(__tstate); | |
2546 | if (PyErr_Occurred()) SWIG_fail; | |
2547 | } | |
4f89f6a3 RD |
2548 | { |
2549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2550 | } | |
d14a1e28 RD |
2551 | return resultobj; |
2552 | fail: | |
2553 | return NULL; | |
2554 | } | |
2555 | ||
2556 | ||
c32bde28 | 2557 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
2558 | PyObject *resultobj; |
2559 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2560 | wxVisualAttributes result; | |
2561 | PyObject * obj0 = 0 ; | |
2562 | char *kwnames[] = { | |
2563 | (char *) "variant", NULL | |
2564 | }; | |
2565 | ||
2566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2567 | if (obj0) { | |
c32bde28 | 2568 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
2569 | if (PyErr_Occurred()) SWIG_fail; |
2570 | } | |
2571 | { | |
110da5b0 | 2572 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2574 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2575 | ||
2576 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2577 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2578 | } |
2579 | { | |
2580 | wxVisualAttributes * resultptr; | |
2581 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2583 | } | |
2584 | return resultobj; | |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
c32bde28 | 2590 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2591 | PyObject *obj; |
2592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2593 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2594 | Py_INCREF(obj); | |
2595 | return Py_BuildValue((char *)""); | |
2596 | } | |
c32bde28 | 2597 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
b2dc1044 RD |
2598 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2599 | return 1; | |
2600 | } | |
2601 | ||
2602 | ||
2603 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2604 | PyObject *pyobj; | |
2605 | ||
2606 | { | |
2607 | #if wxUSE_UNICODE | |
2608 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2609 | #else | |
2610 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2611 | #endif | |
2612 | } | |
2613 | return pyobj; | |
2614 | } | |
2615 | ||
2616 | ||
c32bde28 | 2617 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2618 | PyObject *resultobj; |
2619 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2620 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2621 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2622 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2623 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2624 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2625 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2626 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2627 | long arg6 = (long) 0 ; | |
2628 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2629 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2630 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2631 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2632 | wxChoice *result; |
2633 | wxPoint temp3 ; | |
2634 | wxSize temp4 ; | |
3adfb63b | 2635 | bool temp5 = False ; |
e811c8ce | 2636 | bool temp8 = False ; |
d14a1e28 | 2637 | PyObject * obj0 = 0 ; |
994141e6 | 2638 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2639 | PyObject * obj2 = 0 ; |
2640 | PyObject * obj3 = 0 ; | |
2641 | PyObject * obj4 = 0 ; | |
994141e6 | 2642 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2643 | PyObject * obj6 = 0 ; |
2644 | PyObject * obj7 = 0 ; | |
2645 | char *kwnames[] = { | |
2646 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2647 | }; | |
2648 | ||
a95a7133 | 2649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 2652 | if (obj1) { |
c32bde28 | 2653 | arg2 = (int)SWIG_As_int(obj1); |
a95a7133 RD |
2654 | if (PyErr_Occurred()) SWIG_fail; |
2655 | } | |
d14a1e28 RD |
2656 | if (obj2) { |
2657 | { | |
2658 | arg3 = &temp3; | |
2659 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2660 | } | |
2661 | } | |
2662 | if (obj3) { | |
2663 | { | |
2664 | arg4 = &temp4; | |
2665 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2666 | } | |
2667 | } | |
2668 | if (obj4) { | |
2669 | { | |
4d5c3d91 RD |
2670 | if (! PySequence_Check(obj4)) { |
2671 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2672 | SWIG_fail; | |
2673 | } | |
2674 | arg5 = new wxArrayString; | |
3adfb63b | 2675 | temp5 = True; |
4d5c3d91 RD |
2676 | int i, len=PySequence_Length(obj4); |
2677 | for (i=0; i<len; i++) { | |
2678 | PyObject* item = PySequence_GetItem(obj4, i); | |
2679 | #if wxUSE_UNICODE | |
2680 | PyObject* str = PyObject_Unicode(item); | |
2681 | #else | |
2682 | PyObject* str = PyObject_Str(item); | |
2683 | #endif | |
74a57fcd | 2684 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2685 | arg5->Add(Py2wxString(str)); |
2686 | Py_DECREF(item); | |
2687 | Py_DECREF(str); | |
2688 | } | |
d14a1e28 RD |
2689 | } |
2690 | } | |
994141e6 | 2691 | if (obj5) { |
c32bde28 | 2692 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 2693 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2694 | } |
d14a1e28 | 2695 | if (obj6) { |
15afbcd0 RD |
2696 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2698 | SWIG_fail; | |
4d5c3d91 | 2699 | if (arg7 == NULL) { |
15afbcd0 RD |
2700 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2701 | SWIG_fail; | |
d14a1e28 RD |
2702 | } |
2703 | } | |
2704 | if (obj7) { | |
2705 | { | |
4d5c3d91 RD |
2706 | arg8 = wxString_in_helper(obj7); |
2707 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2708 | temp8 = True; |
d14a1e28 RD |
2709 | } |
2710 | } | |
2711 | { | |
e3b71cb8 | 2712 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 2714 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2715 | |
2716 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2717 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2718 | } |
15afbcd0 | 2719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2720 | { |
3adfb63b | 2721 | if (temp5) delete arg5; |
d14a1e28 RD |
2722 | } |
2723 | { | |
2724 | if (temp8) | |
4d5c3d91 | 2725 | delete arg8; |
d14a1e28 RD |
2726 | } |
2727 | return resultobj; | |
2728 | fail: | |
2729 | { | |
3adfb63b | 2730 | if (temp5) delete arg5; |
d14a1e28 RD |
2731 | } |
2732 | { | |
2733 | if (temp8) | |
4d5c3d91 | 2734 | delete arg8; |
d14a1e28 RD |
2735 | } |
2736 | return NULL; | |
2737 | } | |
2738 | ||
2739 | ||
c32bde28 | 2740 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2741 | PyObject *resultobj; |
2742 | wxChoice *result; | |
2743 | char *kwnames[] = { | |
2744 | NULL | |
2745 | }; | |
2746 | ||
2747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2748 | { | |
e3b71cb8 | 2749 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2751 | result = (wxChoice *)new wxChoice(); | |
2752 | ||
2753 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2754 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2755 | } |
15afbcd0 | 2756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2757 | return resultobj; |
2758 | fail: | |
2759 | return NULL; | |
2760 | } | |
2761 | ||
2762 | ||
c32bde28 | 2763 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2764 | PyObject *resultobj; |
2765 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2766 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 2767 | int arg3 = (int) -1 ; |
d14a1e28 RD |
2768 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2769 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2770 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2771 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2772 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2773 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2774 | long arg7 = (long) 0 ; | |
2775 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2776 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2777 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2778 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2779 | bool result; |
2780 | wxPoint temp4 ; | |
2781 | wxSize temp5 ; | |
3adfb63b | 2782 | bool temp6 = False ; |
e811c8ce | 2783 | bool temp9 = False ; |
d14a1e28 RD |
2784 | PyObject * obj0 = 0 ; |
2785 | PyObject * obj1 = 0 ; | |
994141e6 | 2786 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2787 | PyObject * obj3 = 0 ; |
2788 | PyObject * obj4 = 0 ; | |
2789 | PyObject * obj5 = 0 ; | |
994141e6 | 2790 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2791 | PyObject * obj7 = 0 ; |
2792 | PyObject * obj8 = 0 ; | |
2793 | char *kwnames[] = { | |
2794 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2795 | }; | |
2796 | ||
a95a7133 | 2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 2802 | if (obj2) { |
c32bde28 | 2803 | arg3 = (int)SWIG_As_int(obj2); |
a95a7133 RD |
2804 | if (PyErr_Occurred()) SWIG_fail; |
2805 | } | |
d14a1e28 RD |
2806 | if (obj3) { |
2807 | { | |
2808 | arg4 = &temp4; | |
2809 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2810 | } | |
2811 | } | |
2812 | if (obj4) { | |
2813 | { | |
2814 | arg5 = &temp5; | |
2815 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2816 | } | |
2817 | } | |
2818 | if (obj5) { | |
2819 | { | |
4d5c3d91 RD |
2820 | if (! PySequence_Check(obj5)) { |
2821 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2822 | SWIG_fail; | |
2823 | } | |
2824 | arg6 = new wxArrayString; | |
3adfb63b | 2825 | temp6 = True; |
4d5c3d91 RD |
2826 | int i, len=PySequence_Length(obj5); |
2827 | for (i=0; i<len; i++) { | |
2828 | PyObject* item = PySequence_GetItem(obj5, i); | |
2829 | #if wxUSE_UNICODE | |
2830 | PyObject* str = PyObject_Unicode(item); | |
2831 | #else | |
2832 | PyObject* str = PyObject_Str(item); | |
2833 | #endif | |
74a57fcd | 2834 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2835 | arg6->Add(Py2wxString(str)); |
2836 | Py_DECREF(item); | |
2837 | Py_DECREF(str); | |
2838 | } | |
d14a1e28 RD |
2839 | } |
2840 | } | |
994141e6 | 2841 | if (obj6) { |
c32bde28 | 2842 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 2843 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2844 | } |
d14a1e28 | 2845 | if (obj7) { |
15afbcd0 RD |
2846 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2848 | SWIG_fail; | |
4d5c3d91 | 2849 | if (arg8 == NULL) { |
15afbcd0 RD |
2850 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2851 | SWIG_fail; | |
d14a1e28 RD |
2852 | } |
2853 | } | |
2854 | if (obj8) { | |
2855 | { | |
4d5c3d91 RD |
2856 | arg9 = wxString_in_helper(obj8); |
2857 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2858 | temp9 = True; |
d14a1e28 RD |
2859 | } |
2860 | } | |
2861 | { | |
2862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2863 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2864 | |
2865 | wxPyEndAllowThreads(__tstate); | |
2866 | if (PyErr_Occurred()) SWIG_fail; | |
2867 | } | |
4f89f6a3 RD |
2868 | { |
2869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2870 | } | |
d14a1e28 | 2871 | { |
3adfb63b | 2872 | if (temp6) delete arg6; |
d14a1e28 RD |
2873 | } |
2874 | { | |
2875 | if (temp9) | |
4d5c3d91 | 2876 | delete arg9; |
d14a1e28 RD |
2877 | } |
2878 | return resultobj; | |
2879 | fail: | |
2880 | { | |
3adfb63b | 2881 | if (temp6) delete arg6; |
d14a1e28 RD |
2882 | } |
2883 | { | |
2884 | if (temp9) | |
4d5c3d91 | 2885 | delete arg9; |
d14a1e28 RD |
2886 | } |
2887 | return NULL; | |
2888 | } | |
2889 | ||
2890 | ||
c32bde28 | 2891 | static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2892 | PyObject *resultobj; |
2893 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2894 | int arg2 ; | |
2895 | PyObject * obj0 = 0 ; | |
994141e6 | 2896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2897 | char *kwnames[] = { |
2898 | (char *) "self",(char *) "n", NULL | |
2899 | }; | |
2900 | ||
994141e6 | 2901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2904 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2905 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2906 | { |
2907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2908 | (arg1)->SetSelection(arg2); | |
2909 | ||
2910 | wxPyEndAllowThreads(__tstate); | |
2911 | if (PyErr_Occurred()) SWIG_fail; | |
2912 | } | |
2913 | Py_INCREF(Py_None); resultobj = Py_None; | |
2914 | return resultobj; | |
2915 | fail: | |
2916 | return NULL; | |
2917 | } | |
2918 | ||
2919 | ||
c32bde28 | 2920 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2921 | PyObject *resultobj; |
2922 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2923 | wxString *arg2 = 0 ; | |
121b9a67 | 2924 | bool result; |
e811c8ce | 2925 | bool temp2 = False ; |
d14a1e28 RD |
2926 | PyObject * obj0 = 0 ; |
2927 | PyObject * obj1 = 0 ; | |
2928 | char *kwnames[] = { | |
2929 | (char *) "self",(char *) "string", NULL | |
2930 | }; | |
2931 | ||
2932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2935 | { |
2936 | arg2 = wxString_in_helper(obj1); | |
2937 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2938 | temp2 = True; |
d14a1e28 RD |
2939 | } |
2940 | { | |
2941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2942 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
2943 | |
2944 | wxPyEndAllowThreads(__tstate); | |
2945 | if (PyErr_Occurred()) SWIG_fail; | |
2946 | } | |
121b9a67 RD |
2947 | { |
2948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2949 | } | |
d14a1e28 RD |
2950 | { |
2951 | if (temp2) | |
2952 | delete arg2; | |
2953 | } | |
2954 | return resultobj; | |
2955 | fail: | |
2956 | { | |
2957 | if (temp2) | |
2958 | delete arg2; | |
2959 | } | |
2960 | return NULL; | |
2961 | } | |
2962 | ||
2963 | ||
c32bde28 | 2964 | static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2965 | PyObject *resultobj; |
2966 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2967 | int arg2 ; | |
2968 | wxString *arg3 = 0 ; | |
e811c8ce | 2969 | bool temp3 = False ; |
d14a1e28 | 2970 | PyObject * obj0 = 0 ; |
994141e6 | 2971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2972 | PyObject * obj2 = 0 ; |
2973 | char *kwnames[] = { | |
fcafa8a9 | 2974 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2975 | }; |
2976 | ||
994141e6 | 2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2980 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2981 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2982 | { |
2983 | arg3 = wxString_in_helper(obj2); | |
2984 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2985 | temp3 = True; |
d14a1e28 RD |
2986 | } |
2987 | { | |
2988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2989 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2990 | ||
2991 | wxPyEndAllowThreads(__tstate); | |
2992 | if (PyErr_Occurred()) SWIG_fail; | |
2993 | } | |
2994 | Py_INCREF(Py_None); resultobj = Py_None; | |
2995 | { | |
2996 | if (temp3) | |
2997 | delete arg3; | |
2998 | } | |
2999 | return resultobj; | |
3000 | fail: | |
3001 | { | |
3002 | if (temp3) | |
3003 | delete arg3; | |
3004 | } | |
3005 | return NULL; | |
3006 | } | |
3007 | ||
3008 | ||
c32bde28 | 3009 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
3010 | PyObject *resultobj; |
3011 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3012 | wxVisualAttributes result; | |
3013 | PyObject * obj0 = 0 ; | |
3014 | char *kwnames[] = { | |
3015 | (char *) "variant", NULL | |
3016 | }; | |
3017 | ||
3018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3019 | if (obj0) { | |
c32bde28 | 3020 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
3021 | if (PyErr_Occurred()) SWIG_fail; |
3022 | } | |
3023 | { | |
110da5b0 | 3024 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3026 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3027 | ||
3028 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3029 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3030 | } |
3031 | { | |
3032 | wxVisualAttributes * resultptr; | |
3033 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3034 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3035 | } | |
3036 | return resultobj; | |
3037 | fail: | |
3038 | return NULL; | |
3039 | } | |
3040 | ||
3041 | ||
c32bde28 | 3042 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3043 | PyObject *obj; |
3044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3045 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
3046 | Py_INCREF(obj); | |
3047 | return Py_BuildValue((char *)""); | |
3048 | } | |
c32bde28 | 3049 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
3050 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
3051 | return 1; | |
3052 | } | |
3053 | ||
3054 | ||
3055 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
3056 | PyObject *pyobj; | |
3057 | ||
3058 | { | |
3059 | #if wxUSE_UNICODE | |
3060 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3061 | #else | |
3062 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3063 | #endif | |
3064 | } | |
3065 | return pyobj; | |
3066 | } | |
3067 | ||
3068 | ||
c32bde28 | 3069 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3070 | PyObject *resultobj; |
3071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 3072 | int arg2 = (int) -1 ; |
d14a1e28 RD |
3073 | wxString const &arg3_defvalue = wxPyEmptyString ; |
3074 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3075 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3076 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3077 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3078 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
3079 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
3080 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3081 | long arg7 = (long) 0 ; | |
3082 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3083 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3084 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
3085 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 3086 | wxComboBox *result; |
e811c8ce | 3087 | bool temp3 = False ; |
d14a1e28 RD |
3088 | wxPoint temp4 ; |
3089 | wxSize temp5 ; | |
3adfb63b | 3090 | bool temp6 = False ; |
e811c8ce | 3091 | bool temp9 = False ; |
d14a1e28 | 3092 | PyObject * obj0 = 0 ; |
994141e6 | 3093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3094 | PyObject * obj2 = 0 ; |
3095 | PyObject * obj3 = 0 ; | |
3096 | PyObject * obj4 = 0 ; | |
3097 | PyObject * obj5 = 0 ; | |
994141e6 | 3098 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3099 | PyObject * obj7 = 0 ; |
3100 | PyObject * obj8 = 0 ; | |
3101 | char *kwnames[] = { | |
3102 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3103 | }; | |
3104 | ||
a95a7133 | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
3106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 3108 | if (obj1) { |
c32bde28 | 3109 | arg2 = (int)SWIG_As_int(obj1); |
a95a7133 RD |
3110 | if (PyErr_Occurred()) SWIG_fail; |
3111 | } | |
d14a1e28 RD |
3112 | if (obj2) { |
3113 | { | |
3114 | arg3 = wxString_in_helper(obj2); | |
3115 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3116 | temp3 = True; |
d14a1e28 RD |
3117 | } |
3118 | } | |
3119 | if (obj3) { | |
3120 | { | |
3121 | arg4 = &temp4; | |
3122 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3123 | } | |
3124 | } | |
3125 | if (obj4) { | |
3126 | { | |
3127 | arg5 = &temp5; | |
3128 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3129 | } | |
3130 | } | |
3131 | if (obj5) { | |
3132 | { | |
4d5c3d91 RD |
3133 | if (! PySequence_Check(obj5)) { |
3134 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3135 | SWIG_fail; | |
3136 | } | |
3137 | arg6 = new wxArrayString; | |
3adfb63b | 3138 | temp6 = True; |
4d5c3d91 RD |
3139 | int i, len=PySequence_Length(obj5); |
3140 | for (i=0; i<len; i++) { | |
3141 | PyObject* item = PySequence_GetItem(obj5, i); | |
3142 | #if wxUSE_UNICODE | |
3143 | PyObject* str = PyObject_Unicode(item); | |
3144 | #else | |
3145 | PyObject* str = PyObject_Str(item); | |
3146 | #endif | |
74a57fcd | 3147 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3148 | arg6->Add(Py2wxString(str)); |
3149 | Py_DECREF(item); | |
3150 | Py_DECREF(str); | |
3151 | } | |
d14a1e28 RD |
3152 | } |
3153 | } | |
994141e6 | 3154 | if (obj6) { |
c32bde28 | 3155 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 3156 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3157 | } |
d14a1e28 | 3158 | if (obj7) { |
15afbcd0 RD |
3159 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3160 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3161 | SWIG_fail; | |
4d5c3d91 | 3162 | if (arg8 == NULL) { |
15afbcd0 RD |
3163 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3164 | SWIG_fail; | |
d14a1e28 RD |
3165 | } |
3166 | } | |
3167 | if (obj8) { | |
3168 | { | |
4d5c3d91 RD |
3169 | arg9 = wxString_in_helper(obj8); |
3170 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3171 | temp9 = True; |
d14a1e28 RD |
3172 | } |
3173 | } | |
3174 | { | |
e3b71cb8 | 3175 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 3177 | 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 |
3178 | |
3179 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3180 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3181 | } |
15afbcd0 | 3182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3183 | { |
3184 | if (temp3) | |
3185 | delete arg3; | |
3186 | } | |
3187 | { | |
3adfb63b | 3188 | if (temp6) delete arg6; |
d14a1e28 RD |
3189 | } |
3190 | { | |
3191 | if (temp9) | |
4d5c3d91 | 3192 | delete arg9; |
d14a1e28 RD |
3193 | } |
3194 | return resultobj; | |
3195 | fail: | |
3196 | { | |
3197 | if (temp3) | |
3198 | delete arg3; | |
3199 | } | |
3200 | { | |
3adfb63b | 3201 | if (temp6) delete arg6; |
d14a1e28 RD |
3202 | } |
3203 | { | |
3204 | if (temp9) | |
4d5c3d91 | 3205 | delete arg9; |
d14a1e28 RD |
3206 | } |
3207 | return NULL; | |
3208 | } | |
3209 | ||
3210 | ||
c32bde28 | 3211 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3212 | PyObject *resultobj; |
3213 | wxComboBox *result; | |
3214 | char *kwnames[] = { | |
3215 | NULL | |
3216 | }; | |
3217 | ||
3218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3219 | { | |
e3b71cb8 | 3220 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3222 | result = (wxComboBox *)new wxComboBox(); | |
3223 | ||
3224 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3225 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3226 | } |
15afbcd0 | 3227 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3228 | return resultobj; |
3229 | fail: | |
3230 | return NULL; | |
3231 | } | |
3232 | ||
3233 | ||
c32bde28 | 3234 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3235 | PyObject *resultobj; |
3236 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3237 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3238 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3239 | wxString const &arg4_defvalue = wxPyEmptyString ; |
3240 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3241 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3242 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3243 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3244 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
3245 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
3246 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3247 | long arg8 = (long) 0 ; | |
3248 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3249 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 3250 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 3251 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 3252 | bool result; |
e811c8ce | 3253 | bool temp4 = False ; |
d14a1e28 RD |
3254 | wxPoint temp5 ; |
3255 | wxSize temp6 ; | |
3adfb63b | 3256 | bool temp7 = False ; |
e811c8ce | 3257 | bool temp10 = False ; |
d14a1e28 RD |
3258 | PyObject * obj0 = 0 ; |
3259 | PyObject * obj1 = 0 ; | |
994141e6 | 3260 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3261 | PyObject * obj3 = 0 ; |
3262 | PyObject * obj4 = 0 ; | |
3263 | PyObject * obj5 = 0 ; | |
3264 | PyObject * obj6 = 0 ; | |
994141e6 | 3265 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
3266 | PyObject * obj8 = 0 ; |
3267 | PyObject * obj9 = 0 ; | |
3268 | char *kwnames[] = { | |
3269 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3270 | }; | |
3271 | ||
a95a7133 | 3272 | 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 |
3273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 3277 | if (obj2) { |
c32bde28 | 3278 | arg3 = (int)SWIG_As_int(obj2); |
a95a7133 RD |
3279 | if (PyErr_Occurred()) SWIG_fail; |
3280 | } | |
d14a1e28 RD |
3281 | if (obj3) { |
3282 | { | |
3283 | arg4 = wxString_in_helper(obj3); | |
3284 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3285 | temp4 = True; |
d14a1e28 RD |
3286 | } |
3287 | } | |
3288 | if (obj4) { | |
3289 | { | |
3290 | arg5 = &temp5; | |
3291 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3292 | } | |
3293 | } | |
3294 | if (obj5) { | |
3295 | { | |
3296 | arg6 = &temp6; | |
3297 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3298 | } | |
3299 | } | |
3300 | if (obj6) { | |
3301 | { | |
4d5c3d91 RD |
3302 | if (! PySequence_Check(obj6)) { |
3303 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3304 | SWIG_fail; | |
3305 | } | |
3306 | arg7 = new wxArrayString; | |
3adfb63b | 3307 | temp7 = True; |
4d5c3d91 RD |
3308 | int i, len=PySequence_Length(obj6); |
3309 | for (i=0; i<len; i++) { | |
3310 | PyObject* item = PySequence_GetItem(obj6, i); | |
3311 | #if wxUSE_UNICODE | |
3312 | PyObject* str = PyObject_Unicode(item); | |
3313 | #else | |
3314 | PyObject* str = PyObject_Str(item); | |
3315 | #endif | |
74a57fcd | 3316 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3317 | arg7->Add(Py2wxString(str)); |
3318 | Py_DECREF(item); | |
3319 | Py_DECREF(str); | |
3320 | } | |
d14a1e28 RD |
3321 | } |
3322 | } | |
994141e6 | 3323 | if (obj7) { |
c32bde28 | 3324 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 3325 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3326 | } |
d14a1e28 | 3327 | if (obj8) { |
15afbcd0 RD |
3328 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3329 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3330 | SWIG_fail; | |
4d5c3d91 | 3331 | if (arg9 == NULL) { |
15afbcd0 RD |
3332 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3333 | SWIG_fail; | |
d14a1e28 RD |
3334 | } |
3335 | } | |
3336 | if (obj9) { | |
3337 | { | |
4d5c3d91 RD |
3338 | arg10 = wxString_in_helper(obj9); |
3339 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 3340 | temp10 = True; |
d14a1e28 RD |
3341 | } |
3342 | } | |
3343 | { | |
3344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3345 | 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 |
3346 | |
3347 | wxPyEndAllowThreads(__tstate); | |
3348 | if (PyErr_Occurred()) SWIG_fail; | |
3349 | } | |
4f89f6a3 RD |
3350 | { |
3351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3352 | } | |
d14a1e28 RD |
3353 | { |
3354 | if (temp4) | |
3355 | delete arg4; | |
3356 | } | |
3357 | { | |
3adfb63b | 3358 | if (temp7) delete arg7; |
d14a1e28 RD |
3359 | } |
3360 | { | |
3361 | if (temp10) | |
4d5c3d91 | 3362 | delete arg10; |
d14a1e28 RD |
3363 | } |
3364 | return resultobj; | |
3365 | fail: | |
3366 | { | |
3367 | if (temp4) | |
3368 | delete arg4; | |
3369 | } | |
3370 | { | |
3adfb63b | 3371 | if (temp7) delete arg7; |
d14a1e28 RD |
3372 | } |
3373 | { | |
3374 | if (temp10) | |
4d5c3d91 | 3375 | delete arg10; |
d14a1e28 RD |
3376 | } |
3377 | return NULL; | |
3378 | } | |
3379 | ||
3380 | ||
c32bde28 | 3381 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3382 | PyObject *resultobj; |
3383 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3384 | wxString result; | |
3385 | PyObject * obj0 = 0 ; | |
3386 | char *kwnames[] = { | |
3387 | (char *) "self", NULL | |
3388 | }; | |
3389 | ||
3390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3393 | { |
3394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3395 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3396 | ||
3397 | wxPyEndAllowThreads(__tstate); | |
3398 | if (PyErr_Occurred()) SWIG_fail; | |
3399 | } | |
3400 | { | |
3401 | #if wxUSE_UNICODE | |
3402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3403 | #else | |
3404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3405 | #endif | |
3406 | } | |
3407 | return resultobj; | |
3408 | fail: | |
3409 | return NULL; | |
3410 | } | |
3411 | ||
3412 | ||
c32bde28 | 3413 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3414 | PyObject *resultobj; |
3415 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3416 | wxString *arg2 = 0 ; | |
e811c8ce | 3417 | bool temp2 = False ; |
d14a1e28 RD |
3418 | PyObject * obj0 = 0 ; |
3419 | PyObject * obj1 = 0 ; | |
3420 | char *kwnames[] = { | |
3421 | (char *) "self",(char *) "value", NULL | |
3422 | }; | |
3423 | ||
3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3427 | { |
3428 | arg2 = wxString_in_helper(obj1); | |
3429 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3430 | temp2 = True; |
d14a1e28 RD |
3431 | } |
3432 | { | |
3433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3434 | (arg1)->SetValue((wxString const &)*arg2); | |
3435 | ||
3436 | wxPyEndAllowThreads(__tstate); | |
3437 | if (PyErr_Occurred()) SWIG_fail; | |
3438 | } | |
3439 | Py_INCREF(Py_None); resultobj = Py_None; | |
3440 | { | |
3441 | if (temp2) | |
3442 | delete arg2; | |
3443 | } | |
3444 | return resultobj; | |
3445 | fail: | |
3446 | { | |
3447 | if (temp2) | |
3448 | delete arg2; | |
3449 | } | |
3450 | return NULL; | |
3451 | } | |
3452 | ||
3453 | ||
c32bde28 | 3454 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3455 | PyObject *resultobj; |
3456 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3457 | PyObject * obj0 = 0 ; | |
3458 | char *kwnames[] = { | |
3459 | (char *) "self", NULL | |
3460 | }; | |
3461 | ||
3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3465 | { |
3466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3467 | (arg1)->Copy(); | |
3468 | ||
3469 | wxPyEndAllowThreads(__tstate); | |
3470 | if (PyErr_Occurred()) SWIG_fail; | |
3471 | } | |
3472 | Py_INCREF(Py_None); resultobj = Py_None; | |
3473 | return resultobj; | |
3474 | fail: | |
3475 | return NULL; | |
3476 | } | |
3477 | ||
3478 | ||
c32bde28 | 3479 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3480 | PyObject *resultobj; |
3481 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3482 | PyObject * obj0 = 0 ; | |
3483 | char *kwnames[] = { | |
3484 | (char *) "self", NULL | |
3485 | }; | |
3486 | ||
3487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3490 | { |
3491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3492 | (arg1)->Cut(); | |
3493 | ||
3494 | wxPyEndAllowThreads(__tstate); | |
3495 | if (PyErr_Occurred()) SWIG_fail; | |
3496 | } | |
3497 | Py_INCREF(Py_None); resultobj = Py_None; | |
3498 | return resultobj; | |
3499 | fail: | |
3500 | return NULL; | |
3501 | } | |
3502 | ||
3503 | ||
c32bde28 | 3504 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3505 | PyObject *resultobj; |
3506 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | char *kwnames[] = { | |
3509 | (char *) "self", NULL | |
3510 | }; | |
3511 | ||
3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3515 | { |
3516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3517 | (arg1)->Paste(); | |
3518 | ||
3519 | wxPyEndAllowThreads(__tstate); | |
3520 | if (PyErr_Occurred()) SWIG_fail; | |
3521 | } | |
3522 | Py_INCREF(Py_None); resultobj = Py_None; | |
3523 | return resultobj; | |
3524 | fail: | |
3525 | return NULL; | |
3526 | } | |
3527 | ||
3528 | ||
c32bde28 | 3529 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3530 | PyObject *resultobj; |
3531 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3532 | long arg2 ; | |
3533 | PyObject * obj0 = 0 ; | |
994141e6 | 3534 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3535 | char *kwnames[] = { |
3536 | (char *) "self",(char *) "pos", NULL | |
3537 | }; | |
3538 | ||
994141e6 | 3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3542 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3543 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3544 | { |
3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3546 | (arg1)->SetInsertionPoint(arg2); | |
3547 | ||
3548 | wxPyEndAllowThreads(__tstate); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
3551 | Py_INCREF(Py_None); resultobj = Py_None; | |
3552 | return resultobj; | |
3553 | fail: | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
c32bde28 | 3558 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3559 | PyObject *resultobj; |
3560 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3561 | long result; | |
3562 | PyObject * obj0 = 0 ; | |
3563 | char *kwnames[] = { | |
3564 | (char *) "self", NULL | |
3565 | }; | |
3566 | ||
3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3570 | { |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3572 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3573 | ||
3574 | wxPyEndAllowThreads(__tstate); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
c32bde28 | 3577 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
3578 | return resultobj; |
3579 | fail: | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
c32bde28 | 3584 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3585 | PyObject *resultobj; |
3586 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3587 | long result; | |
3588 | PyObject * obj0 = 0 ; | |
3589 | char *kwnames[] = { | |
3590 | (char *) "self", NULL | |
3591 | }; | |
3592 | ||
3593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3596 | { |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3598 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3599 | ||
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
c32bde28 | 3603 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
3604 | return resultobj; |
3605 | fail: | |
3606 | return NULL; | |
3607 | } | |
3608 | ||
3609 | ||
c32bde28 | 3610 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3611 | PyObject *resultobj; |
3612 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3613 | long arg2 ; | |
3614 | long arg3 ; | |
3615 | wxString *arg4 = 0 ; | |
e811c8ce | 3616 | bool temp4 = False ; |
d14a1e28 | 3617 | PyObject * obj0 = 0 ; |
994141e6 RD |
3618 | PyObject * obj1 = 0 ; |
3619 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3620 | PyObject * obj3 = 0 ; |
3621 | char *kwnames[] = { | |
3622 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3623 | }; | |
3624 | ||
994141e6 | 3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3628 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3629 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3630 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3631 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3632 | { |
3633 | arg4 = wxString_in_helper(obj3); | |
3634 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3635 | temp4 = True; |
d14a1e28 RD |
3636 | } |
3637 | { | |
3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3639 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3640 | ||
3641 | wxPyEndAllowThreads(__tstate); | |
3642 | if (PyErr_Occurred()) SWIG_fail; | |
3643 | } | |
3644 | Py_INCREF(Py_None); resultobj = Py_None; | |
3645 | { | |
3646 | if (temp4) | |
3647 | delete arg4; | |
3648 | } | |
3649 | return resultobj; | |
3650 | fail: | |
3651 | { | |
3652 | if (temp4) | |
3653 | delete arg4; | |
3654 | } | |
3655 | return NULL; | |
3656 | } | |
3657 | ||
3658 | ||
c32bde28 | 3659 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
fd3f2efe RD |
3660 | PyObject *resultobj; |
3661 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3662 | int arg2 ; | |
3663 | PyObject * obj0 = 0 ; | |
994141e6 | 3664 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3665 | char *kwnames[] = { |
3666 | (char *) "self",(char *) "n", NULL | |
3667 | }; | |
3668 | ||
994141e6 | 3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3672 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3673 | if (PyErr_Occurred()) SWIG_fail; |
fd3f2efe RD |
3674 | { |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | (arg1)->SetSelection(arg2); | |
3677 | ||
3678 | wxPyEndAllowThreads(__tstate); | |
3679 | if (PyErr_Occurred()) SWIG_fail; | |
3680 | } | |
3681 | Py_INCREF(Py_None); resultobj = Py_None; | |
3682 | return resultobj; | |
3683 | fail: | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
c32bde28 | 3688 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3689 | PyObject *resultobj; |
3690 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3691 | long arg2 ; | |
3692 | long arg3 ; | |
3693 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3694 | PyObject * obj1 = 0 ; |
3695 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3696 | char *kwnames[] = { |
3697 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3698 | }; | |
3699 | ||
994141e6 | 3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3703 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3704 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3705 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3706 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3707 | { |
3708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3709 | (arg1)->SetSelection(arg2,arg3); | |
3710 | ||
3711 | wxPyEndAllowThreads(__tstate); | |
3712 | if (PyErr_Occurred()) SWIG_fail; | |
3713 | } | |
3714 | Py_INCREF(Py_None); resultobj = Py_None; | |
3715 | return resultobj; | |
3716 | fail: | |
3717 | return NULL; | |
3718 | } | |
3719 | ||
3720 | ||
c32bde28 | 3721 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3722 | PyObject *resultobj; |
3723 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3724 | wxString *arg2 = 0 ; | |
3725 | bool result; | |
3726 | bool temp2 = False ; | |
3727 | PyObject * obj0 = 0 ; | |
3728 | PyObject * obj1 = 0 ; | |
3729 | char *kwnames[] = { | |
3730 | (char *) "self",(char *) "string", NULL | |
3731 | }; | |
3732 | ||
3733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3736 | { | |
3737 | arg2 = wxString_in_helper(obj1); | |
3738 | if (arg2 == NULL) SWIG_fail; | |
3739 | temp2 = True; | |
3740 | } | |
3741 | { | |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | { | |
3749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3750 | } | |
3751 | { | |
3752 | if (temp2) | |
3753 | delete arg2; | |
3754 | } | |
3755 | return resultobj; | |
3756 | fail: | |
3757 | { | |
3758 | if (temp2) | |
3759 | delete arg2; | |
3760 | } | |
3761 | return NULL; | |
3762 | } | |
3763 | ||
3764 | ||
c32bde28 | 3765 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3766 | PyObject *resultobj; |
3767 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3768 | int arg2 ; | |
3769 | wxString *arg3 = 0 ; | |
3770 | bool temp3 = False ; | |
3771 | PyObject * obj0 = 0 ; | |
3772 | PyObject * obj1 = 0 ; | |
3773 | PyObject * obj2 = 0 ; | |
3774 | char *kwnames[] = { | |
3775 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3776 | }; | |
3777 | ||
3778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3781 | arg2 = (int)SWIG_As_int(obj1); |
121b9a67 RD |
3782 | if (PyErr_Occurred()) SWIG_fail; |
3783 | { | |
3784 | arg3 = wxString_in_helper(obj2); | |
3785 | if (arg3 == NULL) SWIG_fail; | |
3786 | temp3 = True; | |
3787 | } | |
3788 | { | |
3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3790 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3791 | ||
3792 | wxPyEndAllowThreads(__tstate); | |
3793 | if (PyErr_Occurred()) SWIG_fail; | |
3794 | } | |
3795 | Py_INCREF(Py_None); resultobj = Py_None; | |
3796 | { | |
3797 | if (temp3) | |
3798 | delete arg3; | |
3799 | } | |
3800 | return resultobj; | |
3801 | fail: | |
3802 | { | |
3803 | if (temp3) | |
3804 | delete arg3; | |
3805 | } | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
c32bde28 | 3810 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3811 | PyObject *resultobj; |
3812 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3813 | bool arg2 ; | |
3814 | PyObject * obj0 = 0 ; | |
3815 | PyObject * obj1 = 0 ; | |
3816 | char *kwnames[] = { | |
3817 | (char *) "self",(char *) "editable", NULL | |
3818 | }; | |
3819 | ||
3820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3823 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 3824 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3825 | { |
3826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3827 | (arg1)->SetEditable(arg2); | |
3828 | ||
3829 | wxPyEndAllowThreads(__tstate); | |
3830 | if (PyErr_Occurred()) SWIG_fail; | |
3831 | } | |
3832 | Py_INCREF(Py_None); resultobj = Py_None; | |
3833 | return resultobj; | |
3834 | fail: | |
3835 | return NULL; | |
3836 | } | |
3837 | ||
3838 | ||
c32bde28 | 3839 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3840 | PyObject *resultobj; |
3841 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3842 | PyObject * obj0 = 0 ; | |
3843 | char *kwnames[] = { | |
3844 | (char *) "self", NULL | |
3845 | }; | |
3846 | ||
3847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3850 | { |
3851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3852 | (arg1)->SetInsertionPointEnd(); | |
3853 | ||
3854 | wxPyEndAllowThreads(__tstate); | |
3855 | if (PyErr_Occurred()) SWIG_fail; | |
3856 | } | |
3857 | Py_INCREF(Py_None); resultobj = Py_None; | |
3858 | return resultobj; | |
3859 | fail: | |
3860 | return NULL; | |
3861 | } | |
3862 | ||
3863 | ||
c32bde28 | 3864 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3865 | PyObject *resultobj; |
3866 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3867 | long arg2 ; | |
3868 | long arg3 ; | |
3869 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3870 | PyObject * obj1 = 0 ; |
3871 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3872 | char *kwnames[] = { |
3873 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3874 | }; | |
3875 | ||
994141e6 | 3876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3879 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3880 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3881 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3882 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3883 | { |
3884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3885 | (arg1)->Remove(arg2,arg3); | |
3886 | ||
3887 | wxPyEndAllowThreads(__tstate); | |
3888 | if (PyErr_Occurred()) SWIG_fail; | |
3889 | } | |
3890 | Py_INCREF(Py_None); resultobj = Py_None; | |
3891 | return resultobj; | |
3892 | fail: | |
3893 | return NULL; | |
3894 | } | |
3895 | ||
3896 | ||
c32bde28 | 3897 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
3898 | PyObject *resultobj; |
3899 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3900 | wxVisualAttributes result; | |
3901 | PyObject * obj0 = 0 ; | |
3902 | char *kwnames[] = { | |
3903 | (char *) "variant", NULL | |
3904 | }; | |
3905 | ||
3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3907 | if (obj0) { | |
c32bde28 | 3908 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
3909 | if (PyErr_Occurred()) SWIG_fail; |
3910 | } | |
3911 | { | |
110da5b0 | 3912 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3914 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3915 | ||
3916 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3917 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3918 | } |
3919 | { | |
3920 | wxVisualAttributes * resultptr; | |
3921 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3923 | } | |
3924 | return resultobj; | |
3925 | fail: | |
3926 | return NULL; | |
3927 | } | |
3928 | ||
3929 | ||
c32bde28 | 3930 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3931 | PyObject *obj; |
3932 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3933 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3934 | Py_INCREF(obj); | |
3935 | return Py_BuildValue((char *)""); | |
3936 | } | |
c32bde28 | 3937 | static int _wrap_GaugeNameStr_set(PyObject *) { |
b2dc1044 RD |
3938 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3939 | return 1; | |
3940 | } | |
3941 | ||
3942 | ||
3943 | static PyObject *_wrap_GaugeNameStr_get() { | |
3944 | PyObject *pyobj; | |
3945 | ||
3946 | { | |
3947 | #if wxUSE_UNICODE | |
3948 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3949 | #else | |
3950 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3951 | #endif | |
3952 | } | |
3953 | return pyobj; | |
3954 | } | |
3955 | ||
3956 | ||
c32bde28 | 3957 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3958 | PyObject *resultobj; |
3959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3960 | int arg2 = (int) -1 ; |
3961 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
3962 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3963 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3964 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3965 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3966 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3967 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3968 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3969 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3970 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3971 | wxGauge *result; | |
3972 | wxPoint temp4 ; | |
3973 | wxSize temp5 ; | |
e811c8ce | 3974 | bool temp8 = False ; |
d14a1e28 | 3975 | PyObject * obj0 = 0 ; |
994141e6 RD |
3976 | PyObject * obj1 = 0 ; |
3977 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3978 | PyObject * obj3 = 0 ; |
3979 | PyObject * obj4 = 0 ; | |
994141e6 | 3980 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3981 | PyObject * obj6 = 0 ; |
3982 | PyObject * obj7 = 0 ; | |
3983 | char *kwnames[] = { | |
3984 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3985 | }; | |
3986 | ||
248ed943 | 3987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
3988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 3990 | if (obj1) { |
c32bde28 | 3991 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
3992 | if (PyErr_Occurred()) SWIG_fail; |
3993 | } | |
3994 | if (obj2) { | |
c32bde28 | 3995 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
3996 | if (PyErr_Occurred()) SWIG_fail; |
3997 | } | |
d14a1e28 RD |
3998 | if (obj3) { |
3999 | { | |
4000 | arg4 = &temp4; | |
4001 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4002 | } | |
4003 | } | |
4004 | if (obj4) { | |
4005 | { | |
4006 | arg5 = &temp5; | |
4007 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4008 | } | |
4009 | } | |
994141e6 | 4010 | if (obj5) { |
c32bde28 | 4011 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4012 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4013 | } |
d14a1e28 | 4014 | if (obj6) { |
15afbcd0 RD |
4015 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
4016 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4017 | SWIG_fail; | |
d14a1e28 | 4018 | if (arg7 == NULL) { |
15afbcd0 RD |
4019 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4020 | SWIG_fail; | |
d14a1e28 RD |
4021 | } |
4022 | } | |
4023 | if (obj7) { | |
4024 | { | |
4025 | arg8 = wxString_in_helper(obj7); | |
4026 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4027 | temp8 = True; |
d14a1e28 RD |
4028 | } |
4029 | } | |
4030 | { | |
e3b71cb8 | 4031 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4033 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4034 | ||
4035 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4036 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4037 | } |
15afbcd0 | 4038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
4039 | { |
4040 | if (temp8) | |
4041 | delete arg8; | |
4042 | } | |
4043 | return resultobj; | |
4044 | fail: | |
4045 | { | |
4046 | if (temp8) | |
4047 | delete arg8; | |
4048 | } | |
4049 | return NULL; | |
4050 | } | |
4051 | ||
4052 | ||
c32bde28 | 4053 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4054 | PyObject *resultobj; |
4055 | wxGauge *result; | |
4056 | char *kwnames[] = { | |
4057 | NULL | |
4058 | }; | |
4059 | ||
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
4061 | { | |
e3b71cb8 | 4062 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4064 | result = (wxGauge *)new wxGauge(); | |
4065 | ||
4066 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4067 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4068 | } |
15afbcd0 | 4069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
4070 | return resultobj; |
4071 | fail: | |
4072 | return NULL; | |
4073 | } | |
4074 | ||
4075 | ||
c32bde28 | 4076 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4077 | PyObject *resultobj; |
4078 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4079 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4080 | int arg3 = (int) -1 ; |
4081 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
4082 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4083 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4084 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4085 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4086 | long arg7 = (long) wxGA_HORIZONTAL ; | |
4087 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4088 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4089 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
4090 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4091 | bool result; | |
4092 | wxPoint temp5 ; | |
4093 | wxSize temp6 ; | |
e811c8ce | 4094 | bool temp9 = False ; |
d14a1e28 RD |
4095 | PyObject * obj0 = 0 ; |
4096 | PyObject * obj1 = 0 ; | |
994141e6 RD |
4097 | PyObject * obj2 = 0 ; |
4098 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4099 | PyObject * obj4 = 0 ; |
4100 | PyObject * obj5 = 0 ; | |
994141e6 | 4101 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4102 | PyObject * obj7 = 0 ; |
4103 | PyObject * obj8 = 0 ; | |
4104 | char *kwnames[] = { | |
4105 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4106 | }; | |
4107 | ||
248ed943 | 4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
4109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4113 | if (obj2) { |
c32bde28 | 4114 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4115 | if (PyErr_Occurred()) SWIG_fail; |
4116 | } | |
4117 | if (obj3) { | |
c32bde28 | 4118 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
4119 | if (PyErr_Occurred()) SWIG_fail; |
4120 | } | |
d14a1e28 RD |
4121 | if (obj4) { |
4122 | { | |
4123 | arg5 = &temp5; | |
4124 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4125 | } | |
4126 | } | |
4127 | if (obj5) { | |
4128 | { | |
4129 | arg6 = &temp6; | |
4130 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4131 | } | |
4132 | } | |
994141e6 | 4133 | if (obj6) { |
c32bde28 | 4134 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 4135 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4136 | } |
d14a1e28 | 4137 | if (obj7) { |
15afbcd0 RD |
4138 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
4139 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4140 | SWIG_fail; | |
d14a1e28 | 4141 | if (arg8 == NULL) { |
15afbcd0 RD |
4142 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4143 | SWIG_fail; | |
d14a1e28 RD |
4144 | } |
4145 | } | |
4146 | if (obj8) { | |
4147 | { | |
4148 | arg9 = wxString_in_helper(obj8); | |
4149 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 4150 | temp9 = True; |
d14a1e28 RD |
4151 | } |
4152 | } | |
4153 | { | |
4154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4155 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4156 | ||
4157 | wxPyEndAllowThreads(__tstate); | |
4158 | if (PyErr_Occurred()) SWIG_fail; | |
4159 | } | |
4f89f6a3 RD |
4160 | { |
4161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4162 | } | |
d14a1e28 RD |
4163 | { |
4164 | if (temp9) | |
4165 | delete arg9; | |
4166 | } | |
4167 | return resultobj; | |
4168 | fail: | |
4169 | { | |
4170 | if (temp9) | |
4171 | delete arg9; | |
4172 | } | |
4173 | return NULL; | |
4174 | } | |
4175 | ||
4176 | ||
c32bde28 | 4177 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4178 | PyObject *resultobj; |
4179 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4180 | int arg2 ; | |
4181 | PyObject * obj0 = 0 ; | |
994141e6 | 4182 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4183 | char *kwnames[] = { |
4184 | (char *) "self",(char *) "range", NULL | |
4185 | }; | |
4186 | ||
994141e6 | 4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4190 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4191 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4192 | { |
4193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4194 | (arg1)->SetRange(arg2); | |
4195 | ||
4196 | wxPyEndAllowThreads(__tstate); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
4199 | Py_INCREF(Py_None); resultobj = Py_None; | |
4200 | return resultobj; | |
4201 | fail: | |
4202 | return NULL; | |
4203 | } | |
4204 | ||
4205 | ||
c32bde28 | 4206 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4207 | PyObject *resultobj; |
4208 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4209 | int result; | |
4210 | PyObject * obj0 = 0 ; | |
4211 | char *kwnames[] = { | |
4212 | (char *) "self", NULL | |
4213 | }; | |
4214 | ||
4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4218 | { |
4219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4220 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4221 | ||
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
c32bde28 | 4225 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4226 | return resultobj; |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
c32bde28 | 4232 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4233 | PyObject *resultobj; |
4234 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4235 | int arg2 ; | |
4236 | PyObject * obj0 = 0 ; | |
994141e6 | 4237 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4238 | char *kwnames[] = { |
4239 | (char *) "self",(char *) "pos", NULL | |
4240 | }; | |
4241 | ||
994141e6 | 4242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4245 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4246 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4247 | { |
4248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4249 | (arg1)->SetValue(arg2); | |
4250 | ||
4251 | wxPyEndAllowThreads(__tstate); | |
4252 | if (PyErr_Occurred()) SWIG_fail; | |
4253 | } | |
4254 | Py_INCREF(Py_None); resultobj = Py_None; | |
4255 | return resultobj; | |
4256 | fail: | |
4257 | return NULL; | |
4258 | } | |
4259 | ||
4260 | ||
c32bde28 | 4261 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4262 | PyObject *resultobj; |
4263 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4264 | int result; | |
4265 | PyObject * obj0 = 0 ; | |
4266 | char *kwnames[] = { | |
4267 | (char *) "self", NULL | |
4268 | }; | |
4269 | ||
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4273 | { |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4275 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
c32bde28 | 4280 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4281 | return resultobj; |
4282 | fail: | |
4283 | return NULL; | |
4284 | } | |
4285 | ||
4286 | ||
c32bde28 | 4287 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4288 | PyObject *resultobj; |
4289 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4290 | bool result; | |
4291 | PyObject * obj0 = 0 ; | |
4292 | char *kwnames[] = { | |
4293 | (char *) "self", NULL | |
4294 | }; | |
4295 | ||
4296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4299 | { |
4300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4301 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4302 | ||
4303 | wxPyEndAllowThreads(__tstate); | |
4304 | if (PyErr_Occurred()) SWIG_fail; | |
4305 | } | |
4f89f6a3 RD |
4306 | { |
4307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4308 | } | |
d14a1e28 RD |
4309 | return resultobj; |
4310 | fail: | |
4311 | return NULL; | |
4312 | } | |
4313 | ||
4314 | ||
c32bde28 | 4315 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4316 | PyObject *resultobj; |
4317 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4318 | int arg2 ; | |
4319 | PyObject * obj0 = 0 ; | |
994141e6 | 4320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4321 | char *kwnames[] = { |
4322 | (char *) "self",(char *) "w", NULL | |
4323 | }; | |
4324 | ||
994141e6 | 4325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4328 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4329 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4330 | { |
4331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4332 | (arg1)->SetShadowWidth(arg2); | |
4333 | ||
4334 | wxPyEndAllowThreads(__tstate); | |
4335 | if (PyErr_Occurred()) SWIG_fail; | |
4336 | } | |
4337 | Py_INCREF(Py_None); resultobj = Py_None; | |
4338 | return resultobj; | |
4339 | fail: | |
4340 | return NULL; | |
4341 | } | |
4342 | ||
4343 | ||
c32bde28 | 4344 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4345 | PyObject *resultobj; |
4346 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4347 | int result; | |
4348 | PyObject * obj0 = 0 ; | |
4349 | char *kwnames[] = { | |
4350 | (char *) "self", NULL | |
4351 | }; | |
4352 | ||
4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4356 | { |
4357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4358 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4359 | ||
4360 | wxPyEndAllowThreads(__tstate); | |
4361 | if (PyErr_Occurred()) SWIG_fail; | |
4362 | } | |
c32bde28 | 4363 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4364 | return resultobj; |
4365 | fail: | |
4366 | return NULL; | |
4367 | } | |
4368 | ||
4369 | ||
c32bde28 | 4370 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4371 | PyObject *resultobj; |
4372 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4373 | int arg2 ; | |
4374 | PyObject * obj0 = 0 ; | |
994141e6 | 4375 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4376 | char *kwnames[] = { |
4377 | (char *) "self",(char *) "w", NULL | |
4378 | }; | |
4379 | ||
994141e6 | 4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4383 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4384 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4385 | { |
4386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4387 | (arg1)->SetBezelFace(arg2); | |
4388 | ||
4389 | wxPyEndAllowThreads(__tstate); | |
4390 | if (PyErr_Occurred()) SWIG_fail; | |
4391 | } | |
4392 | Py_INCREF(Py_None); resultobj = Py_None; | |
4393 | return resultobj; | |
4394 | fail: | |
4395 | return NULL; | |
4396 | } | |
4397 | ||
4398 | ||
c32bde28 | 4399 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4400 | PyObject *resultobj; |
4401 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4402 | int result; | |
4403 | PyObject * obj0 = 0 ; | |
4404 | char *kwnames[] = { | |
4405 | (char *) "self", NULL | |
4406 | }; | |
4407 | ||
4408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4411 | { |
4412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4413 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4414 | ||
4415 | wxPyEndAllowThreads(__tstate); | |
4416 | if (PyErr_Occurred()) SWIG_fail; | |
4417 | } | |
c32bde28 | 4418 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4419 | return resultobj; |
4420 | fail: | |
4421 | return NULL; | |
4422 | } | |
4423 | ||
4424 | ||
c32bde28 | 4425 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
4426 | PyObject *resultobj; |
4427 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4428 | wxVisualAttributes result; | |
4429 | PyObject * obj0 = 0 ; | |
4430 | char *kwnames[] = { | |
4431 | (char *) "variant", NULL | |
4432 | }; | |
4433 | ||
4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4435 | if (obj0) { | |
c32bde28 | 4436 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
4437 | if (PyErr_Occurred()) SWIG_fail; |
4438 | } | |
4439 | { | |
110da5b0 | 4440 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4442 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4443 | ||
4444 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4445 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4446 | } |
4447 | { | |
4448 | wxVisualAttributes * resultptr; | |
4449 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4450 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4451 | } | |
4452 | return resultobj; | |
4453 | fail: | |
4454 | return NULL; | |
4455 | } | |
4456 | ||
4457 | ||
c32bde28 | 4458 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4459 | PyObject *obj; |
4460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4461 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4462 | Py_INCREF(obj); | |
4463 | return Py_BuildValue((char *)""); | |
4464 | } | |
c32bde28 | 4465 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
b2dc1044 RD |
4466 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4467 | return 1; | |
4468 | } | |
4469 | ||
4470 | ||
4471 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4472 | PyObject *pyobj; | |
4473 | ||
4474 | { | |
4475 | #if wxUSE_UNICODE | |
4476 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4477 | #else | |
4478 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4479 | #endif | |
4480 | } | |
4481 | return pyobj; | |
4482 | } | |
4483 | ||
4484 | ||
c32bde28 | 4485 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
4486 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4487 | return 1; | |
4488 | } | |
4489 | ||
4490 | ||
4491 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4492 | PyObject *pyobj; | |
4493 | ||
4494 | { | |
4495 | #if wxUSE_UNICODE | |
4496 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4497 | #else | |
4498 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4499 | #endif | |
4500 | } | |
4501 | return pyobj; | |
4502 | } | |
4503 | ||
4504 | ||
c32bde28 | 4505 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
b2dc1044 RD |
4506 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4507 | return 1; | |
4508 | } | |
4509 | ||
4510 | ||
4511 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4512 | PyObject *pyobj; | |
4513 | ||
4514 | { | |
4515 | #if wxUSE_UNICODE | |
4516 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4517 | #else | |
4518 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4519 | #endif | |
4520 | } | |
4521 | return pyobj; | |
4522 | } | |
4523 | ||
4524 | ||
c32bde28 | 4525 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4526 | PyObject *resultobj; |
4527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4528 | int arg2 = (int) -1 ; |
4529 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4530 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
4531 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4532 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4533 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4534 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4535 | long arg6 = (long) 0 ; | |
4536 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4537 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4538 | wxStaticBox *result; | |
e811c8ce | 4539 | bool temp3 = False ; |
d14a1e28 RD |
4540 | wxPoint temp4 ; |
4541 | wxSize temp5 ; | |
e811c8ce | 4542 | bool temp7 = False ; |
d14a1e28 | 4543 | PyObject * obj0 = 0 ; |
994141e6 | 4544 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4545 | PyObject * obj2 = 0 ; |
4546 | PyObject * obj3 = 0 ; | |
4547 | PyObject * obj4 = 0 ; | |
994141e6 | 4548 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4549 | PyObject * obj6 = 0 ; |
4550 | char *kwnames[] = { | |
4551 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4552 | }; | |
4553 | ||
248ed943 | 4554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4557 | if (obj1) { |
c32bde28 | 4558 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4559 | if (PyErr_Occurred()) SWIG_fail; |
4560 | } | |
4561 | if (obj2) { | |
4562 | { | |
4563 | arg3 = wxString_in_helper(obj2); | |
4564 | if (arg3 == NULL) SWIG_fail; | |
4565 | temp3 = True; | |
4566 | } | |
d14a1e28 RD |
4567 | } |
4568 | if (obj3) { | |
4569 | { | |
4570 | arg4 = &temp4; | |
4571 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4572 | } | |
4573 | } | |
4574 | if (obj4) { | |
4575 | { | |
4576 | arg5 = &temp5; | |
4577 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4578 | } | |
4579 | } | |
994141e6 | 4580 | if (obj5) { |
c32bde28 | 4581 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4582 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4583 | } |
d14a1e28 RD |
4584 | if (obj6) { |
4585 | { | |
4586 | arg7 = wxString_in_helper(obj6); | |
4587 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4588 | temp7 = True; |
d14a1e28 RD |
4589 | } |
4590 | } | |
4591 | { | |
e3b71cb8 | 4592 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4594 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4595 | ||
4596 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4597 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4598 | } |
b0f7404b | 4599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4600 | { |
4601 | if (temp3) | |
4602 | delete arg3; | |
4603 | } | |
4604 | { | |
4605 | if (temp7) | |
4606 | delete arg7; | |
4607 | } | |
4608 | return resultobj; | |
4609 | fail: | |
4610 | { | |
4611 | if (temp3) | |
4612 | delete arg3; | |
4613 | } | |
4614 | { | |
4615 | if (temp7) | |
4616 | delete arg7; | |
4617 | } | |
4618 | return NULL; | |
4619 | } | |
4620 | ||
4621 | ||
c32bde28 | 4622 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4623 | PyObject *resultobj; |
4624 | wxStaticBox *result; | |
4625 | char *kwnames[] = { | |
4626 | NULL | |
4627 | }; | |
4628 | ||
4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4630 | { | |
e3b71cb8 | 4631 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4633 | result = (wxStaticBox *)new wxStaticBox(); | |
4634 | ||
4635 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4636 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4637 | } |
b0f7404b | 4638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4639 | return resultobj; |
4640 | fail: | |
4641 | return NULL; | |
4642 | } | |
4643 | ||
4644 | ||
c32bde28 | 4645 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4646 | PyObject *resultobj; |
4647 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4648 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4649 | int arg3 = (int) -1 ; |
4650 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4651 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
4652 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4653 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4654 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4655 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4656 | long arg7 = (long) 0 ; | |
4657 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4658 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4659 | bool result; | |
e811c8ce | 4660 | bool temp4 = False ; |
d14a1e28 RD |
4661 | wxPoint temp5 ; |
4662 | wxSize temp6 ; | |
e811c8ce | 4663 | bool temp8 = False ; |
d14a1e28 RD |
4664 | PyObject * obj0 = 0 ; |
4665 | PyObject * obj1 = 0 ; | |
994141e6 | 4666 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4667 | PyObject * obj3 = 0 ; |
4668 | PyObject * obj4 = 0 ; | |
4669 | PyObject * obj5 = 0 ; | |
994141e6 | 4670 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4671 | PyObject * obj7 = 0 ; |
4672 | char *kwnames[] = { | |
4673 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4674 | }; | |
4675 | ||
248ed943 | 4676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4681 | if (obj2) { |
c32bde28 | 4682 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4683 | if (PyErr_Occurred()) SWIG_fail; |
4684 | } | |
4685 | if (obj3) { | |
4686 | { | |
4687 | arg4 = wxString_in_helper(obj3); | |
4688 | if (arg4 == NULL) SWIG_fail; | |
4689 | temp4 = True; | |
4690 | } | |
d14a1e28 RD |
4691 | } |
4692 | if (obj4) { | |
4693 | { | |
4694 | arg5 = &temp5; | |
4695 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4696 | } | |
4697 | } | |
4698 | if (obj5) { | |
4699 | { | |
4700 | arg6 = &temp6; | |
4701 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4702 | } | |
4703 | } | |
994141e6 | 4704 | if (obj6) { |
c32bde28 | 4705 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 4706 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4707 | } |
d14a1e28 RD |
4708 | if (obj7) { |
4709 | { | |
4710 | arg8 = wxString_in_helper(obj7); | |
4711 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4712 | temp8 = True; |
d14a1e28 RD |
4713 | } |
4714 | } | |
4715 | { | |
4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4717 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4718 | ||
4719 | wxPyEndAllowThreads(__tstate); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
4f89f6a3 RD |
4722 | { |
4723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4724 | } | |
d14a1e28 RD |
4725 | { |
4726 | if (temp4) | |
4727 | delete arg4; | |
4728 | } | |
4729 | { | |
4730 | if (temp8) | |
4731 | delete arg8; | |
4732 | } | |
4733 | return resultobj; | |
4734 | fail: | |
4735 | { | |
4736 | if (temp4) | |
4737 | delete arg4; | |
4738 | } | |
4739 | { | |
4740 | if (temp8) | |
4741 | delete arg8; | |
4742 | } | |
4743 | return NULL; | |
4744 | } | |
4745 | ||
4746 | ||
c32bde28 | 4747 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
4748 | PyObject *resultobj; |
4749 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4750 | wxVisualAttributes result; | |
4751 | PyObject * obj0 = 0 ; | |
4752 | char *kwnames[] = { | |
4753 | (char *) "variant", NULL | |
4754 | }; | |
4755 | ||
4756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4757 | if (obj0) { | |
c32bde28 | 4758 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
4759 | if (PyErr_Occurred()) SWIG_fail; |
4760 | } | |
4761 | { | |
110da5b0 | 4762 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4764 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4765 | ||
4766 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4767 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4768 | } |
4769 | { | |
4770 | wxVisualAttributes * resultptr; | |
4771 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4772 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4773 | } | |
4774 | return resultobj; | |
4775 | fail: | |
4776 | return NULL; | |
4777 | } | |
4778 | ||
4779 | ||
c32bde28 | 4780 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4781 | PyObject *obj; |
4782 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4783 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4784 | Py_INCREF(obj); | |
4785 | return Py_BuildValue((char *)""); | |
4786 | } | |
c32bde28 | 4787 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4788 | PyObject *resultobj; |
4789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 4790 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4791 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4792 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4793 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4794 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4795 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4796 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4797 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4798 | wxStaticLine *result; | |
4799 | wxPoint temp3 ; | |
4800 | wxSize temp4 ; | |
e811c8ce | 4801 | bool temp6 = False ; |
d14a1e28 | 4802 | PyObject * obj0 = 0 ; |
994141e6 | 4803 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4804 | PyObject * obj2 = 0 ; |
4805 | PyObject * obj3 = 0 ; | |
994141e6 | 4806 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4807 | PyObject * obj5 = 0 ; |
4808 | char *kwnames[] = { | |
4809 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4810 | }; | |
4811 | ||
248ed943 | 4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
4813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4815 | if (obj1) { |
c32bde28 | 4816 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4817 | if (PyErr_Occurred()) SWIG_fail; |
4818 | } | |
d14a1e28 RD |
4819 | if (obj2) { |
4820 | { | |
4821 | arg3 = &temp3; | |
4822 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4823 | } | |
4824 | } | |
4825 | if (obj3) { | |
4826 | { | |
4827 | arg4 = &temp4; | |
4828 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4829 | } | |
4830 | } | |
994141e6 | 4831 | if (obj4) { |
c32bde28 | 4832 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 4833 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4834 | } |
d14a1e28 RD |
4835 | if (obj5) { |
4836 | { | |
4837 | arg6 = wxString_in_helper(obj5); | |
4838 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 4839 | temp6 = True; |
d14a1e28 RD |
4840 | } |
4841 | } | |
4842 | { | |
e3b71cb8 | 4843 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4845 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4846 | ||
4847 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4848 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4849 | } |
15afbcd0 | 4850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4851 | { |
4852 | if (temp6) | |
4853 | delete arg6; | |
4854 | } | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | { | |
4858 | if (temp6) | |
4859 | delete arg6; | |
4860 | } | |
4861 | return NULL; | |
4862 | } | |
4863 | ||
4864 | ||
c32bde28 | 4865 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4866 | PyObject *resultobj; |
4867 | wxStaticLine *result; | |
4868 | char *kwnames[] = { | |
4869 | NULL | |
4870 | }; | |
4871 | ||
4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4873 | { | |
e3b71cb8 | 4874 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4876 | result = (wxStaticLine *)new wxStaticLine(); | |
4877 | ||
4878 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4879 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4880 | } |
15afbcd0 | 4881 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4882 | return resultobj; |
4883 | fail: | |
4884 | return NULL; | |
4885 | } | |
4886 | ||
4887 | ||
c32bde28 | 4888 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4889 | PyObject *resultobj; |
4890 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4891 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 4892 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4893 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4894 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4895 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4896 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4897 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4898 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4899 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4900 | bool result; | |
4901 | wxPoint temp4 ; | |
4902 | wxSize temp5 ; | |
e811c8ce | 4903 | bool temp7 = False ; |
d14a1e28 RD |
4904 | PyObject * obj0 = 0 ; |
4905 | PyObject * obj1 = 0 ; | |
994141e6 | 4906 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4907 | PyObject * obj3 = 0 ; |
4908 | PyObject * obj4 = 0 ; | |
994141e6 | 4909 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4910 | PyObject * obj6 = 0 ; |
4911 | char *kwnames[] = { | |
4912 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4913 | }; | |
4914 | ||
248ed943 | 4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4918 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4920 | if (obj2) { |
c32bde28 | 4921 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4922 | if (PyErr_Occurred()) SWIG_fail; |
4923 | } | |
d14a1e28 RD |
4924 | if (obj3) { |
4925 | { | |
4926 | arg4 = &temp4; | |
4927 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4928 | } | |
4929 | } | |
4930 | if (obj4) { | |
4931 | { | |
4932 | arg5 = &temp5; | |
4933 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4934 | } | |
4935 | } | |
994141e6 | 4936 | if (obj5) { |
c32bde28 | 4937 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4938 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4939 | } |
d14a1e28 RD |
4940 | if (obj6) { |
4941 | { | |
4942 | arg7 = wxString_in_helper(obj6); | |
4943 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4944 | temp7 = True; |
d14a1e28 RD |
4945 | } |
4946 | } | |
4947 | { | |
4948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4949 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4950 | ||
4951 | wxPyEndAllowThreads(__tstate); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
4953 | } | |
4f89f6a3 RD |
4954 | { |
4955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4956 | } | |
d14a1e28 RD |
4957 | { |
4958 | if (temp7) | |
4959 | delete arg7; | |
4960 | } | |
4961 | return resultobj; | |
4962 | fail: | |
4963 | { | |
4964 | if (temp7) | |
4965 | delete arg7; | |
4966 | } | |
4967 | return NULL; | |
4968 | } | |
4969 | ||
4970 | ||
c32bde28 | 4971 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4972 | PyObject *resultobj; |
4973 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4974 | bool result; | |
4975 | PyObject * obj0 = 0 ; | |
4976 | char *kwnames[] = { | |
4977 | (char *) "self", NULL | |
4978 | }; | |
4979 | ||
4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4983 | { |
4984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4985 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4986 | ||
4987 | wxPyEndAllowThreads(__tstate); | |
4988 | if (PyErr_Occurred()) SWIG_fail; | |
4989 | } | |
4f89f6a3 RD |
4990 | { |
4991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4992 | } | |
d14a1e28 RD |
4993 | return resultobj; |
4994 | fail: | |
4995 | return NULL; | |
4996 | } | |
4997 | ||
4998 | ||
c32bde28 | 4999 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5000 | PyObject *resultobj; |
5001 | int result; | |
5002 | char *kwnames[] = { | |
5003 | NULL | |
5004 | }; | |
5005 | ||
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
5007 | { | |
5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5009 | result = (int)wxStaticLine::GetDefaultSize(); | |
5010 | ||
5011 | wxPyEndAllowThreads(__tstate); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
c32bde28 | 5014 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5015 | return resultobj; |
5016 | fail: | |
5017 | return NULL; | |
5018 | } | |
5019 | ||
5020 | ||
c32bde28 | 5021 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5022 | PyObject *resultobj; |
5023 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5024 | wxVisualAttributes result; | |
5025 | PyObject * obj0 = 0 ; | |
5026 | char *kwnames[] = { | |
5027 | (char *) "variant", NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5031 | if (obj0) { | |
c32bde28 | 5032 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5033 | if (PyErr_Occurred()) SWIG_fail; |
5034 | } | |
5035 | { | |
110da5b0 | 5036 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5038 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5039 | ||
5040 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5041 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5042 | } |
5043 | { | |
5044 | wxVisualAttributes * resultptr; | |
5045 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5046 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5047 | } | |
5048 | return resultobj; | |
5049 | fail: | |
5050 | return NULL; | |
5051 | } | |
5052 | ||
5053 | ||
c32bde28 | 5054 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5055 | PyObject *obj; |
5056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5057 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
5058 | Py_INCREF(obj); | |
5059 | return Py_BuildValue((char *)""); | |
5060 | } | |
c32bde28 | 5061 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5062 | PyObject *resultobj; |
5063 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5064 | int arg2 = (int) -1 ; |
5065 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5066 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
5067 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5068 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5069 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5070 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5071 | long arg6 = (long) 0 ; | |
5072 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
5073 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5074 | wxStaticText *result; | |
e811c8ce | 5075 | bool temp3 = False ; |
d14a1e28 RD |
5076 | wxPoint temp4 ; |
5077 | wxSize temp5 ; | |
e811c8ce | 5078 | bool temp7 = False ; |
d14a1e28 | 5079 | PyObject * obj0 = 0 ; |
994141e6 | 5080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5081 | PyObject * obj2 = 0 ; |
5082 | PyObject * obj3 = 0 ; | |
5083 | PyObject * obj4 = 0 ; | |
994141e6 | 5084 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5085 | PyObject * obj6 = 0 ; |
5086 | char *kwnames[] = { | |
5087 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5088 | }; | |
5089 | ||
248ed943 | 5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5093 | if (obj1) { |
c32bde28 | 5094 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5095 | if (PyErr_Occurred()) SWIG_fail; |
5096 | } | |
5097 | if (obj2) { | |
5098 | { | |
5099 | arg3 = wxString_in_helper(obj2); | |
5100 | if (arg3 == NULL) SWIG_fail; | |
5101 | temp3 = True; | |
5102 | } | |
d14a1e28 RD |
5103 | } |
5104 | if (obj3) { | |
5105 | { | |
5106 | arg4 = &temp4; | |
5107 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5108 | } | |
5109 | } | |
5110 | if (obj4) { | |
5111 | { | |
5112 | arg5 = &temp5; | |
5113 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5114 | } | |
5115 | } | |
994141e6 | 5116 | if (obj5) { |
c32bde28 | 5117 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5118 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5119 | } |
d14a1e28 RD |
5120 | if (obj6) { |
5121 | { | |
5122 | arg7 = wxString_in_helper(obj6); | |
5123 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5124 | temp7 = True; |
d14a1e28 RD |
5125 | } |
5126 | } | |
5127 | { | |
e3b71cb8 | 5128 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5130 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5133 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5134 | } |
15afbcd0 | 5135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5136 | { |
5137 | if (temp3) | |
5138 | delete arg3; | |
5139 | } | |
5140 | { | |
5141 | if (temp7) | |
5142 | delete arg7; | |
5143 | } | |
5144 | return resultobj; | |
5145 | fail: | |
5146 | { | |
5147 | if (temp3) | |
5148 | delete arg3; | |
5149 | } | |
5150 | { | |
5151 | if (temp7) | |
5152 | delete arg7; | |
5153 | } | |
5154 | return NULL; | |
5155 | } | |
5156 | ||
5157 | ||
c32bde28 | 5158 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5159 | PyObject *resultobj; |
5160 | wxStaticText *result; | |
5161 | char *kwnames[] = { | |
5162 | NULL | |
5163 | }; | |
5164 | ||
5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5166 | { | |
e3b71cb8 | 5167 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5169 | result = (wxStaticText *)new wxStaticText(); | |
5170 | ||
5171 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5172 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5173 | } |
15afbcd0 | 5174 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5175 | return resultobj; |
5176 | fail: | |
5177 | return NULL; | |
5178 | } | |
5179 | ||
5180 | ||
c32bde28 | 5181 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5182 | PyObject *resultobj; |
5183 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5184 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5185 | int arg3 = (int) -1 ; |
5186 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5187 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
5188 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5189 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5190 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5191 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5192 | long arg7 = (long) 0 ; | |
5193 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5194 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5195 | bool result; | |
e811c8ce | 5196 | bool temp4 = False ; |
d14a1e28 RD |
5197 | wxPoint temp5 ; |
5198 | wxSize temp6 ; | |
e811c8ce | 5199 | bool temp8 = False ; |
d14a1e28 RD |
5200 | PyObject * obj0 = 0 ; |
5201 | PyObject * obj1 = 0 ; | |
994141e6 | 5202 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5203 | PyObject * obj3 = 0 ; |
5204 | PyObject * obj4 = 0 ; | |
5205 | PyObject * obj5 = 0 ; | |
994141e6 | 5206 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5207 | PyObject * obj7 = 0 ; |
5208 | char *kwnames[] = { | |
5209 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5210 | }; | |
5211 | ||
248ed943 | 5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5215 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5217 | if (obj2) { |
c32bde28 | 5218 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5219 | if (PyErr_Occurred()) SWIG_fail; |
5220 | } | |
5221 | if (obj3) { | |
5222 | { | |
5223 | arg4 = wxString_in_helper(obj3); | |
5224 | if (arg4 == NULL) SWIG_fail; | |
5225 | temp4 = True; | |
5226 | } | |
d14a1e28 RD |
5227 | } |
5228 | if (obj4) { | |
5229 | { | |
5230 | arg5 = &temp5; | |
5231 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5232 | } | |
5233 | } | |
5234 | if (obj5) { | |
5235 | { | |
5236 | arg6 = &temp6; | |
5237 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5238 | } | |
5239 | } | |
994141e6 | 5240 | if (obj6) { |
c32bde28 | 5241 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5242 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5243 | } |
d14a1e28 RD |
5244 | if (obj7) { |
5245 | { | |
5246 | arg8 = wxString_in_helper(obj7); | |
5247 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5248 | temp8 = True; |
d14a1e28 RD |
5249 | } |
5250 | } | |
5251 | { | |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5253 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5254 | ||
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
4f89f6a3 RD |
5258 | { |
5259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5260 | } | |
d14a1e28 RD |
5261 | { |
5262 | if (temp4) | |
5263 | delete arg4; | |
5264 | } | |
5265 | { | |
5266 | if (temp8) | |
5267 | delete arg8; | |
5268 | } | |
5269 | return resultobj; | |
5270 | fail: | |
5271 | { | |
5272 | if (temp4) | |
5273 | delete arg4; | |
5274 | } | |
5275 | { | |
5276 | if (temp8) | |
5277 | delete arg8; | |
5278 | } | |
5279 | return NULL; | |
5280 | } | |
5281 | ||
5282 | ||
c32bde28 | 5283 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5284 | PyObject *resultobj; |
5285 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5286 | wxVisualAttributes result; | |
5287 | PyObject * obj0 = 0 ; | |
5288 | char *kwnames[] = { | |
5289 | (char *) "variant", NULL | |
5290 | }; | |
5291 | ||
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5293 | if (obj0) { | |
c32bde28 | 5294 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5295 | if (PyErr_Occurred()) SWIG_fail; |
5296 | } | |
5297 | { | |
110da5b0 | 5298 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5300 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5301 | ||
5302 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5303 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5304 | } |
5305 | { | |
5306 | wxVisualAttributes * resultptr; | |
5307 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5308 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5309 | } | |
5310 | return resultobj; | |
5311 | fail: | |
5312 | return NULL; | |
5313 | } | |
5314 | ||
5315 | ||
c32bde28 | 5316 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5317 | PyObject *obj; |
5318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5319 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5320 | Py_INCREF(obj); | |
5321 | return Py_BuildValue((char *)""); | |
5322 | } | |
c32bde28 | 5323 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5324 | PyObject *resultobj; |
5325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5326 | int arg2 = (int) -1 ; |
5327 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5328 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
5329 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5330 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5331 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5332 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5333 | long arg6 = (long) 0 ; | |
5334 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5335 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5336 | wxStaticBitmap *result; | |
5337 | wxPoint temp4 ; | |
5338 | wxSize temp5 ; | |
e811c8ce | 5339 | bool temp7 = False ; |
d14a1e28 | 5340 | PyObject * obj0 = 0 ; |
994141e6 | 5341 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5342 | PyObject * obj2 = 0 ; |
5343 | PyObject * obj3 = 0 ; | |
5344 | PyObject * obj4 = 0 ; | |
994141e6 | 5345 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5346 | PyObject * obj6 = 0 ; |
5347 | char *kwnames[] = { | |
5348 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5349 | }; | |
5350 | ||
248ed943 | 5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5354 | if (obj1) { |
c32bde28 | 5355 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5356 | if (PyErr_Occurred()) SWIG_fail; |
5357 | } | |
5358 | if (obj2) { | |
5359 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5361 | SWIG_fail; |
248ed943 RD |
5362 | if (arg3 == NULL) { |
5363 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5364 | SWIG_fail; | |
5365 | } | |
d14a1e28 RD |
5366 | } |
5367 | if (obj3) { | |
5368 | { | |
5369 | arg4 = &temp4; | |
5370 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5371 | } | |
5372 | } | |
5373 | if (obj4) { | |
5374 | { | |
5375 | arg5 = &temp5; | |
5376 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5377 | } | |
5378 | } | |
994141e6 | 5379 | if (obj5) { |
c32bde28 | 5380 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5381 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5382 | } |
d14a1e28 RD |
5383 | if (obj6) { |
5384 | { | |
5385 | arg7 = wxString_in_helper(obj6); | |
5386 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5387 | temp7 = True; |
d14a1e28 RD |
5388 | } |
5389 | } | |
5390 | { | |
e3b71cb8 | 5391 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5393 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5394 | ||
5395 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5396 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5397 | } |
15afbcd0 | 5398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5399 | { |
5400 | if (temp7) | |
5401 | delete arg7; | |
5402 | } | |
5403 | return resultobj; | |
5404 | fail: | |
5405 | { | |
5406 | if (temp7) | |
5407 | delete arg7; | |
5408 | } | |
5409 | return NULL; | |
5410 | } | |
5411 | ||
5412 | ||
c32bde28 | 5413 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5414 | PyObject *resultobj; |
5415 | wxStaticBitmap *result; | |
5416 | char *kwnames[] = { | |
5417 | NULL | |
5418 | }; | |
5419 | ||
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5421 | { | |
e3b71cb8 | 5422 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5424 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5425 | ||
5426 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5427 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5428 | } |
15afbcd0 | 5429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5430 | return resultobj; |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
c32bde28 | 5436 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5437 | PyObject *resultobj; |
5438 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5439 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5440 | int arg3 = (int) -1 ; |
5441 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5442 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
5443 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5444 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5445 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5446 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5447 | long arg7 = (long) 0 ; | |
5448 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5449 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5450 | bool result; | |
5451 | wxPoint temp5 ; | |
5452 | wxSize temp6 ; | |
e811c8ce | 5453 | bool temp8 = False ; |
d14a1e28 RD |
5454 | PyObject * obj0 = 0 ; |
5455 | PyObject * obj1 = 0 ; | |
994141e6 | 5456 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5457 | PyObject * obj3 = 0 ; |
5458 | PyObject * obj4 = 0 ; | |
5459 | PyObject * obj5 = 0 ; | |
994141e6 | 5460 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5461 | PyObject * obj7 = 0 ; |
5462 | char *kwnames[] = { | |
5463 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5464 | }; | |
5465 | ||
248ed943 | 5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5471 | if (obj2) { |
c32bde28 | 5472 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5473 | if (PyErr_Occurred()) SWIG_fail; |
5474 | } | |
5475 | if (obj3) { | |
5476 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5477 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5478 | SWIG_fail; |
248ed943 RD |
5479 | if (arg4 == NULL) { |
5480 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5481 | SWIG_fail; | |
5482 | } | |
d14a1e28 RD |
5483 | } |
5484 | if (obj4) { | |
5485 | { | |
5486 | arg5 = &temp5; | |
5487 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5488 | } | |
5489 | } | |
5490 | if (obj5) { | |
5491 | { | |
5492 | arg6 = &temp6; | |
5493 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5494 | } | |
5495 | } | |
994141e6 | 5496 | if (obj6) { |
c32bde28 | 5497 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5498 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5499 | } |
d14a1e28 RD |
5500 | if (obj7) { |
5501 | { | |
5502 | arg8 = wxString_in_helper(obj7); | |
5503 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5504 | temp8 = True; |
d14a1e28 RD |
5505 | } |
5506 | } | |
5507 | { | |
5508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5509 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5510 | ||
5511 | wxPyEndAllowThreads(__tstate); | |
5512 | if (PyErr_Occurred()) SWIG_fail; | |
5513 | } | |
4f89f6a3 RD |
5514 | { |
5515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5516 | } | |
d14a1e28 RD |
5517 | { |
5518 | if (temp8) | |
5519 | delete arg8; | |
5520 | } | |
5521 | return resultobj; | |
5522 | fail: | |
5523 | { | |
5524 | if (temp8) | |
5525 | delete arg8; | |
5526 | } | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
c32bde28 | 5531 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5532 | PyObject *resultobj; |
5533 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5534 | wxBitmap result; | |
5535 | PyObject * obj0 = 0 ; | |
5536 | char *kwnames[] = { | |
5537 | (char *) "self", NULL | |
5538 | }; | |
5539 | ||
5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5543 | { |
5544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5545 | result = (arg1)->GetBitmap(); | |
5546 | ||
5547 | wxPyEndAllowThreads(__tstate); | |
5548 | if (PyErr_Occurred()) SWIG_fail; | |
5549 | } | |
5550 | { | |
5551 | wxBitmap * resultptr; | |
5552 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5554 | } |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
c32bde28 | 5561 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5562 | PyObject *resultobj; |
5563 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5564 | wxBitmap *arg2 = 0 ; | |
5565 | PyObject * obj0 = 0 ; | |
5566 | PyObject * obj1 = 0 ; | |
5567 | char *kwnames[] = { | |
5568 | (char *) "self",(char *) "bitmap", NULL | |
5569 | }; | |
5570 | ||
5571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5575 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5576 | SWIG_fail; | |
d14a1e28 | 5577 | if (arg2 == NULL) { |
15afbcd0 RD |
5578 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5579 | SWIG_fail; | |
d14a1e28 RD |
5580 | } |
5581 | { | |
5582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5583 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5584 | ||
5585 | wxPyEndAllowThreads(__tstate); | |
5586 | if (PyErr_Occurred()) SWIG_fail; | |
5587 | } | |
5588 | Py_INCREF(Py_None); resultobj = Py_None; | |
5589 | return resultobj; | |
5590 | fail: | |
5591 | return NULL; | |
5592 | } | |
5593 | ||
5594 | ||
c32bde28 | 5595 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5596 | PyObject *resultobj; |
5597 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5598 | wxIcon *arg2 = 0 ; | |
5599 | PyObject * obj0 = 0 ; | |
5600 | PyObject * obj1 = 0 ; | |
5601 | char *kwnames[] = { | |
5602 | (char *) "self",(char *) "icon", NULL | |
5603 | }; | |
5604 | ||
5605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5608 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5609 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5610 | SWIG_fail; | |
d14a1e28 | 5611 | if (arg2 == NULL) { |
15afbcd0 RD |
5612 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5613 | SWIG_fail; | |
d14a1e28 RD |
5614 | } |
5615 | { | |
5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5617 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5618 | ||
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
5622 | Py_INCREF(Py_None); resultobj = Py_None; | |
5623 | return resultobj; | |
5624 | fail: | |
5625 | return NULL; | |
5626 | } | |
5627 | ||
5628 | ||
c32bde28 | 5629 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5630 | PyObject *resultobj; |
5631 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5632 | wxVisualAttributes result; | |
5633 | PyObject * obj0 = 0 ; | |
5634 | char *kwnames[] = { | |
5635 | (char *) "variant", NULL | |
5636 | }; | |
5637 | ||
5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5639 | if (obj0) { | |
c32bde28 | 5640 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5641 | if (PyErr_Occurred()) SWIG_fail; |
5642 | } | |
5643 | { | |
110da5b0 | 5644 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5646 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5647 | ||
5648 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5649 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5650 | } |
5651 | { | |
5652 | wxVisualAttributes * resultptr; | |
5653 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5654 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5655 | } | |
5656 | return resultobj; | |
5657 | fail: | |
5658 | return NULL; | |
5659 | } | |
5660 | ||
5661 | ||
c32bde28 | 5662 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5663 | PyObject *obj; |
5664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5665 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5666 | Py_INCREF(obj); | |
5667 | return Py_BuildValue((char *)""); | |
5668 | } | |
c32bde28 | 5669 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
5670 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5671 | return 1; | |
5672 | } | |
5673 | ||
5674 | ||
5675 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5676 | PyObject *pyobj; | |
5677 | ||
5678 | { | |
5679 | #if wxUSE_UNICODE | |
5680 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5681 | #else | |
5682 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5683 | #endif | |
5684 | } | |
5685 | return pyobj; | |
5686 | } | |
5687 | ||
5688 | ||
c32bde28 | 5689 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5690 | PyObject *resultobj; |
5691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5692 | int arg2 = (int) -1 ; |
d14a1e28 RD |
5693 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5694 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5695 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5696 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5697 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5698 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5699 | long arg6 = (long) 0 ; | |
5700 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5701 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5702 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5703 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5704 | wxListBox *result; |
5705 | wxPoint temp3 ; | |
5706 | wxSize temp4 ; | |
3adfb63b | 5707 | bool temp5 = False ; |
e811c8ce | 5708 | bool temp8 = False ; |
d14a1e28 | 5709 | PyObject * obj0 = 0 ; |
994141e6 | 5710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5711 | PyObject * obj2 = 0 ; |
5712 | PyObject * obj3 = 0 ; | |
5713 | PyObject * obj4 = 0 ; | |
994141e6 | 5714 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5715 | PyObject * obj6 = 0 ; |
5716 | PyObject * obj7 = 0 ; | |
5717 | char *kwnames[] = { | |
5718 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5719 | }; | |
5720 | ||
248ed943 | 5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5724 | if (obj1) { |
c32bde28 | 5725 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5726 | if (PyErr_Occurred()) SWIG_fail; |
5727 | } | |
d14a1e28 RD |
5728 | if (obj2) { |
5729 | { | |
5730 | arg3 = &temp3; | |
5731 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5732 | } | |
5733 | } | |
5734 | if (obj3) { | |
5735 | { | |
5736 | arg4 = &temp4; | |
5737 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5738 | } | |
5739 | } | |
5740 | if (obj4) { | |
5741 | { | |
4d5c3d91 RD |
5742 | if (! PySequence_Check(obj4)) { |
5743 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5744 | SWIG_fail; | |
5745 | } | |
5746 | arg5 = new wxArrayString; | |
3adfb63b | 5747 | temp5 = True; |
4d5c3d91 RD |
5748 | int i, len=PySequence_Length(obj4); |
5749 | for (i=0; i<len; i++) { | |
5750 | PyObject* item = PySequence_GetItem(obj4, i); | |
5751 | #if wxUSE_UNICODE | |
5752 | PyObject* str = PyObject_Unicode(item); | |
5753 | #else | |
5754 | PyObject* str = PyObject_Str(item); | |
5755 | #endif | |
74a57fcd | 5756 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5757 | arg5->Add(Py2wxString(str)); |
5758 | Py_DECREF(item); | |
5759 | Py_DECREF(str); | |
5760 | } | |
d14a1e28 RD |
5761 | } |
5762 | } | |
994141e6 | 5763 | if (obj5) { |
c32bde28 | 5764 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5765 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5766 | } |
d14a1e28 | 5767 | if (obj6) { |
15afbcd0 RD |
5768 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5770 | SWIG_fail; | |
4d5c3d91 | 5771 | if (arg7 == NULL) { |
15afbcd0 RD |
5772 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5773 | SWIG_fail; | |
d14a1e28 RD |
5774 | } |
5775 | } | |
5776 | if (obj7) { | |
5777 | { | |
4d5c3d91 RD |
5778 | arg8 = wxString_in_helper(obj7); |
5779 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5780 | temp8 = True; |
d14a1e28 RD |
5781 | } |
5782 | } | |
5783 | { | |
e3b71cb8 | 5784 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 5786 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5787 | |
5788 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5789 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5790 | } |
15afbcd0 | 5791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5792 | { |
3adfb63b | 5793 | if (temp5) delete arg5; |
d14a1e28 RD |
5794 | } |
5795 | { | |
5796 | if (temp8) | |
4d5c3d91 | 5797 | delete arg8; |
d14a1e28 RD |
5798 | } |
5799 | return resultobj; | |
5800 | fail: | |
5801 | { | |
3adfb63b | 5802 | if (temp5) delete arg5; |
d14a1e28 RD |
5803 | } |
5804 | { | |
5805 | if (temp8) | |
4d5c3d91 | 5806 | delete arg8; |
d14a1e28 RD |
5807 | } |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
c32bde28 | 5812 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5813 | PyObject *resultobj; |
5814 | wxListBox *result; | |
5815 | char *kwnames[] = { | |
5816 | NULL | |
5817 | }; | |
5818 | ||
5819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5820 | { | |
e3b71cb8 | 5821 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5823 | result = (wxListBox *)new wxListBox(); | |
5824 | ||
5825 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5826 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5827 | } |
15afbcd0 | 5828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5829 | return resultobj; |
5830 | fail: | |
5831 | return NULL; | |
5832 | } | |
5833 | ||
5834 | ||
c32bde28 | 5835 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5836 | PyObject *resultobj; |
5837 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5838 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5839 | int arg3 = (int) -1 ; |
d14a1e28 RD |
5840 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5841 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5842 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5843 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
5844 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5845 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5846 | long arg7 = (long) 0 ; | |
5847 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5848 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5849 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5850 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5851 | bool result; |
5852 | wxPoint temp4 ; | |
5853 | wxSize temp5 ; | |
3adfb63b | 5854 | bool temp6 = False ; |
e811c8ce | 5855 | bool temp9 = False ; |
d14a1e28 RD |
5856 | PyObject * obj0 = 0 ; |
5857 | PyObject * obj1 = 0 ; | |
994141e6 | 5858 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5859 | PyObject * obj3 = 0 ; |
5860 | PyObject * obj4 = 0 ; | |
5861 | PyObject * obj5 = 0 ; | |
994141e6 | 5862 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5863 | PyObject * obj7 = 0 ; |
5864 | PyObject * obj8 = 0 ; | |
5865 | char *kwnames[] = { | |
5866 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5867 | }; | |
5868 | ||
248ed943 | 5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
5870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5872 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5874 | if (obj2) { |
c32bde28 | 5875 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5876 | if (PyErr_Occurred()) SWIG_fail; |
5877 | } | |
d14a1e28 RD |
5878 | if (obj3) { |
5879 | { | |
5880 | arg4 = &temp4; | |
5881 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5882 | } | |
5883 | } | |
5884 | if (obj4) { | |
5885 | { | |
5886 | arg5 = &temp5; | |
5887 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5888 | } | |
5889 | } | |
5890 | if (obj5) { | |
5891 | { | |
4d5c3d91 RD |
5892 | if (! PySequence_Check(obj5)) { |
5893 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5894 | SWIG_fail; | |
5895 | } | |
5896 | arg6 = new wxArrayString; | |
3adfb63b | 5897 | temp6 = True; |
4d5c3d91 RD |
5898 | int i, len=PySequence_Length(obj5); |
5899 | for (i=0; i<len; i++) { | |
5900 | PyObject* item = PySequence_GetItem(obj5, i); | |
5901 | #if wxUSE_UNICODE | |
5902 | PyObject* str = PyObject_Unicode(item); | |
5903 | #else | |
5904 | PyObject* str = PyObject_Str(item); | |
5905 | #endif | |
74a57fcd | 5906 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5907 | arg6->Add(Py2wxString(str)); |
5908 | Py_DECREF(item); | |
5909 | Py_DECREF(str); | |
5910 | } | |
d14a1e28 RD |
5911 | } |
5912 | } | |
994141e6 | 5913 | if (obj6) { |
c32bde28 | 5914 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5915 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5916 | } |
d14a1e28 | 5917 | if (obj7) { |
15afbcd0 RD |
5918 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5920 | SWIG_fail; | |
4d5c3d91 | 5921 | if (arg8 == NULL) { |
15afbcd0 RD |
5922 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5923 | SWIG_fail; | |
d14a1e28 RD |
5924 | } |
5925 | } | |
5926 | if (obj8) { | |
5927 | { | |
4d5c3d91 RD |
5928 | arg9 = wxString_in_helper(obj8); |
5929 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5930 | temp9 = True; |
d14a1e28 RD |
5931 | } |
5932 | } | |
5933 | { | |
5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5935 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5936 | |
5937 | wxPyEndAllowThreads(__tstate); | |
5938 | if (PyErr_Occurred()) SWIG_fail; | |
5939 | } | |
4f89f6a3 RD |
5940 | { |
5941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5942 | } | |
d14a1e28 | 5943 | { |
3adfb63b | 5944 | if (temp6) delete arg6; |
d14a1e28 RD |
5945 | } |
5946 | { | |
5947 | if (temp9) | |
4d5c3d91 | 5948 | delete arg9; |
d14a1e28 RD |
5949 | } |
5950 | return resultobj; | |
5951 | fail: | |
5952 | { | |
3adfb63b | 5953 | if (temp6) delete arg6; |
d14a1e28 RD |
5954 | } |
5955 | { | |
5956 | if (temp9) | |
4d5c3d91 | 5957 | delete arg9; |
d14a1e28 RD |
5958 | } |
5959 | return NULL; | |
5960 | } | |
5961 | ||
5962 | ||
c32bde28 | 5963 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5964 | PyObject *resultobj; |
5965 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5966 | wxString *arg2 = 0 ; | |
5967 | int arg3 ; | |
5968 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 5969 | bool temp2 = False ; |
d14a1e28 RD |
5970 | PyObject * obj0 = 0 ; |
5971 | PyObject * obj1 = 0 ; | |
994141e6 | 5972 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5973 | PyObject * obj3 = 0 ; |
5974 | char *kwnames[] = { | |
5975 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5976 | }; | |
5977 | ||
994141e6 | 5978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5981 | { |
5982 | arg2 = wxString_in_helper(obj1); | |
5983 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5984 | temp2 = True; |
d14a1e28 | 5985 | } |
c32bde28 | 5986 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5987 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5988 | if (obj3) { |
5989 | arg4 = obj3; | |
5990 | } | |
5991 | { | |
5992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5993 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5994 | ||
5995 | wxPyEndAllowThreads(__tstate); | |
5996 | if (PyErr_Occurred()) SWIG_fail; | |
5997 | } | |
5998 | Py_INCREF(Py_None); resultobj = Py_None; | |
5999 | { | |
6000 | if (temp2) | |
6001 | delete arg2; | |
6002 | } | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | { | |
6006 | if (temp2) | |
6007 | delete arg2; | |
6008 | } | |
6009 | return NULL; | |
6010 | } | |
6011 | ||
6012 | ||
c32bde28 | 6013 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6014 | PyObject *resultobj; |
6015 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6016 | wxArrayString *arg2 = 0 ; | |
6017 | int arg3 ; | |
3adfb63b | 6018 | bool temp2 = False ; |
d14a1e28 RD |
6019 | PyObject * obj0 = 0 ; |
6020 | PyObject * obj1 = 0 ; | |
994141e6 | 6021 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6022 | char *kwnames[] = { |
6023 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
6024 | }; | |
6025 | ||
994141e6 | 6026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6029 | { |
6030 | if (! PySequence_Check(obj1)) { | |
6031 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6032 | SWIG_fail; | |
6033 | } | |
6034 | arg2 = new wxArrayString; | |
3adfb63b | 6035 | temp2 = True; |
d14a1e28 RD |
6036 | int i, len=PySequence_Length(obj1); |
6037 | for (i=0; i<len; i++) { | |
6038 | PyObject* item = PySequence_GetItem(obj1, i); | |
6039 | #if wxUSE_UNICODE | |
6040 | PyObject* str = PyObject_Unicode(item); | |
6041 | #else | |
6042 | PyObject* str = PyObject_Str(item); | |
6043 | #endif | |
74a57fcd | 6044 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6045 | arg2->Add(Py2wxString(str)); |
6046 | Py_DECREF(item); | |
6047 | Py_DECREF(str); | |
6048 | } | |
6049 | } | |
c32bde28 | 6050 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 6051 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6052 | { |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | Py_INCREF(Py_None); resultobj = Py_None; | |
6060 | { | |
3adfb63b | 6061 | if (temp2) delete arg2; |
d14a1e28 RD |
6062 | } |
6063 | return resultobj; | |
6064 | fail: | |
6065 | { | |
3adfb63b | 6066 | if (temp2) delete arg2; |
d14a1e28 RD |
6067 | } |
6068 | return NULL; | |
6069 | } | |
6070 | ||
6071 | ||
c32bde28 | 6072 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6073 | PyObject *resultobj; |
6074 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6075 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 6076 | bool temp2 = False ; |
d14a1e28 RD |
6077 | PyObject * obj0 = 0 ; |
6078 | PyObject * obj1 = 0 ; | |
6079 | char *kwnames[] = { | |
6080 | (char *) "self",(char *) "items", NULL | |
6081 | }; | |
6082 | ||
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6086 | { |
6087 | if (! PySequence_Check(obj1)) { | |
6088 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6089 | SWIG_fail; | |
6090 | } | |
6091 | arg2 = new wxArrayString; | |
3adfb63b | 6092 | temp2 = True; |
d14a1e28 RD |
6093 | int i, len=PySequence_Length(obj1); |
6094 | for (i=0; i<len; i++) { | |
6095 | PyObject* item = PySequence_GetItem(obj1, i); | |
6096 | #if wxUSE_UNICODE | |
6097 | PyObject* str = PyObject_Unicode(item); | |
6098 | #else | |
6099 | PyObject* str = PyObject_Str(item); | |
6100 | #endif | |
74a57fcd | 6101 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6102 | arg2->Add(Py2wxString(str)); |
6103 | Py_DECREF(item); | |
6104 | Py_DECREF(str); | |
6105 | } | |
6106 | } | |
6107 | { | |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | (arg1)->Set((wxArrayString const &)*arg2); | |
6110 | ||
6111 | wxPyEndAllowThreads(__tstate); | |
6112 | if (PyErr_Occurred()) SWIG_fail; | |
6113 | } | |
6114 | Py_INCREF(Py_None); resultobj = Py_None; | |
6115 | { | |
3adfb63b | 6116 | if (temp2) delete arg2; |
d14a1e28 RD |
6117 | } |
6118 | return resultobj; | |
6119 | fail: | |
6120 | { | |
3adfb63b | 6121 | if (temp2) delete arg2; |
d14a1e28 RD |
6122 | } |
6123 | return NULL; | |
6124 | } | |
6125 | ||
6126 | ||
c32bde28 | 6127 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6128 | PyObject *resultobj; |
6129 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6130 | int arg2 ; | |
6131 | bool result; | |
6132 | PyObject * obj0 = 0 ; | |
994141e6 | 6133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6134 | char *kwnames[] = { |
6135 | (char *) "self",(char *) "n", NULL | |
6136 | }; | |
6137 | ||
994141e6 | 6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6141 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6142 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6143 | { |
6144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6145 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6146 | ||
6147 | wxPyEndAllowThreads(__tstate); | |
6148 | if (PyErr_Occurred()) SWIG_fail; | |
6149 | } | |
4f89f6a3 RD |
6150 | { |
6151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6152 | } | |
d14a1e28 RD |
6153 | return resultobj; |
6154 | fail: | |
6155 | return NULL; | |
6156 | } | |
6157 | ||
6158 | ||
c32bde28 | 6159 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6160 | PyObject *resultobj; |
6161 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6162 | int arg2 ; | |
e811c8ce | 6163 | bool arg3 = (bool) True ; |
d14a1e28 | 6164 | PyObject * obj0 = 0 ; |
994141e6 | 6165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6166 | PyObject * obj2 = 0 ; |
6167 | char *kwnames[] = { | |
6168 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6169 | }; | |
6170 | ||
994141e6 | 6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6174 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6175 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6176 | if (obj2) { |
c32bde28 | 6177 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 6178 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6179 | } |
6180 | { | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | (arg1)->SetSelection(arg2,arg3); | |
6183 | ||
6184 | wxPyEndAllowThreads(__tstate); | |
6185 | if (PyErr_Occurred()) SWIG_fail; | |
6186 | } | |
6187 | Py_INCREF(Py_None); resultobj = Py_None; | |
6188 | return resultobj; | |
6189 | fail: | |
6190 | return NULL; | |
6191 | } | |
6192 | ||
6193 | ||
c32bde28 | 6194 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6195 | PyObject *resultobj; |
6196 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6197 | int arg2 ; | |
6198 | PyObject * obj0 = 0 ; | |
994141e6 | 6199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6200 | char *kwnames[] = { |
6201 | (char *) "self",(char *) "n", NULL | |
6202 | }; | |
6203 | ||
994141e6 | 6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6207 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6208 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6209 | { |
6210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6211 | (arg1)->Select(arg2); | |
6212 | ||
6213 | wxPyEndAllowThreads(__tstate); | |
6214 | if (PyErr_Occurred()) SWIG_fail; | |
6215 | } | |
6216 | Py_INCREF(Py_None); resultobj = Py_None; | |
6217 | return resultobj; | |
6218 | fail: | |
6219 | return NULL; | |
6220 | } | |
6221 | ||
6222 | ||
c32bde28 | 6223 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6224 | PyObject *resultobj; |
6225 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6226 | int arg2 ; | |
6227 | PyObject * obj0 = 0 ; | |
994141e6 | 6228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6229 | char *kwnames[] = { |
6230 | (char *) "self",(char *) "n", NULL | |
6231 | }; | |
6232 | ||
994141e6 | 6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6236 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6237 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6238 | { |
6239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6240 | (arg1)->Deselect(arg2); | |
6241 | ||
6242 | wxPyEndAllowThreads(__tstate); | |
6243 | if (PyErr_Occurred()) SWIG_fail; | |
6244 | } | |
6245 | Py_INCREF(Py_None); resultobj = Py_None; | |
6246 | return resultobj; | |
6247 | fail: | |
6248 | return NULL; | |
6249 | } | |
6250 | ||
6251 | ||
c32bde28 | 6252 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6253 | PyObject *resultobj; |
6254 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6255 | int arg2 = (int) -1 ; | |
6256 | PyObject * obj0 = 0 ; | |
994141e6 | 6257 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6258 | char *kwnames[] = { |
6259 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6260 | }; | |
6261 | ||
994141e6 | 6262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6265 | if (obj1) { |
c32bde28 | 6266 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6267 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6268 | } |
d14a1e28 RD |
6269 | { |
6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6271 | (arg1)->DeselectAll(arg2); | |
6272 | ||
6273 | wxPyEndAllowThreads(__tstate); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
6276 | Py_INCREF(Py_None); resultobj = Py_None; | |
6277 | return resultobj; | |
6278 | fail: | |
6279 | return NULL; | |
6280 | } | |
6281 | ||
6282 | ||
c32bde28 | 6283 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6284 | PyObject *resultobj; |
6285 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6286 | wxString *arg2 = 0 ; | |
e811c8ce | 6287 | bool arg3 = (bool) True ; |
d14a1e28 | 6288 | bool result; |
e811c8ce | 6289 | bool temp2 = False ; |
d14a1e28 RD |
6290 | PyObject * obj0 = 0 ; |
6291 | PyObject * obj1 = 0 ; | |
6292 | PyObject * obj2 = 0 ; | |
6293 | char *kwnames[] = { | |
6294 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6295 | }; | |
6296 | ||
6297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6300 | { |
6301 | arg2 = wxString_in_helper(obj1); | |
6302 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6303 | temp2 = True; |
d14a1e28 RD |
6304 | } |
6305 | if (obj2) { | |
c32bde28 | 6306 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 6307 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6308 | } |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
4f89f6a3 RD |
6316 | { |
6317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6318 | } | |
d14a1e28 RD |
6319 | { |
6320 | if (temp2) | |
6321 | delete arg2; | |
6322 | } | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | { | |
6326 | if (temp2) | |
6327 | delete arg2; | |
6328 | } | |
6329 | return NULL; | |
6330 | } | |
6331 | ||
6332 | ||
c32bde28 | 6333 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6334 | PyObject *resultobj; |
6335 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6336 | PyObject *result; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | char *kwnames[] = { | |
6339 | (char *) "self", NULL | |
6340 | }; | |
6341 | ||
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6345 | { |
6346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6347 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6348 | ||
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
6352 | resultobj = result; | |
6353 | return resultobj; | |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
c32bde28 | 6359 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6360 | PyObject *resultobj; |
6361 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6362 | int arg2 ; | |
6363 | PyObject * obj0 = 0 ; | |
994141e6 | 6364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6365 | char *kwnames[] = { |
6366 | (char *) "self",(char *) "n", NULL | |
6367 | }; | |
6368 | ||
994141e6 | 6369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6372 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6373 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6374 | { |
6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6376 | (arg1)->SetFirstItem(arg2); | |
6377 | ||
6378 | wxPyEndAllowThreads(__tstate); | |
6379 | if (PyErr_Occurred()) SWIG_fail; | |
6380 | } | |
6381 | Py_INCREF(Py_None); resultobj = Py_None; | |
6382 | return resultobj; | |
6383 | fail: | |
6384 | return NULL; | |
6385 | } | |
6386 | ||
6387 | ||
c32bde28 | 6388 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6389 | PyObject *resultobj; |
6390 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6391 | wxString *arg2 = 0 ; | |
e811c8ce | 6392 | bool temp2 = False ; |
d14a1e28 RD |
6393 | PyObject * obj0 = 0 ; |
6394 | PyObject * obj1 = 0 ; | |
6395 | char *kwnames[] = { | |
6396 | (char *) "self",(char *) "s", NULL | |
6397 | }; | |
6398 | ||
6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6402 | { |
6403 | arg2 = wxString_in_helper(obj1); | |
6404 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6405 | temp2 = True; |
d14a1e28 RD |
6406 | } |
6407 | { | |
6408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6409 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6410 | ||
6411 | wxPyEndAllowThreads(__tstate); | |
6412 | if (PyErr_Occurred()) SWIG_fail; | |
6413 | } | |
6414 | Py_INCREF(Py_None); resultobj = Py_None; | |
6415 | { | |
6416 | if (temp2) | |
6417 | delete arg2; | |
6418 | } | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | { | |
6422 | if (temp2) | |
6423 | delete arg2; | |
6424 | } | |
6425 | return NULL; | |
6426 | } | |
6427 | ||
6428 | ||
c32bde28 | 6429 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6430 | PyObject *resultobj; |
6431 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6432 | int arg2 ; | |
6433 | PyObject * obj0 = 0 ; | |
994141e6 | 6434 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6435 | char *kwnames[] = { |
6436 | (char *) "self",(char *) "n", NULL | |
6437 | }; | |
6438 | ||
994141e6 | 6439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6442 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6443 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6444 | { |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | (arg1)->EnsureVisible(arg2); | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | Py_INCREF(Py_None); resultobj = Py_None; | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
c32bde28 | 6458 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6459 | PyObject *resultobj; |
6460 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6461 | wxString *arg2 = 0 ; | |
e811c8ce | 6462 | bool temp2 = False ; |
d14a1e28 RD |
6463 | PyObject * obj0 = 0 ; |
6464 | PyObject * obj1 = 0 ; | |
6465 | char *kwnames[] = { | |
6466 | (char *) "self",(char *) "s", NULL | |
6467 | }; | |
6468 | ||
6469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6472 | { |
6473 | arg2 = wxString_in_helper(obj1); | |
6474 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6475 | temp2 = True; |
d14a1e28 RD |
6476 | } |
6477 | { | |
6478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6479 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6480 | ||
6481 | wxPyEndAllowThreads(__tstate); | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
6483 | } | |
6484 | Py_INCREF(Py_None); resultobj = Py_None; | |
6485 | { | |
6486 | if (temp2) | |
6487 | delete arg2; | |
6488 | } | |
6489 | return resultobj; | |
6490 | fail: | |
6491 | { | |
6492 | if (temp2) | |
6493 | delete arg2; | |
6494 | } | |
6495 | return NULL; | |
6496 | } | |
6497 | ||
6498 | ||
c32bde28 | 6499 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6500 | PyObject *resultobj; |
6501 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6502 | bool result; | |
6503 | PyObject * obj0 = 0 ; | |
6504 | char *kwnames[] = { | |
6505 | (char *) "self", NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6511 | { |
6512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6513 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6514 | ||
6515 | wxPyEndAllowThreads(__tstate); | |
6516 | if (PyErr_Occurred()) SWIG_fail; | |
6517 | } | |
4f89f6a3 RD |
6518 | { |
6519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6520 | } | |
d14a1e28 RD |
6521 | return resultobj; |
6522 | fail: | |
6523 | return NULL; | |
6524 | } | |
6525 | ||
6526 | ||
c32bde28 | 6527 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6528 | PyObject *resultobj; |
6529 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6530 | int arg2 ; | |
6531 | wxColour *arg3 = 0 ; | |
6532 | wxColour temp3 ; | |
6533 | PyObject * obj0 = 0 ; | |
6534 | PyObject * obj1 = 0 ; | |
6535 | PyObject * obj2 = 0 ; | |
6536 | char *kwnames[] = { | |
6537 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6538 | }; | |
6539 | ||
6540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6543 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6544 | if (PyErr_Occurred()) SWIG_fail; |
c3eb6258 RD |
6545 | { |
6546 | arg3 = &temp3; | |
6547 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6548 | } | |
6549 | { | |
6550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6551 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6552 | ||
6553 | wxPyEndAllowThreads(__tstate); | |
6554 | if (PyErr_Occurred()) SWIG_fail; | |
6555 | } | |
6556 | Py_INCREF(Py_None); resultobj = Py_None; | |
6557 | return resultobj; | |
6558 | fail: | |
6559 | return NULL; | |
6560 | } | |
6561 | ||
6562 | ||
c32bde28 | 6563 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6564 | PyObject *resultobj; |
6565 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6566 | int arg2 ; | |
6567 | wxColour *arg3 = 0 ; | |
6568 | wxColour temp3 ; | |
6569 | PyObject * obj0 = 0 ; | |
6570 | PyObject * obj1 = 0 ; | |
6571 | PyObject * obj2 = 0 ; | |
6572 | char *kwnames[] = { | |
6573 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6574 | }; | |
6575 | ||
6576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6579 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6580 | if (PyErr_Occurred()) SWIG_fail; |
c3eb6258 RD |
6581 | { |
6582 | arg3 = &temp3; | |
6583 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6584 | } | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6588 | ||
6589 | wxPyEndAllowThreads(__tstate); | |
6590 | if (PyErr_Occurred()) SWIG_fail; | |
6591 | } | |
6592 | Py_INCREF(Py_None); resultobj = Py_None; | |
6593 | return resultobj; | |
6594 | fail: | |
6595 | return NULL; | |
6596 | } | |
6597 | ||
6598 | ||
c32bde28 | 6599 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6600 | PyObject *resultobj; |
6601 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6602 | int arg2 ; | |
6603 | wxFont *arg3 = 0 ; | |
6604 | PyObject * obj0 = 0 ; | |
6605 | PyObject * obj1 = 0 ; | |
6606 | PyObject * obj2 = 0 ; | |
6607 | char *kwnames[] = { | |
6608 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6609 | }; | |
6610 | ||
6611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6614 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
6615 | if (PyErr_Occurred()) SWIG_fail; |
6616 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6617 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6618 | SWIG_fail; | |
c3eb6258 | 6619 | if (arg3 == NULL) { |
15afbcd0 RD |
6620 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6621 | SWIG_fail; | |
c3eb6258 RD |
6622 | } |
6623 | { | |
6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6625 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6626 | ||
6627 | wxPyEndAllowThreads(__tstate); | |
6628 | if (PyErr_Occurred()) SWIG_fail; | |
6629 | } | |
6630 | Py_INCREF(Py_None); resultobj = Py_None; | |
6631 | return resultobj; | |
6632 | fail: | |
6633 | return NULL; | |
6634 | } | |
6635 | ||
6636 | ||
c32bde28 | 6637 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
6638 | PyObject *resultobj; |
6639 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6640 | wxVisualAttributes result; | |
6641 | PyObject * obj0 = 0 ; | |
6642 | char *kwnames[] = { | |
6643 | (char *) "variant", NULL | |
6644 | }; | |
6645 | ||
6646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6647 | if (obj0) { | |
c32bde28 | 6648 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
6649 | if (PyErr_Occurred()) SWIG_fail; |
6650 | } | |
6651 | { | |
110da5b0 | 6652 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
6653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6654 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6655 | ||
6656 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6657 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
6658 | } |
6659 | { | |
6660 | wxVisualAttributes * resultptr; | |
6661 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6663 | } | |
6664 | return resultobj; | |
6665 | fail: | |
6666 | return NULL; | |
6667 | } | |
6668 | ||
6669 | ||
c32bde28 | 6670 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6671 | PyObject *obj; |
6672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6673 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6674 | Py_INCREF(obj); | |
6675 | return Py_BuildValue((char *)""); | |
6676 | } | |
c32bde28 | 6677 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6678 | PyObject *resultobj; |
6679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6680 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6681 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6682 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6683 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6684 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
6685 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6686 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6687 | long arg6 = (long) 0 ; | |
6688 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6689 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6690 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6691 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6692 | wxCheckListBox *result; |
6693 | wxPoint temp3 ; | |
6694 | wxSize temp4 ; | |
3adfb63b | 6695 | bool temp5 = False ; |
e811c8ce | 6696 | bool temp8 = False ; |
d14a1e28 | 6697 | PyObject * obj0 = 0 ; |
994141e6 | 6698 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6699 | PyObject * obj2 = 0 ; |
6700 | PyObject * obj3 = 0 ; | |
6701 | PyObject * obj4 = 0 ; | |
994141e6 | 6702 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6703 | PyObject * obj6 = 0 ; |
6704 | PyObject * obj7 = 0 ; | |
6705 | char *kwnames[] = { | |
6706 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6707 | }; | |
6708 | ||
248ed943 | 6709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
6710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6712 | if (obj1) { |
c32bde28 | 6713 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
6714 | if (PyErr_Occurred()) SWIG_fail; |
6715 | } | |
d14a1e28 RD |
6716 | if (obj2) { |
6717 | { | |
6718 | arg3 = &temp3; | |
6719 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6720 | } | |
6721 | } | |
6722 | if (obj3) { | |
6723 | { | |
6724 | arg4 = &temp4; | |
6725 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6726 | } | |
6727 | } | |
6728 | if (obj4) { | |
6729 | { | |
4d5c3d91 RD |
6730 | if (! PySequence_Check(obj4)) { |
6731 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6732 | SWIG_fail; | |
6733 | } | |
6734 | arg5 = new wxArrayString; | |
3adfb63b | 6735 | temp5 = True; |
4d5c3d91 RD |
6736 | int i, len=PySequence_Length(obj4); |
6737 | for (i=0; i<len; i++) { | |
6738 | PyObject* item = PySequence_GetItem(obj4, i); | |
6739 | #if wxUSE_UNICODE | |
6740 | PyObject* str = PyObject_Unicode(item); | |
6741 | #else | |
6742 | PyObject* str = PyObject_Str(item); | |
6743 | #endif | |
74a57fcd | 6744 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6745 | arg5->Add(Py2wxString(str)); |
6746 | Py_DECREF(item); | |
6747 | Py_DECREF(str); | |
6748 | } | |
d14a1e28 RD |
6749 | } |
6750 | } | |
994141e6 | 6751 | if (obj5) { |
c32bde28 | 6752 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 6753 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6754 | } |
d14a1e28 | 6755 | if (obj6) { |
15afbcd0 RD |
6756 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6758 | SWIG_fail; | |
4d5c3d91 | 6759 | if (arg7 == NULL) { |
15afbcd0 RD |
6760 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6761 | SWIG_fail; | |
d14a1e28 RD |
6762 | } |
6763 | } | |
6764 | if (obj7) { | |
6765 | { | |
4d5c3d91 RD |
6766 | arg8 = wxString_in_helper(obj7); |
6767 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6768 | temp8 = True; |
d14a1e28 RD |
6769 | } |
6770 | } | |
6771 | { | |
e3b71cb8 | 6772 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 6774 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6775 | |
6776 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6777 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6778 | } |
15afbcd0 | 6779 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6780 | { |
3adfb63b | 6781 | if (temp5) delete arg5; |
d14a1e28 RD |
6782 | } |
6783 | { | |
6784 | if (temp8) | |
4d5c3d91 | 6785 | delete arg8; |
d14a1e28 RD |
6786 | } |
6787 | return resultobj; | |
6788 | fail: | |
6789 | { | |
3adfb63b | 6790 | if (temp5) delete arg5; |
d14a1e28 RD |
6791 | } |
6792 | { | |
6793 | if (temp8) | |
4d5c3d91 | 6794 | delete arg8; |
d14a1e28 RD |
6795 | } |
6796 | return NULL; | |
6797 | } | |
6798 | ||
6799 | ||
c32bde28 | 6800 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6801 | PyObject *resultobj; |
6802 | wxCheckListBox *result; | |
6803 | char *kwnames[] = { | |
6804 | NULL | |
6805 | }; | |
6806 | ||
6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6808 | { | |
e3b71cb8 | 6809 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6811 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6812 | ||
6813 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6814 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6815 | } |
15afbcd0 | 6816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6817 | return resultobj; |
6818 | fail: | |
6819 | return NULL; | |
6820 | } | |
6821 | ||
6822 | ||
c32bde28 | 6823 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6824 | PyObject *resultobj; |
6825 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6826 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6827 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6828 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6829 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6830 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6831 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
6832 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6833 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6834 | long arg7 = (long) 0 ; | |
6835 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6836 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6837 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6838 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6839 | bool result; |
6840 | wxPoint temp4 ; | |
6841 | wxSize temp5 ; | |
3adfb63b | 6842 | bool temp6 = False ; |
e811c8ce | 6843 | bool temp9 = False ; |
d14a1e28 RD |
6844 | PyObject * obj0 = 0 ; |
6845 | PyObject * obj1 = 0 ; | |
994141e6 | 6846 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6847 | PyObject * obj3 = 0 ; |
6848 | PyObject * obj4 = 0 ; | |
6849 | PyObject * obj5 = 0 ; | |
994141e6 | 6850 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6851 | PyObject * obj7 = 0 ; |
6852 | PyObject * obj8 = 0 ; | |
6853 | char *kwnames[] = { | |
6854 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6855 | }; | |
6856 | ||
248ed943 | 6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
6858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6862 | if (obj2) { |
c32bde28 | 6863 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
6864 | if (PyErr_Occurred()) SWIG_fail; |
6865 | } | |
d14a1e28 RD |
6866 | if (obj3) { |
6867 | { | |
6868 | arg4 = &temp4; | |
6869 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6870 | } | |
6871 | } | |
6872 | if (obj4) { | |
6873 | { | |
6874 | arg5 = &temp5; | |
6875 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6876 | } | |
6877 | } | |
6878 | if (obj5) { | |
6879 | { | |
4d5c3d91 RD |
6880 | if (! PySequence_Check(obj5)) { |
6881 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6882 | SWIG_fail; | |
6883 | } | |
6884 | arg6 = new wxArrayString; | |
3adfb63b | 6885 | temp6 = True; |
4d5c3d91 RD |
6886 | int i, len=PySequence_Length(obj5); |
6887 | for (i=0; i<len; i++) { | |
6888 | PyObject* item = PySequence_GetItem(obj5, i); | |
6889 | #if wxUSE_UNICODE | |
6890 | PyObject* str = PyObject_Unicode(item); | |
6891 | #else | |
6892 | PyObject* str = PyObject_Str(item); | |
6893 | #endif | |
74a57fcd | 6894 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6895 | arg6->Add(Py2wxString(str)); |
6896 | Py_DECREF(item); | |
6897 | Py_DECREF(str); | |
6898 | } | |
d14a1e28 RD |
6899 | } |
6900 | } | |
994141e6 | 6901 | if (obj6) { |
c32bde28 | 6902 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 6903 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6904 | } |
d14a1e28 | 6905 | if (obj7) { |
15afbcd0 RD |
6906 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6907 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6908 | SWIG_fail; | |
4d5c3d91 | 6909 | if (arg8 == NULL) { |
15afbcd0 RD |
6910 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6911 | SWIG_fail; | |
d14a1e28 RD |
6912 | } |
6913 | } | |
6914 | if (obj8) { | |
6915 | { | |
4d5c3d91 RD |
6916 | arg9 = wxString_in_helper(obj8); |
6917 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6918 | temp9 = True; |
d14a1e28 RD |
6919 | } |
6920 | } | |
6921 | { | |
6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6923 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6924 | |
6925 | wxPyEndAllowThreads(__tstate); | |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
6927 | } | |
4f89f6a3 RD |
6928 | { |
6929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6930 | } | |
d14a1e28 | 6931 | { |
3adfb63b | 6932 | if (temp6) delete arg6; |
d14a1e28 RD |
6933 | } |
6934 | { | |
6935 | if (temp9) | |
4d5c3d91 | 6936 | delete arg9; |
d14a1e28 RD |
6937 | } |
6938 | return resultobj; | |
6939 | fail: | |
6940 | { | |
3adfb63b | 6941 | if (temp6) delete arg6; |
d14a1e28 RD |
6942 | } |
6943 | { | |
6944 | if (temp9) | |
4d5c3d91 | 6945 | delete arg9; |
d14a1e28 RD |
6946 | } |
6947 | return NULL; | |
6948 | } | |
6949 | ||
6950 | ||
c32bde28 | 6951 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6952 | PyObject *resultobj; |
6953 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6954 | int arg2 ; | |
6955 | bool result; | |
6956 | PyObject * obj0 = 0 ; | |
994141e6 | 6957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6958 | char *kwnames[] = { |
6959 | (char *) "self",(char *) "index", NULL | |
6960 | }; | |
6961 | ||
994141e6 | 6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6965 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6966 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6967 | { |
6968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6969 | result = (bool)(arg1)->IsChecked(arg2); | |
6970 | ||
6971 | wxPyEndAllowThreads(__tstate); | |
6972 | if (PyErr_Occurred()) SWIG_fail; | |
6973 | } | |
4f89f6a3 RD |
6974 | { |
6975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6976 | } | |
d14a1e28 RD |
6977 | return resultobj; |
6978 | fail: | |
6979 | return NULL; | |
6980 | } | |
6981 | ||
6982 | ||
c32bde28 | 6983 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6984 | PyObject *resultobj; |
6985 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6986 | int arg2 ; | |
e811c8ce | 6987 | int arg3 = (int) True ; |
d14a1e28 | 6988 | PyObject * obj0 = 0 ; |
994141e6 RD |
6989 | PyObject * obj1 = 0 ; |
6990 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6991 | char *kwnames[] = { |
6992 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6993 | }; | |
6994 | ||
994141e6 | 6995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6998 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6999 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7000 | if (obj2) { |
c32bde28 | 7001 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7002 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7003 | } |
d14a1e28 RD |
7004 | { |
7005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7006 | (arg1)->Check(arg2,arg3); | |
7007 | ||
7008 | wxPyEndAllowThreads(__tstate); | |
7009 | if (PyErr_Occurred()) SWIG_fail; | |
7010 | } | |
7011 | Py_INCREF(Py_None); resultobj = Py_None; | |
7012 | return resultobj; | |
7013 | fail: | |
7014 | return NULL; | |
7015 | } | |
7016 | ||
7017 | ||
c32bde28 | 7018 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7019 | PyObject *resultobj; |
7020 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7021 | int result; | |
7022 | PyObject * obj0 = 0 ; | |
7023 | char *kwnames[] = { | |
7024 | (char *) "self", NULL | |
7025 | }; | |
7026 | ||
7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7030 | { |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | result = (int)(arg1)->GetItemHeight(); | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
c32bde28 | 7037 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7038 | return resultobj; |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
c32bde28 | 7044 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7045 | PyObject *resultobj; |
7046 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7047 | wxPoint *arg2 = 0 ; | |
7048 | int result; | |
7049 | wxPoint temp2 ; | |
7050 | PyObject * obj0 = 0 ; | |
7051 | PyObject * obj1 = 0 ; | |
7052 | char *kwnames[] = { | |
7053 | (char *) "self",(char *) "pt", NULL | |
7054 | }; | |
7055 | ||
7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7059 | { |
7060 | arg2 = &temp2; | |
7061 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7062 | } | |
7063 | { | |
7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7065 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
7066 | ||
7067 | wxPyEndAllowThreads(__tstate); | |
7068 | if (PyErr_Occurred()) SWIG_fail; | |
7069 | } | |
c32bde28 | 7070 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7071 | return resultobj; |
7072 | fail: | |
7073 | return NULL; | |
7074 | } | |
7075 | ||
7076 | ||
c32bde28 | 7077 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7078 | PyObject *resultobj; |
7079 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
7080 | int arg2 ; |
7081 | int arg3 ; | |
d14a1e28 RD |
7082 | int result; |
7083 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7084 | PyObject * obj1 = 0 ; |
7085 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7086 | char *kwnames[] = { |
7087 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7088 | }; | |
7089 | ||
994141e6 | 7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7093 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7094 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7095 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7096 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7097 | { |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
c32bde28 | 7104 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7105 | return resultobj; |
7106 | fail: | |
7107 | return NULL; | |
7108 | } | |
7109 | ||
7110 | ||
c32bde28 | 7111 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7112 | PyObject *obj; |
7113 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7114 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
7115 | Py_INCREF(obj); | |
7116 | return Py_BuildValue((char *)""); | |
7117 | } | |
c32bde28 | 7118 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
7119 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
7120 | return 1; | |
7121 | } | |
7122 | ||
7123 | ||
7124 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
7125 | PyObject *pyobj; | |
7126 | ||
7127 | { | |
7128 | #if wxUSE_UNICODE | |
7129 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7130 | #else | |
7131 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7132 | #endif | |
7133 | } | |
7134 | return pyobj; | |
7135 | } | |
7136 | ||
7137 | ||
c32bde28 | 7138 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7139 | PyObject *resultobj; |
908b74cd RD |
7140 | wxColour const &arg1_defvalue = wxNullColour ; |
7141 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
7142 | wxColour const &arg2_defvalue = wxNullColour ; |
7143 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7144 | wxFont const &arg3_defvalue = wxNullFont ; | |
7145 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7146 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7147 | wxTextAttr *result; | |
7148 | wxColour temp1 ; | |
7149 | wxColour temp2 ; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | PyObject * obj1 = 0 ; | |
7152 | PyObject * obj2 = 0 ; | |
994141e6 | 7153 | PyObject * obj3 = 0 ; |
908b74cd RD |
7154 | char *kwnames[] = { |
7155 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7156 | }; | |
d14a1e28 | 7157 | |
908b74cd RD |
7158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7159 | if (obj0) { | |
7160 | { | |
7161 | arg1 = &temp1; | |
7162 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7163 | } | |
d14a1e28 RD |
7164 | } |
7165 | if (obj1) { | |
7166 | { | |
7167 | arg2 = &temp2; | |
7168 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7169 | } | |
7170 | } | |
7171 | if (obj2) { | |
15afbcd0 RD |
7172 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
7173 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7174 | SWIG_fail; | |
d14a1e28 | 7175 | if (arg3 == NULL) { |
15afbcd0 RD |
7176 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7177 | SWIG_fail; | |
d14a1e28 RD |
7178 | } |
7179 | } | |
994141e6 | 7180 | if (obj3) { |
c32bde28 | 7181 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 7182 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7183 | } |
d14a1e28 RD |
7184 | { |
7185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7186 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7187 | ||
7188 | wxPyEndAllowThreads(__tstate); | |
7189 | if (PyErr_Occurred()) SWIG_fail; | |
7190 | } | |
15afbcd0 | 7191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7192 | return resultobj; |
7193 | fail: | |
7194 | return NULL; | |
7195 | } | |
7196 | ||
7197 | ||
c32bde28 | 7198 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7199 | PyObject *resultobj; |
7200 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7201 | PyObject * obj0 = 0 ; | |
7202 | char *kwnames[] = { | |
7203 | (char *) "self", NULL | |
7204 | }; | |
7205 | ||
994141e6 | 7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7209 | { |
7210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 7211 | delete arg1; |
d14a1e28 RD |
7212 | |
7213 | wxPyEndAllowThreads(__tstate); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | } | |
7216 | Py_INCREF(Py_None); resultobj = Py_None; | |
7217 | return resultobj; | |
7218 | fail: | |
7219 | return NULL; | |
7220 | } | |
7221 | ||
7222 | ||
c32bde28 | 7223 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
7224 | PyObject *resultobj; |
7225 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7226 | PyObject * obj0 = 0 ; | |
7227 | char *kwnames[] = { | |
7228 | (char *) "self", NULL | |
7229 | }; | |
7230 | ||
7231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
7234 | { |
7235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7236 | (arg1)->Init(); | |
7237 | ||
7238 | wxPyEndAllowThreads(__tstate); | |
7239 | if (PyErr_Occurred()) SWIG_fail; | |
7240 | } | |
7241 | Py_INCREF(Py_None); resultobj = Py_None; | |
7242 | return resultobj; | |
7243 | fail: | |
7244 | return NULL; | |
7245 | } | |
7246 | ||
7247 | ||
c32bde28 | 7248 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7249 | PyObject *resultobj; |
7250 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7251 | wxColour *arg2 = 0 ; | |
7252 | wxColour temp2 ; | |
7253 | PyObject * obj0 = 0 ; | |
7254 | PyObject * obj1 = 0 ; | |
7255 | char *kwnames[] = { | |
7256 | (char *) "self",(char *) "colText", NULL | |
7257 | }; | |
7258 | ||
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7262 | { |
7263 | arg2 = &temp2; | |
7264 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7265 | } | |
7266 | { | |
7267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7268 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7269 | ||
7270 | wxPyEndAllowThreads(__tstate); | |
7271 | if (PyErr_Occurred()) SWIG_fail; | |
7272 | } | |
7273 | Py_INCREF(Py_None); resultobj = Py_None; | |
7274 | return resultobj; | |
7275 | fail: | |
7276 | return NULL; | |
7277 | } | |
7278 | ||
7279 | ||
c32bde28 | 7280 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7281 | PyObject *resultobj; |
7282 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7283 | wxColour *arg2 = 0 ; | |
7284 | wxColour temp2 ; | |
7285 | PyObject * obj0 = 0 ; | |
7286 | PyObject * obj1 = 0 ; | |
7287 | char *kwnames[] = { | |
7288 | (char *) "self",(char *) "colBack", NULL | |
7289 | }; | |
7290 | ||
7291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7294 | { |
7295 | arg2 = &temp2; | |
7296 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7297 | } | |
7298 | { | |
7299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7300 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7301 | ||
7302 | wxPyEndAllowThreads(__tstate); | |
7303 | if (PyErr_Occurred()) SWIG_fail; | |
7304 | } | |
7305 | Py_INCREF(Py_None); resultobj = Py_None; | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | return NULL; | |
7309 | } | |
7310 | ||
7311 | ||
c32bde28 | 7312 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7313 | PyObject *resultobj; |
7314 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7315 | wxFont *arg2 = 0 ; | |
7316 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7317 | PyObject * obj0 = 0 ; | |
7318 | PyObject * obj1 = 0 ; | |
994141e6 | 7319 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7320 | char *kwnames[] = { |
7321 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7322 | }; | |
7323 | ||
994141e6 | 7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7328 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7329 | SWIG_fail; | |
d14a1e28 | 7330 | if (arg2 == NULL) { |
15afbcd0 RD |
7331 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7332 | SWIG_fail; | |
d14a1e28 | 7333 | } |
994141e6 | 7334 | if (obj2) { |
c32bde28 | 7335 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 7336 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7337 | } |
d14a1e28 RD |
7338 | { |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | Py_INCREF(Py_None); resultobj = Py_None; | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
c32bde28 | 7352 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7353 | PyObject *resultobj; |
7354 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7355 | int arg2 ; | |
7356 | PyObject * obj0 = 0 ; | |
994141e6 | 7357 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7358 | char *kwnames[] = { |
7359 | (char *) "self",(char *) "alignment", NULL | |
7360 | }; | |
7361 | ||
994141e6 | 7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7365 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7366 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7367 | { |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
7374 | Py_INCREF(Py_None); resultobj = Py_None; | |
7375 | return resultobj; | |
7376 | fail: | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
c32bde28 | 7381 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7382 | PyObject *resultobj; |
7383 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7384 | wxArrayInt *arg2 = 0 ; | |
3adfb63b | 7385 | bool temp2 = False ; |
d14a1e28 RD |
7386 | PyObject * obj0 = 0 ; |
7387 | PyObject * obj1 = 0 ; | |
7388 | char *kwnames[] = { | |
7389 | (char *) "self",(char *) "tabs", NULL | |
7390 | }; | |
7391 | ||
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7395 | { |
7396 | if (! PySequence_Check(obj1)) { | |
7397 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7398 | SWIG_fail; | |
7399 | } | |
7400 | arg2 = new wxArrayInt; | |
3adfb63b | 7401 | temp2 = True; |
d14a1e28 RD |
7402 | int i, len=PySequence_Length(obj1); |
7403 | for (i=0; i<len; i++) { | |
7404 | PyObject* item = PySequence_GetItem(obj1, i); | |
7405 | PyObject* number = PyNumber_Int(item); | |
7406 | arg2->Add(PyInt_AS_LONG(number)); | |
7407 | Py_DECREF(item); | |
7408 | Py_DECREF(number); | |
7409 | } | |
7410 | } | |
7411 | { | |
7412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7413 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7414 | ||
7415 | wxPyEndAllowThreads(__tstate); | |
7416 | if (PyErr_Occurred()) SWIG_fail; | |
7417 | } | |
7418 | Py_INCREF(Py_None); resultobj = Py_None; | |
7419 | { | |
3adfb63b | 7420 | if (temp2) delete arg2; |
d14a1e28 RD |
7421 | } |
7422 | return resultobj; | |
7423 | fail: | |
7424 | { | |
3adfb63b | 7425 | if (temp2) delete arg2; |
d14a1e28 RD |
7426 | } |
7427 | return NULL; | |
7428 | } | |
7429 | ||
7430 | ||
c32bde28 | 7431 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7432 | PyObject *resultobj; |
7433 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7434 | int arg2 ; | |
5e4ca4a8 | 7435 | int arg3 = (int) 0 ; |
d14a1e28 | 7436 | PyObject * obj0 = 0 ; |
994141e6 | 7437 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 7438 | PyObject * obj2 = 0 ; |
d14a1e28 | 7439 | char *kwnames[] = { |
5e4ca4a8 | 7440 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
7441 | }; |
7442 | ||
5e4ca4a8 | 7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7446 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7447 | if (PyErr_Occurred()) SWIG_fail; |
5e4ca4a8 | 7448 | if (obj2) { |
c32bde28 | 7449 | arg3 = (int)SWIG_As_int(obj2); |
5e4ca4a8 RD |
7450 | if (PyErr_Occurred()) SWIG_fail; |
7451 | } | |
d14a1e28 RD |
7452 | { |
7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 7454 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
7455 | |
7456 | wxPyEndAllowThreads(__tstate); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | } | |
7459 | Py_INCREF(Py_None); resultobj = Py_None; | |
7460 | return resultobj; | |
7461 | fail: | |
7462 | return NULL; | |
7463 | } | |
7464 | ||
7465 | ||
c32bde28 | 7466 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7467 | PyObject *resultobj; |
7468 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7469 | int arg2 ; | |
7470 | PyObject * obj0 = 0 ; | |
994141e6 | 7471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7472 | char *kwnames[] = { |
7473 | (char *) "self",(char *) "indent", NULL | |
7474 | }; | |
7475 | ||
994141e6 | 7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7479 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7480 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7481 | { |
7482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7483 | (arg1)->SetRightIndent(arg2); | |
7484 | ||
7485 | wxPyEndAllowThreads(__tstate); | |
7486 | if (PyErr_Occurred()) SWIG_fail; | |
7487 | } | |
7488 | Py_INCREF(Py_None); resultobj = Py_None; | |
7489 | return resultobj; | |
7490 | fail: | |
7491 | return NULL; | |
7492 | } | |
7493 | ||
7494 | ||
c32bde28 | 7495 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7496 | PyObject *resultobj; |
7497 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7498 | long arg2 ; | |
7499 | PyObject * obj0 = 0 ; | |
994141e6 | 7500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7501 | char *kwnames[] = { |
7502 | (char *) "self",(char *) "flags", NULL | |
7503 | }; | |
7504 | ||
994141e6 | 7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7508 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 7509 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7510 | { |
7511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7512 | (arg1)->SetFlags(arg2); | |
7513 | ||
7514 | wxPyEndAllowThreads(__tstate); | |
7515 | if (PyErr_Occurred()) SWIG_fail; | |
7516 | } | |
7517 | Py_INCREF(Py_None); resultobj = Py_None; | |
7518 | return resultobj; | |
7519 | fail: | |
7520 | return NULL; | |
7521 | } | |
7522 | ||
7523 | ||
c32bde28 | 7524 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7525 | PyObject *resultobj; |
7526 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7527 | bool result; | |
7528 | PyObject * obj0 = 0 ; | |
7529 | char *kwnames[] = { | |
7530 | (char *) "self", NULL | |
7531 | }; | |
7532 | ||
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7536 | { |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
4f89f6a3 RD |
7543 | { |
7544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7545 | } | |
d14a1e28 RD |
7546 | return resultobj; |
7547 | fail: | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
c32bde28 | 7552 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7553 | PyObject *resultobj; |
7554 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7555 | bool result; | |
7556 | PyObject * obj0 = 0 ; | |
7557 | char *kwnames[] = { | |
7558 | (char *) "self", NULL | |
7559 | }; | |
7560 | ||
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7564 | { |
7565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7566 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7567 | ||
7568 | wxPyEndAllowThreads(__tstate); | |
7569 | if (PyErr_Occurred()) SWIG_fail; | |
7570 | } | |
4f89f6a3 RD |
7571 | { |
7572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7573 | } | |
d14a1e28 RD |
7574 | return resultobj; |
7575 | fail: | |
7576 | return NULL; | |
7577 | } | |
7578 | ||
7579 | ||
c32bde28 | 7580 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7581 | PyObject *resultobj; |
7582 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7583 | bool result; | |
7584 | PyObject * obj0 = 0 ; | |
7585 | char *kwnames[] = { | |
7586 | (char *) "self", NULL | |
7587 | }; | |
7588 | ||
7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7592 | { |
7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7594 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7595 | ||
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
4f89f6a3 RD |
7599 | { |
7600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7601 | } | |
d14a1e28 RD |
7602 | return resultobj; |
7603 | fail: | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
c32bde28 | 7608 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7609 | PyObject *resultobj; |
7610 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7611 | bool result; | |
7612 | PyObject * obj0 = 0 ; | |
7613 | char *kwnames[] = { | |
7614 | (char *) "self", NULL | |
7615 | }; | |
7616 | ||
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7620 | { |
7621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7622 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7623 | ||
7624 | wxPyEndAllowThreads(__tstate); | |
7625 | if (PyErr_Occurred()) SWIG_fail; | |
7626 | } | |
4f89f6a3 RD |
7627 | { |
7628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7629 | } | |
d14a1e28 RD |
7630 | return resultobj; |
7631 | fail: | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
c32bde28 | 7636 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7637 | PyObject *resultobj; |
7638 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7639 | bool result; | |
7640 | PyObject * obj0 = 0 ; | |
7641 | char *kwnames[] = { | |
7642 | (char *) "self", NULL | |
7643 | }; | |
7644 | ||
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7648 | { |
7649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7650 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7651 | ||
7652 | wxPyEndAllowThreads(__tstate); | |
7653 | if (PyErr_Occurred()) SWIG_fail; | |
7654 | } | |
4f89f6a3 RD |
7655 | { |
7656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7657 | } | |
d14a1e28 RD |
7658 | return resultobj; |
7659 | fail: | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
c32bde28 | 7664 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7665 | PyObject *resultobj; |
7666 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7667 | bool result; | |
7668 | PyObject * obj0 = 0 ; | |
7669 | char *kwnames[] = { | |
7670 | (char *) "self", NULL | |
7671 | }; | |
7672 | ||
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7676 | { |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
4f89f6a3 RD |
7683 | { |
7684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7685 | } | |
d14a1e28 RD |
7686 | return resultobj; |
7687 | fail: | |
7688 | return NULL; | |
7689 | } | |
7690 | ||
7691 | ||
c32bde28 | 7692 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7693 | PyObject *resultobj; |
7694 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7695 | bool result; | |
7696 | PyObject * obj0 = 0 ; | |
7697 | char *kwnames[] = { | |
7698 | (char *) "self", NULL | |
7699 | }; | |
7700 | ||
7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7704 | { |
7705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7706 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7707 | ||
7708 | wxPyEndAllowThreads(__tstate); | |
7709 | if (PyErr_Occurred()) SWIG_fail; | |
7710 | } | |
4f89f6a3 RD |
7711 | { |
7712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7713 | } | |
d14a1e28 RD |
7714 | return resultobj; |
7715 | fail: | |
7716 | return NULL; | |
7717 | } | |
7718 | ||
7719 | ||
c32bde28 | 7720 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7721 | PyObject *resultobj; |
7722 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7723 | long arg2 ; | |
7724 | bool result; | |
7725 | PyObject * obj0 = 0 ; | |
994141e6 | 7726 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7727 | char *kwnames[] = { |
7728 | (char *) "self",(char *) "flag", NULL | |
7729 | }; | |
7730 | ||
994141e6 | 7731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7734 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 7735 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7736 | { |
7737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7738 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7739 | ||
7740 | wxPyEndAllowThreads(__tstate); | |
7741 | if (PyErr_Occurred()) SWIG_fail; | |
7742 | } | |
4f89f6a3 RD |
7743 | { |
7744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7745 | } | |
d14a1e28 RD |
7746 | return resultobj; |
7747 | fail: | |
7748 | return NULL; | |
7749 | } | |
7750 | ||
7751 | ||
c32bde28 | 7752 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7753 | PyObject *resultobj; |
7754 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7755 | wxColour *result; | |
7756 | PyObject * obj0 = 0 ; | |
7757 | char *kwnames[] = { | |
7758 | (char *) "self", NULL | |
7759 | }; | |
7760 | ||
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7764 | { |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | { | |
7767 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7768 | result = (wxColour *) &_result_ref; | |
7769 | } | |
7770 | ||
7771 | wxPyEndAllowThreads(__tstate); | |
7772 | if (PyErr_Occurred()) SWIG_fail; | |
7773 | } | |
15afbcd0 | 7774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7775 | return resultobj; |
7776 | fail: | |
7777 | return NULL; | |
7778 | } | |
7779 | ||
7780 | ||
c32bde28 | 7781 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7782 | PyObject *resultobj; |
7783 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7784 | wxColour *result; | |
7785 | PyObject * obj0 = 0 ; | |
7786 | char *kwnames[] = { | |
7787 | (char *) "self", NULL | |
7788 | }; | |
7789 | ||
7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7793 | { |
7794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7795 | { | |
7796 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7797 | result = (wxColour *) &_result_ref; | |
7798 | } | |
7799 | ||
7800 | wxPyEndAllowThreads(__tstate); | |
7801 | if (PyErr_Occurred()) SWIG_fail; | |
7802 | } | |
15afbcd0 | 7803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7804 | return resultobj; |
7805 | fail: | |
7806 | return NULL; | |
7807 | } | |
7808 | ||
7809 | ||
c32bde28 | 7810 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7811 | PyObject *resultobj; |
7812 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7813 | wxFont *result; | |
7814 | PyObject * obj0 = 0 ; | |
7815 | char *kwnames[] = { | |
7816 | (char *) "self", NULL | |
7817 | }; | |
7818 | ||
7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7822 | { |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | { | |
7825 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7826 | result = (wxFont *) &_result_ref; | |
7827 | } | |
7828 | ||
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
4276dc52 RD |
7832 | { |
7833 | wxFont* resultptr = new wxFont(*result); | |
7834 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7835 | } | |
d14a1e28 RD |
7836 | return resultobj; |
7837 | fail: | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
c32bde28 | 7842 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7843 | PyObject *resultobj; |
7844 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7845 | int result; | |
7846 | PyObject * obj0 = 0 ; | |
7847 | char *kwnames[] = { | |
7848 | (char *) "self", NULL | |
7849 | }; | |
7850 | ||
7851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7854 | { |
7855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7856 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7857 | ||
7858 | wxPyEndAllowThreads(__tstate); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | } | |
c32bde28 | 7861 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7862 | return resultobj; |
7863 | fail: | |
7864 | return NULL; | |
7865 | } | |
7866 | ||
7867 | ||
c32bde28 | 7868 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7869 | PyObject *resultobj; |
7870 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7871 | wxArrayInt *result; | |
7872 | PyObject * obj0 = 0 ; | |
7873 | char *kwnames[] = { | |
7874 | (char *) "self", NULL | |
7875 | }; | |
7876 | ||
7877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7880 | { |
7881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7882 | { | |
7883 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7884 | result = (wxArrayInt *) &_result_ref; | |
7885 | } | |
7886 | ||
7887 | wxPyEndAllowThreads(__tstate); | |
7888 | if (PyErr_Occurred()) SWIG_fail; | |
7889 | } | |
7890 | { | |
7891 | resultobj = PyList_New(0); | |
7892 | size_t idx; | |
7893 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7894 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7895 | PyList_Append(resultobj, val); | |
7896 | Py_DECREF(val); | |
7897 | } | |
7898 | } | |
7899 | return resultobj; | |
7900 | fail: | |
7901 | return NULL; | |
7902 | } | |
7903 | ||
7904 | ||
c32bde28 | 7905 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7906 | PyObject *resultobj; |
7907 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7908 | long result; | |
7909 | PyObject * obj0 = 0 ; | |
7910 | char *kwnames[] = { | |
7911 | (char *) "self", NULL | |
7912 | }; | |
7913 | ||
7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7917 | { |
7918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7919 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7920 | ||
7921 | wxPyEndAllowThreads(__tstate); | |
7922 | if (PyErr_Occurred()) SWIG_fail; | |
7923 | } | |
c32bde28 | 7924 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
7925 | return resultobj; |
7926 | fail: | |
7927 | return NULL; | |
7928 | } | |
7929 | ||
7930 | ||
c32bde28 | 7931 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
5e4ca4a8 RD |
7932 | PyObject *resultobj; |
7933 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7934 | long result; | |
7935 | PyObject * obj0 = 0 ; | |
7936 | char *kwnames[] = { | |
7937 | (char *) "self", NULL | |
7938 | }; | |
7939 | ||
7940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7943 | { | |
7944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7945 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7946 | ||
7947 | wxPyEndAllowThreads(__tstate); | |
7948 | if (PyErr_Occurred()) SWIG_fail; | |
7949 | } | |
c32bde28 | 7950 | resultobj = SWIG_From_long((long)result); |
5e4ca4a8 RD |
7951 | return resultobj; |
7952 | fail: | |
7953 | return NULL; | |
7954 | } | |
7955 | ||
7956 | ||
c32bde28 | 7957 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7958 | PyObject *resultobj; |
7959 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7960 | long result; | |
7961 | PyObject * obj0 = 0 ; | |
7962 | char *kwnames[] = { | |
7963 | (char *) "self", NULL | |
7964 | }; | |
7965 | ||
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7969 | { |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7971 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | } | |
c32bde28 | 7976 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
7977 | return resultobj; |
7978 | fail: | |
7979 | return NULL; | |
7980 | } | |
7981 | ||
7982 | ||
c32bde28 | 7983 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7984 | PyObject *resultobj; |
7985 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7986 | long result; | |
7987 | PyObject * obj0 = 0 ; | |
7988 | char *kwnames[] = { | |
7989 | (char *) "self", NULL | |
7990 | }; | |
7991 | ||
7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7995 | { |
7996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7997 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7998 | ||
7999 | wxPyEndAllowThreads(__tstate); | |
8000 | if (PyErr_Occurred()) SWIG_fail; | |
8001 | } | |
c32bde28 | 8002 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
8003 | return resultobj; |
8004 | fail: | |
8005 | return NULL; | |
8006 | } | |
8007 | ||
8008 | ||
c32bde28 | 8009 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8010 | PyObject *resultobj; |
8011 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8012 | bool result; | |
8013 | PyObject * obj0 = 0 ; | |
8014 | char *kwnames[] = { | |
8015 | (char *) "self", NULL | |
8016 | }; | |
8017 | ||
8018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8021 | { |
8022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8023 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
8024 | ||
8025 | wxPyEndAllowThreads(__tstate); | |
8026 | if (PyErr_Occurred()) SWIG_fail; | |
8027 | } | |
4f89f6a3 RD |
8028 | { |
8029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8030 | } | |
d14a1e28 RD |
8031 | return resultobj; |
8032 | fail: | |
8033 | return NULL; | |
8034 | } | |
8035 | ||
8036 | ||
c32bde28 | 8037 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8038 | PyObject *resultobj; |
8039 | wxTextAttr *arg1 = 0 ; | |
8040 | wxTextAttr *arg2 = 0 ; | |
8041 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
8042 | wxTextAttr result; | |
8043 | PyObject * obj0 = 0 ; | |
8044 | PyObject * obj1 = 0 ; | |
8045 | PyObject * obj2 = 0 ; | |
8046 | char *kwnames[] = { | |
8047 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
8048 | }; | |
8049 | ||
8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8052 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8053 | SWIG_fail; | |
d14a1e28 | 8054 | if (arg1 == NULL) { |
15afbcd0 RD |
8055 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8056 | SWIG_fail; | |
d14a1e28 | 8057 | } |
15afbcd0 RD |
8058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
8059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8060 | SWIG_fail; | |
d14a1e28 | 8061 | if (arg2 == NULL) { |
15afbcd0 RD |
8062 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8063 | SWIG_fail; | |
d14a1e28 | 8064 | } |
15afbcd0 RD |
8065 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
8066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8067 | { |
8068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8069 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
8070 | ||
8071 | wxPyEndAllowThreads(__tstate); | |
8072 | if (PyErr_Occurred()) SWIG_fail; | |
8073 | } | |
8074 | { | |
8075 | wxTextAttr * resultptr; | |
8076 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
15afbcd0 | 8077 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
8078 | } |
8079 | return resultobj; | |
8080 | fail: | |
8081 | return NULL; | |
8082 | } | |
8083 | ||
8084 | ||
c32bde28 | 8085 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8086 | PyObject *obj; |
8087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8088 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
8089 | Py_INCREF(obj); | |
8090 | return Py_BuildValue((char *)""); | |
8091 | } | |
c32bde28 | 8092 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8093 | PyObject *resultobj; |
8094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8095 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8096 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8097 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8098 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8099 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8100 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8101 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8102 | long arg6 = (long) 0 ; | |
8103 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8104 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8105 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
8106 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8107 | wxTextCtrl *result; | |
e811c8ce | 8108 | bool temp3 = False ; |
d14a1e28 RD |
8109 | wxPoint temp4 ; |
8110 | wxSize temp5 ; | |
e811c8ce | 8111 | bool temp8 = False ; |
d14a1e28 | 8112 | PyObject * obj0 = 0 ; |
994141e6 | 8113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8114 | PyObject * obj2 = 0 ; |
8115 | PyObject * obj3 = 0 ; | |
8116 | PyObject * obj4 = 0 ; | |
994141e6 | 8117 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8118 | PyObject * obj6 = 0 ; |
8119 | PyObject * obj7 = 0 ; | |
8120 | char *kwnames[] = { | |
8121 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8122 | }; | |
8123 | ||
248ed943 | 8124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
8125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8127 | if (obj1) { |
c32bde28 | 8128 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
8129 | if (PyErr_Occurred()) SWIG_fail; |
8130 | } | |
d14a1e28 RD |
8131 | if (obj2) { |
8132 | { | |
8133 | arg3 = wxString_in_helper(obj2); | |
8134 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8135 | temp3 = True; |
d14a1e28 RD |
8136 | } |
8137 | } | |
8138 | if (obj3) { | |
8139 | { | |
8140 | arg4 = &temp4; | |
8141 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8142 | } | |
8143 | } | |
8144 | if (obj4) { | |
8145 | { | |
8146 | arg5 = &temp5; | |
8147 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8148 | } | |
8149 | } | |
994141e6 | 8150 | if (obj5) { |
c32bde28 | 8151 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 8152 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8153 | } |
d14a1e28 | 8154 | if (obj6) { |
15afbcd0 RD |
8155 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
8156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8157 | SWIG_fail; | |
d14a1e28 | 8158 | if (arg7 == NULL) { |
15afbcd0 RD |
8159 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8160 | SWIG_fail; | |
d14a1e28 RD |
8161 | } |
8162 | } | |
8163 | if (obj7) { | |
8164 | { | |
8165 | arg8 = wxString_in_helper(obj7); | |
8166 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 8167 | temp8 = True; |
d14a1e28 RD |
8168 | } |
8169 | } | |
8170 | { | |
e3b71cb8 | 8171 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8173 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8174 | ||
8175 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8176 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8177 | } |
b0f7404b | 8178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8179 | { |
8180 | if (temp3) | |
8181 | delete arg3; | |
8182 | } | |
8183 | { | |
8184 | if (temp8) | |
8185 | delete arg8; | |
8186 | } | |
8187 | return resultobj; | |
8188 | fail: | |
8189 | { | |
8190 | if (temp3) | |
8191 | delete arg3; | |
8192 | } | |
8193 | { | |
8194 | if (temp8) | |
8195 | delete arg8; | |
8196 | } | |
8197 | return NULL; | |
8198 | } | |
8199 | ||
8200 | ||
c32bde28 | 8201 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8202 | PyObject *resultobj; |
8203 | wxTextCtrl *result; | |
8204 | char *kwnames[] = { | |
8205 | NULL | |
8206 | }; | |
8207 | ||
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8209 | { | |
e3b71cb8 | 8210 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8212 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8213 | ||
8214 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8215 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8216 | } |
b0f7404b | 8217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8218 | return resultobj; |
8219 | fail: | |
8220 | return NULL; | |
8221 | } | |
8222 | ||
8223 | ||
c32bde28 | 8224 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8225 | PyObject *resultobj; |
8226 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8227 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8228 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8229 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8230 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8231 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8232 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8233 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8234 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8235 | long arg7 = (long) 0 ; | |
8236 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8237 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8238 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8239 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8240 | bool result; | |
e811c8ce | 8241 | bool temp4 = False ; |
d14a1e28 RD |
8242 | wxPoint temp5 ; |
8243 | wxSize temp6 ; | |
e811c8ce | 8244 | bool temp9 = False ; |
d14a1e28 RD |
8245 | PyObject * obj0 = 0 ; |
8246 | PyObject * obj1 = 0 ; | |
994141e6 | 8247 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8248 | PyObject * obj3 = 0 ; |
8249 | PyObject * obj4 = 0 ; | |
8250 | PyObject * obj5 = 0 ; | |
994141e6 | 8251 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8252 | PyObject * obj7 = 0 ; |
8253 | PyObject * obj8 = 0 ; | |
8254 | char *kwnames[] = { | |
8255 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8256 | }; | |
8257 | ||
248ed943 | 8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
8259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8263 | if (obj2) { |
c32bde28 | 8264 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
8265 | if (PyErr_Occurred()) SWIG_fail; |
8266 | } | |
d14a1e28 RD |
8267 | if (obj3) { |
8268 | { | |
8269 | arg4 = wxString_in_helper(obj3); | |
8270 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8271 | temp4 = True; |
d14a1e28 RD |
8272 | } |
8273 | } | |
8274 | if (obj4) { | |
8275 | { | |
8276 | arg5 = &temp5; | |
8277 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8278 | } | |
8279 | } | |
8280 | if (obj5) { | |
8281 | { | |
8282 | arg6 = &temp6; | |
8283 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8284 | } | |
8285 | } | |
994141e6 | 8286 | if (obj6) { |
c32bde28 | 8287 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 8288 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8289 | } |
d14a1e28 | 8290 | if (obj7) { |
15afbcd0 RD |
8291 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
8292 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8293 | SWIG_fail; | |
d14a1e28 | 8294 | if (arg8 == NULL) { |
15afbcd0 RD |
8295 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8296 | SWIG_fail; | |
d14a1e28 RD |
8297 | } |
8298 | } | |
8299 | if (obj8) { | |
8300 | { | |
8301 | arg9 = wxString_in_helper(obj8); | |
8302 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 8303 | temp9 = True; |
d14a1e28 RD |
8304 | } |
8305 | } | |
8306 | { | |
8307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8308 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8309 | ||
8310 | wxPyEndAllowThreads(__tstate); | |
8311 | if (PyErr_Occurred()) SWIG_fail; | |
8312 | } | |
4f89f6a3 RD |
8313 | { |
8314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8315 | } | |
d14a1e28 RD |
8316 | { |
8317 | if (temp4) | |
8318 | delete arg4; | |
8319 | } | |
8320 | { | |
8321 | if (temp9) | |
8322 | delete arg9; | |
8323 | } | |
8324 | return resultobj; | |
8325 | fail: | |
8326 | { | |
8327 | if (temp4) | |
8328 | delete arg4; | |
8329 | } | |
8330 | { | |
8331 | if (temp9) | |
8332 | delete arg9; | |
8333 | } | |
8334 | return NULL; | |
8335 | } | |
8336 | ||
8337 | ||
c32bde28 | 8338 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8339 | PyObject *resultobj; |
8340 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8341 | wxString result; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | char *kwnames[] = { | |
8344 | (char *) "self", NULL | |
8345 | }; | |
8346 | ||
8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8350 | { |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8352 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8353 | ||
8354 | wxPyEndAllowThreads(__tstate); | |
8355 | if (PyErr_Occurred()) SWIG_fail; | |
8356 | } | |
8357 | { | |
8358 | #if wxUSE_UNICODE | |
8359 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8360 | #else | |
8361 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8362 | #endif | |
8363 | } | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | return NULL; | |
8367 | } | |
8368 | ||
8369 | ||
c32bde28 | 8370 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8371 | PyObject *resultobj; |
8372 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8373 | wxString *arg2 = 0 ; | |
e811c8ce | 8374 | bool temp2 = False ; |
d14a1e28 RD |
8375 | PyObject * obj0 = 0 ; |
8376 | PyObject * obj1 = 0 ; | |
8377 | char *kwnames[] = { | |
8378 | (char *) "self",(char *) "value", NULL | |
8379 | }; | |
8380 | ||
8381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8384 | { |
8385 | arg2 = wxString_in_helper(obj1); | |
8386 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8387 | temp2 = True; |
d14a1e28 RD |
8388 | } |
8389 | { | |
8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8391 | (arg1)->SetValue((wxString const &)*arg2); | |
8392 | ||
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | Py_INCREF(Py_None); resultobj = Py_None; | |
8397 | { | |
8398 | if (temp2) | |
8399 | delete arg2; | |
8400 | } | |
8401 | return resultobj; | |
8402 | fail: | |
8403 | { | |
8404 | if (temp2) | |
8405 | delete arg2; | |
8406 | } | |
8407 | return NULL; | |
8408 | } | |
8409 | ||
8410 | ||
c32bde28 | 8411 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8412 | PyObject *resultobj; |
8413 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8414 | long arg2 ; | |
8415 | long arg3 ; | |
8416 | wxString result; | |
8417 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8418 | PyObject * obj1 = 0 ; |
8419 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8420 | char *kwnames[] = { |
8421 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8422 | }; | |
8423 | ||
994141e6 | 8424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8427 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8428 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8429 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8430 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8431 | { |
8432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8433 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8434 | ||
8435 | wxPyEndAllowThreads(__tstate); | |
8436 | if (PyErr_Occurred()) SWIG_fail; | |
8437 | } | |
8438 | { | |
8439 | #if wxUSE_UNICODE | |
8440 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8441 | #else | |
8442 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8443 | #endif | |
8444 | } | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | return NULL; | |
8448 | } | |
8449 | ||
8450 | ||
c32bde28 | 8451 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8452 | PyObject *resultobj; |
8453 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8454 | long arg2 ; | |
8455 | int result; | |
8456 | PyObject * obj0 = 0 ; | |
994141e6 | 8457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8458 | char *kwnames[] = { |
8459 | (char *) "self",(char *) "lineNo", NULL | |
8460 | }; | |
8461 | ||
994141e6 | 8462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8465 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8466 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8467 | { |
8468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8469 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8470 | ||
8471 | wxPyEndAllowThreads(__tstate); | |
8472 | if (PyErr_Occurred()) SWIG_fail; | |
8473 | } | |
c32bde28 | 8474 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8475 | return resultobj; |
8476 | fail: | |
8477 | return NULL; | |
8478 | } | |
8479 | ||
8480 | ||
c32bde28 | 8481 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8482 | PyObject *resultobj; |
8483 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8484 | long arg2 ; | |
8485 | wxString result; | |
8486 | PyObject * obj0 = 0 ; | |
994141e6 | 8487 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8488 | char *kwnames[] = { |
8489 | (char *) "self",(char *) "lineNo", NULL | |
8490 | }; | |
8491 | ||
994141e6 | 8492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8495 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8496 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8497 | { |
8498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8499 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8500 | ||
8501 | wxPyEndAllowThreads(__tstate); | |
8502 | if (PyErr_Occurred()) SWIG_fail; | |
8503 | } | |
8504 | { | |
8505 | #if wxUSE_UNICODE | |
8506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8507 | #else | |
8508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8509 | #endif | |
8510 | } | |
8511 | return resultobj; | |
8512 | fail: | |
8513 | return NULL; | |
8514 | } | |
8515 | ||
8516 | ||
c32bde28 | 8517 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8518 | PyObject *resultobj; |
8519 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8520 | int result; | |
8521 | PyObject * obj0 = 0 ; | |
8522 | char *kwnames[] = { | |
8523 | (char *) "self", NULL | |
8524 | }; | |
8525 | ||
8526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8529 | { |
8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8531 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8532 | ||
8533 | wxPyEndAllowThreads(__tstate); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | } | |
c32bde28 | 8536 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8537 | return resultobj; |
8538 | fail: | |
8539 | return NULL; | |
8540 | } | |
8541 | ||
8542 | ||
c32bde28 | 8543 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8544 | PyObject *resultobj; |
8545 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8546 | bool result; | |
8547 | PyObject * obj0 = 0 ; | |
8548 | char *kwnames[] = { | |
8549 | (char *) "self", NULL | |
8550 | }; | |
8551 | ||
8552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8555 | { |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8558 | ||
8559 | wxPyEndAllowThreads(__tstate); | |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8561 | } | |
4f89f6a3 RD |
8562 | { |
8563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8564 | } | |
d14a1e28 RD |
8565 | return resultobj; |
8566 | fail: | |
8567 | return NULL; | |
8568 | } | |
8569 | ||
8570 | ||
c32bde28 | 8571 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8572 | PyObject *resultobj; |
8573 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8574 | bool result; | |
8575 | PyObject * obj0 = 0 ; | |
8576 | char *kwnames[] = { | |
8577 | (char *) "self", NULL | |
8578 | }; | |
8579 | ||
8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8583 | { |
8584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8585 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8586 | ||
8587 | wxPyEndAllowThreads(__tstate); | |
8588 | if (PyErr_Occurred()) SWIG_fail; | |
8589 | } | |
4f89f6a3 RD |
8590 | { |
8591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8592 | } | |
d14a1e28 RD |
8593 | return resultobj; |
8594 | fail: | |
8595 | return NULL; | |
8596 | } | |
8597 | ||
8598 | ||
c32bde28 | 8599 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8600 | PyObject *resultobj; |
8601 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8602 | bool result; | |
8603 | PyObject * obj0 = 0 ; | |
8604 | char *kwnames[] = { | |
8605 | (char *) "self", NULL | |
8606 | }; | |
8607 | ||
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8611 | { |
8612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8613 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8614 | ||
8615 | wxPyEndAllowThreads(__tstate); | |
8616 | if (PyErr_Occurred()) SWIG_fail; | |
8617 | } | |
4f89f6a3 RD |
8618 | { |
8619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8620 | } | |
d14a1e28 RD |
8621 | return resultobj; |
8622 | fail: | |
8623 | return NULL; | |
8624 | } | |
8625 | ||
8626 | ||
c32bde28 | 8627 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8628 | PyObject *resultobj; |
8629 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8630 | bool result; | |
8631 | PyObject * obj0 = 0 ; | |
8632 | char *kwnames[] = { | |
8633 | (char *) "self", NULL | |
8634 | }; | |
8635 | ||
8636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8639 | { |
8640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8641 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8642 | ||
8643 | wxPyEndAllowThreads(__tstate); | |
8644 | if (PyErr_Occurred()) SWIG_fail; | |
8645 | } | |
4f89f6a3 RD |
8646 | { |
8647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8648 | } | |
d14a1e28 RD |
8649 | return resultobj; |
8650 | fail: | |
8651 | return NULL; | |
8652 | } | |
8653 | ||
8654 | ||
c32bde28 | 8655 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8656 | PyObject *resultobj; |
8657 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8658 | long *arg2 = (long *) 0 ; | |
8659 | long *arg3 = (long *) 0 ; | |
8660 | long temp2 ; | |
c32bde28 | 8661 | int res2 = 0 ; |
d14a1e28 | 8662 | long temp3 ; |
c32bde28 | 8663 | int res3 = 0 ; |
d14a1e28 RD |
8664 | PyObject * obj0 = 0 ; |
8665 | char *kwnames[] = { | |
8666 | (char *) "self", NULL | |
8667 | }; | |
8668 | ||
c32bde28 RD |
8669 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8670 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 8671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8674 | { |
8675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8676 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8677 | ||
8678 | wxPyEndAllowThreads(__tstate); | |
8679 | if (PyErr_Occurred()) SWIG_fail; | |
8680 | } | |
8681 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
8682 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8683 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
8684 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8685 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
8686 | return resultobj; |
8687 | fail: | |
8688 | return NULL; | |
8689 | } | |
8690 | ||
8691 | ||
c32bde28 | 8692 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8693 | PyObject *resultobj; |
8694 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8695 | wxString result; | |
8696 | PyObject * obj0 = 0 ; | |
8697 | char *kwnames[] = { | |
8698 | (char *) "self", NULL | |
8699 | }; | |
8700 | ||
8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8704 | { |
8705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8706 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8707 | ||
8708 | wxPyEndAllowThreads(__tstate); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | } | |
8711 | { | |
8712 | #if wxUSE_UNICODE | |
8713 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8714 | #else | |
8715 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8716 | #endif | |
8717 | } | |
8718 | return resultobj; | |
8719 | fail: | |
8720 | return NULL; | |
8721 | } | |
8722 | ||
8723 | ||
c32bde28 | 8724 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8725 | PyObject *resultobj; |
8726 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8727 | PyObject * obj0 = 0 ; | |
8728 | char *kwnames[] = { | |
8729 | (char *) "self", NULL | |
8730 | }; | |
8731 | ||
8732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8735 | { |
8736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8737 | (arg1)->Clear(); | |
8738 | ||
8739 | wxPyEndAllowThreads(__tstate); | |
8740 | if (PyErr_Occurred()) SWIG_fail; | |
8741 | } | |
8742 | Py_INCREF(Py_None); resultobj = Py_None; | |
8743 | return resultobj; | |
8744 | fail: | |
8745 | return NULL; | |
8746 | } | |
8747 | ||
8748 | ||
c32bde28 | 8749 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8750 | PyObject *resultobj; |
8751 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8752 | long arg2 ; | |
8753 | long arg3 ; | |
8754 | wxString *arg4 = 0 ; | |
e811c8ce | 8755 | bool temp4 = False ; |
d14a1e28 | 8756 | PyObject * obj0 = 0 ; |
994141e6 RD |
8757 | PyObject * obj1 = 0 ; |
8758 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8759 | PyObject * obj3 = 0 ; |
8760 | char *kwnames[] = { | |
8761 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8762 | }; | |
8763 | ||
994141e6 | 8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8767 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8768 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8769 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8770 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8771 | { |
8772 | arg4 = wxString_in_helper(obj3); | |
8773 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8774 | temp4 = True; |
d14a1e28 RD |
8775 | } |
8776 | { | |
8777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8778 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8779 | ||
8780 | wxPyEndAllowThreads(__tstate); | |
8781 | if (PyErr_Occurred()) SWIG_fail; | |
8782 | } | |
8783 | Py_INCREF(Py_None); resultobj = Py_None; | |
8784 | { | |
8785 | if (temp4) | |
8786 | delete arg4; | |
8787 | } | |
8788 | return resultobj; | |
8789 | fail: | |
8790 | { | |
8791 | if (temp4) | |
8792 | delete arg4; | |
8793 | } | |
8794 | return NULL; | |
8795 | } | |
8796 | ||
8797 | ||
c32bde28 | 8798 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8799 | PyObject *resultobj; |
8800 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8801 | long arg2 ; | |
8802 | long arg3 ; | |
8803 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8804 | PyObject * obj1 = 0 ; |
8805 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8806 | char *kwnames[] = { |
8807 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8808 | }; | |
8809 | ||
994141e6 | 8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8813 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8814 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8815 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8816 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8817 | { |
8818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8819 | (arg1)->Remove(arg2,arg3); | |
8820 | ||
8821 | wxPyEndAllowThreads(__tstate); | |
8822 | if (PyErr_Occurred()) SWIG_fail; | |
8823 | } | |
8824 | Py_INCREF(Py_None); resultobj = Py_None; | |
8825 | return resultobj; | |
8826 | fail: | |
8827 | return NULL; | |
8828 | } | |
8829 | ||
8830 | ||
c32bde28 | 8831 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8832 | PyObject *resultobj; |
8833 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8834 | wxString *arg2 = 0 ; | |
8835 | bool result; | |
e811c8ce | 8836 | bool temp2 = False ; |
d14a1e28 RD |
8837 | PyObject * obj0 = 0 ; |
8838 | PyObject * obj1 = 0 ; | |
8839 | char *kwnames[] = { | |
8840 | (char *) "self",(char *) "file", NULL | |
8841 | }; | |
8842 | ||
8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8846 | { |
8847 | arg2 = wxString_in_helper(obj1); | |
8848 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8849 | temp2 = True; |
d14a1e28 RD |
8850 | } |
8851 | { | |
8852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8853 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8854 | ||
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
4f89f6a3 RD |
8858 | { |
8859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8860 | } | |
d14a1e28 RD |
8861 | { |
8862 | if (temp2) | |
8863 | delete arg2; | |
8864 | } | |
8865 | return resultobj; | |
8866 | fail: | |
8867 | { | |
8868 | if (temp2) | |
8869 | delete arg2; | |
8870 | } | |
8871 | return NULL; | |
8872 | } | |
8873 | ||
8874 | ||
c32bde28 | 8875 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8876 | PyObject *resultobj; |
8877 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8878 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8879 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8880 | bool result; | |
e811c8ce | 8881 | bool temp2 = False ; |
d14a1e28 RD |
8882 | PyObject * obj0 = 0 ; |
8883 | PyObject * obj1 = 0 ; | |
8884 | char *kwnames[] = { | |
8885 | (char *) "self",(char *) "file", NULL | |
8886 | }; | |
8887 | ||
8888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8891 | if (obj1) { |
8892 | { | |
8893 | arg2 = wxString_in_helper(obj1); | |
8894 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8895 | temp2 = True; |
d14a1e28 RD |
8896 | } |
8897 | } | |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
4f89f6a3 RD |
8905 | { |
8906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8907 | } | |
d14a1e28 RD |
8908 | { |
8909 | if (temp2) | |
8910 | delete arg2; | |
8911 | } | |
8912 | return resultobj; | |
8913 | fail: | |
8914 | { | |
8915 | if (temp2) | |
8916 | delete arg2; | |
8917 | } | |
8918 | return NULL; | |
8919 | } | |
8920 | ||
8921 | ||
c32bde28 | 8922 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8923 | PyObject *resultobj; |
8924 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8925 | PyObject * obj0 = 0 ; | |
8926 | char *kwnames[] = { | |
8927 | (char *) "self", NULL | |
8928 | }; | |
8929 | ||
8930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8933 | { |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | (arg1)->MarkDirty(); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
8940 | Py_INCREF(Py_None); resultobj = Py_None; | |
8941 | return resultobj; | |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
c32bde28 | 8947 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8948 | PyObject *resultobj; |
8949 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8950 | PyObject * obj0 = 0 ; | |
8951 | char *kwnames[] = { | |
8952 | (char *) "self", NULL | |
8953 | }; | |
8954 | ||
8955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8958 | { |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | (arg1)->DiscardEdits(); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
8965 | Py_INCREF(Py_None); resultobj = Py_None; | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
c32bde28 | 8972 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8973 | PyObject *resultobj; |
8974 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8975 | unsigned long arg2 ; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | PyObject * obj1 = 0 ; | |
8978 | char *kwnames[] = { | |
8979 | (char *) "self",(char *) "len", NULL | |
8980 | }; | |
8981 | ||
8982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8985 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 8986 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8987 | { |
8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8989 | (arg1)->SetMaxLength(arg2); | |
8990 | ||
8991 | wxPyEndAllowThreads(__tstate); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | } | |
8994 | Py_INCREF(Py_None); resultobj = Py_None; | |
8995 | return resultobj; | |
8996 | fail: | |
8997 | return NULL; | |
8998 | } | |
8999 | ||
9000 | ||
c32bde28 | 9001 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9002 | PyObject *resultobj; |
9003 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9004 | wxString *arg2 = 0 ; | |
e811c8ce | 9005 | bool temp2 = False ; |
d14a1e28 RD |
9006 | PyObject * obj0 = 0 ; |
9007 | PyObject * obj1 = 0 ; | |
9008 | char *kwnames[] = { | |
9009 | (char *) "self",(char *) "text", NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9015 | { |
9016 | arg2 = wxString_in_helper(obj1); | |
9017 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9018 | temp2 = True; |
d14a1e28 RD |
9019 | } |
9020 | { | |
9021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9022 | (arg1)->WriteText((wxString const &)*arg2); | |
9023 | ||
9024 | wxPyEndAllowThreads(__tstate); | |
9025 | if (PyErr_Occurred()) SWIG_fail; | |
9026 | } | |
9027 | Py_INCREF(Py_None); resultobj = Py_None; | |
9028 | { | |
9029 | if (temp2) | |
9030 | delete arg2; | |
9031 | } | |
9032 | return resultobj; | |
9033 | fail: | |
9034 | { | |
9035 | if (temp2) | |
9036 | delete arg2; | |
9037 | } | |
9038 | return NULL; | |
9039 | } | |
9040 | ||
9041 | ||
c32bde28 | 9042 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9043 | PyObject *resultobj; |
9044 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9045 | wxString *arg2 = 0 ; | |
e811c8ce | 9046 | bool temp2 = False ; |
d14a1e28 RD |
9047 | PyObject * obj0 = 0 ; |
9048 | PyObject * obj1 = 0 ; | |
9049 | char *kwnames[] = { | |
9050 | (char *) "self",(char *) "text", NULL | |
9051 | }; | |
9052 | ||
9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9056 | { |
9057 | arg2 = wxString_in_helper(obj1); | |
9058 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9059 | temp2 = True; |
d14a1e28 RD |
9060 | } |
9061 | { | |
9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9063 | (arg1)->AppendText((wxString const &)*arg2); | |
9064 | ||
9065 | wxPyEndAllowThreads(__tstate); | |
9066 | if (PyErr_Occurred()) SWIG_fail; | |
9067 | } | |
9068 | Py_INCREF(Py_None); resultobj = Py_None; | |
9069 | { | |
9070 | if (temp2) | |
9071 | delete arg2; | |
9072 | } | |
9073 | return resultobj; | |
9074 | fail: | |
9075 | { | |
9076 | if (temp2) | |
9077 | delete arg2; | |
9078 | } | |
9079 | return NULL; | |
9080 | } | |
9081 | ||
9082 | ||
c32bde28 | 9083 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9084 | PyObject *resultobj; |
9085 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9086 | wxKeyEvent *arg2 = 0 ; | |
9087 | bool result; | |
9088 | PyObject * obj0 = 0 ; | |
9089 | PyObject * obj1 = 0 ; | |
9090 | char *kwnames[] = { | |
9091 | (char *) "self",(char *) "event", NULL | |
9092 | }; | |
9093 | ||
9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
9098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9099 | SWIG_fail; | |
d14a1e28 | 9100 | if (arg2 == NULL) { |
15afbcd0 RD |
9101 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9102 | SWIG_fail; | |
d14a1e28 RD |
9103 | } |
9104 | { | |
9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9106 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
9107 | ||
9108 | wxPyEndAllowThreads(__tstate); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | } | |
4f89f6a3 RD |
9111 | { |
9112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9113 | } | |
d14a1e28 RD |
9114 | return resultobj; |
9115 | fail: | |
9116 | return NULL; | |
9117 | } | |
9118 | ||
9119 | ||
c32bde28 | 9120 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9121 | PyObject *resultobj; |
9122 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9123 | long arg2 ; | |
9124 | long arg3 ; | |
9125 | wxTextAttr *arg4 = 0 ; | |
9126 | bool result; | |
9127 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9128 | PyObject * obj1 = 0 ; |
9129 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9130 | PyObject * obj3 = 0 ; |
9131 | char *kwnames[] = { | |
9132 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9133 | }; | |
9134 | ||
994141e6 | 9135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9138 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9139 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9140 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 RD |
9141 | if (PyErr_Occurred()) SWIG_fail; |
9142 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9143 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9144 | SWIG_fail; | |
d14a1e28 | 9145 | if (arg4 == NULL) { |
15afbcd0 RD |
9146 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9147 | SWIG_fail; | |
d14a1e28 RD |
9148 | } |
9149 | { | |
9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9151 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9152 | ||
9153 | wxPyEndAllowThreads(__tstate); | |
9154 | if (PyErr_Occurred()) SWIG_fail; | |
9155 | } | |
4f89f6a3 RD |
9156 | { |
9157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9158 | } | |
d14a1e28 RD |
9159 | return resultobj; |
9160 | fail: | |
9161 | return NULL; | |
9162 | } | |
9163 | ||
9164 | ||
c32bde28 | 9165 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9166 | PyObject *resultobj; |
9167 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9168 | long arg2 ; | |
9169 | wxTextAttr *arg3 = 0 ; | |
9170 | bool result; | |
9171 | PyObject * obj0 = 0 ; | |
994141e6 | 9172 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9173 | PyObject * obj2 = 0 ; |
9174 | char *kwnames[] = { | |
9175 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9176 | }; | |
9177 | ||
994141e6 | 9178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9181 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 RD |
9182 | if (PyErr_Occurred()) SWIG_fail; |
9183 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9185 | SWIG_fail; | |
d14a1e28 | 9186 | if (arg3 == NULL) { |
15afbcd0 RD |
9187 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9188 | SWIG_fail; | |
d14a1e28 RD |
9189 | } |
9190 | { | |
9191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9192 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9193 | ||
9194 | wxPyEndAllowThreads(__tstate); | |
9195 | if (PyErr_Occurred()) SWIG_fail; | |
9196 | } | |
4f89f6a3 RD |
9197 | { |
9198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9199 | } | |
d14a1e28 RD |
9200 | return resultobj; |
9201 | fail: | |
9202 | return NULL; | |
9203 | } | |
9204 | ||
9205 | ||
c32bde28 | 9206 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9207 | PyObject *resultobj; |
9208 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9209 | wxTextAttr *arg2 = 0 ; | |
9210 | bool result; | |
9211 | PyObject * obj0 = 0 ; | |
9212 | PyObject * obj1 = 0 ; | |
9213 | char *kwnames[] = { | |
9214 | (char *) "self",(char *) "style", NULL | |
9215 | }; | |
9216 | ||
9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9220 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9221 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9222 | SWIG_fail; | |
d14a1e28 | 9223 | if (arg2 == NULL) { |
15afbcd0 RD |
9224 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9225 | SWIG_fail; | |
d14a1e28 RD |
9226 | } |
9227 | { | |
9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9229 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9230 | ||
9231 | wxPyEndAllowThreads(__tstate); | |
9232 | if (PyErr_Occurred()) SWIG_fail; | |
9233 | } | |
4f89f6a3 RD |
9234 | { |
9235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9236 | } | |
d14a1e28 RD |
9237 | return resultobj; |
9238 | fail: | |
9239 | return NULL; | |
9240 | } | |
9241 | ||
9242 | ||
c32bde28 | 9243 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9244 | PyObject *resultobj; |
9245 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9246 | wxTextAttr *result; | |
9247 | PyObject * obj0 = 0 ; | |
9248 | char *kwnames[] = { | |
9249 | (char *) "self", NULL | |
9250 | }; | |
9251 | ||
9252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9255 | { |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | { | |
9258 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9259 | result = (wxTextAttr *) &_result_ref; | |
9260 | } | |
9261 | ||
9262 | wxPyEndAllowThreads(__tstate); | |
9263 | if (PyErr_Occurred()) SWIG_fail; | |
9264 | } | |
15afbcd0 | 9265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
9266 | return resultobj; |
9267 | fail: | |
9268 | return NULL; | |
9269 | } | |
9270 | ||
9271 | ||
c32bde28 | 9272 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9273 | PyObject *resultobj; |
9274 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9275 | long arg2 ; | |
9276 | long arg3 ; | |
9277 | long result; | |
9278 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9279 | PyObject * obj1 = 0 ; |
9280 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9281 | char *kwnames[] = { |
9282 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9283 | }; | |
9284 | ||
994141e6 | 9285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9288 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9289 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9290 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9291 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9292 | { |
9293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9294 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9295 | ||
9296 | wxPyEndAllowThreads(__tstate); | |
9297 | if (PyErr_Occurred()) SWIG_fail; | |
9298 | } | |
c32bde28 | 9299 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
9300 | return resultobj; |
9301 | fail: | |
9302 | return NULL; | |
9303 | } | |
9304 | ||
9305 | ||
c32bde28 | 9306 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9307 | PyObject *resultobj; |
9308 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9309 | long arg2 ; | |
9310 | long *arg3 = (long *) 0 ; | |
9311 | long *arg4 = (long *) 0 ; | |
9312 | long temp3 ; | |
c32bde28 | 9313 | int res3 = 0 ; |
d14a1e28 | 9314 | long temp4 ; |
c32bde28 | 9315 | int res4 = 0 ; |
d14a1e28 | 9316 | PyObject * obj0 = 0 ; |
994141e6 | 9317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9318 | char *kwnames[] = { |
9319 | (char *) "self",(char *) "pos", NULL | |
9320 | }; | |
9321 | ||
c32bde28 RD |
9322 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9323 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 9324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9327 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9328 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9329 | { |
9330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9331 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9332 | ||
9333 | wxPyEndAllowThreads(__tstate); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
9336 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
9337 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
9338 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9339 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9340 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
9341 | return resultobj; |
9342 | fail: | |
9343 | return NULL; | |
9344 | } | |
9345 | ||
9346 | ||
c32bde28 | 9347 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9348 | PyObject *resultobj; |
9349 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9350 | long arg2 ; | |
9351 | PyObject * obj0 = 0 ; | |
994141e6 | 9352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9353 | char *kwnames[] = { |
9354 | (char *) "self",(char *) "pos", NULL | |
9355 | }; | |
9356 | ||
994141e6 | 9357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9360 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9361 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9362 | { |
9363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9364 | (arg1)->ShowPosition(arg2); | |
9365 | ||
9366 | wxPyEndAllowThreads(__tstate); | |
9367 | if (PyErr_Occurred()) SWIG_fail; | |
9368 | } | |
9369 | Py_INCREF(Py_None); resultobj = Py_None; | |
9370 | return resultobj; | |
9371 | fail: | |
9372 | return NULL; | |
9373 | } | |
9374 | ||
9375 | ||
c32bde28 | 9376 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
9377 | PyObject *resultobj; |
9378 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9379 | wxPoint *arg2 = 0 ; | |
9380 | long *arg3 = (long *) 0 ; | |
9381 | long *arg4 = (long *) 0 ; | |
9382 | int result; | |
9383 | wxPoint temp2 ; | |
9384 | long temp3 ; | |
c32bde28 | 9385 | int res3 = 0 ; |
4d5c3d91 | 9386 | long temp4 ; |
c32bde28 | 9387 | int res4 = 0 ; |
4d5c3d91 RD |
9388 | PyObject * obj0 = 0 ; |
9389 | PyObject * obj1 = 0 ; | |
9390 | char *kwnames[] = { | |
9391 | (char *) "self",(char *) "pt", NULL | |
9392 | }; | |
9393 | ||
c32bde28 RD |
9394 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9395 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4d5c3d91 | 9396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
9399 | { |
9400 | arg2 = &temp2; | |
9401 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9402 | } | |
9403 | { | |
9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9405 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9406 | ||
9407 | wxPyEndAllowThreads(__tstate); | |
9408 | if (PyErr_Occurred()) SWIG_fail; | |
9409 | } | |
c32bde28 RD |
9410 | resultobj = SWIG_From_int((int)result); |
9411 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9412 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9413 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9414 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
4d5c3d91 RD |
9415 | return resultobj; |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
c32bde28 | 9421 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
9422 | PyObject *resultobj; |
9423 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9424 | wxPoint *arg2 = 0 ; | |
9425 | long *arg3 = (long *) 0 ; | |
9426 | int result; | |
9427 | wxPoint temp2 ; | |
9428 | long temp3 ; | |
c32bde28 | 9429 | int res3 = 0 ; |
4896ac9e RD |
9430 | PyObject * obj0 = 0 ; |
9431 | PyObject * obj1 = 0 ; | |
9432 | char *kwnames[] = { | |
9433 | (char *) "self",(char *) "pt", NULL | |
9434 | }; | |
9435 | ||
c32bde28 | 9436 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e RD |
9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
9438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9440 | { | |
9441 | arg2 = &temp2; | |
9442 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9443 | } | |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
c32bde28 RD |
9451 | resultobj = SWIG_From_int((int)result); |
9452 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9453 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
9454 | return resultobj; |
9455 | fail: | |
9456 | return NULL; | |
9457 | } | |
9458 | ||
9459 | ||
c32bde28 | 9460 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9461 | PyObject *resultobj; |
9462 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9463 | PyObject * obj0 = 0 ; | |
9464 | char *kwnames[] = { | |
9465 | (char *) "self", NULL | |
9466 | }; | |
9467 | ||
9468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9471 | { |
9472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9473 | (arg1)->Copy(); | |
9474 | ||
9475 | wxPyEndAllowThreads(__tstate); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | } | |
9478 | Py_INCREF(Py_None); resultobj = Py_None; | |
9479 | return resultobj; | |
9480 | fail: | |
9481 | return NULL; | |
9482 | } | |
9483 | ||
9484 | ||
c32bde28 | 9485 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9486 | PyObject *resultobj; |
9487 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9488 | PyObject * obj0 = 0 ; | |
9489 | char *kwnames[] = { | |
9490 | (char *) "self", NULL | |
9491 | }; | |
9492 | ||
9493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9496 | { |
9497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9498 | (arg1)->Cut(); | |
9499 | ||
9500 | wxPyEndAllowThreads(__tstate); | |
9501 | if (PyErr_Occurred()) SWIG_fail; | |
9502 | } | |
9503 | Py_INCREF(Py_None); resultobj = Py_None; | |
9504 | return resultobj; | |
9505 | fail: | |
9506 | return NULL; | |
9507 | } | |
9508 | ||
9509 | ||
c32bde28 | 9510 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9511 | PyObject *resultobj; |
9512 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9513 | PyObject * obj0 = 0 ; | |
9514 | char *kwnames[] = { | |
9515 | (char *) "self", NULL | |
9516 | }; | |
9517 | ||
9518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9521 | { |
9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9523 | (arg1)->Paste(); | |
9524 | ||
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
9527 | } | |
9528 | Py_INCREF(Py_None); resultobj = Py_None; | |
9529 | return resultobj; | |
9530 | fail: | |
9531 | return NULL; | |
9532 | } | |
9533 | ||
9534 | ||
c32bde28 | 9535 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9536 | PyObject *resultobj; |
9537 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9538 | bool result; | |
9539 | PyObject * obj0 = 0 ; | |
9540 | char *kwnames[] = { | |
9541 | (char *) "self", NULL | |
9542 | }; | |
9543 | ||
9544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9547 | { |
9548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9549 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9550 | ||
9551 | wxPyEndAllowThreads(__tstate); | |
9552 | if (PyErr_Occurred()) SWIG_fail; | |
9553 | } | |
4f89f6a3 RD |
9554 | { |
9555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9556 | } | |
d14a1e28 RD |
9557 | return resultobj; |
9558 | fail: | |
9559 | return NULL; | |
9560 | } | |
9561 | ||
9562 | ||
c32bde28 | 9563 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9564 | PyObject *resultobj; |
9565 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9566 | bool result; | |
9567 | PyObject * obj0 = 0 ; | |
9568 | char *kwnames[] = { | |
9569 | (char *) "self", NULL | |
9570 | }; | |
9571 | ||
9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9575 | { |
9576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9577 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
4f89f6a3 RD |
9582 | { |
9583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9584 | } | |
d14a1e28 RD |
9585 | return resultobj; |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
c32bde28 | 9591 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9592 | PyObject *resultobj; |
9593 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9594 | bool result; | |
9595 | PyObject * obj0 = 0 ; | |
9596 | char *kwnames[] = { | |
9597 | (char *) "self", NULL | |
9598 | }; | |
9599 | ||
9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9603 | { |
9604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9605 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9606 | ||
9607 | wxPyEndAllowThreads(__tstate); | |
9608 | if (PyErr_Occurred()) SWIG_fail; | |
9609 | } | |
4f89f6a3 RD |
9610 | { |
9611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9612 | } | |
d14a1e28 RD |
9613 | return resultobj; |
9614 | fail: | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
c32bde28 | 9619 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9620 | PyObject *resultobj; |
9621 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9622 | PyObject * obj0 = 0 ; | |
9623 | char *kwnames[] = { | |
9624 | (char *) "self", NULL | |
9625 | }; | |
9626 | ||
9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9630 | { |
9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9632 | (arg1)->Undo(); | |
9633 | ||
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
9637 | Py_INCREF(Py_None); resultobj = Py_None; | |
9638 | return resultobj; | |
9639 | fail: | |
9640 | return NULL; | |
9641 | } | |
9642 | ||
9643 | ||
c32bde28 | 9644 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9645 | PyObject *resultobj; |
9646 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9647 | PyObject * obj0 = 0 ; | |
9648 | char *kwnames[] = { | |
9649 | (char *) "self", NULL | |
9650 | }; | |
9651 | ||
9652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9655 | { |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | (arg1)->Redo(); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | Py_INCREF(Py_None); resultobj = Py_None; | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
c32bde28 | 9669 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9670 | PyObject *resultobj; |
9671 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9672 | bool result; | |
9673 | PyObject * obj0 = 0 ; | |
9674 | char *kwnames[] = { | |
9675 | (char *) "self", NULL | |
9676 | }; | |
9677 | ||
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9681 | { |
9682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9683 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9684 | ||
9685 | wxPyEndAllowThreads(__tstate); | |
9686 | if (PyErr_Occurred()) SWIG_fail; | |
9687 | } | |
4f89f6a3 RD |
9688 | { |
9689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9690 | } | |
d14a1e28 RD |
9691 | return resultobj; |
9692 | fail: | |
9693 | return NULL; | |
9694 | } | |
9695 | ||
9696 | ||
c32bde28 | 9697 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9698 | PyObject *resultobj; |
9699 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9700 | bool result; | |
9701 | PyObject * obj0 = 0 ; | |
9702 | char *kwnames[] = { | |
9703 | (char *) "self", NULL | |
9704 | }; | |
9705 | ||
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9709 | { |
9710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9711 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9712 | ||
9713 | wxPyEndAllowThreads(__tstate); | |
9714 | if (PyErr_Occurred()) SWIG_fail; | |
9715 | } | |
4f89f6a3 RD |
9716 | { |
9717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9718 | } | |
d14a1e28 RD |
9719 | return resultobj; |
9720 | fail: | |
9721 | return NULL; | |
9722 | } | |
9723 | ||
9724 | ||
c32bde28 | 9725 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9726 | PyObject *resultobj; |
9727 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9728 | long arg2 ; | |
9729 | PyObject * obj0 = 0 ; | |
994141e6 | 9730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9731 | char *kwnames[] = { |
9732 | (char *) "self",(char *) "pos", NULL | |
9733 | }; | |
9734 | ||
994141e6 | 9735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9738 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9739 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9740 | { |
9741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9742 | (arg1)->SetInsertionPoint(arg2); | |
9743 | ||
9744 | wxPyEndAllowThreads(__tstate); | |
9745 | if (PyErr_Occurred()) SWIG_fail; | |
9746 | } | |
9747 | Py_INCREF(Py_None); resultobj = Py_None; | |
9748 | return resultobj; | |
9749 | fail: | |
9750 | return NULL; | |
9751 | } | |
9752 | ||
9753 | ||
c32bde28 | 9754 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9755 | PyObject *resultobj; |
9756 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9757 | PyObject * obj0 = 0 ; | |
9758 | char *kwnames[] = { | |
9759 | (char *) "self", NULL | |
9760 | }; | |
9761 | ||
9762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9765 | { |
9766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9767 | (arg1)->SetInsertionPointEnd(); | |
9768 | ||
9769 | wxPyEndAllowThreads(__tstate); | |
9770 | if (PyErr_Occurred()) SWIG_fail; | |
9771 | } | |
9772 | Py_INCREF(Py_None); resultobj = Py_None; | |
9773 | return resultobj; | |
9774 | fail: | |
9775 | return NULL; | |
9776 | } | |
9777 | ||
9778 | ||
c32bde28 | 9779 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9780 | PyObject *resultobj; |
9781 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9782 | long result; | |
9783 | PyObject * obj0 = 0 ; | |
9784 | char *kwnames[] = { | |
9785 | (char *) "self", NULL | |
9786 | }; | |
9787 | ||
9788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9791 | { |
9792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9793 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9794 | ||
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
c32bde28 | 9798 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
9799 | return resultobj; |
9800 | fail: | |
9801 | return NULL; | |
9802 | } | |
9803 | ||
9804 | ||
c32bde28 | 9805 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9806 | PyObject *resultobj; |
9807 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9808 | long result; | |
9809 | PyObject * obj0 = 0 ; | |
9810 | char *kwnames[] = { | |
9811 | (char *) "self", NULL | |
9812 | }; | |
9813 | ||
9814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9817 | { |
9818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9819 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9820 | ||
9821 | wxPyEndAllowThreads(__tstate); | |
9822 | if (PyErr_Occurred()) SWIG_fail; | |
9823 | } | |
c32bde28 | 9824 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
9825 | return resultobj; |
9826 | fail: | |
9827 | return NULL; | |
9828 | } | |
9829 | ||
9830 | ||
c32bde28 | 9831 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9832 | PyObject *resultobj; |
9833 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9834 | long arg2 ; | |
9835 | long arg3 ; | |
9836 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9837 | PyObject * obj1 = 0 ; |
9838 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9839 | char *kwnames[] = { |
9840 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9841 | }; | |
9842 | ||
994141e6 | 9843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9846 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9847 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9848 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9849 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9850 | { |
9851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9852 | (arg1)->SetSelection(arg2,arg3); | |
9853 | ||
9854 | wxPyEndAllowThreads(__tstate); | |
9855 | if (PyErr_Occurred()) SWIG_fail; | |
9856 | } | |
9857 | Py_INCREF(Py_None); resultobj = Py_None; | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
c32bde28 | 9864 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9865 | PyObject *resultobj; |
9866 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9867 | PyObject * obj0 = 0 ; | |
9868 | char *kwnames[] = { | |
9869 | (char *) "self", NULL | |
9870 | }; | |
9871 | ||
9872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9875 | { |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9877 | (arg1)->SelectAll(); | |
9878 | ||
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
9882 | Py_INCREF(Py_None); resultobj = Py_None; | |
9883 | return resultobj; | |
9884 | fail: | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
c32bde28 | 9889 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9890 | PyObject *resultobj; |
9891 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9892 | bool arg2 ; | |
9893 | PyObject * obj0 = 0 ; | |
9894 | PyObject * obj1 = 0 ; | |
9895 | char *kwnames[] = { | |
9896 | (char *) "self",(char *) "editable", NULL | |
9897 | }; | |
9898 | ||
9899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9902 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 9903 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9904 | { |
9905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9906 | (arg1)->SetEditable(arg2); | |
9907 | ||
9908 | wxPyEndAllowThreads(__tstate); | |
9909 | if (PyErr_Occurred()) SWIG_fail; | |
9910 | } | |
9911 | Py_INCREF(Py_None); resultobj = Py_None; | |
9912 | return resultobj; | |
9913 | fail: | |
9914 | return NULL; | |
9915 | } | |
9916 | ||
9917 | ||
c32bde28 | 9918 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9919 | PyObject *resultobj; |
9920 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9921 | wxString *arg2 = 0 ; | |
e811c8ce | 9922 | bool temp2 = False ; |
d14a1e28 RD |
9923 | PyObject * obj0 = 0 ; |
9924 | PyObject * obj1 = 0 ; | |
9925 | char *kwnames[] = { | |
9926 | (char *) "self",(char *) "text", NULL | |
9927 | }; | |
9928 | ||
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9932 | { |
9933 | arg2 = wxString_in_helper(obj1); | |
9934 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9935 | temp2 = True; |
d14a1e28 RD |
9936 | } |
9937 | { | |
9938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9939 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9940 | ||
9941 | wxPyEndAllowThreads(__tstate); | |
9942 | if (PyErr_Occurred()) SWIG_fail; | |
9943 | } | |
9944 | Py_INCREF(Py_None); resultobj = Py_None; | |
9945 | { | |
9946 | if (temp2) | |
9947 | delete arg2; | |
9948 | } | |
9949 | return resultobj; | |
9950 | fail: | |
9951 | { | |
9952 | if (temp2) | |
9953 | delete arg2; | |
9954 | } | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
c32bde28 | 9959 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9960 | PyObject *resultobj; |
9961 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9962 | long arg2 ; | |
9963 | long arg3 ; | |
9964 | wxString result; | |
9965 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9966 | PyObject * obj1 = 0 ; |
9967 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9968 | char *kwnames[] = { |
9969 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9970 | }; | |
9971 | ||
994141e6 | 9972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9975 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9976 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9977 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9978 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9979 | { |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9982 | ||
9983 | wxPyEndAllowThreads(__tstate); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
9986 | { | |
9987 | #if wxUSE_UNICODE | |
9988 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9989 | #else | |
9990 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9991 | #endif | |
9992 | } | |
9993 | return resultobj; | |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
c32bde28 | 9999 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
10000 | PyObject *resultobj; |
10001 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10002 | wxVisualAttributes result; | |
10003 | PyObject * obj0 = 0 ; | |
10004 | char *kwnames[] = { | |
10005 | (char *) "variant", NULL | |
10006 | }; | |
10007 | ||
10008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10009 | if (obj0) { | |
c32bde28 | 10010 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
10011 | if (PyErr_Occurred()) SWIG_fail; |
10012 | } | |
10013 | { | |
110da5b0 | 10014 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10016 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10019 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10020 | } |
10021 | { | |
10022 | wxVisualAttributes * resultptr; | |
10023 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10025 | } | |
10026 | return resultobj; | |
10027 | fail: | |
10028 | return NULL; | |
10029 | } | |
10030 | ||
10031 | ||
c32bde28 | 10032 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10033 | PyObject *obj; |
10034 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10035 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
10036 | Py_INCREF(obj); | |
10037 | return Py_BuildValue((char *)""); | |
10038 | } | |
c32bde28 | 10039 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10040 | PyObject *resultobj; |
10041 | int arg1 ; | |
10042 | wxMouseEvent *arg2 = 0 ; | |
10043 | long arg3 ; | |
10044 | long arg4 ; | |
10045 | wxTextUrlEvent *result; | |
994141e6 | 10046 | PyObject * obj0 = 0 ; |
d14a1e28 | 10047 | PyObject * obj1 = 0 ; |
994141e6 RD |
10048 | PyObject * obj2 = 0 ; |
10049 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10050 | char *kwnames[] = { |
10051 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
10052 | }; | |
10053 | ||
994141e6 | 10054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
c32bde28 | 10055 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 RD |
10056 | if (PyErr_Occurred()) SWIG_fail; |
10057 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
10058 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10059 | SWIG_fail; | |
d14a1e28 | 10060 | if (arg2 == NULL) { |
15afbcd0 RD |
10061 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10062 | SWIG_fail; | |
994141e6 | 10063 | } |
c32bde28 | 10064 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 10065 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10066 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 10067 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10068 | { |
10069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10070 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
10071 | ||
10072 | wxPyEndAllowThreads(__tstate); | |
10073 | if (PyErr_Occurred()) SWIG_fail; | |
10074 | } | |
15afbcd0 | 10075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
10076 | return resultobj; |
10077 | fail: | |
10078 | return NULL; | |
10079 | } | |
10080 | ||
10081 | ||
c32bde28 | 10082 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10083 | PyObject *resultobj; |
10084 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10085 | wxMouseEvent *result; | |
10086 | PyObject * obj0 = 0 ; | |
10087 | char *kwnames[] = { | |
10088 | (char *) "self", NULL | |
10089 | }; | |
10090 | ||
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10094 | { |
10095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10096 | { | |
10097 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
10098 | result = (wxMouseEvent *) &_result_ref; | |
10099 | } | |
10100 | ||
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | } | |
15afbcd0 | 10104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
10105 | return resultobj; |
10106 | fail: | |
10107 | return NULL; | |
10108 | } | |
10109 | ||
10110 | ||
c32bde28 | 10111 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10112 | PyObject *resultobj; |
10113 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10114 | long result; | |
10115 | PyObject * obj0 = 0 ; | |
10116 | char *kwnames[] = { | |
10117 | (char *) "self", NULL | |
10118 | }; | |
10119 | ||
10120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10123 | { |
10124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10125 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
10126 | ||
10127 | wxPyEndAllowThreads(__tstate); | |
10128 | if (PyErr_Occurred()) SWIG_fail; | |
10129 | } | |
c32bde28 | 10130 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10131 | return resultobj; |
10132 | fail: | |
10133 | return NULL; | |
10134 | } | |
10135 | ||
10136 | ||
c32bde28 | 10137 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10138 | PyObject *resultobj; |
10139 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10140 | long result; | |
10141 | PyObject * obj0 = 0 ; | |
10142 | char *kwnames[] = { | |
10143 | (char *) "self", NULL | |
10144 | }; | |
10145 | ||
10146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10149 | { |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
10154 | if (PyErr_Occurred()) SWIG_fail; | |
10155 | } | |
c32bde28 | 10156 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10157 | return resultobj; |
10158 | fail: | |
10159 | return NULL; | |
10160 | } | |
10161 | ||
10162 | ||
c32bde28 | 10163 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10164 | PyObject *obj; |
10165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10166 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10167 | Py_INCREF(obj); | |
10168 | return Py_BuildValue((char *)""); | |
10169 | } | |
c32bde28 | 10170 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
b2dc1044 RD |
10171 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
10172 | return 1; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10177 | PyObject *pyobj; | |
10178 | ||
10179 | { | |
10180 | #if wxUSE_UNICODE | |
10181 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10182 | #else | |
10183 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10184 | #endif | |
10185 | } | |
10186 | return pyobj; | |
10187 | } | |
10188 | ||
10189 | ||
c32bde28 | 10190 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10191 | PyObject *resultobj; |
10192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10193 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10194 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10195 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10196 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10197 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10198 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10199 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10200 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10201 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10202 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10203 | wxScrollBar *result; | |
10204 | wxPoint temp3 ; | |
10205 | wxSize temp4 ; | |
e811c8ce | 10206 | bool temp7 = False ; |
d14a1e28 | 10207 | PyObject * obj0 = 0 ; |
994141e6 | 10208 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10209 | PyObject * obj2 = 0 ; |
10210 | PyObject * obj3 = 0 ; | |
994141e6 | 10211 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10212 | PyObject * obj5 = 0 ; |
10213 | PyObject * obj6 = 0 ; | |
10214 | char *kwnames[] = { | |
10215 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10216 | }; | |
10217 | ||
994141e6 | 10218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10221 | if (obj1) { |
c32bde28 | 10222 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10223 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10224 | } |
d14a1e28 RD |
10225 | if (obj2) { |
10226 | { | |
10227 | arg3 = &temp3; | |
10228 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10229 | } | |
10230 | } | |
10231 | if (obj3) { | |
10232 | { | |
10233 | arg4 = &temp4; | |
10234 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10235 | } | |
10236 | } | |
994141e6 | 10237 | if (obj4) { |
c32bde28 | 10238 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 10239 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10240 | } |
d14a1e28 | 10241 | if (obj5) { |
15afbcd0 RD |
10242 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
10243 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10244 | SWIG_fail; | |
d14a1e28 | 10245 | if (arg6 == NULL) { |
15afbcd0 RD |
10246 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10247 | SWIG_fail; | |
d14a1e28 RD |
10248 | } |
10249 | } | |
10250 | if (obj6) { | |
10251 | { | |
10252 | arg7 = wxString_in_helper(obj6); | |
10253 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10254 | temp7 = True; |
d14a1e28 RD |
10255 | } |
10256 | } | |
10257 | { | |
e3b71cb8 | 10258 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10260 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10261 | ||
10262 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10263 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10264 | } |
15afbcd0 | 10265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10266 | { |
10267 | if (temp7) | |
10268 | delete arg7; | |
10269 | } | |
10270 | return resultobj; | |
10271 | fail: | |
10272 | { | |
10273 | if (temp7) | |
10274 | delete arg7; | |
10275 | } | |
10276 | return NULL; | |
10277 | } | |
10278 | ||
10279 | ||
c32bde28 | 10280 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10281 | PyObject *resultobj; |
10282 | wxScrollBar *result; | |
10283 | char *kwnames[] = { | |
10284 | NULL | |
10285 | }; | |
10286 | ||
10287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10288 | { | |
e3b71cb8 | 10289 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10291 | result = (wxScrollBar *)new wxScrollBar(); | |
10292 | ||
10293 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10294 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10295 | } |
15afbcd0 | 10296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10297 | return resultobj; |
10298 | fail: | |
10299 | return NULL; | |
10300 | } | |
10301 | ||
10302 | ||
c32bde28 | 10303 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10304 | PyObject *resultobj; |
10305 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10306 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10307 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10308 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10309 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10310 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10311 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10312 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10313 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10314 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10315 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10316 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10317 | bool result; | |
10318 | wxPoint temp4 ; | |
10319 | wxSize temp5 ; | |
e811c8ce | 10320 | bool temp8 = False ; |
d14a1e28 RD |
10321 | PyObject * obj0 = 0 ; |
10322 | PyObject * obj1 = 0 ; | |
994141e6 | 10323 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10324 | PyObject * obj3 = 0 ; |
10325 | PyObject * obj4 = 0 ; | |
994141e6 | 10326 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10327 | PyObject * obj6 = 0 ; |
10328 | PyObject * obj7 = 0 ; | |
10329 | char *kwnames[] = { | |
10330 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10331 | }; | |
10332 | ||
994141e6 | 10333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
10334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10338 | if (obj2) { |
c32bde28 | 10339 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10340 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10341 | } |
d14a1e28 RD |
10342 | if (obj3) { |
10343 | { | |
10344 | arg4 = &temp4; | |
10345 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10346 | } | |
10347 | } | |
10348 | if (obj4) { | |
10349 | { | |
10350 | arg5 = &temp5; | |
10351 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10352 | } | |
10353 | } | |
994141e6 | 10354 | if (obj5) { |
c32bde28 | 10355 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 10356 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10357 | } |
d14a1e28 | 10358 | if (obj6) { |
15afbcd0 RD |
10359 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
10360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10361 | SWIG_fail; | |
d14a1e28 | 10362 | if (arg7 == NULL) { |
15afbcd0 RD |
10363 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10364 | SWIG_fail; | |
d14a1e28 RD |
10365 | } |
10366 | } | |
10367 | if (obj7) { | |
10368 | { | |
10369 | arg8 = wxString_in_helper(obj7); | |
10370 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10371 | temp8 = True; |
d14a1e28 RD |
10372 | } |
10373 | } | |
10374 | { | |
10375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10376 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10377 | ||
10378 | wxPyEndAllowThreads(__tstate); | |
10379 | if (PyErr_Occurred()) SWIG_fail; | |
10380 | } | |
4f89f6a3 RD |
10381 | { |
10382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10383 | } | |
d14a1e28 RD |
10384 | { |
10385 | if (temp8) | |
10386 | delete arg8; | |
10387 | } | |
10388 | return resultobj; | |
10389 | fail: | |
10390 | { | |
10391 | if (temp8) | |
10392 | delete arg8; | |
10393 | } | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
c32bde28 | 10398 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10399 | PyObject *resultobj; |
10400 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10401 | int result; | |
10402 | PyObject * obj0 = 0 ; | |
10403 | char *kwnames[] = { | |
10404 | (char *) "self", NULL | |
10405 | }; | |
10406 | ||
10407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10410 | { |
10411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10412 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10413 | ||
10414 | wxPyEndAllowThreads(__tstate); | |
10415 | if (PyErr_Occurred()) SWIG_fail; | |
10416 | } | |
c32bde28 | 10417 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10418 | return resultobj; |
10419 | fail: | |
10420 | return NULL; | |
10421 | } | |
10422 | ||
10423 | ||
c32bde28 | 10424 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10425 | PyObject *resultobj; |
10426 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10427 | int result; | |
10428 | PyObject * obj0 = 0 ; | |
10429 | char *kwnames[] = { | |
10430 | (char *) "self", NULL | |
10431 | }; | |
10432 | ||
10433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10436 | { |
10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10438 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10439 | ||
10440 | wxPyEndAllowThreads(__tstate); | |
10441 | if (PyErr_Occurred()) SWIG_fail; | |
10442 | } | |
c32bde28 | 10443 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10444 | return resultobj; |
10445 | fail: | |
10446 | return NULL; | |
10447 | } | |
10448 | ||
10449 | ||
c32bde28 | 10450 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10451 | PyObject *resultobj; |
10452 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10453 | int result; | |
10454 | PyObject * obj0 = 0 ; | |
10455 | char *kwnames[] = { | |
10456 | (char *) "self", NULL | |
10457 | }; | |
10458 | ||
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10462 | { |
10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10464 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10465 | ||
10466 | wxPyEndAllowThreads(__tstate); | |
10467 | if (PyErr_Occurred()) SWIG_fail; | |
10468 | } | |
c32bde28 | 10469 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10470 | return resultobj; |
10471 | fail: | |
10472 | return NULL; | |
10473 | } | |
10474 | ||
10475 | ||
c32bde28 | 10476 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10477 | PyObject *resultobj; |
10478 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10479 | int result; | |
10480 | PyObject * obj0 = 0 ; | |
10481 | char *kwnames[] = { | |
10482 | (char *) "self", NULL | |
10483 | }; | |
10484 | ||
10485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10488 | { |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10490 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10491 | ||
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
c32bde28 | 10495 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10496 | return resultobj; |
10497 | fail: | |
10498 | return NULL; | |
10499 | } | |
10500 | ||
10501 | ||
c32bde28 | 10502 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10503 | PyObject *resultobj; |
10504 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10505 | bool result; | |
10506 | PyObject * obj0 = 0 ; | |
10507 | char *kwnames[] = { | |
10508 | (char *) "self", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10514 | { |
10515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10516 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10517 | ||
10518 | wxPyEndAllowThreads(__tstate); | |
10519 | if (PyErr_Occurred()) SWIG_fail; | |
10520 | } | |
4f89f6a3 RD |
10521 | { |
10522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10523 | } | |
d14a1e28 RD |
10524 | return resultobj; |
10525 | fail: | |
10526 | return NULL; | |
10527 | } | |
10528 | ||
10529 | ||
c32bde28 | 10530 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10531 | PyObject *resultobj; |
10532 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10533 | int arg2 ; | |
10534 | PyObject * obj0 = 0 ; | |
994141e6 | 10535 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10536 | char *kwnames[] = { |
10537 | (char *) "self",(char *) "viewStart", NULL | |
10538 | }; | |
10539 | ||
994141e6 | 10540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10543 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10544 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10545 | { |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | (arg1)->SetThumbPosition(arg2); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | Py_INCREF(Py_None); resultobj = Py_None; | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
c32bde28 | 10559 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10560 | PyObject *resultobj; |
10561 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10562 | int arg2 ; | |
10563 | int arg3 ; | |
10564 | int arg4 ; | |
10565 | int arg5 ; | |
e811c8ce | 10566 | bool arg6 = (bool) True ; |
d14a1e28 | 10567 | PyObject * obj0 = 0 ; |
994141e6 RD |
10568 | PyObject * obj1 = 0 ; |
10569 | PyObject * obj2 = 0 ; | |
10570 | PyObject * obj3 = 0 ; | |
10571 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10572 | PyObject * obj5 = 0 ; |
10573 | char *kwnames[] = { | |
10574 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10575 | }; | |
10576 | ||
994141e6 | 10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10580 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10581 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10582 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10583 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10584 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10585 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10586 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 10587 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10588 | if (obj5) { |
c32bde28 | 10589 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 10590 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10591 | } |
10592 | { | |
10593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10594 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10595 | ||
10596 | wxPyEndAllowThreads(__tstate); | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
10599 | Py_INCREF(Py_None); resultobj = Py_None; | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | return NULL; | |
10603 | } | |
10604 | ||
10605 | ||
c32bde28 | 10606 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
10607 | PyObject *resultobj; |
10608 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10609 | wxVisualAttributes result; | |
10610 | PyObject * obj0 = 0 ; | |
10611 | char *kwnames[] = { | |
10612 | (char *) "variant", NULL | |
10613 | }; | |
10614 | ||
10615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10616 | if (obj0) { | |
c32bde28 | 10617 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
10618 | if (PyErr_Occurred()) SWIG_fail; |
10619 | } | |
10620 | { | |
110da5b0 | 10621 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10623 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10624 | ||
10625 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10626 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10627 | } |
10628 | { | |
10629 | wxVisualAttributes * resultptr; | |
10630 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10632 | } | |
10633 | return resultobj; | |
10634 | fail: | |
10635 | return NULL; | |
10636 | } | |
10637 | ||
10638 | ||
c32bde28 | 10639 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10640 | PyObject *obj; |
10641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10642 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10643 | Py_INCREF(obj); | |
10644 | return Py_BuildValue((char *)""); | |
10645 | } | |
c32bde28 | 10646 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
b2dc1044 RD |
10647 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
10648 | return 1; | |
10649 | } | |
10650 | ||
10651 | ||
10652 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10653 | PyObject *pyobj; | |
10654 | ||
10655 | { | |
10656 | #if wxUSE_UNICODE | |
10657 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10658 | #else | |
10659 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10660 | #endif | |
10661 | } | |
10662 | return pyobj; | |
10663 | } | |
10664 | ||
10665 | ||
c32bde28 | 10666 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
10667 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
10668 | return 1; | |
10669 | } | |
10670 | ||
10671 | ||
10672 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10673 | PyObject *pyobj; | |
10674 | ||
10675 | { | |
10676 | #if wxUSE_UNICODE | |
10677 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10678 | #else | |
10679 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10680 | #endif | |
10681 | } | |
10682 | return pyobj; | |
10683 | } | |
10684 | ||
10685 | ||
c32bde28 | 10686 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10687 | PyObject *resultobj; |
10688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10689 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10690 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10691 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10692 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10693 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10694 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10695 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10696 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10697 | wxSpinButton *result; | |
10698 | wxPoint temp3 ; | |
10699 | wxSize temp4 ; | |
e811c8ce | 10700 | bool temp6 = False ; |
d14a1e28 | 10701 | PyObject * obj0 = 0 ; |
994141e6 | 10702 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10703 | PyObject * obj2 = 0 ; |
10704 | PyObject * obj3 = 0 ; | |
994141e6 | 10705 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10706 | PyObject * obj5 = 0 ; |
10707 | char *kwnames[] = { | |
10708 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10709 | }; | |
10710 | ||
994141e6 | 10711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10714 | if (obj1) { |
c32bde28 | 10715 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10716 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10717 | } |
d14a1e28 RD |
10718 | if (obj2) { |
10719 | { | |
10720 | arg3 = &temp3; | |
10721 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10722 | } | |
10723 | } | |
10724 | if (obj3) { | |
10725 | { | |
10726 | arg4 = &temp4; | |
10727 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10728 | } | |
10729 | } | |
994141e6 | 10730 | if (obj4) { |
c32bde28 | 10731 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 10732 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10733 | } |
d14a1e28 RD |
10734 | if (obj5) { |
10735 | { | |
10736 | arg6 = wxString_in_helper(obj5); | |
10737 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 10738 | temp6 = True; |
d14a1e28 RD |
10739 | } |
10740 | } | |
10741 | { | |
e3b71cb8 | 10742 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10744 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10745 | ||
10746 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10747 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10748 | } |
15afbcd0 | 10749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10750 | { |
10751 | if (temp6) | |
10752 | delete arg6; | |
10753 | } | |
10754 | return resultobj; | |
10755 | fail: | |
10756 | { | |
10757 | if (temp6) | |
10758 | delete arg6; | |
10759 | } | |
10760 | return NULL; | |
10761 | } | |
10762 | ||
10763 | ||
c32bde28 | 10764 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10765 | PyObject *resultobj; |
10766 | wxSpinButton *result; | |
10767 | char *kwnames[] = { | |
10768 | NULL | |
10769 | }; | |
10770 | ||
10771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10772 | { | |
e3b71cb8 | 10773 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10775 | result = (wxSpinButton *)new wxSpinButton(); | |
10776 | ||
10777 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10778 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10779 | } |
15afbcd0 | 10780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10781 | return resultobj; |
10782 | fail: | |
10783 | return NULL; | |
10784 | } | |
10785 | ||
10786 | ||
c32bde28 | 10787 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10788 | PyObject *resultobj; |
10789 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10790 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10791 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10792 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10793 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10794 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10795 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10796 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10797 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10798 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10799 | bool result; | |
10800 | wxPoint temp4 ; | |
10801 | wxSize temp5 ; | |
e811c8ce | 10802 | bool temp7 = False ; |
d14a1e28 RD |
10803 | PyObject * obj0 = 0 ; |
10804 | PyObject * obj1 = 0 ; | |
994141e6 | 10805 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10806 | PyObject * obj3 = 0 ; |
10807 | PyObject * obj4 = 0 ; | |
994141e6 | 10808 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10809 | PyObject * obj6 = 0 ; |
10810 | char *kwnames[] = { | |
10811 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10812 | }; | |
10813 | ||
994141e6 | 10814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10819 | if (obj2) { |
c32bde28 | 10820 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10821 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10822 | } |
d14a1e28 RD |
10823 | if (obj3) { |
10824 | { | |
10825 | arg4 = &temp4; | |
10826 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10827 | } | |
10828 | } | |
10829 | if (obj4) { | |
10830 | { | |
10831 | arg5 = &temp5; | |
10832 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10833 | } | |
10834 | } | |
994141e6 | 10835 | if (obj5) { |
c32bde28 | 10836 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 10837 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10838 | } |
d14a1e28 RD |
10839 | if (obj6) { |
10840 | { | |
10841 | arg7 = wxString_in_helper(obj6); | |
10842 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10843 | temp7 = True; |
d14a1e28 RD |
10844 | } |
10845 | } | |
10846 | { | |
10847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10848 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10849 | ||
10850 | wxPyEndAllowThreads(__tstate); | |
10851 | if (PyErr_Occurred()) SWIG_fail; | |
10852 | } | |
4f89f6a3 RD |
10853 | { |
10854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10855 | } | |
d14a1e28 RD |
10856 | { |
10857 | if (temp7) | |
10858 | delete arg7; | |
10859 | } | |
10860 | return resultobj; | |
10861 | fail: | |
10862 | { | |
10863 | if (temp7) | |
10864 | delete arg7; | |
10865 | } | |
10866 | return NULL; | |
10867 | } | |
10868 | ||
10869 | ||
c32bde28 | 10870 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10871 | PyObject *resultobj; |
10872 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10873 | int result; | |
10874 | PyObject * obj0 = 0 ; | |
10875 | char *kwnames[] = { | |
10876 | (char *) "self", NULL | |
10877 | }; | |
10878 | ||
10879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10882 | { |
10883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10884 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10885 | ||
10886 | wxPyEndAllowThreads(__tstate); | |
10887 | if (PyErr_Occurred()) SWIG_fail; | |
10888 | } | |
c32bde28 | 10889 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10890 | return resultobj; |
10891 | fail: | |
10892 | return NULL; | |
10893 | } | |
10894 | ||
10895 | ||
c32bde28 | 10896 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10897 | PyObject *resultobj; |
10898 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10899 | int result; | |
10900 | PyObject * obj0 = 0 ; | |
10901 | char *kwnames[] = { | |
10902 | (char *) "self", NULL | |
10903 | }; | |
10904 | ||
10905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10908 | { |
10909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10910 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10911 | ||
10912 | wxPyEndAllowThreads(__tstate); | |
10913 | if (PyErr_Occurred()) SWIG_fail; | |
10914 | } | |
c32bde28 | 10915 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10916 | return resultobj; |
10917 | fail: | |
10918 | return NULL; | |
10919 | } | |
10920 | ||
10921 | ||
c32bde28 | 10922 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10923 | PyObject *resultobj; |
10924 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10925 | int result; | |
10926 | PyObject * obj0 = 0 ; | |
10927 | char *kwnames[] = { | |
10928 | (char *) "self", NULL | |
10929 | }; | |
10930 | ||
10931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10934 | { |
10935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10936 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10937 | ||
10938 | wxPyEndAllowThreads(__tstate); | |
10939 | if (PyErr_Occurred()) SWIG_fail; | |
10940 | } | |
c32bde28 | 10941 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10942 | return resultobj; |
10943 | fail: | |
10944 | return NULL; | |
10945 | } | |
10946 | ||
10947 | ||
c32bde28 | 10948 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10949 | PyObject *resultobj; |
10950 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10951 | int arg2 ; | |
10952 | PyObject * obj0 = 0 ; | |
994141e6 | 10953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10954 | char *kwnames[] = { |
10955 | (char *) "self",(char *) "val", NULL | |
10956 | }; | |
10957 | ||
994141e6 | 10958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10961 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10962 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10963 | { |
10964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10965 | (arg1)->SetValue(arg2); | |
10966 | ||
10967 | wxPyEndAllowThreads(__tstate); | |
10968 | if (PyErr_Occurred()) SWIG_fail; | |
10969 | } | |
10970 | Py_INCREF(Py_None); resultobj = Py_None; | |
10971 | return resultobj; | |
10972 | fail: | |
10973 | return NULL; | |
10974 | } | |
10975 | ||
10976 | ||
c32bde28 | 10977 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10978 | PyObject *resultobj; |
10979 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10980 | int arg2 ; | |
10981 | PyObject * obj0 = 0 ; | |
994141e6 | 10982 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10983 | char *kwnames[] = { |
10984 | (char *) "self",(char *) "minVal", NULL | |
10985 | }; | |
10986 | ||
994141e6 | 10987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10990 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10991 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10992 | { |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | (arg1)->SetMin(arg2); | |
10995 | ||
10996 | wxPyEndAllowThreads(__tstate); | |
10997 | if (PyErr_Occurred()) SWIG_fail; | |
10998 | } | |
10999 | Py_INCREF(Py_None); resultobj = Py_None; | |
11000 | return resultobj; | |
11001 | fail: | |
11002 | return NULL; | |
11003 | } | |
11004 | ||
11005 | ||
c32bde28 | 11006 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11007 | PyObject *resultobj; |
11008 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11009 | int arg2 ; | |
11010 | PyObject * obj0 = 0 ; | |
994141e6 | 11011 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11012 | char *kwnames[] = { |
11013 | (char *) "self",(char *) "maxVal", NULL | |
11014 | }; | |
11015 | ||
994141e6 | 11016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11019 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11020 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11021 | { |
11022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11023 | (arg1)->SetMax(arg2); | |
11024 | ||
11025 | wxPyEndAllowThreads(__tstate); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
11027 | } | |
11028 | Py_INCREF(Py_None); resultobj = Py_None; | |
11029 | return resultobj; | |
11030 | fail: | |
11031 | return NULL; | |
11032 | } | |
11033 | ||
11034 | ||
c32bde28 | 11035 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11036 | PyObject *resultobj; |
11037 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11038 | int arg2 ; | |
11039 | int arg3 ; | |
11040 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11041 | PyObject * obj1 = 0 ; |
11042 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11043 | char *kwnames[] = { |
11044 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11045 | }; | |
11046 | ||
994141e6 | 11047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11050 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11051 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11052 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11053 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11054 | { |
15afbcd0 RD |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11056 | (arg1)->SetRange(arg2,arg3); | |
11057 | ||
11058 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
11059 | if (PyErr_Occurred()) SWIG_fail; |
11060 | } | |
22bfe96c RD |
11061 | Py_INCREF(Py_None); resultobj = Py_None; |
11062 | return resultobj; | |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
c32bde28 | 11068 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
11069 | PyObject *resultobj; |
11070 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11071 | bool result; | |
11072 | PyObject * obj0 = 0 ; | |
11073 | char *kwnames[] = { | |
11074 | (char *) "self", NULL | |
11075 | }; | |
11076 | ||
11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
11078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11080 | { | |
11081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11082 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
11083 | ||
11084 | wxPyEndAllowThreads(__tstate); | |
11085 | if (PyErr_Occurred()) SWIG_fail; | |
11086 | } | |
11087 | { | |
11088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11089 | } | |
d14a1e28 RD |
11090 | return resultobj; |
11091 | fail: | |
11092 | return NULL; | |
11093 | } | |
11094 | ||
11095 | ||
c32bde28 | 11096 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11097 | PyObject *resultobj; |
22bfe96c RD |
11098 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
11099 | wxVisualAttributes result; | |
d14a1e28 RD |
11100 | PyObject * obj0 = 0 ; |
11101 | char *kwnames[] = { | |
22bfe96c | 11102 | (char *) "variant", NULL |
d14a1e28 RD |
11103 | }; |
11104 | ||
22bfe96c RD |
11105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
11106 | if (obj0) { | |
c32bde28 | 11107 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
11108 | if (PyErr_Occurred()) SWIG_fail; |
11109 | } | |
d14a1e28 | 11110 | { |
110da5b0 | 11111 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22bfe96c | 11113 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
11114 | |
11115 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11116 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11117 | } |
4f89f6a3 | 11118 | { |
22bfe96c RD |
11119 | wxVisualAttributes * resultptr; |
11120 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11121 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4f89f6a3 | 11122 | } |
d14a1e28 RD |
11123 | return resultobj; |
11124 | fail: | |
11125 | return NULL; | |
11126 | } | |
11127 | ||
11128 | ||
c32bde28 | 11129 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11130 | PyObject *obj; |
11131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11132 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11133 | Py_INCREF(obj); | |
11134 | return Py_BuildValue((char *)""); | |
11135 | } | |
c32bde28 | 11136 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11137 | PyObject *resultobj; |
11138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11139 | int arg2 = (int) -1 ; |
d14a1e28 RD |
11140 | wxString const &arg3_defvalue = wxPyEmptyString ; |
11141 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11142 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11143 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11144 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11145 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11146 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11147 | int arg7 = (int) 0 ; | |
11148 | int arg8 = (int) 100 ; | |
11149 | int arg9 = (int) 0 ; | |
11150 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11151 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11152 | wxSpinCtrl *result; | |
e811c8ce | 11153 | bool temp3 = False ; |
d14a1e28 RD |
11154 | wxPoint temp4 ; |
11155 | wxSize temp5 ; | |
e811c8ce | 11156 | bool temp10 = False ; |
d14a1e28 | 11157 | PyObject * obj0 = 0 ; |
994141e6 | 11158 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11159 | PyObject * obj2 = 0 ; |
11160 | PyObject * obj3 = 0 ; | |
11161 | PyObject * obj4 = 0 ; | |
994141e6 RD |
11162 | PyObject * obj5 = 0 ; |
11163 | PyObject * obj6 = 0 ; | |
11164 | PyObject * obj7 = 0 ; | |
11165 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11166 | PyObject * obj9 = 0 ; |
11167 | char *kwnames[] = { | |
11168 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11169 | }; | |
11170 | ||
994141e6 | 11171 | 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 |
11172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11174 | if (obj1) { |
c32bde28 | 11175 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11176 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11177 | } |
11178 | if (obj2) { | |
d14a1e28 RD |
11179 | { |
11180 | arg3 = wxString_in_helper(obj2); | |
11181 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11182 | temp3 = True; |
d14a1e28 RD |
11183 | } |
11184 | } | |
11185 | if (obj3) { | |
11186 | { | |
11187 | arg4 = &temp4; | |
11188 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11189 | } | |
11190 | } | |
11191 | if (obj4) { | |
11192 | { | |
11193 | arg5 = &temp5; | |
11194 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11195 | } | |
11196 | } | |
994141e6 | 11197 | if (obj5) { |
c32bde28 | 11198 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 11199 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11200 | } |
11201 | if (obj6) { | |
c32bde28 | 11202 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 11203 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11204 | } |
11205 | if (obj7) { | |
c32bde28 | 11206 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 11207 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11208 | } |
11209 | if (obj8) { | |
c32bde28 | 11210 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 11211 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11212 | } |
d14a1e28 RD |
11213 | if (obj9) { |
11214 | { | |
11215 | arg10 = wxString_in_helper(obj9); | |
11216 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11217 | temp10 = True; |
d14a1e28 RD |
11218 | } |
11219 | } | |
11220 | { | |
e3b71cb8 | 11221 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11223 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11224 | ||
11225 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11226 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11227 | } |
15afbcd0 | 11228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11229 | { |
11230 | if (temp3) | |
11231 | delete arg3; | |
11232 | } | |
11233 | { | |
11234 | if (temp10) | |
11235 | delete arg10; | |
11236 | } | |
11237 | return resultobj; | |
11238 | fail: | |
11239 | { | |
11240 | if (temp3) | |
11241 | delete arg3; | |
11242 | } | |
11243 | { | |
11244 | if (temp10) | |
11245 | delete arg10; | |
11246 | } | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
c32bde28 | 11251 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11252 | PyObject *resultobj; |
11253 | wxSpinCtrl *result; | |
11254 | char *kwnames[] = { | |
11255 | NULL | |
11256 | }; | |
11257 | ||
11258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11259 | { | |
e3b71cb8 | 11260 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11262 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11263 | ||
11264 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11265 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11266 | } |
15afbcd0 | 11267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11268 | return resultobj; |
11269 | fail: | |
11270 | return NULL; | |
11271 | } | |
11272 | ||
11273 | ||
c32bde28 | 11274 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11275 | PyObject *resultobj; |
11276 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11277 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11278 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11279 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11280 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11281 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11282 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11283 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11284 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11285 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11286 | int arg8 = (int) 0 ; | |
11287 | int arg9 = (int) 100 ; | |
11288 | int arg10 = (int) 0 ; | |
11289 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11290 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11291 | bool result; | |
e811c8ce | 11292 | bool temp4 = False ; |
d14a1e28 RD |
11293 | wxPoint temp5 ; |
11294 | wxSize temp6 ; | |
e811c8ce | 11295 | bool temp11 = False ; |
d14a1e28 RD |
11296 | PyObject * obj0 = 0 ; |
11297 | PyObject * obj1 = 0 ; | |
994141e6 | 11298 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11299 | PyObject * obj3 = 0 ; |
11300 | PyObject * obj4 = 0 ; | |
11301 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11302 | PyObject * obj6 = 0 ; |
11303 | PyObject * obj7 = 0 ; | |
11304 | PyObject * obj8 = 0 ; | |
11305 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
11306 | PyObject * obj10 = 0 ; |
11307 | char *kwnames[] = { | |
11308 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11309 | }; | |
11310 | ||
994141e6 | 11311 | 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 |
11312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11314 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11316 | if (obj2) { |
c32bde28 | 11317 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11318 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11319 | } |
d14a1e28 RD |
11320 | if (obj3) { |
11321 | { | |
11322 | arg4 = wxString_in_helper(obj3); | |
11323 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11324 | temp4 = True; |
d14a1e28 RD |
11325 | } |
11326 | } | |
11327 | if (obj4) { | |
11328 | { | |
11329 | arg5 = &temp5; | |
11330 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11331 | } | |
11332 | } | |
11333 | if (obj5) { | |
11334 | { | |
11335 | arg6 = &temp6; | |
11336 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11337 | } | |
11338 | } | |
994141e6 | 11339 | if (obj6) { |
c32bde28 | 11340 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 11341 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11342 | } |
11343 | if (obj7) { | |
c32bde28 | 11344 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 11345 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11346 | } |
11347 | if (obj8) { | |
c32bde28 | 11348 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 11349 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11350 | } |
11351 | if (obj9) { | |
c32bde28 | 11352 | arg10 = (int)SWIG_As_int(obj9); |
15afbcd0 | 11353 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11354 | } |
d14a1e28 RD |
11355 | if (obj10) { |
11356 | { | |
11357 | arg11 = wxString_in_helper(obj10); | |
11358 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11359 | temp11 = True; |
d14a1e28 RD |
11360 | } |
11361 | } | |
11362 | { | |
11363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11364 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11365 | ||
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
4f89f6a3 RD |
11369 | { |
11370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11371 | } | |
d14a1e28 RD |
11372 | { |
11373 | if (temp4) | |
11374 | delete arg4; | |
11375 | } | |
11376 | { | |
11377 | if (temp11) | |
11378 | delete arg11; | |
11379 | } | |
11380 | return resultobj; | |
11381 | fail: | |
11382 | { | |
11383 | if (temp4) | |
11384 | delete arg4; | |
11385 | } | |
11386 | { | |
11387 | if (temp11) | |
11388 | delete arg11; | |
11389 | } | |
11390 | return NULL; | |
11391 | } | |
11392 | ||
11393 | ||
c32bde28 | 11394 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11395 | PyObject *resultobj; |
11396 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11397 | int result; | |
11398 | PyObject * obj0 = 0 ; | |
11399 | char *kwnames[] = { | |
11400 | (char *) "self", NULL | |
11401 | }; | |
11402 | ||
11403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11406 | { |
11407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11408 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11409 | ||
11410 | wxPyEndAllowThreads(__tstate); | |
11411 | if (PyErr_Occurred()) SWIG_fail; | |
11412 | } | |
c32bde28 | 11413 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11414 | return resultobj; |
11415 | fail: | |
11416 | return NULL; | |
11417 | } | |
11418 | ||
11419 | ||
c32bde28 | 11420 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11421 | PyObject *resultobj; |
11422 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11423 | int arg2 ; | |
11424 | PyObject * obj0 = 0 ; | |
994141e6 | 11425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11426 | char *kwnames[] = { |
11427 | (char *) "self",(char *) "value", NULL | |
11428 | }; | |
11429 | ||
994141e6 | 11430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11433 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11434 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11435 | { |
11436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11437 | (arg1)->SetValue(arg2); | |
11438 | ||
11439 | wxPyEndAllowThreads(__tstate); | |
11440 | if (PyErr_Occurred()) SWIG_fail; | |
11441 | } | |
11442 | Py_INCREF(Py_None); resultobj = Py_None; | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
c32bde28 | 11449 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11450 | PyObject *resultobj; |
11451 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11452 | wxString *arg2 = 0 ; | |
e811c8ce | 11453 | bool temp2 = False ; |
d14a1e28 RD |
11454 | PyObject * obj0 = 0 ; |
11455 | PyObject * obj1 = 0 ; | |
11456 | char *kwnames[] = { | |
11457 | (char *) "self",(char *) "text", NULL | |
11458 | }; | |
11459 | ||
11460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11463 | { |
11464 | arg2 = wxString_in_helper(obj1); | |
11465 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11466 | temp2 = True; |
d14a1e28 RD |
11467 | } |
11468 | { | |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | (arg1)->SetValue((wxString const &)*arg2); | |
11471 | ||
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
11475 | Py_INCREF(Py_None); resultobj = Py_None; | |
11476 | { | |
11477 | if (temp2) | |
11478 | delete arg2; | |
11479 | } | |
11480 | return resultobj; | |
11481 | fail: | |
11482 | { | |
11483 | if (temp2) | |
11484 | delete arg2; | |
11485 | } | |
11486 | return NULL; | |
11487 | } | |
11488 | ||
11489 | ||
c32bde28 | 11490 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11491 | PyObject *resultobj; |
11492 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11493 | int arg2 ; | |
11494 | int arg3 ; | |
11495 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11496 | PyObject * obj1 = 0 ; |
11497 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11498 | char *kwnames[] = { |
11499 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11500 | }; | |
11501 | ||
994141e6 | 11502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11505 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11506 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11507 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11508 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11509 | { |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11511 | (arg1)->SetRange(arg2,arg3); | |
11512 | ||
11513 | wxPyEndAllowThreads(__tstate); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | Py_INCREF(Py_None); resultobj = Py_None; | |
11517 | return resultobj; | |
11518 | fail: | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
c32bde28 | 11523 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11524 | PyObject *resultobj; |
11525 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11526 | int result; | |
11527 | PyObject * obj0 = 0 ; | |
11528 | char *kwnames[] = { | |
11529 | (char *) "self", NULL | |
11530 | }; | |
11531 | ||
11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11535 | { |
11536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11537 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11538 | ||
11539 | wxPyEndAllowThreads(__tstate); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
c32bde28 | 11542 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11543 | return resultobj; |
11544 | fail: | |
11545 | return NULL; | |
11546 | } | |
11547 | ||
11548 | ||
c32bde28 | 11549 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11550 | PyObject *resultobj; |
11551 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11552 | int result; | |
11553 | PyObject * obj0 = 0 ; | |
11554 | char *kwnames[] = { | |
11555 | (char *) "self", NULL | |
11556 | }; | |
11557 | ||
11558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11561 | { |
11562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11563 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11564 | ||
11565 | wxPyEndAllowThreads(__tstate); | |
11566 | if (PyErr_Occurred()) SWIG_fail; | |
11567 | } | |
c32bde28 | 11568 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11569 | return resultobj; |
11570 | fail: | |
11571 | return NULL; | |
11572 | } | |
11573 | ||
11574 | ||
c32bde28 | 11575 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11576 | PyObject *resultobj; |
11577 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11578 | long arg2 ; | |
11579 | long arg3 ; | |
11580 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11581 | PyObject * obj1 = 0 ; |
11582 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11583 | char *kwnames[] = { |
11584 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11585 | }; | |
11586 | ||
994141e6 | 11587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11590 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 11591 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11592 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 11593 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11594 | { |
11595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 11596 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
11597 | |
11598 | wxPyEndAllowThreads(__tstate); | |
11599 | if (PyErr_Occurred()) SWIG_fail; | |
11600 | } | |
11601 | Py_INCREF(Py_None); resultobj = Py_None; | |
11602 | return resultobj; | |
11603 | fail: | |
11604 | return NULL; | |
11605 | } | |
11606 | ||
11607 | ||
c32bde28 | 11608 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
11609 | PyObject *resultobj; |
11610 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11611 | wxVisualAttributes result; | |
11612 | PyObject * obj0 = 0 ; | |
11613 | char *kwnames[] = { | |
11614 | (char *) "variant", NULL | |
11615 | }; | |
11616 | ||
11617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11618 | if (obj0) { | |
c32bde28 | 11619 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
11620 | if (PyErr_Occurred()) SWIG_fail; |
11621 | } | |
11622 | { | |
110da5b0 | 11623 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
11624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11625 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11626 | ||
11627 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11628 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11629 | } |
11630 | { | |
11631 | wxVisualAttributes * resultptr; | |
11632 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11634 | } | |
11635 | return resultobj; | |
11636 | fail: | |
11637 | return NULL; | |
11638 | } | |
11639 | ||
11640 | ||
c32bde28 | 11641 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11642 | PyObject *obj; |
11643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11644 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11645 | Py_INCREF(obj); | |
11646 | return Py_BuildValue((char *)""); | |
11647 | } | |
c32bde28 | 11648 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11649 | PyObject *resultobj; |
11650 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11651 | int arg2 = (int) 0 ; | |
11652 | wxSpinEvent *result; | |
994141e6 RD |
11653 | PyObject * obj0 = 0 ; |
11654 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
11655 | char *kwnames[] = { |
11656 | (char *) "commandType",(char *) "winid", NULL | |
11657 | }; | |
11658 | ||
994141e6 RD |
11659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
11660 | if (obj0) { | |
c32bde28 | 11661 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 11662 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11663 | } |
11664 | if (obj1) { | |
c32bde28 | 11665 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11666 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11667 | } |
d1e20054 RD |
11668 | { |
11669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11670 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11671 | ||
11672 | wxPyEndAllowThreads(__tstate); | |
11673 | if (PyErr_Occurred()) SWIG_fail; | |
11674 | } | |
15afbcd0 | 11675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
11676 | return resultobj; |
11677 | fail: | |
11678 | return NULL; | |
11679 | } | |
11680 | ||
11681 | ||
c32bde28 | 11682 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11683 | PyObject *resultobj; |
11684 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11685 | int result; | |
11686 | PyObject * obj0 = 0 ; | |
11687 | char *kwnames[] = { | |
11688 | (char *) "self", NULL | |
11689 | }; | |
11690 | ||
11691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d1e20054 RD |
11694 | { |
11695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11696 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11697 | ||
11698 | wxPyEndAllowThreads(__tstate); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
c32bde28 | 11701 | resultobj = SWIG_From_int((int)result); |
d1e20054 RD |
11702 | return resultobj; |
11703 | fail: | |
11704 | return NULL; | |
11705 | } | |
11706 | ||
11707 | ||
c32bde28 | 11708 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11709 | PyObject *resultobj; |
11710 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11711 | int arg2 ; | |
11712 | PyObject * obj0 = 0 ; | |
994141e6 | 11713 | PyObject * obj1 = 0 ; |
d1e20054 RD |
11714 | char *kwnames[] = { |
11715 | (char *) "self",(char *) "pos", NULL | |
11716 | }; | |
11717 | ||
994141e6 | 11718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11721 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11722 | if (PyErr_Occurred()) SWIG_fail; |
d1e20054 RD |
11723 | { |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | (arg1)->SetPosition(arg2); | |
11726 | ||
11727 | wxPyEndAllowThreads(__tstate); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
11730 | Py_INCREF(Py_None); resultobj = Py_None; | |
11731 | return resultobj; | |
11732 | fail: | |
11733 | return NULL; | |
11734 | } | |
11735 | ||
11736 | ||
c32bde28 | 11737 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d1e20054 RD |
11738 | PyObject *obj; |
11739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11740 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11741 | Py_INCREF(obj); | |
11742 | return Py_BuildValue((char *)""); | |
11743 | } | |
c32bde28 | 11744 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
11745 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
11746 | return 1; | |
11747 | } | |
11748 | ||
11749 | ||
11750 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11751 | PyObject *pyobj; | |
11752 | ||
11753 | { | |
11754 | #if wxUSE_UNICODE | |
11755 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11756 | #else | |
11757 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11758 | #endif | |
11759 | } | |
11760 | return pyobj; | |
11761 | } | |
11762 | ||
11763 | ||
c32bde28 | 11764 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
11765 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
11766 | return 1; | |
11767 | } | |
11768 | ||
11769 | ||
11770 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11771 | PyObject *pyobj; | |
11772 | ||
11773 | { | |
11774 | #if wxUSE_UNICODE | |
11775 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11776 | #else | |
11777 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11778 | #endif | |
11779 | } | |
11780 | return pyobj; | |
11781 | } | |
11782 | ||
11783 | ||
c32bde28 | 11784 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11785 | PyObject *resultobj; |
11786 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
11787 | int arg2 = (int) -1 ; |
11788 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11789 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
11790 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11791 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11792 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11793 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
11794 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11795 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11796 | int arg7 = (int) 0 ; | |
11797 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11798 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11799 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11800 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11801 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11802 | wxRadioBox *result; |
e811c8ce | 11803 | bool temp3 = False ; |
d14a1e28 RD |
11804 | wxPoint temp4 ; |
11805 | wxSize temp5 ; | |
3adfb63b | 11806 | bool temp6 = False ; |
e811c8ce | 11807 | bool temp10 = False ; |
d14a1e28 | 11808 | PyObject * obj0 = 0 ; |
994141e6 | 11809 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11810 | PyObject * obj2 = 0 ; |
11811 | PyObject * obj3 = 0 ; | |
11812 | PyObject * obj4 = 0 ; | |
11813 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11814 | PyObject * obj6 = 0 ; |
11815 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11816 | PyObject * obj8 = 0 ; |
11817 | PyObject * obj9 = 0 ; | |
11818 | char *kwnames[] = { | |
994141e6 | 11819 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11820 | }; |
11821 | ||
248ed943 | 11822 | 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 |
11823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 11825 | if (obj1) { |
c32bde28 | 11826 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
11827 | if (PyErr_Occurred()) SWIG_fail; |
11828 | } | |
11829 | if (obj2) { | |
11830 | { | |
11831 | arg3 = wxString_in_helper(obj2); | |
11832 | if (arg3 == NULL) SWIG_fail; | |
11833 | temp3 = True; | |
11834 | } | |
d14a1e28 RD |
11835 | } |
11836 | if (obj3) { | |
11837 | { | |
11838 | arg4 = &temp4; | |
11839 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11840 | } | |
11841 | } | |
11842 | if (obj4) { | |
11843 | { | |
11844 | arg5 = &temp5; | |
11845 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11846 | } | |
11847 | } | |
11848 | if (obj5) { | |
11849 | { | |
4d5c3d91 RD |
11850 | if (! PySequence_Check(obj5)) { |
11851 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11852 | SWIG_fail; | |
11853 | } | |
11854 | arg6 = new wxArrayString; | |
3adfb63b | 11855 | temp6 = True; |
4d5c3d91 RD |
11856 | int i, len=PySequence_Length(obj5); |
11857 | for (i=0; i<len; i++) { | |
11858 | PyObject* item = PySequence_GetItem(obj5, i); | |
11859 | #if wxUSE_UNICODE | |
11860 | PyObject* str = PyObject_Unicode(item); | |
11861 | #else | |
11862 | PyObject* str = PyObject_Str(item); | |
11863 | #endif | |
74a57fcd | 11864 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11865 | arg6->Add(Py2wxString(str)); |
11866 | Py_DECREF(item); | |
11867 | Py_DECREF(str); | |
11868 | } | |
d14a1e28 RD |
11869 | } |
11870 | } | |
994141e6 | 11871 | if (obj6) { |
c32bde28 | 11872 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 11873 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11874 | } |
11875 | if (obj7) { | |
c32bde28 | 11876 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 11877 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11878 | } |
d14a1e28 | 11879 | if (obj8) { |
15afbcd0 RD |
11880 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11881 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11882 | SWIG_fail; | |
4d5c3d91 | 11883 | if (arg9 == NULL) { |
15afbcd0 RD |
11884 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11885 | SWIG_fail; | |
d14a1e28 RD |
11886 | } |
11887 | } | |
11888 | if (obj9) { | |
11889 | { | |
4d5c3d91 RD |
11890 | arg10 = wxString_in_helper(obj9); |
11891 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11892 | temp10 = True; |
d14a1e28 RD |
11893 | } |
11894 | } | |
11895 | { | |
e3b71cb8 | 11896 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 11898 | 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 |
11899 | |
11900 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11901 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11902 | } |
15afbcd0 | 11903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11904 | { |
11905 | if (temp3) | |
11906 | delete arg3; | |
11907 | } | |
11908 | { | |
3adfb63b | 11909 | if (temp6) delete arg6; |
d14a1e28 RD |
11910 | } |
11911 | { | |
11912 | if (temp10) | |
4d5c3d91 | 11913 | delete arg10; |
d14a1e28 RD |
11914 | } |
11915 | return resultobj; | |
11916 | fail: | |
11917 | { | |
11918 | if (temp3) | |
11919 | delete arg3; | |
11920 | } | |
11921 | { | |
3adfb63b | 11922 | if (temp6) delete arg6; |
d14a1e28 RD |
11923 | } |
11924 | { | |
11925 | if (temp10) | |
4d5c3d91 | 11926 | delete arg10; |
d14a1e28 RD |
11927 | } |
11928 | return NULL; | |
11929 | } | |
11930 | ||
11931 | ||
c32bde28 | 11932 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11933 | PyObject *resultobj; |
11934 | wxRadioBox *result; | |
11935 | char *kwnames[] = { | |
11936 | NULL | |
11937 | }; | |
11938 | ||
11939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11940 | { | |
e3b71cb8 | 11941 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11943 | result = (wxRadioBox *)new wxRadioBox(); | |
11944 | ||
11945 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11946 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11947 | } |
15afbcd0 | 11948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11949 | return resultobj; |
11950 | fail: | |
11951 | return NULL; | |
11952 | } | |
11953 | ||
11954 | ||
c32bde28 | 11955 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11956 | PyObject *resultobj; |
11957 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11958 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
11959 | int arg3 = (int) -1 ; |
11960 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11961 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
11962 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11963 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11964 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11965 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
11966 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11967 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11968 | int arg8 = (int) 0 ; | |
11969 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11970 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11971 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11972 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11973 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11974 | bool result; |
e811c8ce | 11975 | bool temp4 = False ; |
d14a1e28 RD |
11976 | wxPoint temp5 ; |
11977 | wxSize temp6 ; | |
3adfb63b | 11978 | bool temp7 = False ; |
e811c8ce | 11979 | bool temp11 = False ; |
d14a1e28 RD |
11980 | PyObject * obj0 = 0 ; |
11981 | PyObject * obj1 = 0 ; | |
994141e6 | 11982 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11983 | PyObject * obj3 = 0 ; |
11984 | PyObject * obj4 = 0 ; | |
11985 | PyObject * obj5 = 0 ; | |
11986 | PyObject * obj6 = 0 ; | |
994141e6 RD |
11987 | PyObject * obj7 = 0 ; |
11988 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11989 | PyObject * obj9 = 0 ; |
11990 | PyObject * obj10 = 0 ; | |
11991 | char *kwnames[] = { | |
994141e6 | 11992 | (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 |
11993 | }; |
11994 | ||
248ed943 | 11995 | 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 |
11996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12000 | if (obj2) { |
c32bde28 | 12001 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12002 | if (PyErr_Occurred()) SWIG_fail; |
12003 | } | |
12004 | if (obj3) { | |
12005 | { | |
12006 | arg4 = wxString_in_helper(obj3); | |
12007 | if (arg4 == NULL) SWIG_fail; | |
12008 | temp4 = True; | |
12009 | } | |
d14a1e28 RD |
12010 | } |
12011 | if (obj4) { | |
12012 | { | |
12013 | arg5 = &temp5; | |
12014 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12015 | } | |
12016 | } | |
12017 | if (obj5) { | |
12018 | { | |
12019 | arg6 = &temp6; | |
12020 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12021 | } | |
12022 | } | |
12023 | if (obj6) { | |
12024 | { | |
4d5c3d91 RD |
12025 | if (! PySequence_Check(obj6)) { |
12026 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12027 | SWIG_fail; | |
12028 | } | |
12029 | arg7 = new wxArrayString; | |
3adfb63b | 12030 | temp7 = True; |
4d5c3d91 RD |
12031 | int i, len=PySequence_Length(obj6); |
12032 | for (i=0; i<len; i++) { | |
12033 | PyObject* item = PySequence_GetItem(obj6, i); | |
12034 | #if wxUSE_UNICODE | |
12035 | PyObject* str = PyObject_Unicode(item); | |
12036 | #else | |
12037 | PyObject* str = PyObject_Str(item); | |
12038 | #endif | |
74a57fcd | 12039 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
12040 | arg7->Add(Py2wxString(str)); |
12041 | Py_DECREF(item); | |
12042 | Py_DECREF(str); | |
12043 | } | |
d14a1e28 RD |
12044 | } |
12045 | } | |
994141e6 | 12046 | if (obj7) { |
c32bde28 | 12047 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 12048 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12049 | } |
12050 | if (obj8) { | |
c32bde28 | 12051 | arg9 = (long)SWIG_As_long(obj8); |
15afbcd0 | 12052 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12053 | } |
d14a1e28 | 12054 | if (obj9) { |
15afbcd0 RD |
12055 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12057 | SWIG_fail; | |
4d5c3d91 | 12058 | if (arg10 == NULL) { |
15afbcd0 RD |
12059 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12060 | SWIG_fail; | |
d14a1e28 RD |
12061 | } |
12062 | } | |
12063 | if (obj10) { | |
12064 | { | |
4d5c3d91 RD |
12065 | arg11 = wxString_in_helper(obj10); |
12066 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 12067 | temp11 = True; |
d14a1e28 RD |
12068 | } |
12069 | } | |
12070 | { | |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 12072 | 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 |
12073 | |
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
4f89f6a3 RD |
12077 | { |
12078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12079 | } | |
d14a1e28 RD |
12080 | { |
12081 | if (temp4) | |
12082 | delete arg4; | |
12083 | } | |
12084 | { | |
3adfb63b | 12085 | if (temp7) delete arg7; |
d14a1e28 RD |
12086 | } |
12087 | { | |
12088 | if (temp11) | |
4d5c3d91 | 12089 | delete arg11; |
d14a1e28 RD |
12090 | } |
12091 | return resultobj; | |
12092 | fail: | |
12093 | { | |
12094 | if (temp4) | |
12095 | delete arg4; | |
12096 | } | |
12097 | { | |
3adfb63b | 12098 | if (temp7) delete arg7; |
d14a1e28 RD |
12099 | } |
12100 | { | |
12101 | if (temp11) | |
4d5c3d91 | 12102 | delete arg11; |
d14a1e28 RD |
12103 | } |
12104 | return NULL; | |
12105 | } | |
12106 | ||
12107 | ||
c32bde28 | 12108 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12109 | PyObject *resultobj; |
12110 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12111 | int arg2 ; | |
12112 | PyObject * obj0 = 0 ; | |
994141e6 | 12113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12114 | char *kwnames[] = { |
12115 | (char *) "self",(char *) "n", NULL | |
12116 | }; | |
12117 | ||
994141e6 | 12118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12121 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12122 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12123 | { |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | (arg1)->SetSelection(arg2); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | Py_INCREF(Py_None); resultobj = Py_None; | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
c32bde28 | 12137 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12138 | PyObject *resultobj; |
12139 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12140 | int result; | |
12141 | PyObject * obj0 = 0 ; | |
12142 | char *kwnames[] = { | |
12143 | (char *) "self", NULL | |
12144 | }; | |
12145 | ||
12146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12149 | { |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
c32bde28 | 12156 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12157 | return resultobj; |
12158 | fail: | |
12159 | return NULL; | |
12160 | } | |
12161 | ||
12162 | ||
c32bde28 | 12163 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12164 | PyObject *resultobj; |
12165 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12166 | wxString result; | |
12167 | PyObject * obj0 = 0 ; | |
12168 | char *kwnames[] = { | |
12169 | (char *) "self", NULL | |
12170 | }; | |
12171 | ||
12172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12175 | { |
12176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12177 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12178 | ||
12179 | wxPyEndAllowThreads(__tstate); | |
12180 | if (PyErr_Occurred()) SWIG_fail; | |
12181 | } | |
12182 | { | |
12183 | #if wxUSE_UNICODE | |
12184 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12185 | #else | |
12186 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12187 | #endif | |
12188 | } | |
12189 | return resultobj; | |
12190 | fail: | |
12191 | return NULL; | |
12192 | } | |
12193 | ||
12194 | ||
c32bde28 | 12195 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12196 | PyObject *resultobj; |
12197 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12198 | wxString *arg2 = 0 ; | |
12199 | bool result; | |
e811c8ce | 12200 | bool temp2 = False ; |
d14a1e28 RD |
12201 | PyObject * obj0 = 0 ; |
12202 | PyObject * obj1 = 0 ; | |
12203 | char *kwnames[] = { | |
12204 | (char *) "self",(char *) "s", NULL | |
12205 | }; | |
12206 | ||
12207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12210 | { |
12211 | arg2 = wxString_in_helper(obj1); | |
12212 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12213 | temp2 = True; |
d14a1e28 RD |
12214 | } |
12215 | { | |
12216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12217 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12218 | ||
12219 | wxPyEndAllowThreads(__tstate); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | } | |
4f89f6a3 RD |
12222 | { |
12223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12224 | } | |
d14a1e28 RD |
12225 | { |
12226 | if (temp2) | |
12227 | delete arg2; | |
12228 | } | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | { | |
12232 | if (temp2) | |
12233 | delete arg2; | |
12234 | } | |
12235 | return NULL; | |
12236 | } | |
12237 | ||
12238 | ||
c32bde28 | 12239 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12240 | PyObject *resultobj; |
12241 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12242 | int result; | |
12243 | PyObject * obj0 = 0 ; | |
12244 | char *kwnames[] = { | |
12245 | (char *) "self", NULL | |
12246 | }; | |
12247 | ||
12248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12251 | { |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
c32bde28 | 12258 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12259 | return resultobj; |
12260 | fail: | |
12261 | return NULL; | |
12262 | } | |
12263 | ||
12264 | ||
c32bde28 | 12265 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12266 | PyObject *resultobj; |
12267 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12268 | wxString *arg2 = 0 ; | |
12269 | int result; | |
e811c8ce | 12270 | bool temp2 = False ; |
d14a1e28 RD |
12271 | PyObject * obj0 = 0 ; |
12272 | PyObject * obj1 = 0 ; | |
12273 | char *kwnames[] = { | |
12274 | (char *) "self",(char *) "s", NULL | |
12275 | }; | |
12276 | ||
12277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12280 | { |
12281 | arg2 = wxString_in_helper(obj1); | |
12282 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12283 | temp2 = True; |
d14a1e28 RD |
12284 | } |
12285 | { | |
12286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12287 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12288 | ||
12289 | wxPyEndAllowThreads(__tstate); | |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
12291 | } | |
c32bde28 | 12292 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12293 | { |
12294 | if (temp2) | |
12295 | delete arg2; | |
12296 | } | |
12297 | return resultobj; | |
12298 | fail: | |
12299 | { | |
12300 | if (temp2) | |
12301 | delete arg2; | |
12302 | } | |
12303 | return NULL; | |
12304 | } | |
12305 | ||
12306 | ||
c32bde28 | 12307 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12308 | PyObject *resultobj; |
12309 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12310 | int arg2 ; | |
12311 | wxString result; | |
12312 | PyObject * obj0 = 0 ; | |
994141e6 | 12313 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12314 | char *kwnames[] = { |
12315 | (char *) "self",(char *) "n", NULL | |
12316 | }; | |
12317 | ||
994141e6 | 12318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12321 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12322 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12323 | { |
12324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12325 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12326 | ||
12327 | wxPyEndAllowThreads(__tstate); | |
12328 | if (PyErr_Occurred()) SWIG_fail; | |
12329 | } | |
12330 | { | |
12331 | #if wxUSE_UNICODE | |
12332 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12333 | #else | |
12334 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12335 | #endif | |
12336 | } | |
12337 | return resultobj; | |
12338 | fail: | |
12339 | return NULL; | |
12340 | } | |
12341 | ||
12342 | ||
c32bde28 | 12343 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12344 | PyObject *resultobj; |
12345 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12346 | int arg2 ; | |
12347 | wxString *arg3 = 0 ; | |
e811c8ce | 12348 | bool temp3 = False ; |
d14a1e28 | 12349 | PyObject * obj0 = 0 ; |
994141e6 | 12350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12351 | PyObject * obj2 = 0 ; |
12352 | char *kwnames[] = { | |
12353 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12354 | }; | |
12355 | ||
994141e6 | 12356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12359 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12360 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12361 | { |
12362 | arg3 = wxString_in_helper(obj2); | |
12363 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12364 | temp3 = True; |
d14a1e28 RD |
12365 | } |
12366 | { | |
12367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12368 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12369 | ||
12370 | wxPyEndAllowThreads(__tstate); | |
12371 | if (PyErr_Occurred()) SWIG_fail; | |
12372 | } | |
12373 | Py_INCREF(Py_None); resultobj = Py_None; | |
12374 | { | |
12375 | if (temp3) | |
12376 | delete arg3; | |
12377 | } | |
12378 | return resultobj; | |
12379 | fail: | |
12380 | { | |
12381 | if (temp3) | |
12382 | delete arg3; | |
12383 | } | |
12384 | return NULL; | |
12385 | } | |
12386 | ||
12387 | ||
c32bde28 | 12388 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12389 | PyObject *resultobj; |
12390 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12391 | int arg2 ; | |
e811c8ce | 12392 | bool arg3 = (bool) True ; |
d14a1e28 | 12393 | PyObject * obj0 = 0 ; |
994141e6 | 12394 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12395 | PyObject * obj2 = 0 ; |
12396 | char *kwnames[] = { | |
12397 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12398 | }; | |
12399 | ||
994141e6 | 12400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12403 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12404 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12405 | if (obj2) { |
c32bde28 | 12406 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 12407 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12408 | } |
12409 | { | |
12410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12411 | (arg1)->Enable(arg2,arg3); | |
12412 | ||
12413 | wxPyEndAllowThreads(__tstate); | |
12414 | if (PyErr_Occurred()) SWIG_fail; | |
12415 | } | |
12416 | Py_INCREF(Py_None); resultobj = Py_None; | |
12417 | return resultobj; | |
12418 | fail: | |
12419 | return NULL; | |
12420 | } | |
12421 | ||
12422 | ||
c32bde28 | 12423 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12424 | PyObject *resultobj; |
12425 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12426 | int arg2 ; | |
e811c8ce | 12427 | bool arg3 = (bool) True ; |
d14a1e28 | 12428 | PyObject * obj0 = 0 ; |
994141e6 | 12429 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12430 | PyObject * obj2 = 0 ; |
12431 | char *kwnames[] = { | |
12432 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12433 | }; | |
12434 | ||
994141e6 | 12435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12438 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12439 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12440 | if (obj2) { |
c32bde28 | 12441 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 12442 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12443 | } |
12444 | { | |
12445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12446 | (arg1)->Show(arg2,arg3); | |
12447 | ||
12448 | wxPyEndAllowThreads(__tstate); | |
12449 | if (PyErr_Occurred()) SWIG_fail; | |
12450 | } | |
12451 | Py_INCREF(Py_None); resultobj = Py_None; | |
12452 | return resultobj; | |
12453 | fail: | |
12454 | return NULL; | |
12455 | } | |
12456 | ||
12457 | ||
c32bde28 | 12458 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12459 | PyObject *resultobj; |
12460 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12461 | int result; | |
12462 | PyObject * obj0 = 0 ; | |
12463 | char *kwnames[] = { | |
12464 | (char *) "self", NULL | |
12465 | }; | |
12466 | ||
12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12470 | { |
12471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12472 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
12473 | ||
12474 | wxPyEndAllowThreads(__tstate); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
c32bde28 | 12477 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12478 | return resultobj; |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
c32bde28 | 12484 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12485 | PyObject *resultobj; |
12486 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12487 | int result; | |
12488 | PyObject * obj0 = 0 ; | |
12489 | char *kwnames[] = { | |
12490 | (char *) "self", NULL | |
12491 | }; | |
12492 | ||
12493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12496 | { |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
c32bde28 | 12503 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12504 | return resultobj; |
12505 | fail: | |
12506 | return NULL; | |
12507 | } | |
12508 | ||
12509 | ||
c32bde28 | 12510 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12511 | PyObject *resultobj; |
12512 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12513 | int arg2 ; | |
12514 | int arg3 ; | |
12515 | long arg4 ; | |
12516 | int result; | |
12517 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12518 | PyObject * obj1 = 0 ; |
12519 | PyObject * obj2 = 0 ; | |
12520 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12521 | char *kwnames[] = { |
12522 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12523 | }; | |
12524 | ||
994141e6 | 12525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12528 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12529 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12530 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12531 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12532 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 12533 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12534 | { |
12535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12536 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
12537 | ||
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
c32bde28 | 12541 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12542 | return resultobj; |
12543 | fail: | |
12544 | return NULL; | |
12545 | } | |
12546 | ||
12547 | ||
c32bde28 | 12548 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
12549 | PyObject *resultobj; |
12550 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12551 | wxVisualAttributes result; | |
12552 | PyObject * obj0 = 0 ; | |
12553 | char *kwnames[] = { | |
12554 | (char *) "variant", NULL | |
12555 | }; | |
12556 | ||
12557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12558 | if (obj0) { | |
c32bde28 | 12559 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
12560 | if (PyErr_Occurred()) SWIG_fail; |
12561 | } | |
12562 | { | |
110da5b0 | 12563 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12565 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12566 | ||
12567 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12568 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12569 | } |
12570 | { | |
12571 | wxVisualAttributes * resultptr; | |
12572 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12574 | } | |
12575 | return resultobj; | |
12576 | fail: | |
12577 | return NULL; | |
12578 | } | |
12579 | ||
12580 | ||
c32bde28 | 12581 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12582 | PyObject *obj; |
12583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12584 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12585 | Py_INCREF(obj); | |
12586 | return Py_BuildValue((char *)""); | |
12587 | } | |
c32bde28 | 12588 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12589 | PyObject *resultobj; |
12590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12591 | int arg2 = (int) -1 ; |
12592 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12593 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
12594 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12595 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12596 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12597 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12598 | long arg6 = (long) 0 ; | |
12599 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12600 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12601 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12602 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12603 | wxRadioButton *result; | |
e811c8ce | 12604 | bool temp3 = False ; |
d14a1e28 RD |
12605 | wxPoint temp4 ; |
12606 | wxSize temp5 ; | |
e811c8ce | 12607 | bool temp8 = False ; |
d14a1e28 | 12608 | PyObject * obj0 = 0 ; |
994141e6 | 12609 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12610 | PyObject * obj2 = 0 ; |
12611 | PyObject * obj3 = 0 ; | |
12612 | PyObject * obj4 = 0 ; | |
994141e6 | 12613 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12614 | PyObject * obj6 = 0 ; |
12615 | PyObject * obj7 = 0 ; | |
12616 | char *kwnames[] = { | |
12617 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12618 | }; | |
12619 | ||
248ed943 | 12620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12623 | if (obj1) { |
c32bde28 | 12624 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12625 | if (PyErr_Occurred()) SWIG_fail; |
12626 | } | |
12627 | if (obj2) { | |
12628 | { | |
12629 | arg3 = wxString_in_helper(obj2); | |
12630 | if (arg3 == NULL) SWIG_fail; | |
12631 | temp3 = True; | |
12632 | } | |
d14a1e28 RD |
12633 | } |
12634 | if (obj3) { | |
12635 | { | |
12636 | arg4 = &temp4; | |
12637 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12638 | } | |
12639 | } | |
12640 | if (obj4) { | |
12641 | { | |
12642 | arg5 = &temp5; | |
12643 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12644 | } | |
12645 | } | |
994141e6 | 12646 | if (obj5) { |
c32bde28 | 12647 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 12648 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12649 | } |
d14a1e28 | 12650 | if (obj6) { |
15afbcd0 RD |
12651 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
12652 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12653 | SWIG_fail; | |
d14a1e28 | 12654 | if (arg7 == NULL) { |
15afbcd0 RD |
12655 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12656 | SWIG_fail; | |
d14a1e28 RD |
12657 | } |
12658 | } | |
12659 | if (obj7) { | |
12660 | { | |
12661 | arg8 = wxString_in_helper(obj7); | |
12662 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 12663 | temp8 = True; |
d14a1e28 RD |
12664 | } |
12665 | } | |
12666 | { | |
e3b71cb8 | 12667 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12669 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12670 | ||
12671 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12672 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12673 | } |
15afbcd0 | 12674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12675 | { |
12676 | if (temp3) | |
12677 | delete arg3; | |
12678 | } | |
12679 | { | |
12680 | if (temp8) | |
12681 | delete arg8; | |
12682 | } | |
12683 | return resultobj; | |
12684 | fail: | |
12685 | { | |
12686 | if (temp3) | |
12687 | delete arg3; | |
12688 | } | |
12689 | { | |
12690 | if (temp8) | |
12691 | delete arg8; | |
12692 | } | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
c32bde28 | 12697 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12698 | PyObject *resultobj; |
12699 | wxRadioButton *result; | |
12700 | char *kwnames[] = { | |
12701 | NULL | |
12702 | }; | |
12703 | ||
12704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12705 | { | |
e3b71cb8 | 12706 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12708 | result = (wxRadioButton *)new wxRadioButton(); | |
12709 | ||
12710 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12711 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12712 | } |
15afbcd0 | 12713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12714 | return resultobj; |
12715 | fail: | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
c32bde28 | 12720 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12721 | PyObject *resultobj; |
12722 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12723 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12724 | int arg3 = (int) -1 ; |
12725 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12726 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
12727 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12728 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12729 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12730 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12731 | long arg7 = (long) 0 ; | |
12732 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12733 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12734 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12735 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12736 | bool result; | |
e811c8ce | 12737 | bool temp4 = False ; |
d14a1e28 RD |
12738 | wxPoint temp5 ; |
12739 | wxSize temp6 ; | |
e811c8ce | 12740 | bool temp9 = False ; |
d14a1e28 RD |
12741 | PyObject * obj0 = 0 ; |
12742 | PyObject * obj1 = 0 ; | |
994141e6 | 12743 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12744 | PyObject * obj3 = 0 ; |
12745 | PyObject * obj4 = 0 ; | |
12746 | PyObject * obj5 = 0 ; | |
994141e6 | 12747 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12748 | PyObject * obj7 = 0 ; |
12749 | PyObject * obj8 = 0 ; | |
12750 | char *kwnames[] = { | |
12751 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12752 | }; | |
12753 | ||
248ed943 | 12754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
12755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12759 | if (obj2) { |
c32bde28 | 12760 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12761 | if (PyErr_Occurred()) SWIG_fail; |
12762 | } | |
12763 | if (obj3) { | |
12764 | { | |
12765 | arg4 = wxString_in_helper(obj3); | |
12766 | if (arg4 == NULL) SWIG_fail; | |
12767 | temp4 = True; | |
12768 | } | |
d14a1e28 RD |
12769 | } |
12770 | if (obj4) { | |
12771 | { | |
12772 | arg5 = &temp5; | |
12773 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12774 | } | |
12775 | } | |
12776 | if (obj5) { | |
12777 | { | |
12778 | arg6 = &temp6; | |
12779 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12780 | } | |
12781 | } | |
994141e6 | 12782 | if (obj6) { |
c32bde28 | 12783 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 12784 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12785 | } |
d14a1e28 | 12786 | if (obj7) { |
15afbcd0 RD |
12787 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
12788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12789 | SWIG_fail; | |
d14a1e28 | 12790 | if (arg8 == NULL) { |
15afbcd0 RD |
12791 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12792 | SWIG_fail; | |
d14a1e28 RD |
12793 | } |
12794 | } | |
12795 | if (obj8) { | |
12796 | { | |
12797 | arg9 = wxString_in_helper(obj8); | |
12798 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 12799 | temp9 = True; |
d14a1e28 RD |
12800 | } |
12801 | } | |
12802 | { | |
12803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12804 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12805 | ||
12806 | wxPyEndAllowThreads(__tstate); | |
12807 | if (PyErr_Occurred()) SWIG_fail; | |
12808 | } | |
4f89f6a3 RD |
12809 | { |
12810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12811 | } | |
d14a1e28 RD |
12812 | { |
12813 | if (temp4) | |
12814 | delete arg4; | |
12815 | } | |
12816 | { | |
12817 | if (temp9) | |
12818 | delete arg9; | |
12819 | } | |
12820 | return resultobj; | |
12821 | fail: | |
12822 | { | |
12823 | if (temp4) | |
12824 | delete arg4; | |
12825 | } | |
12826 | { | |
12827 | if (temp9) | |
12828 | delete arg9; | |
12829 | } | |
12830 | return NULL; | |
12831 | } | |
12832 | ||
12833 | ||
c32bde28 | 12834 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12835 | PyObject *resultobj; |
12836 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12837 | bool result; | |
12838 | PyObject * obj0 = 0 ; | |
12839 | char *kwnames[] = { | |
12840 | (char *) "self", NULL | |
12841 | }; | |
12842 | ||
12843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12846 | { |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | result = (bool)(arg1)->GetValue(); | |
12849 | ||
12850 | wxPyEndAllowThreads(__tstate); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
4f89f6a3 RD |
12853 | { |
12854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12855 | } | |
d14a1e28 RD |
12856 | return resultobj; |
12857 | fail: | |
12858 | return NULL; | |
12859 | } | |
12860 | ||
12861 | ||
c32bde28 | 12862 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12863 | PyObject *resultobj; |
12864 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12865 | bool arg2 ; | |
12866 | PyObject * obj0 = 0 ; | |
12867 | PyObject * obj1 = 0 ; | |
12868 | char *kwnames[] = { | |
12869 | (char *) "self",(char *) "value", NULL | |
12870 | }; | |
12871 | ||
12872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12875 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 12876 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12877 | { |
12878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12879 | (arg1)->SetValue(arg2); | |
12880 | ||
12881 | wxPyEndAllowThreads(__tstate); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
12884 | Py_INCREF(Py_None); resultobj = Py_None; | |
12885 | return resultobj; | |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
c32bde28 | 12891 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
12892 | PyObject *resultobj; |
12893 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12894 | wxVisualAttributes result; | |
12895 | PyObject * obj0 = 0 ; | |
12896 | char *kwnames[] = { | |
12897 | (char *) "variant", NULL | |
12898 | }; | |
12899 | ||
12900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12901 | if (obj0) { | |
c32bde28 | 12902 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
12903 | if (PyErr_Occurred()) SWIG_fail; |
12904 | } | |
12905 | { | |
110da5b0 | 12906 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12908 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12909 | ||
12910 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12911 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12912 | } |
12913 | { | |
12914 | wxVisualAttributes * resultptr; | |
12915 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12916 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12917 | } | |
12918 | return resultobj; | |
12919 | fail: | |
12920 | return NULL; | |
12921 | } | |
12922 | ||
12923 | ||
c32bde28 | 12924 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12925 | PyObject *obj; |
12926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12927 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12928 | Py_INCREF(obj); | |
12929 | return Py_BuildValue((char *)""); | |
12930 | } | |
c32bde28 | 12931 | static int _wrap_SliderNameStr_set(PyObject *) { |
b2dc1044 RD |
12932 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
12933 | return 1; | |
12934 | } | |
12935 | ||
12936 | ||
12937 | static PyObject *_wrap_SliderNameStr_get() { | |
12938 | PyObject *pyobj; | |
12939 | ||
12940 | { | |
12941 | #if wxUSE_UNICODE | |
12942 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12943 | #else | |
12944 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12945 | #endif | |
12946 | } | |
12947 | return pyobj; | |
12948 | } | |
12949 | ||
12950 | ||
c32bde28 | 12951 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12952 | PyObject *resultobj; |
12953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12954 | int arg2 = (int) -1 ; |
12955 | int arg3 = (int) 0 ; | |
12956 | int arg4 = (int) 0 ; | |
12957 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
12958 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12959 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12960 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12961 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12962 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12963 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12964 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12965 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12966 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12967 | wxSlider *result; | |
12968 | wxPoint temp6 ; | |
12969 | wxSize temp7 ; | |
e811c8ce | 12970 | bool temp10 = False ; |
d14a1e28 | 12971 | PyObject * obj0 = 0 ; |
994141e6 RD |
12972 | PyObject * obj1 = 0 ; |
12973 | PyObject * obj2 = 0 ; | |
12974 | PyObject * obj3 = 0 ; | |
12975 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12976 | PyObject * obj5 = 0 ; |
12977 | PyObject * obj6 = 0 ; | |
994141e6 | 12978 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12979 | PyObject * obj8 = 0 ; |
12980 | PyObject * obj9 = 0 ; | |
12981 | char *kwnames[] = { | |
994141e6 | 12982 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12983 | }; |
12984 | ||
248ed943 | 12985 | 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 |
12986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12988 | if (obj1) { |
c32bde28 | 12989 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12990 | if (PyErr_Occurred()) SWIG_fail; |
12991 | } | |
12992 | if (obj2) { | |
c32bde28 | 12993 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12994 | if (PyErr_Occurred()) SWIG_fail; |
12995 | } | |
12996 | if (obj3) { | |
c32bde28 | 12997 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
12998 | if (PyErr_Occurred()) SWIG_fail; |
12999 | } | |
13000 | if (obj4) { | |
c32bde28 | 13001 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13002 | if (PyErr_Occurred()) SWIG_fail; |
13003 | } | |
d14a1e28 RD |
13004 | if (obj5) { |
13005 | { | |
13006 | arg6 = &temp6; | |
13007 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
13008 | } | |
13009 | } | |
13010 | if (obj6) { | |
13011 | { | |
13012 | arg7 = &temp7; | |
13013 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
13014 | } | |
13015 | } | |
994141e6 | 13016 | if (obj7) { |
c32bde28 | 13017 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 13018 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13019 | } |
d14a1e28 | 13020 | if (obj8) { |
15afbcd0 RD |
13021 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
13022 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13023 | SWIG_fail; | |
d14a1e28 | 13024 | if (arg9 == NULL) { |
15afbcd0 RD |
13025 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13026 | SWIG_fail; | |
d14a1e28 RD |
13027 | } |
13028 | } | |
13029 | if (obj9) { | |
13030 | { | |
13031 | arg10 = wxString_in_helper(obj9); | |
13032 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 13033 | temp10 = True; |
d14a1e28 RD |
13034 | } |
13035 | } | |
13036 | { | |
e3b71cb8 | 13037 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13039 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
13040 | ||
13041 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13042 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13043 | } |
15afbcd0 | 13044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
13045 | { |
13046 | if (temp10) | |
13047 | delete arg10; | |
13048 | } | |
13049 | return resultobj; | |
13050 | fail: | |
13051 | { | |
13052 | if (temp10) | |
13053 | delete arg10; | |
13054 | } | |
13055 | return NULL; | |
13056 | } | |
13057 | ||
13058 | ||
c32bde28 | 13059 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13060 | PyObject *resultobj; |
13061 | wxSlider *result; | |
13062 | char *kwnames[] = { | |
13063 | NULL | |
13064 | }; | |
13065 | ||
13066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
13067 | { | |
e3b71cb8 | 13068 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13070 | result = (wxSlider *)new wxSlider(); | |
13071 | ||
13072 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13074 | } |
15afbcd0 | 13075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
13076 | return resultobj; |
13077 | fail: | |
13078 | return NULL; | |
13079 | } | |
13080 | ||
13081 | ||
c32bde28 | 13082 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13083 | PyObject *resultobj; |
13084 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13085 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13086 | int arg3 = (int) -1 ; |
13087 | int arg4 = (int) 0 ; | |
13088 | int arg5 = (int) 0 ; | |
13089 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
13090 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
13091 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
13092 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
13093 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
13094 | long arg9 = (long) wxSL_HORIZONTAL ; | |
13095 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13096 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13097 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
13098 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13099 | bool result; | |
13100 | wxPoint temp7 ; | |
13101 | wxSize temp8 ; | |
e811c8ce | 13102 | bool temp11 = False ; |
d14a1e28 RD |
13103 | PyObject * obj0 = 0 ; |
13104 | PyObject * obj1 = 0 ; | |
994141e6 RD |
13105 | PyObject * obj2 = 0 ; |
13106 | PyObject * obj3 = 0 ; | |
13107 | PyObject * obj4 = 0 ; | |
13108 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
13109 | PyObject * obj6 = 0 ; |
13110 | PyObject * obj7 = 0 ; | |
994141e6 | 13111 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
13112 | PyObject * obj9 = 0 ; |
13113 | PyObject * obj10 = 0 ; | |
13114 | char *kwnames[] = { | |
994141e6 | 13115 | (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 |
13116 | }; |
13117 | ||
248ed943 | 13118 | 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 |
13119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13121 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13123 | if (obj2) { |
c32bde28 | 13124 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13125 | if (PyErr_Occurred()) SWIG_fail; |
13126 | } | |
13127 | if (obj3) { | |
c32bde28 | 13128 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
13129 | if (PyErr_Occurred()) SWIG_fail; |
13130 | } | |
13131 | if (obj4) { | |
c32bde28 | 13132 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13133 | if (PyErr_Occurred()) SWIG_fail; |
13134 | } | |
13135 | if (obj5) { | |
c32bde28 | 13136 | arg6 = (int)SWIG_As_int(obj5); |
248ed943 RD |
13137 | if (PyErr_Occurred()) SWIG_fail; |
13138 | } | |
d14a1e28 RD |
13139 | if (obj6) { |
13140 | { | |
13141 | arg7 = &temp7; | |
13142 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13143 | } | |
13144 | } | |
13145 | if (obj7) { | |
13146 | { | |
13147 | arg8 = &temp8; | |
13148 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13149 | } | |
13150 | } | |
994141e6 | 13151 | if (obj8) { |
c32bde28 | 13152 | arg9 = (long)SWIG_As_long(obj8); |
15afbcd0 | 13153 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13154 | } |
d14a1e28 | 13155 | if (obj9) { |
15afbcd0 RD |
13156 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
13157 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13158 | SWIG_fail; | |
d14a1e28 | 13159 | if (arg10 == NULL) { |
15afbcd0 RD |
13160 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13161 | SWIG_fail; | |
d14a1e28 RD |
13162 | } |
13163 | } | |
13164 | if (obj10) { | |
13165 | { | |
13166 | arg11 = wxString_in_helper(obj10); | |
13167 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 13168 | temp11 = True; |
d14a1e28 RD |
13169 | } |
13170 | } | |
13171 | { | |
13172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13173 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13174 | ||
13175 | wxPyEndAllowThreads(__tstate); | |
13176 | if (PyErr_Occurred()) SWIG_fail; | |
13177 | } | |
4f89f6a3 RD |
13178 | { |
13179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13180 | } | |
d14a1e28 RD |
13181 | { |
13182 | if (temp11) | |
13183 | delete arg11; | |
13184 | } | |
13185 | return resultobj; | |
13186 | fail: | |
13187 | { | |
13188 | if (temp11) | |
13189 | delete arg11; | |
13190 | } | |
13191 | return NULL; | |
13192 | } | |
13193 | ||
13194 | ||
c32bde28 | 13195 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13196 | PyObject *resultobj; |
13197 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13198 | int result; | |
13199 | PyObject * obj0 = 0 ; | |
13200 | char *kwnames[] = { | |
13201 | (char *) "self", NULL | |
13202 | }; | |
13203 | ||
13204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13207 | { |
13208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13209 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13210 | ||
13211 | wxPyEndAllowThreads(__tstate); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
c32bde28 | 13214 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13215 | return resultobj; |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
c32bde28 | 13221 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13222 | PyObject *resultobj; |
13223 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13224 | int arg2 ; | |
13225 | PyObject * obj0 = 0 ; | |
994141e6 | 13226 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13227 | char *kwnames[] = { |
13228 | (char *) "self",(char *) "value", NULL | |
13229 | }; | |
13230 | ||
994141e6 | 13231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13234 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13235 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13236 | { |
13237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13238 | (arg1)->SetValue(arg2); | |
13239 | ||
13240 | wxPyEndAllowThreads(__tstate); | |
13241 | if (PyErr_Occurred()) SWIG_fail; | |
13242 | } | |
13243 | Py_INCREF(Py_None); resultobj = Py_None; | |
13244 | return resultobj; | |
13245 | fail: | |
13246 | return NULL; | |
13247 | } | |
13248 | ||
13249 | ||
c32bde28 | 13250 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13251 | PyObject *resultobj; |
13252 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13253 | int arg2 ; | |
13254 | int arg3 ; | |
13255 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13256 | PyObject * obj1 = 0 ; |
13257 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13258 | char *kwnames[] = { |
13259 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13260 | }; | |
13261 | ||
994141e6 | 13262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13265 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13266 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13267 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13268 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13269 | { |
13270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13271 | (arg1)->SetRange(arg2,arg3); | |
13272 | ||
13273 | wxPyEndAllowThreads(__tstate); | |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
13275 | } | |
13276 | Py_INCREF(Py_None); resultobj = Py_None; | |
13277 | return resultobj; | |
13278 | fail: | |
13279 | return NULL; | |
13280 | } | |
13281 | ||
13282 | ||
c32bde28 | 13283 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13284 | PyObject *resultobj; |
13285 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13286 | int result; | |
13287 | PyObject * obj0 = 0 ; | |
13288 | char *kwnames[] = { | |
13289 | (char *) "self", NULL | |
13290 | }; | |
13291 | ||
13292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13295 | { |
13296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13297 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13298 | ||
13299 | wxPyEndAllowThreads(__tstate); | |
13300 | if (PyErr_Occurred()) SWIG_fail; | |
13301 | } | |
c32bde28 | 13302 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13303 | return resultobj; |
13304 | fail: | |
13305 | return NULL; | |
13306 | } | |
13307 | ||
13308 | ||
c32bde28 | 13309 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13310 | PyObject *resultobj; |
13311 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13312 | int result; | |
13313 | PyObject * obj0 = 0 ; | |
13314 | char *kwnames[] = { | |
13315 | (char *) "self", NULL | |
13316 | }; | |
13317 | ||
13318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13321 | { |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13323 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13324 | ||
13325 | wxPyEndAllowThreads(__tstate); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
c32bde28 | 13328 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13329 | return resultobj; |
13330 | fail: | |
13331 | return NULL; | |
13332 | } | |
13333 | ||
13334 | ||
c32bde28 | 13335 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13336 | PyObject *resultobj; |
13337 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13338 | int arg2 ; | |
13339 | PyObject * obj0 = 0 ; | |
994141e6 | 13340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13341 | char *kwnames[] = { |
13342 | (char *) "self",(char *) "minValue", NULL | |
13343 | }; | |
13344 | ||
994141e6 | 13345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13348 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13349 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13350 | { |
13351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13352 | (arg1)->SetMin(arg2); | |
13353 | ||
13354 | wxPyEndAllowThreads(__tstate); | |
13355 | if (PyErr_Occurred()) SWIG_fail; | |
13356 | } | |
13357 | Py_INCREF(Py_None); resultobj = Py_None; | |
13358 | return resultobj; | |
13359 | fail: | |
13360 | return NULL; | |
13361 | } | |
13362 | ||
13363 | ||
c32bde28 | 13364 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13365 | PyObject *resultobj; |
13366 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13367 | int arg2 ; | |
13368 | PyObject * obj0 = 0 ; | |
994141e6 | 13369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13370 | char *kwnames[] = { |
13371 | (char *) "self",(char *) "maxValue", NULL | |
13372 | }; | |
13373 | ||
994141e6 | 13374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13377 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13378 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13379 | { |
13380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13381 | (arg1)->SetMax(arg2); | |
13382 | ||
13383 | wxPyEndAllowThreads(__tstate); | |
13384 | if (PyErr_Occurred()) SWIG_fail; | |
13385 | } | |
13386 | Py_INCREF(Py_None); resultobj = Py_None; | |
13387 | return resultobj; | |
13388 | fail: | |
13389 | return NULL; | |
13390 | } | |
13391 | ||
13392 | ||
c32bde28 | 13393 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13394 | PyObject *resultobj; |
13395 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13396 | int arg2 ; | |
13397 | PyObject * obj0 = 0 ; | |
994141e6 | 13398 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13399 | char *kwnames[] = { |
13400 | (char *) "self",(char *) "lineSize", NULL | |
13401 | }; | |
13402 | ||
994141e6 | 13403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13406 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13407 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13408 | { |
13409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13410 | (arg1)->SetLineSize(arg2); | |
13411 | ||
13412 | wxPyEndAllowThreads(__tstate); | |
13413 | if (PyErr_Occurred()) SWIG_fail; | |
13414 | } | |
13415 | Py_INCREF(Py_None); resultobj = Py_None; | |
13416 | return resultobj; | |
13417 | fail: | |
13418 | return NULL; | |
13419 | } | |
13420 | ||
13421 | ||
c32bde28 | 13422 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13423 | PyObject *resultobj; |
13424 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13425 | int arg2 ; | |
13426 | PyObject * obj0 = 0 ; | |
994141e6 | 13427 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13428 | char *kwnames[] = { |
13429 | (char *) "self",(char *) "pageSize", NULL | |
13430 | }; | |
13431 | ||
994141e6 | 13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13435 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13436 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13437 | { |
13438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13439 | (arg1)->SetPageSize(arg2); | |
13440 | ||
13441 | wxPyEndAllowThreads(__tstate); | |
13442 | if (PyErr_Occurred()) SWIG_fail; | |
13443 | } | |
13444 | Py_INCREF(Py_None); resultobj = Py_None; | |
13445 | return resultobj; | |
13446 | fail: | |
13447 | return NULL; | |
13448 | } | |
13449 | ||
13450 | ||
c32bde28 | 13451 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13452 | PyObject *resultobj; |
13453 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13454 | int result; | |
13455 | PyObject * obj0 = 0 ; | |
13456 | char *kwnames[] = { | |
13457 | (char *) "self", NULL | |
13458 | }; | |
13459 | ||
13460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13463 | { |
13464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13465 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13466 | ||
13467 | wxPyEndAllowThreads(__tstate); | |
13468 | if (PyErr_Occurred()) SWIG_fail; | |
13469 | } | |
c32bde28 | 13470 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13471 | return resultobj; |
13472 | fail: | |
13473 | return NULL; | |
13474 | } | |
13475 | ||
13476 | ||
c32bde28 | 13477 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13478 | PyObject *resultobj; |
13479 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13480 | int result; | |
13481 | PyObject * obj0 = 0 ; | |
13482 | char *kwnames[] = { | |
13483 | (char *) "self", NULL | |
13484 | }; | |
13485 | ||
13486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13489 | { |
13490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13491 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13492 | ||
13493 | wxPyEndAllowThreads(__tstate); | |
13494 | if (PyErr_Occurred()) SWIG_fail; | |
13495 | } | |
c32bde28 | 13496 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13497 | return resultobj; |
13498 | fail: | |
13499 | return NULL; | |
13500 | } | |
13501 | ||
13502 | ||
c32bde28 | 13503 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13504 | PyObject *resultobj; |
13505 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13506 | int arg2 ; | |
13507 | PyObject * obj0 = 0 ; | |
994141e6 | 13508 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13509 | char *kwnames[] = { |
13510 | (char *) "self",(char *) "lenPixels", NULL | |
13511 | }; | |
13512 | ||
994141e6 | 13513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13516 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13517 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13518 | { |
13519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13520 | (arg1)->SetThumbLength(arg2); | |
13521 | ||
13522 | wxPyEndAllowThreads(__tstate); | |
13523 | if (PyErr_Occurred()) SWIG_fail; | |
13524 | } | |
13525 | Py_INCREF(Py_None); resultobj = Py_None; | |
13526 | return resultobj; | |
13527 | fail: | |
13528 | return NULL; | |
13529 | } | |
13530 | ||
13531 | ||
c32bde28 | 13532 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13533 | PyObject *resultobj; |
13534 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13535 | int result; | |
13536 | PyObject * obj0 = 0 ; | |
13537 | char *kwnames[] = { | |
13538 | (char *) "self", NULL | |
13539 | }; | |
13540 | ||
13541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13544 | { |
13545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13546 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13547 | ||
13548 | wxPyEndAllowThreads(__tstate); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | } | |
c32bde28 | 13551 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13552 | return resultobj; |
13553 | fail: | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
c32bde28 | 13558 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13559 | PyObject *resultobj; |
13560 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13561 | int arg2 ; | |
994141e6 | 13562 | int arg3 = (int) 1 ; |
d14a1e28 | 13563 | PyObject * obj0 = 0 ; |
994141e6 RD |
13564 | PyObject * obj1 = 0 ; |
13565 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13566 | char *kwnames[] = { |
13567 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13568 | }; | |
13569 | ||
994141e6 | 13570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13573 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13574 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13575 | if (obj2) { |
c32bde28 | 13576 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13577 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13578 | } |
d14a1e28 RD |
13579 | { |
13580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13581 | (arg1)->SetTickFreq(arg2,arg3); | |
13582 | ||
13583 | wxPyEndAllowThreads(__tstate); | |
13584 | if (PyErr_Occurred()) SWIG_fail; | |
13585 | } | |
13586 | Py_INCREF(Py_None); resultobj = Py_None; | |
13587 | return resultobj; | |
13588 | fail: | |
13589 | return NULL; | |
13590 | } | |
13591 | ||
13592 | ||
c32bde28 | 13593 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13594 | PyObject *resultobj; |
13595 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13596 | int result; | |
13597 | PyObject * obj0 = 0 ; | |
13598 | char *kwnames[] = { | |
13599 | (char *) "self", NULL | |
13600 | }; | |
13601 | ||
13602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13605 | { |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13607 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
c32bde28 | 13612 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13613 | return resultobj; |
13614 | fail: | |
13615 | return NULL; | |
13616 | } | |
13617 | ||
13618 | ||
c32bde28 | 13619 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13620 | PyObject *resultobj; |
13621 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13622 | PyObject * obj0 = 0 ; | |
13623 | char *kwnames[] = { | |
13624 | (char *) "self", NULL | |
13625 | }; | |
13626 | ||
13627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13630 | { |
13631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13632 | (arg1)->ClearTicks(); | |
13633 | ||
13634 | wxPyEndAllowThreads(__tstate); | |
13635 | if (PyErr_Occurred()) SWIG_fail; | |
13636 | } | |
13637 | Py_INCREF(Py_None); resultobj = Py_None; | |
13638 | return resultobj; | |
13639 | fail: | |
13640 | return NULL; | |
13641 | } | |
13642 | ||
13643 | ||
c32bde28 | 13644 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13645 | PyObject *resultobj; |
13646 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13647 | int arg2 ; | |
13648 | PyObject * obj0 = 0 ; | |
994141e6 | 13649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13650 | char *kwnames[] = { |
13651 | (char *) "self",(char *) "tickPos", NULL | |
13652 | }; | |
13653 | ||
994141e6 | 13654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13657 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13658 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13659 | { |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13661 | (arg1)->SetTick(arg2); | |
13662 | ||
13663 | wxPyEndAllowThreads(__tstate); | |
13664 | if (PyErr_Occurred()) SWIG_fail; | |
13665 | } | |
13666 | Py_INCREF(Py_None); resultobj = Py_None; | |
13667 | return resultobj; | |
13668 | fail: | |
13669 | return NULL; | |
13670 | } | |
13671 | ||
13672 | ||
c32bde28 | 13673 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13674 | PyObject *resultobj; |
13675 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13676 | PyObject * obj0 = 0 ; | |
13677 | char *kwnames[] = { | |
13678 | (char *) "self", NULL | |
13679 | }; | |
13680 | ||
13681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13684 | { |
13685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13686 | (arg1)->ClearSel(); | |
13687 | ||
13688 | wxPyEndAllowThreads(__tstate); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
13691 | Py_INCREF(Py_None); resultobj = Py_None; | |
13692 | return resultobj; | |
13693 | fail: | |
13694 | return NULL; | |
13695 | } | |
13696 | ||
13697 | ||
c32bde28 | 13698 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13699 | PyObject *resultobj; |
13700 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13701 | int result; | |
13702 | PyObject * obj0 = 0 ; | |
13703 | char *kwnames[] = { | |
13704 | (char *) "self", NULL | |
13705 | }; | |
13706 | ||
13707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13710 | { |
13711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13712 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13713 | ||
13714 | wxPyEndAllowThreads(__tstate); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | } | |
c32bde28 | 13717 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13718 | return resultobj; |
13719 | fail: | |
13720 | return NULL; | |
13721 | } | |
13722 | ||
13723 | ||
c32bde28 | 13724 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13725 | PyObject *resultobj; |
13726 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13727 | int result; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | char *kwnames[] = { | |
13730 | (char *) "self", NULL | |
13731 | }; | |
13732 | ||
13733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13736 | { |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
c32bde28 | 13743 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13744 | return resultobj; |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
c32bde28 | 13750 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13751 | PyObject *resultobj; |
13752 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13753 | int arg2 ; | |
13754 | int arg3 ; | |
13755 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13756 | PyObject * obj1 = 0 ; |
13757 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13758 | char *kwnames[] = { |
13759 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13760 | }; | |
13761 | ||
994141e6 | 13762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13765 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13766 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13767 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13768 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13769 | { |
13770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13771 | (arg1)->SetSelection(arg2,arg3); | |
13772 | ||
13773 | wxPyEndAllowThreads(__tstate); | |
13774 | if (PyErr_Occurred()) SWIG_fail; | |
13775 | } | |
13776 | Py_INCREF(Py_None); resultobj = Py_None; | |
13777 | return resultobj; | |
13778 | fail: | |
13779 | return NULL; | |
13780 | } | |
13781 | ||
13782 | ||
c32bde28 | 13783 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
13784 | PyObject *resultobj; |
13785 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13786 | wxVisualAttributes result; | |
13787 | PyObject * obj0 = 0 ; | |
13788 | char *kwnames[] = { | |
13789 | (char *) "variant", NULL | |
13790 | }; | |
13791 | ||
13792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13793 | if (obj0) { | |
c32bde28 | 13794 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
13795 | if (PyErr_Occurred()) SWIG_fail; |
13796 | } | |
13797 | { | |
110da5b0 | 13798 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
13799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13800 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13801 | ||
13802 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13803 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13804 | } |
13805 | { | |
13806 | wxVisualAttributes * resultptr; | |
13807 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13808 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13809 | } | |
13810 | return resultobj; | |
13811 | fail: | |
13812 | return NULL; | |
13813 | } | |
13814 | ||
13815 | ||
c32bde28 | 13816 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13817 | PyObject *obj; |
13818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13819 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13820 | Py_INCREF(obj); | |
13821 | return Py_BuildValue((char *)""); | |
13822 | } | |
c32bde28 | 13823 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
13824 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
13825 | return 1; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13830 | PyObject *pyobj; | |
13831 | ||
13832 | { | |
13833 | #if wxUSE_UNICODE | |
13834 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13835 | #else | |
13836 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13837 | #endif | |
13838 | } | |
13839 | return pyobj; | |
13840 | } | |
13841 | ||
13842 | ||
c32bde28 | 13843 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13844 | PyObject *resultobj; |
13845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13846 | int arg2 = (int) -1 ; |
13847 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13848 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13849 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13850 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13851 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13852 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13853 | long arg6 = (long) 0 ; | |
13854 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13855 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13856 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13857 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13858 | wxToggleButton *result; | |
e811c8ce | 13859 | bool temp3 = False ; |
d14a1e28 RD |
13860 | wxPoint temp4 ; |
13861 | wxSize temp5 ; | |
e811c8ce | 13862 | bool temp8 = False ; |
d14a1e28 | 13863 | PyObject * obj0 = 0 ; |
994141e6 | 13864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13865 | PyObject * obj2 = 0 ; |
13866 | PyObject * obj3 = 0 ; | |
13867 | PyObject * obj4 = 0 ; | |
994141e6 | 13868 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13869 | PyObject * obj6 = 0 ; |
13870 | PyObject * obj7 = 0 ; | |
13871 | char *kwnames[] = { | |
13872 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13873 | }; | |
13874 | ||
248ed943 | 13875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
13876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13878 | if (obj1) { |
c32bde28 | 13879 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
13880 | if (PyErr_Occurred()) SWIG_fail; |
13881 | } | |
13882 | if (obj2) { | |
13883 | { | |
13884 | arg3 = wxString_in_helper(obj2); | |
13885 | if (arg3 == NULL) SWIG_fail; | |
13886 | temp3 = True; | |
13887 | } | |
d14a1e28 RD |
13888 | } |
13889 | if (obj3) { | |
13890 | { | |
13891 | arg4 = &temp4; | |
13892 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13893 | } | |
13894 | } | |
13895 | if (obj4) { | |
13896 | { | |
13897 | arg5 = &temp5; | |
13898 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13899 | } | |
13900 | } | |
994141e6 | 13901 | if (obj5) { |
c32bde28 | 13902 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 13903 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13904 | } |
d14a1e28 | 13905 | if (obj6) { |
15afbcd0 RD |
13906 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13907 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13908 | SWIG_fail; | |
d14a1e28 | 13909 | if (arg7 == NULL) { |
15afbcd0 RD |
13910 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13911 | SWIG_fail; | |
d14a1e28 RD |
13912 | } |
13913 | } | |
13914 | if (obj7) { | |
13915 | { | |
13916 | arg8 = wxString_in_helper(obj7); | |
13917 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13918 | temp8 = True; |
d14a1e28 RD |
13919 | } |
13920 | } | |
13921 | { | |
e3b71cb8 | 13922 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13924 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13925 | ||
13926 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13927 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13928 | } |
15afbcd0 | 13929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13930 | { |
13931 | if (temp3) | |
13932 | delete arg3; | |
13933 | } | |
13934 | { | |
13935 | if (temp8) | |
13936 | delete arg8; | |
13937 | } | |
13938 | return resultobj; | |
13939 | fail: | |
13940 | { | |
13941 | if (temp3) | |
13942 | delete arg3; | |
13943 | } | |
13944 | { | |
13945 | if (temp8) | |
13946 | delete arg8; | |
13947 | } | |
13948 | return NULL; | |
13949 | } | |
13950 | ||
13951 | ||
c32bde28 | 13952 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13953 | PyObject *resultobj; |
13954 | wxToggleButton *result; | |
13955 | char *kwnames[] = { | |
13956 | NULL | |
13957 | }; | |
13958 | ||
13959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13960 | { | |
e3b71cb8 | 13961 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13963 | result = (wxToggleButton *)new wxToggleButton(); | |
13964 | ||
13965 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13966 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13967 | } |
15afbcd0 | 13968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13969 | return resultobj; |
13970 | fail: | |
13971 | return NULL; | |
13972 | } | |
13973 | ||
13974 | ||
c32bde28 | 13975 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13976 | PyObject *resultobj; |
13977 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13978 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13979 | int arg3 = (int) -1 ; |
13980 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13981 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13982 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13983 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13984 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13985 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13986 | long arg7 = (long) 0 ; | |
13987 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13988 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13989 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13990 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13991 | bool result; | |
e811c8ce | 13992 | bool temp4 = False ; |
d14a1e28 RD |
13993 | wxPoint temp5 ; |
13994 | wxSize temp6 ; | |
e811c8ce | 13995 | bool temp9 = False ; |
d14a1e28 RD |
13996 | PyObject * obj0 = 0 ; |
13997 | PyObject * obj1 = 0 ; | |
994141e6 | 13998 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13999 | PyObject * obj3 = 0 ; |
14000 | PyObject * obj4 = 0 ; | |
14001 | PyObject * obj5 = 0 ; | |
994141e6 | 14002 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14003 | PyObject * obj7 = 0 ; |
14004 | PyObject * obj8 = 0 ; | |
14005 | char *kwnames[] = { | |
14006 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14007 | }; | |
14008 | ||
248ed943 | 14009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
14010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 14014 | if (obj2) { |
c32bde28 | 14015 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
14016 | if (PyErr_Occurred()) SWIG_fail; |
14017 | } | |
14018 | if (obj3) { | |
14019 | { | |
14020 | arg4 = wxString_in_helper(obj3); | |
14021 | if (arg4 == NULL) SWIG_fail; | |
14022 | temp4 = True; | |
14023 | } | |
d14a1e28 RD |
14024 | } |
14025 | if (obj4) { | |
14026 | { | |
14027 | arg5 = &temp5; | |
14028 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14029 | } | |
14030 | } | |
14031 | if (obj5) { | |
14032 | { | |
14033 | arg6 = &temp6; | |
14034 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14035 | } | |
14036 | } | |
994141e6 | 14037 | if (obj6) { |
c32bde28 | 14038 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 14039 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14040 | } |
d14a1e28 | 14041 | if (obj7) { |
15afbcd0 RD |
14042 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
14043 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14044 | SWIG_fail; | |
d14a1e28 | 14045 | if (arg8 == NULL) { |
15afbcd0 RD |
14046 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14047 | SWIG_fail; | |
d14a1e28 RD |
14048 | } |
14049 | } | |
14050 | if (obj8) { | |
14051 | { | |
14052 | arg9 = wxString_in_helper(obj8); | |
14053 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 14054 | temp9 = True; |
d14a1e28 RD |
14055 | } |
14056 | } | |
14057 | { | |
14058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14059 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14060 | ||
14061 | wxPyEndAllowThreads(__tstate); | |
14062 | if (PyErr_Occurred()) SWIG_fail; | |
14063 | } | |
4f89f6a3 RD |
14064 | { |
14065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14066 | } | |
d14a1e28 RD |
14067 | { |
14068 | if (temp4) | |
14069 | delete arg4; | |
14070 | } | |
14071 | { | |
14072 | if (temp9) | |
14073 | delete arg9; | |
14074 | } | |
14075 | return resultobj; | |
14076 | fail: | |
14077 | { | |
14078 | if (temp4) | |
14079 | delete arg4; | |
14080 | } | |
14081 | { | |
14082 | if (temp9) | |
14083 | delete arg9; | |
14084 | } | |
14085 | return NULL; | |
14086 | } | |
14087 | ||
14088 | ||
c32bde28 | 14089 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14090 | PyObject *resultobj; |
14091 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14092 | bool arg2 ; | |
14093 | PyObject * obj0 = 0 ; | |
14094 | PyObject * obj1 = 0 ; | |
14095 | char *kwnames[] = { | |
14096 | (char *) "self",(char *) "value", NULL | |
14097 | }; | |
14098 | ||
14099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14102 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14103 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14104 | { |
14105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14106 | (arg1)->SetValue(arg2); | |
14107 | ||
14108 | wxPyEndAllowThreads(__tstate); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | } | |
14111 | Py_INCREF(Py_None); resultobj = Py_None; | |
14112 | return resultobj; | |
14113 | fail: | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
c32bde28 | 14118 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14119 | PyObject *resultobj; |
14120 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14121 | bool result; | |
14122 | PyObject * obj0 = 0 ; | |
14123 | char *kwnames[] = { | |
14124 | (char *) "self", NULL | |
14125 | }; | |
14126 | ||
14127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14130 | { |
14131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14132 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14133 | ||
14134 | wxPyEndAllowThreads(__tstate); | |
14135 | if (PyErr_Occurred()) SWIG_fail; | |
14136 | } | |
4f89f6a3 RD |
14137 | { |
14138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14139 | } | |
d14a1e28 RD |
14140 | return resultobj; |
14141 | fail: | |
14142 | return NULL; | |
14143 | } | |
14144 | ||
14145 | ||
c32bde28 | 14146 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14147 | PyObject *resultobj; |
14148 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14149 | wxString *arg2 = 0 ; | |
e811c8ce | 14150 | bool temp2 = False ; |
d14a1e28 RD |
14151 | PyObject * obj0 = 0 ; |
14152 | PyObject * obj1 = 0 ; | |
14153 | char *kwnames[] = { | |
14154 | (char *) "self",(char *) "label", NULL | |
14155 | }; | |
14156 | ||
14157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14160 | { |
14161 | arg2 = wxString_in_helper(obj1); | |
14162 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14163 | temp2 = True; |
d14a1e28 RD |
14164 | } |
14165 | { | |
14166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14167 | (arg1)->SetLabel((wxString const &)*arg2); | |
14168 | ||
14169 | wxPyEndAllowThreads(__tstate); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | } | |
14172 | Py_INCREF(Py_None); resultobj = Py_None; | |
14173 | { | |
14174 | if (temp2) | |
14175 | delete arg2; | |
14176 | } | |
14177 | return resultobj; | |
14178 | fail: | |
14179 | { | |
14180 | if (temp2) | |
14181 | delete arg2; | |
14182 | } | |
14183 | return NULL; | |
14184 | } | |
14185 | ||
14186 | ||
c32bde28 | 14187 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
14188 | PyObject *resultobj; |
14189 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14190 | wxVisualAttributes result; | |
14191 | PyObject * obj0 = 0 ; | |
14192 | char *kwnames[] = { | |
14193 | (char *) "variant", NULL | |
14194 | }; | |
14195 | ||
14196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14197 | if (obj0) { | |
c32bde28 | 14198 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
14199 | if (PyErr_Occurred()) SWIG_fail; |
14200 | } | |
14201 | { | |
110da5b0 | 14202 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14204 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14205 | ||
14206 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14207 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14208 | } |
14209 | { | |
14210 | wxVisualAttributes * resultptr; | |
14211 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14213 | } | |
14214 | return resultobj; | |
14215 | fail: | |
14216 | return NULL; | |
14217 | } | |
14218 | ||
14219 | ||
c32bde28 | 14220 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14221 | PyObject *obj; |
14222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14223 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14224 | Py_INCREF(obj); | |
14225 | return Py_BuildValue((char *)""); | |
14226 | } | |
c32bde28 | 14227 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
b2dc1044 RD |
14228 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
14229 | return 1; | |
14230 | } | |
14231 | ||
14232 | ||
14233 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14234 | PyObject *pyobj; | |
14235 | ||
14236 | { | |
14237 | #if wxUSE_UNICODE | |
14238 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14239 | #else | |
14240 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14241 | #endif | |
14242 | } | |
14243 | return pyobj; | |
14244 | } | |
14245 | ||
14246 | ||
c32bde28 | 14247 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14248 | PyObject *resultobj; |
14249 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14250 | size_t result; | |
14251 | PyObject * obj0 = 0 ; | |
14252 | char *kwnames[] = { | |
14253 | (char *) "self", NULL | |
14254 | }; | |
14255 | ||
14256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14259 | { |
14260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14261 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14262 | ||
14263 | wxPyEndAllowThreads(__tstate); | |
14264 | if (PyErr_Occurred()) SWIG_fail; | |
14265 | } | |
c32bde28 | 14266 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
14267 | return resultobj; |
14268 | fail: | |
14269 | return NULL; | |
14270 | } | |
14271 | ||
14272 | ||
c32bde28 | 14273 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14274 | PyObject *resultobj; |
14275 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14276 | size_t arg2 ; | |
14277 | wxWindow *result; | |
14278 | PyObject * obj0 = 0 ; | |
14279 | PyObject * obj1 = 0 ; | |
14280 | char *kwnames[] = { | |
14281 | (char *) "self",(char *) "n", NULL | |
14282 | }; | |
14283 | ||
14284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14287 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14288 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14289 | { |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14292 | ||
14293 | wxPyEndAllowThreads(__tstate); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
14296 | { | |
412d302d | 14297 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14298 | } |
14299 | return resultobj; | |
14300 | fail: | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
c32bde28 | 14305 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14306 | PyObject *resultobj; |
14307 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14308 | int result; | |
14309 | PyObject * obj0 = 0 ; | |
14310 | char *kwnames[] = { | |
14311 | (char *) "self", NULL | |
14312 | }; | |
14313 | ||
14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14317 | { |
14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14319 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14320 | ||
14321 | wxPyEndAllowThreads(__tstate); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | } | |
c32bde28 | 14324 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14325 | return resultobj; |
14326 | fail: | |
14327 | return NULL; | |
14328 | } | |
14329 | ||
14330 | ||
c32bde28 | 14331 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14332 | PyObject *resultobj; |
14333 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14334 | size_t arg2 ; | |
14335 | wxString *arg3 = 0 ; | |
14336 | bool result; | |
e811c8ce | 14337 | bool temp3 = False ; |
d14a1e28 RD |
14338 | PyObject * obj0 = 0 ; |
14339 | PyObject * obj1 = 0 ; | |
14340 | PyObject * obj2 = 0 ; | |
14341 | char *kwnames[] = { | |
14342 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14343 | }; | |
14344 | ||
14345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14348 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14349 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14350 | { |
14351 | arg3 = wxString_in_helper(obj2); | |
14352 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14353 | temp3 = True; |
d14a1e28 RD |
14354 | } |
14355 | { | |
14356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14357 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14358 | ||
14359 | wxPyEndAllowThreads(__tstate); | |
14360 | if (PyErr_Occurred()) SWIG_fail; | |
14361 | } | |
4f89f6a3 RD |
14362 | { |
14363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14364 | } | |
d14a1e28 RD |
14365 | { |
14366 | if (temp3) | |
14367 | delete arg3; | |
14368 | } | |
14369 | return resultobj; | |
14370 | fail: | |
14371 | { | |
14372 | if (temp3) | |
14373 | delete arg3; | |
14374 | } | |
14375 | return NULL; | |
14376 | } | |
14377 | ||
14378 | ||
c32bde28 | 14379 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14380 | PyObject *resultobj; |
14381 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14382 | size_t arg2 ; | |
14383 | wxString result; | |
14384 | PyObject * obj0 = 0 ; | |
14385 | PyObject * obj1 = 0 ; | |
14386 | char *kwnames[] = { | |
14387 | (char *) "self",(char *) "n", NULL | |
14388 | }; | |
14389 | ||
14390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14393 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14394 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14395 | { |
14396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14397 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14398 | ||
14399 | wxPyEndAllowThreads(__tstate); | |
14400 | if (PyErr_Occurred()) SWIG_fail; | |
14401 | } | |
14402 | { | |
14403 | #if wxUSE_UNICODE | |
14404 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14405 | #else | |
14406 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14407 | #endif | |
14408 | } | |
14409 | return resultobj; | |
14410 | fail: | |
14411 | return NULL; | |
14412 | } | |
14413 | ||
14414 | ||
c32bde28 | 14415 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14416 | PyObject *resultobj; |
14417 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14418 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14419 | PyObject * obj0 = 0 ; | |
14420 | PyObject * obj1 = 0 ; | |
14421 | char *kwnames[] = { | |
14422 | (char *) "self",(char *) "imageList", NULL | |
14423 | }; | |
14424 | ||
14425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14428 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14430 | { |
14431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14432 | (arg1)->SetImageList(arg2); | |
14433 | ||
14434 | wxPyEndAllowThreads(__tstate); | |
14435 | if (PyErr_Occurred()) SWIG_fail; | |
14436 | } | |
14437 | Py_INCREF(Py_None); resultobj = Py_None; | |
14438 | return resultobj; | |
14439 | fail: | |
14440 | return NULL; | |
14441 | } | |
14442 | ||
14443 | ||
c32bde28 | 14444 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14445 | PyObject *resultobj; |
14446 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14447 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14448 | PyObject * obj0 = 0 ; | |
14449 | PyObject * obj1 = 0 ; | |
14450 | char *kwnames[] = { | |
14451 | (char *) "self",(char *) "imageList", NULL | |
14452 | }; | |
14453 | ||
14454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14457 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14458 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
14459 | { |
14460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14461 | (arg1)->AssignImageList(arg2); | |
14462 | ||
14463 | wxPyEndAllowThreads(__tstate); | |
14464 | if (PyErr_Occurred()) SWIG_fail; | |
14465 | } | |
14466 | Py_INCREF(Py_None); resultobj = Py_None; | |
14467 | return resultobj; | |
14468 | fail: | |
14469 | return NULL; | |
14470 | } | |
14471 | ||
14472 | ||
c32bde28 | 14473 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14474 | PyObject *resultobj; |
14475 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14476 | wxImageList *result; | |
14477 | PyObject * obj0 = 0 ; | |
14478 | char *kwnames[] = { | |
14479 | (char *) "self", NULL | |
14480 | }; | |
14481 | ||
14482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14485 | { |
14486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14487 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14488 | ||
14489 | wxPyEndAllowThreads(__tstate); | |
14490 | if (PyErr_Occurred()) SWIG_fail; | |
14491 | } | |
14492 | { | |
412d302d | 14493 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14494 | } |
14495 | return resultobj; | |
14496 | fail: | |
14497 | return NULL; | |
14498 | } | |
14499 | ||
14500 | ||
c32bde28 | 14501 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14502 | PyObject *resultobj; |
14503 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14504 | size_t arg2 ; | |
14505 | int result; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | PyObject * obj1 = 0 ; | |
14508 | char *kwnames[] = { | |
14509 | (char *) "self",(char *) "n", NULL | |
14510 | }; | |
14511 | ||
14512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14515 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14516 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14517 | { |
14518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14519 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14520 | ||
14521 | wxPyEndAllowThreads(__tstate); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
c32bde28 | 14524 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14525 | return resultobj; |
14526 | fail: | |
14527 | return NULL; | |
14528 | } | |
14529 | ||
14530 | ||
c32bde28 | 14531 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14532 | PyObject *resultobj; |
14533 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14534 | size_t arg2 ; | |
14535 | int arg3 ; | |
14536 | bool result; | |
14537 | PyObject * obj0 = 0 ; | |
14538 | PyObject * obj1 = 0 ; | |
994141e6 | 14539 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14540 | char *kwnames[] = { |
14541 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14542 | }; | |
14543 | ||
994141e6 | 14544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14547 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14548 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14549 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14550 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14551 | { |
14552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14553 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14554 | ||
14555 | wxPyEndAllowThreads(__tstate); | |
14556 | if (PyErr_Occurred()) SWIG_fail; | |
14557 | } | |
4f89f6a3 RD |
14558 | { |
14559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14560 | } | |
d14a1e28 RD |
14561 | return resultobj; |
14562 | fail: | |
14563 | return NULL; | |
14564 | } | |
14565 | ||
14566 | ||
c32bde28 | 14567 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14568 | PyObject *resultobj; |
14569 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14570 | wxSize *arg2 = 0 ; | |
14571 | wxSize temp2 ; | |
14572 | PyObject * obj0 = 0 ; | |
14573 | PyObject * obj1 = 0 ; | |
14574 | char *kwnames[] = { | |
14575 | (char *) "self",(char *) "size", NULL | |
14576 | }; | |
14577 | ||
14578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14581 | { |
14582 | arg2 = &temp2; | |
14583 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14584 | } | |
14585 | { | |
14586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14587 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14588 | ||
14589 | wxPyEndAllowThreads(__tstate); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | Py_INCREF(Py_None); resultobj = Py_None; | |
14593 | return resultobj; | |
14594 | fail: | |
14595 | return NULL; | |
14596 | } | |
14597 | ||
14598 | ||
c32bde28 | 14599 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14600 | PyObject *resultobj; |
14601 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14602 | wxSize *arg2 = 0 ; | |
14603 | wxSize result; | |
14604 | wxSize temp2 ; | |
14605 | PyObject * obj0 = 0 ; | |
14606 | PyObject * obj1 = 0 ; | |
14607 | char *kwnames[] = { | |
14608 | (char *) "self",(char *) "sizePage", NULL | |
14609 | }; | |
14610 | ||
14611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14614 | { |
14615 | arg2 = &temp2; | |
14616 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14617 | } | |
14618 | { | |
14619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14620 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14621 | ||
14622 | wxPyEndAllowThreads(__tstate); | |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
14624 | } | |
14625 | { | |
14626 | wxSize * resultptr; | |
14627 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14629 | } |
14630 | return resultobj; | |
14631 | fail: | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
c32bde28 | 14636 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14637 | PyObject *resultobj; |
14638 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14639 | size_t arg2 ; | |
14640 | bool result; | |
14641 | PyObject * obj0 = 0 ; | |
14642 | PyObject * obj1 = 0 ; | |
14643 | char *kwnames[] = { | |
14644 | (char *) "self",(char *) "n", NULL | |
14645 | }; | |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14650 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14651 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14652 | { |
14653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14654 | result = (bool)(arg1)->DeletePage(arg2); | |
14655 | ||
14656 | wxPyEndAllowThreads(__tstate); | |
14657 | if (PyErr_Occurred()) SWIG_fail; | |
14658 | } | |
4f89f6a3 RD |
14659 | { |
14660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14661 | } | |
d14a1e28 RD |
14662 | return resultobj; |
14663 | fail: | |
14664 | return NULL; | |
14665 | } | |
14666 | ||
14667 | ||
c32bde28 | 14668 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14669 | PyObject *resultobj; |
14670 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14671 | size_t arg2 ; | |
14672 | bool result; | |
14673 | PyObject * obj0 = 0 ; | |
14674 | PyObject * obj1 = 0 ; | |
14675 | char *kwnames[] = { | |
14676 | (char *) "self",(char *) "n", NULL | |
14677 | }; | |
14678 | ||
14679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14682 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14683 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14684 | { |
14685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14686 | result = (bool)(arg1)->RemovePage(arg2); | |
14687 | ||
14688 | wxPyEndAllowThreads(__tstate); | |
14689 | if (PyErr_Occurred()) SWIG_fail; | |
14690 | } | |
4f89f6a3 RD |
14691 | { |
14692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14693 | } | |
d14a1e28 RD |
14694 | return resultobj; |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
c32bde28 | 14700 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14701 | PyObject *resultobj; |
14702 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14703 | bool result; | |
14704 | PyObject * obj0 = 0 ; | |
14705 | char *kwnames[] = { | |
14706 | (char *) "self", NULL | |
14707 | }; | |
14708 | ||
14709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14712 | { |
14713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14714 | result = (bool)(arg1)->DeleteAllPages(); | |
14715 | ||
14716 | wxPyEndAllowThreads(__tstate); | |
14717 | if (PyErr_Occurred()) SWIG_fail; | |
14718 | } | |
4f89f6a3 RD |
14719 | { |
14720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14721 | } | |
d14a1e28 RD |
14722 | return resultobj; |
14723 | fail: | |
14724 | return NULL; | |
14725 | } | |
14726 | ||
14727 | ||
c32bde28 | 14728 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14729 | PyObject *resultobj; |
14730 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14731 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14732 | wxString *arg3 = 0 ; | |
e811c8ce | 14733 | bool arg4 = (bool) False ; |
d14a1e28 RD |
14734 | int arg5 = (int) -1 ; |
14735 | bool result; | |
e811c8ce | 14736 | bool temp3 = False ; |
d14a1e28 RD |
14737 | PyObject * obj0 = 0 ; |
14738 | PyObject * obj1 = 0 ; | |
14739 | PyObject * obj2 = 0 ; | |
14740 | PyObject * obj3 = 0 ; | |
994141e6 | 14741 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14742 | char *kwnames[] = { |
14743 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14744 | }; | |
14745 | ||
994141e6 | 14746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
14747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14751 | { |
14752 | arg3 = wxString_in_helper(obj2); | |
14753 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14754 | temp3 = True; |
d14a1e28 RD |
14755 | } |
14756 | if (obj3) { | |
c32bde28 | 14757 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 14758 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14759 | } |
14760 | if (obj4) { | |
c32bde28 | 14761 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 14762 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14763 | } |
14764 | { | |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14767 | ||
14768 | wxPyEndAllowThreads(__tstate); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
4f89f6a3 RD |
14771 | { |
14772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14773 | } | |
d14a1e28 RD |
14774 | { |
14775 | if (temp3) | |
14776 | delete arg3; | |
14777 | } | |
14778 | return resultobj; | |
14779 | fail: | |
14780 | { | |
14781 | if (temp3) | |
14782 | delete arg3; | |
14783 | } | |
14784 | return NULL; | |
14785 | } | |
14786 | ||
14787 | ||
c32bde28 | 14788 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14789 | PyObject *resultobj; |
14790 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14791 | size_t arg2 ; | |
14792 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14793 | wxString *arg4 = 0 ; | |
e811c8ce | 14794 | bool arg5 = (bool) False ; |
d14a1e28 RD |
14795 | int arg6 = (int) -1 ; |
14796 | bool result; | |
e811c8ce | 14797 | bool temp4 = False ; |
d14a1e28 RD |
14798 | PyObject * obj0 = 0 ; |
14799 | PyObject * obj1 = 0 ; | |
14800 | PyObject * obj2 = 0 ; | |
14801 | PyObject * obj3 = 0 ; | |
14802 | PyObject * obj4 = 0 ; | |
994141e6 | 14803 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14804 | char *kwnames[] = { |
14805 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14806 | }; | |
14807 | ||
994141e6 | 14808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14811 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
14812 | if (PyErr_Occurred()) SWIG_fail; |
14813 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14815 | { |
14816 | arg4 = wxString_in_helper(obj3); | |
14817 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14818 | temp4 = True; |
d14a1e28 RD |
14819 | } |
14820 | if (obj4) { | |
c32bde28 | 14821 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 14822 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14823 | } |
14824 | if (obj5) { | |
c32bde28 | 14825 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 14826 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14827 | } |
14828 | { | |
14829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14830 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14831 | ||
14832 | wxPyEndAllowThreads(__tstate); | |
14833 | if (PyErr_Occurred()) SWIG_fail; | |
14834 | } | |
4f89f6a3 RD |
14835 | { |
14836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14837 | } | |
d14a1e28 RD |
14838 | { |
14839 | if (temp4) | |
14840 | delete arg4; | |
14841 | } | |
14842 | return resultobj; | |
14843 | fail: | |
14844 | { | |
14845 | if (temp4) | |
14846 | delete arg4; | |
14847 | } | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
c32bde28 | 14852 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14853 | PyObject *resultobj; |
14854 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14855 | size_t arg2 ; | |
14856 | int result; | |
14857 | PyObject * obj0 = 0 ; | |
14858 | PyObject * obj1 = 0 ; | |
14859 | char *kwnames[] = { | |
14860 | (char *) "self",(char *) "n", NULL | |
14861 | }; | |
14862 | ||
14863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14866 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14867 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14868 | { |
14869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14870 | result = (int)(arg1)->SetSelection(arg2); | |
14871 | ||
14872 | wxPyEndAllowThreads(__tstate); | |
14873 | if (PyErr_Occurred()) SWIG_fail; | |
14874 | } | |
c32bde28 | 14875 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14876 | return resultobj; |
14877 | fail: | |
14878 | return NULL; | |
14879 | } | |
14880 | ||
14881 | ||
c32bde28 | 14882 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14883 | PyObject *resultobj; |
14884 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 14885 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14886 | PyObject * obj0 = 0 ; |
14887 | PyObject * obj1 = 0 ; | |
14888 | char *kwnames[] = { | |
14889 | (char *) "self",(char *) "forward", NULL | |
14890 | }; | |
14891 | ||
14892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14895 | if (obj1) { |
c32bde28 | 14896 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14897 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14898 | } |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | (arg1)->AdvanceSelection(arg2); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
14906 | Py_INCREF(Py_None); resultobj = Py_None; | |
14907 | return resultobj; | |
14908 | fail: | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
c32bde28 | 14913 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
14914 | PyObject *resultobj; |
14915 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14916 | wxVisualAttributes result; | |
14917 | PyObject * obj0 = 0 ; | |
14918 | char *kwnames[] = { | |
14919 | (char *) "variant", NULL | |
14920 | }; | |
14921 | ||
14922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14923 | if (obj0) { | |
c32bde28 | 14924 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
14925 | if (PyErr_Occurred()) SWIG_fail; |
14926 | } | |
14927 | { | |
110da5b0 | 14928 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14930 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14931 | ||
14932 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14933 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14934 | } |
14935 | { | |
14936 | wxVisualAttributes * resultptr; | |
14937 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14938 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14939 | } | |
14940 | return resultobj; | |
14941 | fail: | |
14942 | return NULL; | |
14943 | } | |
14944 | ||
14945 | ||
c32bde28 | 14946 | static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14947 | PyObject *obj; |
14948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14949 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14950 | Py_INCREF(obj); | |
14951 | return Py_BuildValue((char *)""); | |
14952 | } | |
c32bde28 | 14953 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14954 | PyObject *resultobj; |
14955 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14956 | int arg2 = (int) 0 ; | |
14957 | int arg3 = (int) -1 ; | |
14958 | int arg4 = (int) -1 ; | |
14959 | wxBookCtrlEvent *result; | |
994141e6 RD |
14960 | PyObject * obj0 = 0 ; |
14961 | PyObject * obj1 = 0 ; | |
14962 | PyObject * obj2 = 0 ; | |
14963 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14964 | char *kwnames[] = { |
14965 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14966 | }; | |
14967 | ||
994141e6 RD |
14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14969 | if (obj0) { | |
c32bde28 | 14970 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 14971 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14972 | } |
14973 | if (obj1) { | |
c32bde28 | 14974 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14975 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14976 | } |
14977 | if (obj2) { | |
c32bde28 | 14978 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14979 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14980 | } |
14981 | if (obj3) { | |
c32bde28 | 14982 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 14983 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14984 | } |
d14a1e28 RD |
14985 | { |
14986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14987 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14988 | ||
14989 | wxPyEndAllowThreads(__tstate); | |
14990 | if (PyErr_Occurred()) SWIG_fail; | |
14991 | } | |
15afbcd0 | 14992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14993 | return resultobj; |
14994 | fail: | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
c32bde28 | 14999 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15000 | PyObject *resultobj; |
15001 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15002 | int result; | |
15003 | PyObject * obj0 = 0 ; | |
15004 | char *kwnames[] = { | |
15005 | (char *) "self", NULL | |
15006 | }; | |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15011 | { |
15012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15013 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
15014 | ||
15015 | wxPyEndAllowThreads(__tstate); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
c32bde28 | 15018 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15019 | return resultobj; |
15020 | fail: | |
15021 | return NULL; | |
15022 | } | |
15023 | ||
15024 | ||
c32bde28 | 15025 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15026 | PyObject *resultobj; |
15027 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15028 | int arg2 ; | |
15029 | PyObject * obj0 = 0 ; | |
994141e6 | 15030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15031 | char *kwnames[] = { |
15032 | (char *) "self",(char *) "nSel", NULL | |
15033 | }; | |
15034 | ||
994141e6 | 15035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15038 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15039 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15040 | { |
15041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15042 | (arg1)->SetSelection(arg2); | |
15043 | ||
15044 | wxPyEndAllowThreads(__tstate); | |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
15046 | } | |
15047 | Py_INCREF(Py_None); resultobj = Py_None; | |
15048 | return resultobj; | |
15049 | fail: | |
15050 | return NULL; | |
15051 | } | |
15052 | ||
15053 | ||
c32bde28 | 15054 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15055 | PyObject *resultobj; |
15056 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15057 | int result; | |
15058 | PyObject * obj0 = 0 ; | |
15059 | char *kwnames[] = { | |
15060 | (char *) "self", NULL | |
15061 | }; | |
15062 | ||
15063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15066 | { |
15067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15068 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
15069 | ||
15070 | wxPyEndAllowThreads(__tstate); | |
15071 | if (PyErr_Occurred()) SWIG_fail; | |
15072 | } | |
c32bde28 | 15073 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15074 | return resultobj; |
15075 | fail: | |
15076 | return NULL; | |
15077 | } | |
15078 | ||
15079 | ||
c32bde28 | 15080 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15081 | PyObject *resultobj; |
15082 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15083 | int arg2 ; | |
15084 | PyObject * obj0 = 0 ; | |
994141e6 | 15085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15086 | char *kwnames[] = { |
15087 | (char *) "self",(char *) "nOldSel", NULL | |
15088 | }; | |
15089 | ||
994141e6 | 15090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15093 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15094 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15095 | { |
15096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15097 | (arg1)->SetOldSelection(arg2); | |
15098 | ||
15099 | wxPyEndAllowThreads(__tstate); | |
15100 | if (PyErr_Occurred()) SWIG_fail; | |
15101 | } | |
15102 | Py_INCREF(Py_None); resultobj = Py_None; | |
15103 | return resultobj; | |
15104 | fail: | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
c32bde28 | 15109 | static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15110 | PyObject *obj; |
15111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15112 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
15113 | Py_INCREF(obj); | |
15114 | return Py_BuildValue((char *)""); | |
15115 | } | |
c32bde28 | 15116 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15117 | PyObject *resultobj; |
15118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15119 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15120 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15121 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15122 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15123 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15124 | long arg5 = (long) 0 ; | |
15125 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
15126 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15127 | wxNotebook *result; | |
15128 | wxPoint temp3 ; | |
15129 | wxSize temp4 ; | |
e811c8ce | 15130 | bool temp6 = False ; |
d14a1e28 | 15131 | PyObject * obj0 = 0 ; |
994141e6 | 15132 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15133 | PyObject * obj2 = 0 ; |
15134 | PyObject * obj3 = 0 ; | |
994141e6 | 15135 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15136 | PyObject * obj5 = 0 ; |
15137 | char *kwnames[] = { | |
15138 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15139 | }; | |
15140 | ||
4f89f6a3 | 15141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 | 15144 | if (obj1) { |
c32bde28 | 15145 | arg2 = (int)SWIG_As_int(obj1); |
4f89f6a3 RD |
15146 | if (PyErr_Occurred()) SWIG_fail; |
15147 | } | |
d14a1e28 RD |
15148 | if (obj2) { |
15149 | { | |
15150 | arg3 = &temp3; | |
15151 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15152 | } | |
15153 | } | |
15154 | if (obj3) { | |
15155 | { | |
15156 | arg4 = &temp4; | |
15157 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15158 | } | |
15159 | } | |
994141e6 | 15160 | if (obj4) { |
c32bde28 | 15161 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 15162 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15163 | } |
d14a1e28 RD |
15164 | if (obj5) { |
15165 | { | |
15166 | arg6 = wxString_in_helper(obj5); | |
15167 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15168 | temp6 = True; |
d14a1e28 RD |
15169 | } |
15170 | } | |
15171 | { | |
e3b71cb8 | 15172 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15174 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15175 | ||
15176 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15177 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15178 | } |
b0f7404b | 15179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15180 | { |
15181 | if (temp6) | |
15182 | delete arg6; | |
15183 | } | |
15184 | return resultobj; | |
15185 | fail: | |
15186 | { | |
15187 | if (temp6) | |
15188 | delete arg6; | |
15189 | } | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
c32bde28 | 15194 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15195 | PyObject *resultobj; |
15196 | wxNotebook *result; | |
15197 | char *kwnames[] = { | |
15198 | NULL | |
15199 | }; | |
15200 | ||
15201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15202 | { | |
e3b71cb8 | 15203 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15205 | result = (wxNotebook *)new wxNotebook(); | |
15206 | ||
15207 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15208 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15209 | } |
b0f7404b | 15210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15211 | return resultobj; |
15212 | fail: | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
c32bde28 | 15217 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15218 | PyObject *resultobj; |
15219 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15220 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15221 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15222 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15223 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15224 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15225 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15226 | long arg6 = (long) 0 ; | |
15227 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15228 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15229 | bool result; | |
15230 | wxPoint temp4 ; | |
15231 | wxSize temp5 ; | |
e811c8ce | 15232 | bool temp7 = False ; |
d14a1e28 RD |
15233 | PyObject * obj0 = 0 ; |
15234 | PyObject * obj1 = 0 ; | |
994141e6 | 15235 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15236 | PyObject * obj3 = 0 ; |
15237 | PyObject * obj4 = 0 ; | |
994141e6 | 15238 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15239 | PyObject * obj6 = 0 ; |
15240 | char *kwnames[] = { | |
15241 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15242 | }; | |
15243 | ||
248ed943 | 15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 15249 | if (obj2) { |
c32bde28 | 15250 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
15251 | if (PyErr_Occurred()) SWIG_fail; |
15252 | } | |
d14a1e28 RD |
15253 | if (obj3) { |
15254 | { | |
15255 | arg4 = &temp4; | |
15256 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15257 | } | |
15258 | } | |
15259 | if (obj4) { | |
15260 | { | |
15261 | arg5 = &temp5; | |
15262 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15263 | } | |
15264 | } | |
994141e6 | 15265 | if (obj5) { |
c32bde28 | 15266 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 15267 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15268 | } |
d14a1e28 RD |
15269 | if (obj6) { |
15270 | { | |
15271 | arg7 = wxString_in_helper(obj6); | |
15272 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15273 | temp7 = True; |
d14a1e28 RD |
15274 | } |
15275 | } | |
15276 | { | |
15277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15278 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15279 | ||
15280 | wxPyEndAllowThreads(__tstate); | |
15281 | if (PyErr_Occurred()) SWIG_fail; | |
15282 | } | |
4f89f6a3 RD |
15283 | { |
15284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15285 | } | |
d14a1e28 RD |
15286 | { |
15287 | if (temp7) | |
15288 | delete arg7; | |
15289 | } | |
15290 | return resultobj; | |
15291 | fail: | |
15292 | { | |
15293 | if (temp7) | |
15294 | delete arg7; | |
15295 | } | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
c32bde28 | 15300 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15301 | PyObject *resultobj; |
15302 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15303 | int result; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15312 | { |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15315 | ||
15316 | wxPyEndAllowThreads(__tstate); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
c32bde28 | 15319 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15320 | return resultobj; |
15321 | fail: | |
15322 | return NULL; | |
15323 | } | |
15324 | ||
15325 | ||
c32bde28 | 15326 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15327 | PyObject *resultobj; |
15328 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15329 | wxSize *arg2 = 0 ; | |
15330 | wxSize temp2 ; | |
15331 | PyObject * obj0 = 0 ; | |
15332 | PyObject * obj1 = 0 ; | |
15333 | char *kwnames[] = { | |
15334 | (char *) "self",(char *) "padding", NULL | |
15335 | }; | |
15336 | ||
15337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15340 | { |
15341 | arg2 = &temp2; | |
15342 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15343 | } | |
15344 | { | |
15345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15346 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15347 | ||
15348 | wxPyEndAllowThreads(__tstate); | |
15349 | if (PyErr_Occurred()) SWIG_fail; | |
15350 | } | |
15351 | Py_INCREF(Py_None); resultobj = Py_None; | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
c32bde28 | 15358 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15359 | PyObject *resultobj; |
15360 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15361 | wxSize *arg2 = 0 ; | |
15362 | wxSize temp2 ; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | PyObject * obj1 = 0 ; | |
15365 | char *kwnames[] = { | |
15366 | (char *) "self",(char *) "sz", NULL | |
15367 | }; | |
15368 | ||
15369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15372 | { |
15373 | arg2 = &temp2; | |
15374 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15375 | } | |
15376 | { | |
15377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15378 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15379 | ||
15380 | wxPyEndAllowThreads(__tstate); | |
15381 | if (PyErr_Occurred()) SWIG_fail; | |
15382 | } | |
15383 | Py_INCREF(Py_None); resultobj = Py_None; | |
15384 | return resultobj; | |
15385 | fail: | |
15386 | return NULL; | |
15387 | } | |
15388 | ||
15389 | ||
c32bde28 | 15390 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15391 | PyObject *resultobj; |
15392 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15393 | wxPoint *arg2 = 0 ; | |
15394 | long *arg3 = (long *) 0 ; | |
15395 | int result; | |
15396 | wxPoint temp2 ; | |
15397 | long temp3 ; | |
c32bde28 | 15398 | int res3 = 0 ; |
d14a1e28 RD |
15399 | PyObject * obj0 = 0 ; |
15400 | PyObject * obj1 = 0 ; | |
15401 | char *kwnames[] = { | |
15402 | (char *) "self",(char *) "pt", NULL | |
15403 | }; | |
15404 | ||
c32bde28 | 15405 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 15406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15409 | { |
15410 | arg2 = &temp2; | |
15411 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15412 | } | |
15413 | { | |
15414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15415 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15416 | ||
15417 | wxPyEndAllowThreads(__tstate); | |
15418 | if (PyErr_Occurred()) SWIG_fail; | |
15419 | } | |
c32bde28 RD |
15420 | resultobj = SWIG_From_int((int)result); |
15421 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15422 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
15423 | return resultobj; |
15424 | fail: | |
15425 | return NULL; | |
15426 | } | |
15427 | ||
15428 | ||
c32bde28 | 15429 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15430 | PyObject *resultobj; |
15431 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15432 | wxSize *arg2 = 0 ; | |
15433 | wxSize result; | |
15434 | wxSize temp2 ; | |
15435 | PyObject * obj0 = 0 ; | |
15436 | PyObject * obj1 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self",(char *) "sizePage", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15444 | { |
15445 | arg2 = &temp2; | |
15446 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15447 | } | |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15451 | ||
15452 | wxPyEndAllowThreads(__tstate); | |
15453 | if (PyErr_Occurred()) SWIG_fail; | |
15454 | } | |
15455 | { | |
15456 | wxSize * resultptr; | |
15457 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15458 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15459 | } |
15460 | return resultobj; | |
15461 | fail: | |
15462 | return NULL; | |
15463 | } | |
15464 | ||
15465 | ||
c32bde28 | 15466 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
15467 | PyObject *resultobj; |
15468 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15469 | wxVisualAttributes result; | |
15470 | PyObject * obj0 = 0 ; | |
15471 | char *kwnames[] = { | |
15472 | (char *) "variant", NULL | |
15473 | }; | |
15474 | ||
15475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15476 | if (obj0) { | |
c32bde28 | 15477 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
15478 | if (PyErr_Occurred()) SWIG_fail; |
15479 | } | |
15480 | { | |
110da5b0 | 15481 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
15482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15483 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15484 | ||
15485 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15486 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15487 | } |
15488 | { | |
15489 | wxVisualAttributes * resultptr; | |
15490 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15491 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15492 | } | |
15493 | return resultobj; | |
15494 | fail: | |
15495 | return NULL; | |
15496 | } | |
15497 | ||
15498 | ||
c32bde28 | 15499 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15500 | PyObject *obj; |
15501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15502 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15503 | Py_INCREF(obj); | |
15504 | return Py_BuildValue((char *)""); | |
15505 | } | |
c32bde28 | 15506 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15507 | PyObject *resultobj; |
15508 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15509 | int arg2 = (int) 0 ; | |
15510 | int arg3 = (int) -1 ; | |
15511 | int arg4 = (int) -1 ; | |
15512 | wxNotebookEvent *result; | |
994141e6 RD |
15513 | PyObject * obj0 = 0 ; |
15514 | PyObject * obj1 = 0 ; | |
15515 | PyObject * obj2 = 0 ; | |
15516 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15517 | char *kwnames[] = { |
15518 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15519 | }; | |
15520 | ||
994141e6 RD |
15521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15522 | if (obj0) { | |
c32bde28 | 15523 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 15524 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15525 | } |
15526 | if (obj1) { | |
c32bde28 | 15527 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15528 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15529 | } |
15530 | if (obj2) { | |
c32bde28 | 15531 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 15532 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15533 | } |
15534 | if (obj3) { | |
c32bde28 | 15535 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 15536 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15537 | } |
d14a1e28 RD |
15538 | { |
15539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15540 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15541 | ||
15542 | wxPyEndAllowThreads(__tstate); | |
15543 | if (PyErr_Occurred()) SWIG_fail; | |
15544 | } | |
15afbcd0 | 15545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
15546 | return resultobj; |
15547 | fail: | |
15548 | return NULL; | |
15549 | } | |
15550 | ||
15551 | ||
c32bde28 | 15552 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15553 | PyObject *obj; |
15554 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15555 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15556 | Py_INCREF(obj); | |
15557 | return Py_BuildValue((char *)""); | |
15558 | } | |
c32bde28 | 15559 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15560 | PyObject *resultobj; |
15561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15562 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15563 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15564 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15565 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15566 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15567 | long arg5 = (long) 0 ; | |
15568 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15569 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15570 | wxListbook *result; | |
15571 | wxPoint temp3 ; | |
15572 | wxSize temp4 ; | |
e811c8ce | 15573 | bool temp6 = False ; |
d14a1e28 | 15574 | PyObject * obj0 = 0 ; |
994141e6 | 15575 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15576 | PyObject * obj2 = 0 ; |
15577 | PyObject * obj3 = 0 ; | |
994141e6 | 15578 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15579 | PyObject * obj5 = 0 ; |
15580 | char *kwnames[] = { | |
15581 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15582 | }; | |
15583 | ||
4f89f6a3 | 15584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 | 15587 | if (obj1) { |
c32bde28 | 15588 | arg2 = (int)SWIG_As_int(obj1); |
4f89f6a3 RD |
15589 | if (PyErr_Occurred()) SWIG_fail; |
15590 | } | |
d14a1e28 RD |
15591 | if (obj2) { |
15592 | { | |
15593 | arg3 = &temp3; | |
15594 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15595 | } | |
15596 | } | |
15597 | if (obj3) { | |
15598 | { | |
15599 | arg4 = &temp4; | |
15600 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15601 | } | |
15602 | } | |
994141e6 | 15603 | if (obj4) { |
c32bde28 | 15604 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 15605 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15606 | } |
d14a1e28 RD |
15607 | if (obj5) { |
15608 | { | |
15609 | arg6 = wxString_in_helper(obj5); | |
15610 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15611 | temp6 = True; |
d14a1e28 RD |
15612 | } |
15613 | } | |
15614 | { | |
e3b71cb8 | 15615 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15617 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15618 | ||
15619 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15620 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15621 | } |
15afbcd0 | 15622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15623 | { |
15624 | if (temp6) | |
15625 | delete arg6; | |
15626 | } | |
15627 | return resultobj; | |
15628 | fail: | |
15629 | { | |
15630 | if (temp6) | |
15631 | delete arg6; | |
15632 | } | |
15633 | return NULL; | |
15634 | } | |
15635 | ||
15636 | ||
c32bde28 | 15637 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15638 | PyObject *resultobj; |
15639 | wxListbook *result; | |
15640 | char *kwnames[] = { | |
15641 | NULL | |
15642 | }; | |
15643 | ||
15644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15645 | { | |
e3b71cb8 | 15646 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15648 | result = (wxListbook *)new wxListbook(); | |
15649 | ||
15650 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15651 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15652 | } |
15afbcd0 | 15653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15654 | return resultobj; |
15655 | fail: | |
15656 | return NULL; | |
15657 | } | |
15658 | ||
15659 | ||
c32bde28 | 15660 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15661 | PyObject *resultobj; |
15662 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15663 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15664 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15665 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15666 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15667 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15668 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15669 | long arg6 = (long) 0 ; | |
15670 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15671 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15672 | bool result; | |
15673 | wxPoint temp4 ; | |
15674 | wxSize temp5 ; | |
e811c8ce | 15675 | bool temp7 = False ; |
d14a1e28 RD |
15676 | PyObject * obj0 = 0 ; |
15677 | PyObject * obj1 = 0 ; | |
994141e6 | 15678 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15679 | PyObject * obj3 = 0 ; |
15680 | PyObject * obj4 = 0 ; | |
994141e6 | 15681 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15682 | PyObject * obj6 = 0 ; |
15683 | char *kwnames[] = { | |
15684 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15685 | }; | |
15686 | ||
248ed943 | 15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 15692 | if (obj2) { |
c32bde28 | 15693 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
15694 | if (PyErr_Occurred()) SWIG_fail; |
15695 | } | |
d14a1e28 RD |
15696 | if (obj3) { |
15697 | { | |
15698 | arg4 = &temp4; | |
15699 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15700 | } | |
15701 | } | |
15702 | if (obj4) { | |
15703 | { | |
15704 | arg5 = &temp5; | |
15705 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15706 | } | |
15707 | } | |
994141e6 | 15708 | if (obj5) { |
c32bde28 | 15709 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 15710 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15711 | } |
d14a1e28 RD |
15712 | if (obj6) { |
15713 | { | |
15714 | arg7 = wxString_in_helper(obj6); | |
15715 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15716 | temp7 = True; |
d14a1e28 RD |
15717 | } |
15718 | } | |
15719 | { | |
15720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15721 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15722 | ||
15723 | wxPyEndAllowThreads(__tstate); | |
15724 | if (PyErr_Occurred()) SWIG_fail; | |
15725 | } | |
4f89f6a3 RD |
15726 | { |
15727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15728 | } | |
d14a1e28 RD |
15729 | { |
15730 | if (temp7) | |
15731 | delete arg7; | |
15732 | } | |
15733 | return resultobj; | |
15734 | fail: | |
15735 | { | |
15736 | if (temp7) | |
15737 | delete arg7; | |
15738 | } | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
c32bde28 | 15743 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15744 | PyObject *resultobj; |
15745 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15746 | bool result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "self", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15755 | { |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15757 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
15760 | if (PyErr_Occurred()) SWIG_fail; | |
15761 | } | |
4f89f6a3 RD |
15762 | { |
15763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15764 | } | |
d14a1e28 RD |
15765 | return resultobj; |
15766 | fail: | |
15767 | return NULL; | |
15768 | } | |
15769 | ||
15770 | ||
c32bde28 | 15771 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15772 | PyObject *obj; |
15773 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15774 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15775 | Py_INCREF(obj); | |
15776 | return Py_BuildValue((char *)""); | |
15777 | } | |
c32bde28 | 15778 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15779 | PyObject *resultobj; |
15780 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15781 | int arg2 = (int) 0 ; | |
15782 | int arg3 = (int) -1 ; | |
15783 | int arg4 = (int) -1 ; | |
15784 | wxListbookEvent *result; | |
994141e6 RD |
15785 | PyObject * obj0 = 0 ; |
15786 | PyObject * obj1 = 0 ; | |
15787 | PyObject * obj2 = 0 ; | |
15788 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15789 | char *kwnames[] = { |
15790 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15791 | }; | |
15792 | ||
994141e6 RD |
15793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15794 | if (obj0) { | |
c32bde28 | 15795 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 15796 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15797 | } |
15798 | if (obj1) { | |
c32bde28 | 15799 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15800 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15801 | } |
15802 | if (obj2) { | |
c32bde28 | 15803 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 15804 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15805 | } |
15806 | if (obj3) { | |
c32bde28 | 15807 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 15808 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15809 | } |
d14a1e28 RD |
15810 | { |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15812 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15813 | ||
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
15afbcd0 | 15817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
15818 | return resultobj; |
15819 | fail: | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
c32bde28 | 15824 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15825 | PyObject *obj; |
15826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15827 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15828 | Py_INCREF(obj); | |
15829 | return Py_BuildValue((char *)""); | |
15830 | } | |
c32bde28 | 15831 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15832 | PyObject *resultobj; |
15833 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15834 | wxBookCtrlSizer *result; | |
15835 | PyObject * obj0 = 0 ; | |
15836 | char *kwnames[] = { | |
15837 | (char *) "nb", NULL | |
15838 | }; | |
15839 | ||
15840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
15842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15843 | { |
15844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15845 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15846 | ||
15847 | wxPyEndAllowThreads(__tstate); | |
15848 | if (PyErr_Occurred()) SWIG_fail; | |
15849 | } | |
15afbcd0 | 15850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
15851 | return resultobj; |
15852 | fail: | |
15853 | return NULL; | |
15854 | } | |
15855 | ||
15856 | ||
c32bde28 | 15857 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15858 | PyObject *resultobj; |
15859 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15860 | PyObject * obj0 = 0 ; | |
15861 | char *kwnames[] = { | |
15862 | (char *) "self", NULL | |
15863 | }; | |
15864 | ||
15865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15868 | { |
15869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15870 | (arg1)->RecalcSizes(); | |
15871 | ||
15872 | wxPyEndAllowThreads(__tstate); | |
15873 | if (PyErr_Occurred()) SWIG_fail; | |
15874 | } | |
15875 | Py_INCREF(Py_None); resultobj = Py_None; | |
15876 | return resultobj; | |
15877 | fail: | |
15878 | return NULL; | |
15879 | } | |
15880 | ||
15881 | ||
c32bde28 | 15882 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15883 | PyObject *resultobj; |
15884 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15885 | wxSize result; | |
15886 | PyObject * obj0 = 0 ; | |
15887 | char *kwnames[] = { | |
15888 | (char *) "self", NULL | |
15889 | }; | |
15890 | ||
15891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15894 | { |
15895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15896 | result = (arg1)->CalcMin(); | |
15897 | ||
15898 | wxPyEndAllowThreads(__tstate); | |
15899 | if (PyErr_Occurred()) SWIG_fail; | |
15900 | } | |
15901 | { | |
15902 | wxSize * resultptr; | |
15903 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15905 | } |
15906 | return resultobj; | |
15907 | fail: | |
15908 | return NULL; | |
15909 | } | |
15910 | ||
15911 | ||
c32bde28 | 15912 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15913 | PyObject *resultobj; |
15914 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15915 | wxBookCtrl *result; | |
15916 | PyObject * obj0 = 0 ; | |
15917 | char *kwnames[] = { | |
15918 | (char *) "self", NULL | |
15919 | }; | |
15920 | ||
15921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15924 | { |
15925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15926 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15afbcd0 | 15931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
15932 | return resultobj; |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
c32bde28 | 15938 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15939 | PyObject *obj; |
15940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15941 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15942 | Py_INCREF(obj); | |
15943 | return Py_BuildValue((char *)""); | |
15944 | } | |
c32bde28 | 15945 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15946 | PyObject *resultobj; |
15947 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15948 | wxNotebookSizer *result; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "nb", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15957 | { |
15958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15959 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15960 | ||
15961 | wxPyEndAllowThreads(__tstate); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | } | |
15afbcd0 | 15964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
15965 | return resultobj; |
15966 | fail: | |
15967 | return NULL; | |
15968 | } | |
15969 | ||
15970 | ||
c32bde28 | 15971 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15972 | PyObject *resultobj; |
15973 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15974 | PyObject * obj0 = 0 ; | |
15975 | char *kwnames[] = { | |
15976 | (char *) "self", NULL | |
15977 | }; | |
15978 | ||
15979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15982 | { |
15983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15984 | (arg1)->RecalcSizes(); | |
15985 | ||
15986 | wxPyEndAllowThreads(__tstate); | |
15987 | if (PyErr_Occurred()) SWIG_fail; | |
15988 | } | |
15989 | Py_INCREF(Py_None); resultobj = Py_None; | |
15990 | return resultobj; | |
15991 | fail: | |
15992 | return NULL; | |
15993 | } | |
15994 | ||
15995 | ||
c32bde28 | 15996 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15997 | PyObject *resultobj; |
15998 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15999 | wxSize result; | |
16000 | PyObject * obj0 = 0 ; | |
16001 | char *kwnames[] = { | |
16002 | (char *) "self", NULL | |
16003 | }; | |
16004 | ||
16005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16008 | { |
16009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16010 | result = (arg1)->CalcMin(); | |
16011 | ||
16012 | wxPyEndAllowThreads(__tstate); | |
16013 | if (PyErr_Occurred()) SWIG_fail; | |
16014 | } | |
16015 | { | |
16016 | wxSize * resultptr; | |
16017 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16018 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16019 | } |
16020 | return resultobj; | |
16021 | fail: | |
16022 | return NULL; | |
16023 | } | |
16024 | ||
16025 | ||
c32bde28 | 16026 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16027 | PyObject *resultobj; |
16028 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16029 | wxNotebook *result; | |
16030 | PyObject * obj0 = 0 ; | |
16031 | char *kwnames[] = { | |
16032 | (char *) "self", NULL | |
16033 | }; | |
16034 | ||
16035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16038 | { |
16039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16040 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
16041 | ||
16042 | wxPyEndAllowThreads(__tstate); | |
16043 | if (PyErr_Occurred()) SWIG_fail; | |
16044 | } | |
16045 | { | |
412d302d | 16046 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16047 | } |
16048 | return resultobj; | |
16049 | fail: | |
16050 | return NULL; | |
16051 | } | |
16052 | ||
16053 | ||
c32bde28 | 16054 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16055 | PyObject *obj; |
16056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16057 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
16058 | Py_INCREF(obj); | |
16059 | return Py_BuildValue((char *)""); | |
16060 | } | |
c32bde28 | 16061 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16062 | PyObject *resultobj; |
16063 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16064 | int result; | |
16065 | PyObject * obj0 = 0 ; | |
16066 | char *kwnames[] = { | |
16067 | (char *) "self", NULL | |
16068 | }; | |
16069 | ||
16070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16073 | { |
16074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16075 | result = (int)(arg1)->GetId(); | |
16076 | ||
16077 | wxPyEndAllowThreads(__tstate); | |
16078 | if (PyErr_Occurred()) SWIG_fail; | |
16079 | } | |
c32bde28 | 16080 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16081 | return resultobj; |
16082 | fail: | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
c32bde28 | 16087 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16088 | PyObject *resultobj; |
16089 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16090 | wxControl *result; | |
16091 | PyObject * obj0 = 0 ; | |
16092 | char *kwnames[] = { | |
16093 | (char *) "self", NULL | |
16094 | }; | |
16095 | ||
16096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16099 | { |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | result = (wxControl *)(arg1)->GetControl(); | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | { | |
412d302d | 16107 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16108 | } |
16109 | return resultobj; | |
16110 | fail: | |
16111 | return NULL; | |
16112 | } | |
16113 | ||
16114 | ||
c32bde28 | 16115 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16116 | PyObject *resultobj; |
16117 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16118 | wxToolBarBase *result; | |
16119 | PyObject * obj0 = 0 ; | |
16120 | char *kwnames[] = { | |
16121 | (char *) "self", NULL | |
16122 | }; | |
16123 | ||
16124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16127 | { |
16128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16129 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16130 | ||
16131 | wxPyEndAllowThreads(__tstate); | |
16132 | if (PyErr_Occurred()) SWIG_fail; | |
16133 | } | |
16134 | { | |
412d302d | 16135 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16136 | } |
16137 | return resultobj; | |
16138 | fail: | |
16139 | return NULL; | |
16140 | } | |
16141 | ||
16142 | ||
c32bde28 | 16143 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16144 | PyObject *resultobj; |
16145 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16146 | int result; | |
16147 | PyObject * obj0 = 0 ; | |
16148 | char *kwnames[] = { | |
16149 | (char *) "self", NULL | |
16150 | }; | |
16151 | ||
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16155 | { |
16156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16157 | result = (int)(arg1)->IsButton(); | |
16158 | ||
16159 | wxPyEndAllowThreads(__tstate); | |
16160 | if (PyErr_Occurred()) SWIG_fail; | |
16161 | } | |
c32bde28 | 16162 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16163 | return resultobj; |
16164 | fail: | |
16165 | return NULL; | |
16166 | } | |
16167 | ||
16168 | ||
c32bde28 | 16169 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16170 | PyObject *resultobj; |
16171 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16172 | int result; | |
16173 | PyObject * obj0 = 0 ; | |
16174 | char *kwnames[] = { | |
16175 | (char *) "self", NULL | |
16176 | }; | |
16177 | ||
16178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16181 | { |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16183 | result = (int)(arg1)->IsControl(); | |
16184 | ||
16185 | wxPyEndAllowThreads(__tstate); | |
16186 | if (PyErr_Occurred()) SWIG_fail; | |
16187 | } | |
c32bde28 | 16188 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16189 | return resultobj; |
16190 | fail: | |
16191 | return NULL; | |
16192 | } | |
16193 | ||
16194 | ||
c32bde28 | 16195 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16196 | PyObject *resultobj; |
16197 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16198 | int result; | |
16199 | PyObject * obj0 = 0 ; | |
16200 | char *kwnames[] = { | |
16201 | (char *) "self", NULL | |
16202 | }; | |
16203 | ||
16204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16207 | { |
16208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16209 | result = (int)(arg1)->IsSeparator(); | |
16210 | ||
16211 | wxPyEndAllowThreads(__tstate); | |
16212 | if (PyErr_Occurred()) SWIG_fail; | |
16213 | } | |
c32bde28 | 16214 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16215 | return resultobj; |
16216 | fail: | |
16217 | return NULL; | |
16218 | } | |
16219 | ||
16220 | ||
c32bde28 | 16221 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16222 | PyObject *resultobj; |
16223 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16224 | int result; | |
16225 | PyObject * obj0 = 0 ; | |
16226 | char *kwnames[] = { | |
16227 | (char *) "self", NULL | |
16228 | }; | |
16229 | ||
16230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16233 | { |
16234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16235 | result = (int)(arg1)->GetStyle(); | |
16236 | ||
16237 | wxPyEndAllowThreads(__tstate); | |
16238 | if (PyErr_Occurred()) SWIG_fail; | |
16239 | } | |
c32bde28 | 16240 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16241 | return resultobj; |
16242 | fail: | |
16243 | return NULL; | |
16244 | } | |
16245 | ||
16246 | ||
c32bde28 | 16247 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16248 | PyObject *resultobj; |
16249 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16250 | int result; | |
16251 | PyObject * obj0 = 0 ; | |
16252 | char *kwnames[] = { | |
16253 | (char *) "self", NULL | |
16254 | }; | |
16255 | ||
16256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16259 | { |
16260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16261 | result = (int)(arg1)->GetKind(); | |
16262 | ||
16263 | wxPyEndAllowThreads(__tstate); | |
16264 | if (PyErr_Occurred()) SWIG_fail; | |
16265 | } | |
c32bde28 | 16266 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16267 | return resultobj; |
16268 | fail: | |
16269 | return NULL; | |
16270 | } | |
16271 | ||
16272 | ||
c32bde28 | 16273 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16274 | PyObject *resultobj; |
16275 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16276 | bool result; | |
16277 | PyObject * obj0 = 0 ; | |
16278 | char *kwnames[] = { | |
16279 | (char *) "self", NULL | |
16280 | }; | |
16281 | ||
16282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16285 | { |
16286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16287 | result = (bool)(arg1)->IsEnabled(); | |
16288 | ||
16289 | wxPyEndAllowThreads(__tstate); | |
16290 | if (PyErr_Occurred()) SWIG_fail; | |
16291 | } | |
4f89f6a3 RD |
16292 | { |
16293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16294 | } | |
d14a1e28 RD |
16295 | return resultobj; |
16296 | fail: | |
16297 | return NULL; | |
16298 | } | |
16299 | ||
16300 | ||
c32bde28 | 16301 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16302 | PyObject *resultobj; |
16303 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16304 | bool result; | |
16305 | PyObject * obj0 = 0 ; | |
16306 | char *kwnames[] = { | |
16307 | (char *) "self", NULL | |
16308 | }; | |
16309 | ||
16310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16313 | { |
16314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16315 | result = (bool)(arg1)->IsToggled(); | |
16316 | ||
16317 | wxPyEndAllowThreads(__tstate); | |
16318 | if (PyErr_Occurred()) SWIG_fail; | |
16319 | } | |
4f89f6a3 RD |
16320 | { |
16321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16322 | } | |
d14a1e28 RD |
16323 | return resultobj; |
16324 | fail: | |
16325 | return NULL; | |
16326 | } | |
16327 | ||
16328 | ||
c32bde28 | 16329 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16330 | PyObject *resultobj; |
16331 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16332 | bool result; | |
16333 | PyObject * obj0 = 0 ; | |
16334 | char *kwnames[] = { | |
16335 | (char *) "self", NULL | |
16336 | }; | |
16337 | ||
16338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16341 | { |
16342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16343 | result = (bool)(arg1)->CanBeToggled(); | |
16344 | ||
16345 | wxPyEndAllowThreads(__tstate); | |
16346 | if (PyErr_Occurred()) SWIG_fail; | |
16347 | } | |
4f89f6a3 RD |
16348 | { |
16349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16350 | } | |
d14a1e28 RD |
16351 | return resultobj; |
16352 | fail: | |
16353 | return NULL; | |
16354 | } | |
16355 | ||
16356 | ||
c32bde28 | 16357 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16358 | PyObject *resultobj; |
16359 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16360 | wxBitmap *result; | |
16361 | PyObject * obj0 = 0 ; | |
16362 | char *kwnames[] = { | |
16363 | (char *) "self", NULL | |
16364 | }; | |
16365 | ||
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16369 | { |
16370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16371 | { | |
16372 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16373 | result = (wxBitmap *) &_result_ref; | |
16374 | } | |
16375 | ||
16376 | wxPyEndAllowThreads(__tstate); | |
16377 | if (PyErr_Occurred()) SWIG_fail; | |
16378 | } | |
4276dc52 RD |
16379 | { |
16380 | wxBitmap* resultptr = new wxBitmap(*result); | |
16381 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16382 | } | |
d14a1e28 RD |
16383 | return resultobj; |
16384 | fail: | |
16385 | return NULL; | |
16386 | } | |
16387 | ||
16388 | ||
c32bde28 | 16389 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16390 | PyObject *resultobj; |
16391 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16392 | wxBitmap *result; | |
16393 | PyObject * obj0 = 0 ; | |
16394 | char *kwnames[] = { | |
16395 | (char *) "self", NULL | |
16396 | }; | |
16397 | ||
16398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16401 | { |
16402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16403 | { | |
16404 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16405 | result = (wxBitmap *) &_result_ref; | |
16406 | } | |
16407 | ||
16408 | wxPyEndAllowThreads(__tstate); | |
16409 | if (PyErr_Occurred()) SWIG_fail; | |
16410 | } | |
4276dc52 RD |
16411 | { |
16412 | wxBitmap* resultptr = new wxBitmap(*result); | |
16413 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16414 | } | |
d14a1e28 RD |
16415 | return resultobj; |
16416 | fail: | |
16417 | return NULL; | |
16418 | } | |
16419 | ||
16420 | ||
c32bde28 | 16421 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16422 | PyObject *resultobj; |
16423 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16424 | wxBitmap result; | |
16425 | PyObject * obj0 = 0 ; | |
16426 | char *kwnames[] = { | |
16427 | (char *) "self", NULL | |
16428 | }; | |
16429 | ||
16430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16433 | { |
16434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16435 | result = (arg1)->GetBitmap(); | |
16436 | ||
16437 | wxPyEndAllowThreads(__tstate); | |
16438 | if (PyErr_Occurred()) SWIG_fail; | |
16439 | } | |
16440 | { | |
16441 | wxBitmap * resultptr; | |
16442 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 16443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
16444 | } |
16445 | return resultobj; | |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
c32bde28 | 16451 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16452 | PyObject *resultobj; |
16453 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16454 | wxString result; | |
16455 | PyObject * obj0 = 0 ; | |
16456 | char *kwnames[] = { | |
16457 | (char *) "self", NULL | |
16458 | }; | |
16459 | ||
16460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16463 | { |
16464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16465 | result = (arg1)->GetLabel(); | |
16466 | ||
16467 | wxPyEndAllowThreads(__tstate); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | } | |
16470 | { | |
16471 | #if wxUSE_UNICODE | |
16472 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16473 | #else | |
16474 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16475 | #endif | |
16476 | } | |
16477 | return resultobj; | |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
c32bde28 | 16483 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16484 | PyObject *resultobj; |
16485 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16486 | wxString result; | |
16487 | PyObject * obj0 = 0 ; | |
16488 | char *kwnames[] = { | |
16489 | (char *) "self", NULL | |
16490 | }; | |
16491 | ||
16492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16495 | { |
16496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16497 | result = (arg1)->GetShortHelp(); | |
16498 | ||
16499 | wxPyEndAllowThreads(__tstate); | |
16500 | if (PyErr_Occurred()) SWIG_fail; | |
16501 | } | |
16502 | { | |
16503 | #if wxUSE_UNICODE | |
16504 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16505 | #else | |
16506 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16507 | #endif | |
16508 | } | |
16509 | return resultobj; | |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
c32bde28 | 16515 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16516 | PyObject *resultobj; |
16517 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16518 | wxString result; | |
16519 | PyObject * obj0 = 0 ; | |
16520 | char *kwnames[] = { | |
16521 | (char *) "self", NULL | |
16522 | }; | |
16523 | ||
16524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16527 | { |
16528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16529 | result = (arg1)->GetLongHelp(); | |
16530 | ||
16531 | wxPyEndAllowThreads(__tstate); | |
16532 | if (PyErr_Occurred()) SWIG_fail; | |
16533 | } | |
16534 | { | |
16535 | #if wxUSE_UNICODE | |
16536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16537 | #else | |
16538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16539 | #endif | |
16540 | } | |
16541 | return resultobj; | |
16542 | fail: | |
16543 | return NULL; | |
16544 | } | |
16545 | ||
16546 | ||
c32bde28 | 16547 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16548 | PyObject *resultobj; |
16549 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16550 | bool arg2 ; | |
16551 | bool result; | |
16552 | PyObject * obj0 = 0 ; | |
16553 | PyObject * obj1 = 0 ; | |
16554 | char *kwnames[] = { | |
16555 | (char *) "self",(char *) "enable", NULL | |
16556 | }; | |
16557 | ||
16558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16561 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16562 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16563 | { |
16564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16565 | result = (bool)(arg1)->Enable(arg2); | |
16566 | ||
16567 | wxPyEndAllowThreads(__tstate); | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | } | |
4f89f6a3 RD |
16570 | { |
16571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16572 | } | |
d14a1e28 RD |
16573 | return resultobj; |
16574 | fail: | |
16575 | return NULL; | |
16576 | } | |
16577 | ||
16578 | ||
c32bde28 | 16579 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16580 | PyObject *resultobj; |
16581 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16582 | PyObject * obj0 = 0 ; | |
16583 | char *kwnames[] = { | |
16584 | (char *) "self", NULL | |
16585 | }; | |
16586 | ||
16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16590 | { |
16591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16592 | (arg1)->Toggle(); | |
16593 | ||
16594 | wxPyEndAllowThreads(__tstate); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | } | |
16597 | Py_INCREF(Py_None); resultobj = Py_None; | |
16598 | return resultobj; | |
16599 | fail: | |
16600 | return NULL; | |
16601 | } | |
16602 | ||
16603 | ||
c32bde28 | 16604 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16605 | PyObject *resultobj; |
16606 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16607 | bool arg2 ; | |
16608 | bool result; | |
16609 | PyObject * obj0 = 0 ; | |
16610 | PyObject * obj1 = 0 ; | |
16611 | char *kwnames[] = { | |
16612 | (char *) "self",(char *) "toggle", NULL | |
16613 | }; | |
16614 | ||
16615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16618 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16619 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16620 | { |
16621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16622 | result = (bool)(arg1)->SetToggle(arg2); | |
16623 | ||
16624 | wxPyEndAllowThreads(__tstate); | |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | } | |
4f89f6a3 RD |
16627 | { |
16628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16629 | } | |
d14a1e28 RD |
16630 | return resultobj; |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
c32bde28 | 16636 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16637 | PyObject *resultobj; |
16638 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16639 | wxString *arg2 = 0 ; | |
16640 | bool result; | |
e811c8ce | 16641 | bool temp2 = False ; |
d14a1e28 RD |
16642 | PyObject * obj0 = 0 ; |
16643 | PyObject * obj1 = 0 ; | |
16644 | char *kwnames[] = { | |
16645 | (char *) "self",(char *) "help", NULL | |
16646 | }; | |
16647 | ||
16648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16651 | { |
16652 | arg2 = wxString_in_helper(obj1); | |
16653 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16654 | temp2 = True; |
d14a1e28 RD |
16655 | } |
16656 | { | |
16657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16658 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16659 | ||
16660 | wxPyEndAllowThreads(__tstate); | |
16661 | if (PyErr_Occurred()) SWIG_fail; | |
16662 | } | |
4f89f6a3 RD |
16663 | { |
16664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16665 | } | |
d14a1e28 RD |
16666 | { |
16667 | if (temp2) | |
16668 | delete arg2; | |
16669 | } | |
16670 | return resultobj; | |
16671 | fail: | |
16672 | { | |
16673 | if (temp2) | |
16674 | delete arg2; | |
16675 | } | |
16676 | return NULL; | |
16677 | } | |
16678 | ||
16679 | ||
c32bde28 | 16680 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16681 | PyObject *resultobj; |
16682 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16683 | wxString *arg2 = 0 ; | |
16684 | bool result; | |
e811c8ce | 16685 | bool temp2 = False ; |
d14a1e28 RD |
16686 | PyObject * obj0 = 0 ; |
16687 | PyObject * obj1 = 0 ; | |
16688 | char *kwnames[] = { | |
16689 | (char *) "self",(char *) "help", NULL | |
16690 | }; | |
16691 | ||
16692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16695 | { |
16696 | arg2 = wxString_in_helper(obj1); | |
16697 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16698 | temp2 = True; |
d14a1e28 RD |
16699 | } |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16703 | ||
16704 | wxPyEndAllowThreads(__tstate); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | } | |
4f89f6a3 RD |
16707 | { |
16708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16709 | } | |
d14a1e28 RD |
16710 | { |
16711 | if (temp2) | |
16712 | delete arg2; | |
16713 | } | |
16714 | return resultobj; | |
16715 | fail: | |
16716 | { | |
16717 | if (temp2) | |
16718 | delete arg2; | |
16719 | } | |
16720 | return NULL; | |
16721 | } | |
16722 | ||
16723 | ||
c32bde28 | 16724 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16725 | PyObject *resultobj; |
16726 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16727 | wxBitmap *arg2 = 0 ; | |
16728 | PyObject * obj0 = 0 ; | |
16729 | PyObject * obj1 = 0 ; | |
16730 | char *kwnames[] = { | |
16731 | (char *) "self",(char *) "bmp", NULL | |
16732 | }; | |
16733 | ||
16734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16738 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16739 | SWIG_fail; | |
d14a1e28 | 16740 | if (arg2 == NULL) { |
15afbcd0 RD |
16741 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16742 | SWIG_fail; | |
d14a1e28 RD |
16743 | } |
16744 | { | |
16745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16746 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16747 | ||
16748 | wxPyEndAllowThreads(__tstate); | |
16749 | if (PyErr_Occurred()) SWIG_fail; | |
16750 | } | |
16751 | Py_INCREF(Py_None); resultobj = Py_None; | |
16752 | return resultobj; | |
16753 | fail: | |
16754 | return NULL; | |
16755 | } | |
16756 | ||
16757 | ||
c32bde28 | 16758 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16759 | PyObject *resultobj; |
16760 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16761 | wxBitmap *arg2 = 0 ; | |
16762 | PyObject * obj0 = 0 ; | |
16763 | PyObject * obj1 = 0 ; | |
16764 | char *kwnames[] = { | |
16765 | (char *) "self",(char *) "bmp", NULL | |
16766 | }; | |
16767 | ||
16768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16773 | SWIG_fail; | |
d14a1e28 | 16774 | if (arg2 == NULL) { |
15afbcd0 RD |
16775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16776 | SWIG_fail; | |
d14a1e28 RD |
16777 | } |
16778 | { | |
16779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16780 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16781 | ||
16782 | wxPyEndAllowThreads(__tstate); | |
16783 | if (PyErr_Occurred()) SWIG_fail; | |
16784 | } | |
16785 | Py_INCREF(Py_None); resultobj = Py_None; | |
16786 | return resultobj; | |
16787 | fail: | |
16788 | return NULL; | |
16789 | } | |
16790 | ||
16791 | ||
c32bde28 | 16792 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16793 | PyObject *resultobj; |
16794 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16795 | wxString *arg2 = 0 ; | |
e811c8ce | 16796 | bool temp2 = False ; |
d14a1e28 RD |
16797 | PyObject * obj0 = 0 ; |
16798 | PyObject * obj1 = 0 ; | |
16799 | char *kwnames[] = { | |
16800 | (char *) "self",(char *) "label", NULL | |
16801 | }; | |
16802 | ||
16803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16806 | { |
16807 | arg2 = wxString_in_helper(obj1); | |
16808 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16809 | temp2 = True; |
d14a1e28 RD |
16810 | } |
16811 | { | |
16812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16813 | (arg1)->SetLabel((wxString const &)*arg2); | |
16814 | ||
16815 | wxPyEndAllowThreads(__tstate); | |
16816 | if (PyErr_Occurred()) SWIG_fail; | |
16817 | } | |
16818 | Py_INCREF(Py_None); resultobj = Py_None; | |
16819 | { | |
16820 | if (temp2) | |
16821 | delete arg2; | |
16822 | } | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | { | |
16826 | if (temp2) | |
16827 | delete arg2; | |
16828 | } | |
16829 | return NULL; | |
16830 | } | |
16831 | ||
16832 | ||
c32bde28 | 16833 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16834 | PyObject *resultobj; |
16835 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16836 | PyObject * obj0 = 0 ; | |
16837 | char *kwnames[] = { | |
16838 | (char *) "self", NULL | |
16839 | }; | |
16840 | ||
16841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16844 | { |
16845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16846 | (arg1)->Detach(); | |
16847 | ||
16848 | wxPyEndAllowThreads(__tstate); | |
16849 | if (PyErr_Occurred()) SWIG_fail; | |
16850 | } | |
16851 | Py_INCREF(Py_None); resultobj = Py_None; | |
16852 | return resultobj; | |
16853 | fail: | |
16854 | return NULL; | |
16855 | } | |
16856 | ||
16857 | ||
c32bde28 | 16858 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16859 | PyObject *resultobj; |
16860 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16861 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16862 | PyObject * obj0 = 0 ; | |
16863 | PyObject * obj1 = 0 ; | |
16864 | char *kwnames[] = { | |
16865 | (char *) "self",(char *) "tbar", NULL | |
16866 | }; | |
16867 | ||
16868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16873 | { |
16874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16875 | (arg1)->Attach(arg2); | |
16876 | ||
16877 | wxPyEndAllowThreads(__tstate); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
16880 | Py_INCREF(Py_None); resultobj = Py_None; | |
16881 | return resultobj; | |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
c32bde28 | 16887 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16888 | PyObject *resultobj; |
16889 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16890 | PyObject *result; | |
16891 | PyObject * obj0 = 0 ; | |
16892 | char *kwnames[] = { | |
16893 | (char *) "self", NULL | |
16894 | }; | |
16895 | ||
16896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16899 | { |
16900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16901 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16902 | ||
16903 | wxPyEndAllowThreads(__tstate); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | resultobj = result; | |
16907 | return resultobj; | |
16908 | fail: | |
16909 | return NULL; | |
16910 | } | |
16911 | ||
16912 | ||
c32bde28 | 16913 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16914 | PyObject *resultobj; |
16915 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16916 | PyObject *arg2 = (PyObject *) 0 ; | |
16917 | PyObject * obj0 = 0 ; | |
16918 | PyObject * obj1 = 0 ; | |
16919 | char *kwnames[] = { | |
16920 | (char *) "self",(char *) "clientData", NULL | |
16921 | }; | |
16922 | ||
16923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16926 | arg2 = obj1; |
16927 | { | |
16928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16929 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16930 | ||
16931 | wxPyEndAllowThreads(__tstate); | |
16932 | if (PyErr_Occurred()) SWIG_fail; | |
16933 | } | |
16934 | Py_INCREF(Py_None); resultobj = Py_None; | |
16935 | return resultobj; | |
16936 | fail: | |
16937 | return NULL; | |
16938 | } | |
16939 | ||
16940 | ||
c32bde28 | 16941 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16942 | PyObject *obj; |
16943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16944 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16945 | Py_INCREF(obj); | |
16946 | return Py_BuildValue((char *)""); | |
16947 | } | |
c32bde28 | 16948 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16949 | PyObject *resultobj; |
16950 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16951 | int arg2 ; | |
16952 | wxString *arg3 = 0 ; | |
16953 | wxBitmap *arg4 = 0 ; | |
16954 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16955 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16956 | int arg6 = (int) wxITEM_NORMAL ; | |
16957 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16958 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16959 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16960 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16961 | PyObject *arg9 = (PyObject *) NULL ; | |
16962 | wxToolBarToolBase *result; | |
e811c8ce RD |
16963 | bool temp3 = False ; |
16964 | bool temp7 = False ; | |
16965 | bool temp8 = False ; | |
d14a1e28 | 16966 | PyObject * obj0 = 0 ; |
994141e6 | 16967 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16968 | PyObject * obj2 = 0 ; |
16969 | PyObject * obj3 = 0 ; | |
16970 | PyObject * obj4 = 0 ; | |
994141e6 | 16971 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16972 | PyObject * obj6 = 0 ; |
16973 | PyObject * obj7 = 0 ; | |
16974 | PyObject * obj8 = 0 ; | |
16975 | char *kwnames[] = { | |
16976 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16977 | }; | |
16978 | ||
994141e6 | 16979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
16980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16982 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16983 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16984 | { |
16985 | arg3 = wxString_in_helper(obj2); | |
16986 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16987 | temp3 = True; |
d14a1e28 | 16988 | } |
15afbcd0 RD |
16989 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16991 | SWIG_fail; | |
d14a1e28 | 16992 | if (arg4 == NULL) { |
15afbcd0 RD |
16993 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16994 | SWIG_fail; | |
d14a1e28 RD |
16995 | } |
16996 | if (obj4) { | |
15afbcd0 RD |
16997 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16998 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16999 | SWIG_fail; | |
d14a1e28 | 17000 | if (arg5 == NULL) { |
15afbcd0 RD |
17001 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17002 | SWIG_fail; | |
d14a1e28 RD |
17003 | } |
17004 | } | |
994141e6 | 17005 | if (obj5) { |
c32bde28 | 17006 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 17007 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17008 | } |
d14a1e28 RD |
17009 | if (obj6) { |
17010 | { | |
17011 | arg7 = wxString_in_helper(obj6); | |
17012 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 17013 | temp7 = True; |
d14a1e28 RD |
17014 | } |
17015 | } | |
17016 | if (obj7) { | |
17017 | { | |
17018 | arg8 = wxString_in_helper(obj7); | |
17019 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 17020 | temp8 = True; |
d14a1e28 RD |
17021 | } |
17022 | } | |
17023 | if (obj8) { | |
17024 | arg9 = obj8; | |
17025 | } | |
17026 | { | |
17027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17028 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
17029 | ||
17030 | wxPyEndAllowThreads(__tstate); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | } | |
17033 | { | |
412d302d | 17034 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17035 | } |
17036 | { | |
17037 | if (temp3) | |
17038 | delete arg3; | |
17039 | } | |
17040 | { | |
17041 | if (temp7) | |
17042 | delete arg7; | |
17043 | } | |
17044 | { | |
17045 | if (temp8) | |
17046 | delete arg8; | |
17047 | } | |
17048 | return resultobj; | |
17049 | fail: | |
17050 | { | |
17051 | if (temp3) | |
17052 | delete arg3; | |
17053 | } | |
17054 | { | |
17055 | if (temp7) | |
17056 | delete arg7; | |
17057 | } | |
17058 | { | |
17059 | if (temp8) | |
17060 | delete arg8; | |
17061 | } | |
17062 | return NULL; | |
17063 | } | |
17064 | ||
17065 | ||
c32bde28 | 17066 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17067 | PyObject *resultobj; |
17068 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17069 | size_t arg2 ; | |
17070 | int arg3 ; | |
17071 | wxString *arg4 = 0 ; | |
17072 | wxBitmap *arg5 = 0 ; | |
17073 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
17074 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
17075 | int arg7 = (int) wxITEM_NORMAL ; | |
17076 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17077 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17078 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
17079 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17080 | PyObject *arg10 = (PyObject *) NULL ; | |
17081 | wxToolBarToolBase *result; | |
e811c8ce RD |
17082 | bool temp4 = False ; |
17083 | bool temp8 = False ; | |
17084 | bool temp9 = False ; | |
d14a1e28 RD |
17085 | PyObject * obj0 = 0 ; |
17086 | PyObject * obj1 = 0 ; | |
994141e6 | 17087 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17088 | PyObject * obj3 = 0 ; |
17089 | PyObject * obj4 = 0 ; | |
17090 | PyObject * obj5 = 0 ; | |
994141e6 | 17091 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
17092 | PyObject * obj7 = 0 ; |
17093 | PyObject * obj8 = 0 ; | |
17094 | PyObject * obj9 = 0 ; | |
17095 | char *kwnames[] = { | |
17096 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17097 | }; | |
17098 | ||
994141e6 | 17099 | 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 |
17100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17102 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17103 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17104 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17105 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17106 | { |
17107 | arg4 = wxString_in_helper(obj3); | |
17108 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 17109 | temp4 = True; |
d14a1e28 | 17110 | } |
15afbcd0 RD |
17111 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
17112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17113 | SWIG_fail; | |
d14a1e28 | 17114 | if (arg5 == NULL) { |
15afbcd0 RD |
17115 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17116 | SWIG_fail; | |
d14a1e28 RD |
17117 | } |
17118 | if (obj5) { | |
15afbcd0 RD |
17119 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
17120 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17121 | SWIG_fail; | |
d14a1e28 | 17122 | if (arg6 == NULL) { |
15afbcd0 RD |
17123 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17124 | SWIG_fail; | |
d14a1e28 RD |
17125 | } |
17126 | } | |
994141e6 | 17127 | if (obj6) { |
c32bde28 | 17128 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 17129 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17130 | } |
d14a1e28 RD |
17131 | if (obj7) { |
17132 | { | |
17133 | arg8 = wxString_in_helper(obj7); | |
17134 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 17135 | temp8 = True; |
d14a1e28 RD |
17136 | } |
17137 | } | |
17138 | if (obj8) { | |
17139 | { | |
17140 | arg9 = wxString_in_helper(obj8); | |
17141 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 17142 | temp9 = True; |
d14a1e28 RD |
17143 | } |
17144 | } | |
17145 | if (obj9) { | |
17146 | arg10 = obj9; | |
17147 | } | |
17148 | { | |
17149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17150 | 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); | |
17151 | ||
17152 | wxPyEndAllowThreads(__tstate); | |
17153 | if (PyErr_Occurred()) SWIG_fail; | |
17154 | } | |
17155 | { | |
412d302d | 17156 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17157 | } |
17158 | { | |
17159 | if (temp4) | |
17160 | delete arg4; | |
17161 | } | |
17162 | { | |
17163 | if (temp8) | |
17164 | delete arg8; | |
17165 | } | |
17166 | { | |
17167 | if (temp9) | |
17168 | delete arg9; | |
17169 | } | |
17170 | return resultobj; | |
17171 | fail: | |
17172 | { | |
17173 | if (temp4) | |
17174 | delete arg4; | |
17175 | } | |
17176 | { | |
17177 | if (temp8) | |
17178 | delete arg8; | |
17179 | } | |
17180 | { | |
17181 | if (temp9) | |
17182 | delete arg9; | |
17183 | } | |
17184 | return NULL; | |
17185 | } | |
17186 | ||
17187 | ||
c32bde28 | 17188 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
17189 | PyObject *resultobj; |
17190 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17191 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17192 | wxToolBarToolBase *result; | |
17193 | PyObject * obj0 = 0 ; | |
17194 | PyObject * obj1 = 0 ; | |
17195 | char *kwnames[] = { | |
17196 | (char *) "self",(char *) "tool", NULL | |
17197 | }; | |
17198 | ||
17199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17204 | { |
17205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17206 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17207 | ||
17208 | wxPyEndAllowThreads(__tstate); | |
17209 | if (PyErr_Occurred()) SWIG_fail; | |
17210 | } | |
17211 | { | |
412d302d | 17212 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17213 | } |
17214 | return resultobj; | |
17215 | fail: | |
17216 | return NULL; | |
17217 | } | |
17218 | ||
17219 | ||
c32bde28 | 17220 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
17221 | PyObject *resultobj; |
17222 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17223 | size_t arg2 ; | |
17224 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17225 | wxToolBarToolBase *result; | |
17226 | PyObject * obj0 = 0 ; | |
17227 | PyObject * obj1 = 0 ; | |
17228 | PyObject * obj2 = 0 ; | |
17229 | char *kwnames[] = { | |
17230 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17231 | }; | |
17232 | ||
17233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17236 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
17237 | if (PyErr_Occurred()) SWIG_fail; |
17238 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17240 | { |
17241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17242 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17243 | ||
17244 | wxPyEndAllowThreads(__tstate); | |
17245 | if (PyErr_Occurred()) SWIG_fail; | |
17246 | } | |
17247 | { | |
412d302d | 17248 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17249 | } |
17250 | return resultobj; | |
17251 | fail: | |
17252 | return NULL; | |
17253 | } | |
17254 | ||
17255 | ||
c32bde28 | 17256 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17257 | PyObject *resultobj; |
17258 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17259 | wxControl *arg2 = (wxControl *) 0 ; | |
17260 | wxToolBarToolBase *result; | |
17261 | PyObject * obj0 = 0 ; | |
17262 | PyObject * obj1 = 0 ; | |
17263 | char *kwnames[] = { | |
17264 | (char *) "self",(char *) "control", NULL | |
17265 | }; | |
17266 | ||
17267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17272 | { |
17273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17274 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17275 | ||
17276 | wxPyEndAllowThreads(__tstate); | |
17277 | if (PyErr_Occurred()) SWIG_fail; | |
17278 | } | |
17279 | { | |
412d302d | 17280 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17281 | } |
17282 | return resultobj; | |
17283 | fail: | |
17284 | return NULL; | |
17285 | } | |
17286 | ||
17287 | ||
c32bde28 | 17288 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17289 | PyObject *resultobj; |
17290 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17291 | size_t arg2 ; | |
17292 | wxControl *arg3 = (wxControl *) 0 ; | |
17293 | wxToolBarToolBase *result; | |
17294 | PyObject * obj0 = 0 ; | |
17295 | PyObject * obj1 = 0 ; | |
17296 | PyObject * obj2 = 0 ; | |
17297 | char *kwnames[] = { | |
17298 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17299 | }; | |
17300 | ||
17301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17304 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
17305 | if (PyErr_Occurred()) SWIG_fail; |
17306 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17308 | { |
17309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17310 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17311 | ||
17312 | wxPyEndAllowThreads(__tstate); | |
17313 | if (PyErr_Occurred()) SWIG_fail; | |
17314 | } | |
17315 | { | |
412d302d | 17316 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17317 | } |
17318 | return resultobj; | |
17319 | fail: | |
17320 | return NULL; | |
17321 | } | |
17322 | ||
17323 | ||
c32bde28 | 17324 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17325 | PyObject *resultobj; |
17326 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17327 | int arg2 ; | |
17328 | wxControl *result; | |
17329 | PyObject * obj0 = 0 ; | |
994141e6 | 17330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17331 | char *kwnames[] = { |
17332 | (char *) "self",(char *) "id", NULL | |
17333 | }; | |
17334 | ||
994141e6 | 17335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17338 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17339 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17340 | { |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
17347 | { | |
412d302d | 17348 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17349 | } |
17350 | return resultobj; | |
17351 | fail: | |
17352 | return NULL; | |
17353 | } | |
17354 | ||
17355 | ||
c32bde28 | 17356 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17357 | PyObject *resultobj; |
17358 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17359 | wxToolBarToolBase *result; | |
17360 | PyObject * obj0 = 0 ; | |
17361 | char *kwnames[] = { | |
17362 | (char *) "self", NULL | |
17363 | }; | |
17364 | ||
17365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17368 | { |
17369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17370 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17371 | ||
17372 | wxPyEndAllowThreads(__tstate); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | } | |
17375 | { | |
412d302d | 17376 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17377 | } |
17378 | return resultobj; | |
17379 | fail: | |
17380 | return NULL; | |
17381 | } | |
17382 | ||
17383 | ||
c32bde28 | 17384 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17385 | PyObject *resultobj; |
17386 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17387 | size_t arg2 ; | |
17388 | wxToolBarToolBase *result; | |
17389 | PyObject * obj0 = 0 ; | |
17390 | PyObject * obj1 = 0 ; | |
17391 | char *kwnames[] = { | |
17392 | (char *) "self",(char *) "pos", NULL | |
17393 | }; | |
17394 | ||
17395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17398 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17399 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17400 | { |
17401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17402 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17403 | ||
17404 | wxPyEndAllowThreads(__tstate); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
17407 | { | |
412d302d | 17408 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17409 | } |
17410 | return resultobj; | |
17411 | fail: | |
17412 | return NULL; | |
17413 | } | |
17414 | ||
17415 | ||
c32bde28 | 17416 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17417 | PyObject *resultobj; |
17418 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17419 | int arg2 ; | |
17420 | wxToolBarToolBase *result; | |
17421 | PyObject * obj0 = 0 ; | |
994141e6 | 17422 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17423 | char *kwnames[] = { |
17424 | (char *) "self",(char *) "id", NULL | |
17425 | }; | |
17426 | ||
994141e6 | 17427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17430 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17431 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17432 | { |
17433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17434 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17435 | ||
17436 | wxPyEndAllowThreads(__tstate); | |
17437 | if (PyErr_Occurred()) SWIG_fail; | |
17438 | } | |
17439 | { | |
412d302d | 17440 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17441 | } |
17442 | return resultobj; | |
17443 | fail: | |
17444 | return NULL; | |
17445 | } | |
17446 | ||
17447 | ||
c32bde28 | 17448 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17449 | PyObject *resultobj; |
17450 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17451 | size_t arg2 ; | |
17452 | bool result; | |
17453 | PyObject * obj0 = 0 ; | |
17454 | PyObject * obj1 = 0 ; | |
17455 | char *kwnames[] = { | |
17456 | (char *) "self",(char *) "pos", NULL | |
17457 | }; | |
17458 | ||
17459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17462 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17463 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17464 | { |
17465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17466 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17467 | ||
17468 | wxPyEndAllowThreads(__tstate); | |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
17470 | } | |
4f89f6a3 RD |
17471 | { |
17472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17473 | } | |
d14a1e28 RD |
17474 | return resultobj; |
17475 | fail: | |
17476 | return NULL; | |
17477 | } | |
17478 | ||
17479 | ||
c32bde28 | 17480 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17481 | PyObject *resultobj; |
17482 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17483 | int arg2 ; | |
17484 | bool result; | |
17485 | PyObject * obj0 = 0 ; | |
994141e6 | 17486 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17487 | char *kwnames[] = { |
17488 | (char *) "self",(char *) "id", NULL | |
17489 | }; | |
17490 | ||
994141e6 | 17491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17494 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17495 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17496 | { |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | result = (bool)(arg1)->DeleteTool(arg2); | |
17499 | ||
17500 | wxPyEndAllowThreads(__tstate); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | } | |
4f89f6a3 RD |
17503 | { |
17504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17505 | } | |
d14a1e28 RD |
17506 | return resultobj; |
17507 | fail: | |
17508 | return NULL; | |
17509 | } | |
17510 | ||
17511 | ||
c32bde28 | 17512 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17513 | PyObject *resultobj; |
17514 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17515 | PyObject * obj0 = 0 ; | |
17516 | char *kwnames[] = { | |
17517 | (char *) "self", NULL | |
17518 | }; | |
17519 | ||
17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17523 | { |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | (arg1)->ClearTools(); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | Py_INCREF(Py_None); resultobj = Py_None; | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
c32bde28 | 17537 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17538 | PyObject *resultobj; |
17539 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17540 | bool result; | |
17541 | PyObject * obj0 = 0 ; | |
17542 | char *kwnames[] = { | |
17543 | (char *) "self", NULL | |
17544 | }; | |
17545 | ||
17546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17549 | { |
17550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17551 | result = (bool)(arg1)->Realize(); | |
17552 | ||
17553 | wxPyEndAllowThreads(__tstate); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
4f89f6a3 RD |
17556 | { |
17557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17558 | } | |
d14a1e28 RD |
17559 | return resultobj; |
17560 | fail: | |
17561 | return NULL; | |
17562 | } | |
17563 | ||
17564 | ||
c32bde28 | 17565 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17566 | PyObject *resultobj; |
17567 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17568 | int arg2 ; | |
17569 | bool arg3 ; | |
17570 | PyObject * obj0 = 0 ; | |
994141e6 | 17571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17572 | PyObject * obj2 = 0 ; |
17573 | char *kwnames[] = { | |
17574 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17575 | }; | |
17576 | ||
994141e6 | 17577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17580 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17581 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17582 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 17583 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17584 | { |
17585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17586 | (arg1)->EnableTool(arg2,arg3); | |
17587 | ||
17588 | wxPyEndAllowThreads(__tstate); | |
17589 | if (PyErr_Occurred()) SWIG_fail; | |
17590 | } | |
17591 | Py_INCREF(Py_None); resultobj = Py_None; | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | return NULL; | |
17595 | } | |
17596 | ||
17597 | ||
c32bde28 | 17598 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17599 | PyObject *resultobj; |
17600 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17601 | int arg2 ; | |
17602 | bool arg3 ; | |
17603 | PyObject * obj0 = 0 ; | |
994141e6 | 17604 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17605 | PyObject * obj2 = 0 ; |
17606 | char *kwnames[] = { | |
17607 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17608 | }; | |
17609 | ||
994141e6 | 17610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17613 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17614 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17615 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 17616 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17617 | { |
17618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17619 | (arg1)->ToggleTool(arg2,arg3); | |
17620 | ||
17621 | wxPyEndAllowThreads(__tstate); | |
17622 | if (PyErr_Occurred()) SWIG_fail; | |
17623 | } | |
17624 | Py_INCREF(Py_None); resultobj = Py_None; | |
17625 | return resultobj; | |
17626 | fail: | |
17627 | return NULL; | |
17628 | } | |
17629 | ||
17630 | ||
c32bde28 | 17631 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17632 | PyObject *resultobj; |
17633 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17634 | int arg2 ; | |
17635 | bool arg3 ; | |
17636 | PyObject * obj0 = 0 ; | |
994141e6 | 17637 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17638 | PyObject * obj2 = 0 ; |
17639 | char *kwnames[] = { | |
17640 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17641 | }; | |
17642 | ||
994141e6 | 17643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17646 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17647 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17648 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 17649 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17650 | { |
17651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17652 | (arg1)->SetToggle(arg2,arg3); | |
17653 | ||
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | Py_INCREF(Py_None); resultobj = Py_None; | |
17658 | return resultobj; | |
17659 | fail: | |
17660 | return NULL; | |
17661 | } | |
17662 | ||
17663 | ||
c32bde28 | 17664 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17665 | PyObject *resultobj; |
17666 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17667 | int arg2 ; | |
17668 | PyObject *result; | |
17669 | PyObject * obj0 = 0 ; | |
994141e6 | 17670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17671 | char *kwnames[] = { |
17672 | (char *) "self",(char *) "id", NULL | |
17673 | }; | |
17674 | ||
994141e6 | 17675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17678 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17679 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17680 | { |
17681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17682 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17683 | ||
17684 | wxPyEndAllowThreads(__tstate); | |
17685 | if (PyErr_Occurred()) SWIG_fail; | |
17686 | } | |
17687 | resultobj = result; | |
17688 | return resultobj; | |
17689 | fail: | |
17690 | return NULL; | |
17691 | } | |
17692 | ||
17693 | ||
c32bde28 | 17694 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17695 | PyObject *resultobj; |
17696 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17697 | int arg2 ; | |
17698 | PyObject *arg3 = (PyObject *) 0 ; | |
17699 | PyObject * obj0 = 0 ; | |
994141e6 | 17700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17701 | PyObject * obj2 = 0 ; |
17702 | char *kwnames[] = { | |
17703 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17704 | }; | |
17705 | ||
994141e6 | 17706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17709 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17710 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17711 | arg3 = obj2; |
17712 | { | |
17713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17714 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17715 | ||
17716 | wxPyEndAllowThreads(__tstate); | |
17717 | if (PyErr_Occurred()) SWIG_fail; | |
17718 | } | |
17719 | Py_INCREF(Py_None); resultobj = Py_None; | |
17720 | return resultobj; | |
17721 | fail: | |
17722 | return NULL; | |
17723 | } | |
17724 | ||
17725 | ||
c32bde28 | 17726 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17727 | PyObject *resultobj; |
17728 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17729 | int arg2 ; | |
17730 | int result; | |
17731 | PyObject * obj0 = 0 ; | |
994141e6 | 17732 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17733 | char *kwnames[] = { |
17734 | (char *) "self",(char *) "id", NULL | |
17735 | }; | |
17736 | ||
994141e6 | 17737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17740 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17741 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17742 | { |
17743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17744 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17745 | ||
17746 | wxPyEndAllowThreads(__tstate); | |
17747 | if (PyErr_Occurred()) SWIG_fail; | |
17748 | } | |
c32bde28 | 17749 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
17750 | return resultobj; |
17751 | fail: | |
17752 | return NULL; | |
17753 | } | |
17754 | ||
17755 | ||
c32bde28 | 17756 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17757 | PyObject *resultobj; |
17758 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17759 | int arg2 ; | |
17760 | bool result; | |
17761 | PyObject * obj0 = 0 ; | |
994141e6 | 17762 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17763 | char *kwnames[] = { |
17764 | (char *) "self",(char *) "id", NULL | |
17765 | }; | |
17766 | ||
994141e6 | 17767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17770 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17771 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17772 | { |
17773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17774 | result = (bool)(arg1)->GetToolState(arg2); | |
17775 | ||
17776 | wxPyEndAllowThreads(__tstate); | |
17777 | if (PyErr_Occurred()) SWIG_fail; | |
17778 | } | |
4f89f6a3 RD |
17779 | { |
17780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17781 | } | |
d14a1e28 RD |
17782 | return resultobj; |
17783 | fail: | |
17784 | return NULL; | |
17785 | } | |
17786 | ||
17787 | ||
c32bde28 | 17788 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17789 | PyObject *resultobj; |
17790 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17791 | int arg2 ; | |
17792 | bool result; | |
17793 | PyObject * obj0 = 0 ; | |
994141e6 | 17794 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17795 | char *kwnames[] = { |
17796 | (char *) "self",(char *) "id", NULL | |
17797 | }; | |
17798 | ||
994141e6 | 17799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17802 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17803 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17804 | { |
17805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17806 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17807 | ||
17808 | wxPyEndAllowThreads(__tstate); | |
17809 | if (PyErr_Occurred()) SWIG_fail; | |
17810 | } | |
4f89f6a3 RD |
17811 | { |
17812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17813 | } | |
d14a1e28 RD |
17814 | return resultobj; |
17815 | fail: | |
17816 | return NULL; | |
17817 | } | |
17818 | ||
17819 | ||
c32bde28 | 17820 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17821 | PyObject *resultobj; |
17822 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17823 | int arg2 ; | |
17824 | wxString *arg3 = 0 ; | |
e811c8ce | 17825 | bool temp3 = False ; |
d14a1e28 | 17826 | PyObject * obj0 = 0 ; |
994141e6 | 17827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17828 | PyObject * obj2 = 0 ; |
17829 | char *kwnames[] = { | |
17830 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17831 | }; | |
17832 | ||
994141e6 | 17833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17836 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17837 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17838 | { |
17839 | arg3 = wxString_in_helper(obj2); | |
17840 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17841 | temp3 = True; |
d14a1e28 RD |
17842 | } |
17843 | { | |
17844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17845 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17846 | ||
17847 | wxPyEndAllowThreads(__tstate); | |
17848 | if (PyErr_Occurred()) SWIG_fail; | |
17849 | } | |
17850 | Py_INCREF(Py_None); resultobj = Py_None; | |
17851 | { | |
17852 | if (temp3) | |
17853 | delete arg3; | |
17854 | } | |
17855 | return resultobj; | |
17856 | fail: | |
17857 | { | |
17858 | if (temp3) | |
17859 | delete arg3; | |
17860 | } | |
17861 | return NULL; | |
17862 | } | |
17863 | ||
17864 | ||
c32bde28 | 17865 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17866 | PyObject *resultobj; |
17867 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17868 | int arg2 ; | |
17869 | wxString result; | |
17870 | PyObject * obj0 = 0 ; | |
994141e6 | 17871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17872 | char *kwnames[] = { |
17873 | (char *) "self",(char *) "id", NULL | |
17874 | }; | |
17875 | ||
994141e6 | 17876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17879 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17880 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17881 | { |
17882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17883 | result = (arg1)->GetToolShortHelp(arg2); | |
17884 | ||
17885 | wxPyEndAllowThreads(__tstate); | |
17886 | if (PyErr_Occurred()) SWIG_fail; | |
17887 | } | |
17888 | { | |
17889 | #if wxUSE_UNICODE | |
17890 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17891 | #else | |
17892 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17893 | #endif | |
17894 | } | |
17895 | return resultobj; | |
17896 | fail: | |
17897 | return NULL; | |
17898 | } | |
17899 | ||
17900 | ||
c32bde28 | 17901 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17902 | PyObject *resultobj; |
17903 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17904 | int arg2 ; | |
17905 | wxString *arg3 = 0 ; | |
e811c8ce | 17906 | bool temp3 = False ; |
d14a1e28 | 17907 | PyObject * obj0 = 0 ; |
994141e6 | 17908 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17909 | PyObject * obj2 = 0 ; |
17910 | char *kwnames[] = { | |
17911 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17912 | }; | |
17913 | ||
994141e6 | 17914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17917 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17918 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17919 | { |
17920 | arg3 = wxString_in_helper(obj2); | |
17921 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17922 | temp3 = True; |
d14a1e28 RD |
17923 | } |
17924 | { | |
17925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17926 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17927 | ||
17928 | wxPyEndAllowThreads(__tstate); | |
17929 | if (PyErr_Occurred()) SWIG_fail; | |
17930 | } | |
17931 | Py_INCREF(Py_None); resultobj = Py_None; | |
17932 | { | |
17933 | if (temp3) | |
17934 | delete arg3; | |
17935 | } | |
17936 | return resultobj; | |
17937 | fail: | |
17938 | { | |
17939 | if (temp3) | |
17940 | delete arg3; | |
17941 | } | |
17942 | return NULL; | |
17943 | } | |
17944 | ||
17945 | ||
c32bde28 | 17946 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17947 | PyObject *resultobj; |
17948 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17949 | int arg2 ; | |
17950 | wxString result; | |
17951 | PyObject * obj0 = 0 ; | |
994141e6 | 17952 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17953 | char *kwnames[] = { |
17954 | (char *) "self",(char *) "id", NULL | |
17955 | }; | |
17956 | ||
994141e6 | 17957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17960 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17961 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17962 | { |
17963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17964 | result = (arg1)->GetToolLongHelp(arg2); | |
17965 | ||
17966 | wxPyEndAllowThreads(__tstate); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
17968 | } | |
17969 | { | |
17970 | #if wxUSE_UNICODE | |
17971 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17972 | #else | |
17973 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17974 | #endif | |
17975 | } | |
17976 | return resultobj; | |
17977 | fail: | |
17978 | return NULL; | |
17979 | } | |
17980 | ||
17981 | ||
c32bde28 | 17982 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17983 | PyObject *resultobj; |
17984 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17985 | int arg2 ; | |
17986 | int arg3 ; | |
17987 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17988 | PyObject * obj1 = 0 ; |
17989 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17990 | char *kwnames[] = { |
17991 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17992 | }; | |
17993 | ||
994141e6 | 17994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17997 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17998 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17999 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18000 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18001 | { |
18002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18003 | (arg1)->SetMargins(arg2,arg3); | |
18004 | ||
18005 | wxPyEndAllowThreads(__tstate); | |
18006 | if (PyErr_Occurred()) SWIG_fail; | |
18007 | } | |
18008 | Py_INCREF(Py_None); resultobj = Py_None; | |
18009 | return resultobj; | |
18010 | fail: | |
18011 | return NULL; | |
18012 | } | |
18013 | ||
18014 | ||
c32bde28 | 18015 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18016 | PyObject *resultobj; |
18017 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18018 | wxSize *arg2 = 0 ; | |
18019 | wxSize temp2 ; | |
18020 | PyObject * obj0 = 0 ; | |
18021 | PyObject * obj1 = 0 ; | |
18022 | char *kwnames[] = { | |
18023 | (char *) "self",(char *) "size", NULL | |
18024 | }; | |
18025 | ||
18026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18029 | { |
18030 | arg2 = &temp2; | |
18031 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18032 | } | |
18033 | { | |
18034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18035 | (arg1)->SetMargins((wxSize const &)*arg2); | |
18036 | ||
18037 | wxPyEndAllowThreads(__tstate); | |
18038 | if (PyErr_Occurred()) SWIG_fail; | |
18039 | } | |
18040 | Py_INCREF(Py_None); resultobj = Py_None; | |
18041 | return resultobj; | |
18042 | fail: | |
18043 | return NULL; | |
18044 | } | |
18045 | ||
18046 | ||
c32bde28 | 18047 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18048 | PyObject *resultobj; |
18049 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18050 | int arg2 ; | |
18051 | PyObject * obj0 = 0 ; | |
994141e6 | 18052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18053 | char *kwnames[] = { |
18054 | (char *) "self",(char *) "packing", NULL | |
18055 | }; | |
18056 | ||
994141e6 | 18057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18060 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18061 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18062 | { |
18063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18064 | (arg1)->SetToolPacking(arg2); | |
18065 | ||
18066 | wxPyEndAllowThreads(__tstate); | |
18067 | if (PyErr_Occurred()) SWIG_fail; | |
18068 | } | |
18069 | Py_INCREF(Py_None); resultobj = Py_None; | |
18070 | return resultobj; | |
18071 | fail: | |
18072 | return NULL; | |
18073 | } | |
18074 | ||
18075 | ||
c32bde28 | 18076 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18077 | PyObject *resultobj; |
18078 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18079 | int arg2 ; | |
18080 | PyObject * obj0 = 0 ; | |
994141e6 | 18081 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18082 | char *kwnames[] = { |
18083 | (char *) "self",(char *) "separation", NULL | |
18084 | }; | |
18085 | ||
994141e6 | 18086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18089 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18090 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18091 | { |
18092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18093 | (arg1)->SetToolSeparation(arg2); | |
18094 | ||
18095 | wxPyEndAllowThreads(__tstate); | |
18096 | if (PyErr_Occurred()) SWIG_fail; | |
18097 | } | |
18098 | Py_INCREF(Py_None); resultobj = Py_None; | |
18099 | return resultobj; | |
18100 | fail: | |
18101 | return NULL; | |
18102 | } | |
18103 | ||
18104 | ||
c32bde28 | 18105 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18106 | PyObject *resultobj; |
18107 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18108 | wxSize result; | |
18109 | PyObject * obj0 = 0 ; | |
18110 | char *kwnames[] = { | |
18111 | (char *) "self", NULL | |
18112 | }; | |
18113 | ||
18114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18117 | { |
18118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18119 | result = (arg1)->GetToolMargins(); | |
18120 | ||
18121 | wxPyEndAllowThreads(__tstate); | |
18122 | if (PyErr_Occurred()) SWIG_fail; | |
18123 | } | |
18124 | { | |
18125 | wxSize * resultptr; | |
18126 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18127 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18128 | } |
18129 | return resultobj; | |
18130 | fail: | |
18131 | return NULL; | |
18132 | } | |
18133 | ||
18134 | ||
c32bde28 | 18135 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18136 | PyObject *resultobj; |
18137 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18138 | wxSize result; | |
18139 | PyObject * obj0 = 0 ; | |
18140 | char *kwnames[] = { | |
18141 | (char *) "self", NULL | |
18142 | }; | |
18143 | ||
18144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18147 | { |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | result = (arg1)->GetMargins(); | |
18150 | ||
18151 | wxPyEndAllowThreads(__tstate); | |
18152 | if (PyErr_Occurred()) SWIG_fail; | |
18153 | } | |
18154 | { | |
18155 | wxSize * resultptr; | |
18156 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18158 | } |
18159 | return resultobj; | |
18160 | fail: | |
18161 | return NULL; | |
18162 | } | |
18163 | ||
18164 | ||
c32bde28 | 18165 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18166 | PyObject *resultobj; |
18167 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18168 | int result; | |
18169 | PyObject * obj0 = 0 ; | |
18170 | char *kwnames[] = { | |
18171 | (char *) "self", NULL | |
18172 | }; | |
18173 | ||
18174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18177 | { |
18178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18179 | result = (int)(arg1)->GetToolPacking(); | |
18180 | ||
18181 | wxPyEndAllowThreads(__tstate); | |
18182 | if (PyErr_Occurred()) SWIG_fail; | |
18183 | } | |
c32bde28 | 18184 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18185 | return resultobj; |
18186 | fail: | |
18187 | return NULL; | |
18188 | } | |
18189 | ||
18190 | ||
c32bde28 | 18191 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18192 | PyObject *resultobj; |
18193 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18194 | int result; | |
18195 | PyObject * obj0 = 0 ; | |
18196 | char *kwnames[] = { | |
18197 | (char *) "self", NULL | |
18198 | }; | |
18199 | ||
18200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18203 | { |
18204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18205 | result = (int)(arg1)->GetToolSeparation(); | |
18206 | ||
18207 | wxPyEndAllowThreads(__tstate); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
c32bde28 | 18210 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18211 | return resultobj; |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
c32bde28 | 18217 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18218 | PyObject *resultobj; |
18219 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18220 | int arg2 ; | |
18221 | PyObject * obj0 = 0 ; | |
994141e6 | 18222 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18223 | char *kwnames[] = { |
18224 | (char *) "self",(char *) "nRows", NULL | |
18225 | }; | |
18226 | ||
994141e6 | 18227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18230 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18231 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18232 | { |
18233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18234 | (arg1)->SetRows(arg2); | |
18235 | ||
18236 | wxPyEndAllowThreads(__tstate); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
18239 | Py_INCREF(Py_None); resultobj = Py_None; | |
18240 | return resultobj; | |
18241 | fail: | |
18242 | return NULL; | |
18243 | } | |
18244 | ||
18245 | ||
c32bde28 | 18246 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18247 | PyObject *resultobj; |
18248 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18249 | int arg2 ; | |
18250 | int arg3 ; | |
18251 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18252 | PyObject * obj1 = 0 ; |
18253 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18254 | char *kwnames[] = { |
18255 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18256 | }; | |
18257 | ||
994141e6 | 18258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18261 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18262 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18263 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18264 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18265 | { |
18266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18267 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18268 | ||
18269 | wxPyEndAllowThreads(__tstate); | |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
18271 | } | |
18272 | Py_INCREF(Py_None); resultobj = Py_None; | |
18273 | return resultobj; | |
18274 | fail: | |
18275 | return NULL; | |
18276 | } | |
18277 | ||
18278 | ||
c32bde28 | 18279 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18280 | PyObject *resultobj; |
18281 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18282 | int result; | |
18283 | PyObject * obj0 = 0 ; | |
18284 | char *kwnames[] = { | |
18285 | (char *) "self", NULL | |
18286 | }; | |
18287 | ||
18288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18291 | { |
18292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18293 | result = (int)(arg1)->GetMaxRows(); | |
18294 | ||
18295 | wxPyEndAllowThreads(__tstate); | |
18296 | if (PyErr_Occurred()) SWIG_fail; | |
18297 | } | |
c32bde28 | 18298 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18299 | return resultobj; |
18300 | fail: | |
18301 | return NULL; | |
18302 | } | |
18303 | ||
18304 | ||
c32bde28 | 18305 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18306 | PyObject *resultobj; |
18307 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18308 | int result; | |
18309 | PyObject * obj0 = 0 ; | |
18310 | char *kwnames[] = { | |
18311 | (char *) "self", NULL | |
18312 | }; | |
18313 | ||
18314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18317 | { |
18318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18319 | result = (int)(arg1)->GetMaxCols(); | |
18320 | ||
18321 | wxPyEndAllowThreads(__tstate); | |
18322 | if (PyErr_Occurred()) SWIG_fail; | |
18323 | } | |
c32bde28 | 18324 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18325 | return resultobj; |
18326 | fail: | |
18327 | return NULL; | |
18328 | } | |
18329 | ||
18330 | ||
c32bde28 | 18331 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18332 | PyObject *resultobj; |
18333 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18334 | wxSize *arg2 = 0 ; | |
18335 | wxSize temp2 ; | |
18336 | PyObject * obj0 = 0 ; | |
18337 | PyObject * obj1 = 0 ; | |
18338 | char *kwnames[] = { | |
18339 | (char *) "self",(char *) "size", NULL | |
18340 | }; | |
18341 | ||
18342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18345 | { |
18346 | arg2 = &temp2; | |
18347 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18348 | } | |
18349 | { | |
18350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18351 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18352 | ||
18353 | wxPyEndAllowThreads(__tstate); | |
18354 | if (PyErr_Occurred()) SWIG_fail; | |
18355 | } | |
18356 | Py_INCREF(Py_None); resultobj = Py_None; | |
18357 | return resultobj; | |
18358 | fail: | |
18359 | return NULL; | |
18360 | } | |
18361 | ||
18362 | ||
c32bde28 | 18363 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18364 | PyObject *resultobj; |
18365 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18366 | wxSize result; | |
18367 | PyObject * obj0 = 0 ; | |
18368 | char *kwnames[] = { | |
18369 | (char *) "self", NULL | |
18370 | }; | |
18371 | ||
18372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18375 | { |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (arg1)->GetToolBitmapSize(); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | { | |
18383 | wxSize * resultptr; | |
18384 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18385 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18386 | } |
18387 | return resultobj; | |
18388 | fail: | |
18389 | return NULL; | |
18390 | } | |
18391 | ||
18392 | ||
c32bde28 | 18393 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18394 | PyObject *resultobj; |
18395 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18396 | wxSize result; | |
18397 | PyObject * obj0 = 0 ; | |
18398 | char *kwnames[] = { | |
18399 | (char *) "self", NULL | |
18400 | }; | |
18401 | ||
18402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18405 | { |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | result = (arg1)->GetToolSize(); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | { | |
18413 | wxSize * resultptr; | |
18414 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18415 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18416 | } |
18417 | return resultobj; | |
18418 | fail: | |
18419 | return NULL; | |
18420 | } | |
18421 | ||
18422 | ||
c32bde28 | 18423 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18424 | PyObject *resultobj; |
18425 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
18426 | int arg2 ; |
18427 | int arg3 ; | |
d14a1e28 RD |
18428 | wxToolBarToolBase *result; |
18429 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18430 | PyObject * obj1 = 0 ; |
18431 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18432 | char *kwnames[] = { |
18433 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18434 | }; | |
18435 | ||
994141e6 | 18436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18439 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18440 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18441 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18442 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18443 | { |
18444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18445 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18446 | ||
18447 | wxPyEndAllowThreads(__tstate); | |
18448 | if (PyErr_Occurred()) SWIG_fail; | |
18449 | } | |
18450 | { | |
412d302d | 18451 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18452 | } |
18453 | return resultobj; | |
18454 | fail: | |
18455 | return NULL; | |
18456 | } | |
18457 | ||
18458 | ||
c32bde28 | 18459 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
18460 | PyObject *resultobj; |
18461 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18462 | int arg2 ; | |
18463 | wxToolBarToolBase *result; | |
18464 | PyObject * obj0 = 0 ; | |
994141e6 | 18465 | PyObject * obj1 = 0 ; |
3a04f143 RD |
18466 | char *kwnames[] = { |
18467 | (char *) "self",(char *) "toolid", NULL | |
18468 | }; | |
18469 | ||
994141e6 | 18470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18473 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18474 | if (PyErr_Occurred()) SWIG_fail; |
3a04f143 RD |
18475 | { |
18476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18477 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18478 | ||
18479 | wxPyEndAllowThreads(__tstate); | |
18480 | if (PyErr_Occurred()) SWIG_fail; | |
18481 | } | |
18482 | { | |
412d302d | 18483 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
18484 | } |
18485 | return resultobj; | |
18486 | fail: | |
18487 | return NULL; | |
18488 | } | |
18489 | ||
18490 | ||
c32bde28 | 18491 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18492 | PyObject *resultobj; |
18493 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18494 | bool result; | |
18495 | PyObject * obj0 = 0 ; | |
18496 | char *kwnames[] = { | |
18497 | (char *) "self", NULL | |
18498 | }; | |
18499 | ||
18500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18503 | { |
18504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18505 | result = (bool)(arg1)->IsVertical(); | |
18506 | ||
18507 | wxPyEndAllowThreads(__tstate); | |
18508 | if (PyErr_Occurred()) SWIG_fail; | |
18509 | } | |
4f89f6a3 RD |
18510 | { |
18511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18512 | } | |
d14a1e28 RD |
18513 | return resultobj; |
18514 | fail: | |
18515 | return NULL; | |
18516 | } | |
18517 | ||
18518 | ||
c32bde28 | 18519 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18520 | PyObject *obj; |
18521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18522 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18523 | Py_INCREF(obj); | |
18524 | return Py_BuildValue((char *)""); | |
18525 | } | |
c32bde28 | 18526 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18527 | PyObject *resultobj; |
18528 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 18529 | int arg2 = (int) -1 ; |
d14a1e28 RD |
18530 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18531 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18532 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18533 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18534 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18535 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18536 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18537 | wxToolBar *result; | |
18538 | wxPoint temp3 ; | |
18539 | wxSize temp4 ; | |
e811c8ce | 18540 | bool temp6 = False ; |
d14a1e28 | 18541 | PyObject * obj0 = 0 ; |
994141e6 | 18542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18543 | PyObject * obj2 = 0 ; |
18544 | PyObject * obj3 = 0 ; | |
994141e6 | 18545 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18546 | PyObject * obj5 = 0 ; |
18547 | char *kwnames[] = { | |
18548 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18549 | }; | |
18550 | ||
248ed943 | 18551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
18552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 18554 | if (obj1) { |
c32bde28 | 18555 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
18556 | if (PyErr_Occurred()) SWIG_fail; |
18557 | } | |
d14a1e28 RD |
18558 | if (obj2) { |
18559 | { | |
18560 | arg3 = &temp3; | |
18561 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18562 | } | |
18563 | } | |
18564 | if (obj3) { | |
18565 | { | |
18566 | arg4 = &temp4; | |
18567 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18568 | } | |
18569 | } | |
994141e6 | 18570 | if (obj4) { |
c32bde28 | 18571 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 18572 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18573 | } |
d14a1e28 RD |
18574 | if (obj5) { |
18575 | { | |
18576 | arg6 = wxString_in_helper(obj5); | |
18577 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 18578 | temp6 = True; |
d14a1e28 RD |
18579 | } |
18580 | } | |
18581 | { | |
e3b71cb8 | 18582 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18584 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18585 | ||
18586 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18587 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 18588 | } |
b0f7404b | 18589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
18590 | { |
18591 | if (temp6) | |
18592 | delete arg6; | |
18593 | } | |
18594 | return resultobj; | |
18595 | fail: | |
18596 | { | |
18597 | if (temp6) | |
18598 | delete arg6; | |
18599 | } | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
c32bde28 | 18604 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18605 | PyObject *resultobj; |
18606 | wxToolBar *result; | |
18607 | char *kwnames[] = { | |
18608 | NULL | |
18609 | }; | |
18610 | ||
18611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18612 | { | |
e3b71cb8 | 18613 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18615 | result = (wxToolBar *)new wxToolBar(); | |
18616 | ||
18617 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18618 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 18619 | } |
b0f7404b | 18620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
18621 | return resultobj; |
18622 | fail: | |
18623 | return NULL; | |
18624 | } | |
18625 | ||
18626 | ||
c32bde28 | 18627 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18628 | PyObject *resultobj; |
18629 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18630 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 18631 | int arg3 = (int) -1 ; |
d14a1e28 RD |
18632 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18633 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18634 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18635 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18636 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18637 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18638 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18639 | bool result; | |
18640 | wxPoint temp4 ; | |
18641 | wxSize temp5 ; | |
e811c8ce | 18642 | bool temp7 = False ; |
d14a1e28 RD |
18643 | PyObject * obj0 = 0 ; |
18644 | PyObject * obj1 = 0 ; | |
994141e6 | 18645 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18646 | PyObject * obj3 = 0 ; |
18647 | PyObject * obj4 = 0 ; | |
994141e6 | 18648 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
18649 | PyObject * obj6 = 0 ; |
18650 | char *kwnames[] = { | |
18651 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18652 | }; | |
18653 | ||
248ed943 | 18654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
18655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 18659 | if (obj2) { |
c32bde28 | 18660 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
18661 | if (PyErr_Occurred()) SWIG_fail; |
18662 | } | |
d14a1e28 RD |
18663 | if (obj3) { |
18664 | { | |
18665 | arg4 = &temp4; | |
18666 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18667 | } | |
18668 | } | |
18669 | if (obj4) { | |
18670 | { | |
18671 | arg5 = &temp5; | |
18672 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18673 | } | |
18674 | } | |
994141e6 | 18675 | if (obj5) { |
c32bde28 | 18676 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 18677 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18678 | } |
d14a1e28 RD |
18679 | if (obj6) { |
18680 | { | |
18681 | arg7 = wxString_in_helper(obj6); | |
18682 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 18683 | temp7 = True; |
d14a1e28 RD |
18684 | } |
18685 | } | |
18686 | { | |
18687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18688 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18689 | ||
18690 | wxPyEndAllowThreads(__tstate); | |
18691 | if (PyErr_Occurred()) SWIG_fail; | |
18692 | } | |
4f89f6a3 RD |
18693 | { |
18694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18695 | } | |
d14a1e28 RD |
18696 | { |
18697 | if (temp7) | |
18698 | delete arg7; | |
18699 | } | |
18700 | return resultobj; | |
18701 | fail: | |
18702 | { | |
18703 | if (temp7) | |
18704 | delete arg7; | |
18705 | } | |
18706 | return NULL; | |
18707 | } | |
18708 | ||
18709 | ||
c32bde28 | 18710 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18711 | PyObject *resultobj; |
18712 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
18713 | int arg2 ; |
18714 | int arg3 ; | |
d14a1e28 RD |
18715 | wxToolBarToolBase *result; |
18716 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18717 | PyObject * obj1 = 0 ; |
18718 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18719 | char *kwnames[] = { |
18720 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18721 | }; | |
18722 | ||
994141e6 | 18723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18726 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18727 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18728 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18729 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18730 | { |
18731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18732 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18733 | ||
18734 | wxPyEndAllowThreads(__tstate); | |
18735 | if (PyErr_Occurred()) SWIG_fail; | |
18736 | } | |
18737 | { | |
412d302d | 18738 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18739 | } |
18740 | return resultobj; | |
18741 | fail: | |
18742 | return NULL; | |
18743 | } | |
18744 | ||
18745 | ||
c32bde28 | 18746 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
18747 | PyObject *resultobj; |
18748 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18749 | wxVisualAttributes result; | |
18750 | PyObject * obj0 = 0 ; | |
18751 | char *kwnames[] = { | |
18752 | (char *) "variant", NULL | |
18753 | }; | |
18754 | ||
18755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18756 | if (obj0) { | |
c32bde28 | 18757 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
18758 | if (PyErr_Occurred()) SWIG_fail; |
18759 | } | |
18760 | { | |
110da5b0 | 18761 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
18762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18763 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18764 | ||
18765 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 18766 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
18767 | } |
18768 | { | |
18769 | wxVisualAttributes * resultptr; | |
18770 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18771 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18772 | } | |
18773 | return resultobj; | |
18774 | fail: | |
18775 | return NULL; | |
18776 | } | |
18777 | ||
18778 | ||
c32bde28 | 18779 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18780 | PyObject *obj; |
18781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18782 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18783 | Py_INCREF(obj); | |
18784 | return Py_BuildValue((char *)""); | |
18785 | } | |
c32bde28 | 18786 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
18787 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
18788 | return 1; | |
18789 | } | |
18790 | ||
18791 | ||
18792 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18793 | PyObject *pyobj; | |
18794 | ||
18795 | { | |
18796 | #if wxUSE_UNICODE | |
18797 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18798 | #else | |
18799 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18800 | #endif | |
18801 | } | |
18802 | return pyobj; | |
18803 | } | |
18804 | ||
18805 | ||
c32bde28 | 18806 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18807 | PyObject *resultobj; |
18808 | wxColour const &arg1_defvalue = wxNullColour ; | |
18809 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18810 | wxColour const &arg2_defvalue = wxNullColour ; | |
18811 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18812 | wxFont const &arg3_defvalue = wxNullFont ; | |
18813 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18814 | wxListItemAttr *result; | |
18815 | wxColour temp1 ; | |
18816 | wxColour temp2 ; | |
18817 | PyObject * obj0 = 0 ; | |
18818 | PyObject * obj1 = 0 ; | |
18819 | PyObject * obj2 = 0 ; | |
18820 | char *kwnames[] = { | |
18821 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18822 | }; | |
18823 | ||
18824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18825 | if (obj0) { | |
18826 | { | |
18827 | arg1 = &temp1; | |
18828 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18829 | } | |
18830 | } | |
18831 | if (obj1) { | |
18832 | { | |
18833 | arg2 = &temp2; | |
18834 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18835 | } | |
18836 | } | |
18837 | if (obj2) { | |
15afbcd0 RD |
18838 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
18839 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18840 | SWIG_fail; | |
d14a1e28 | 18841 | if (arg3 == NULL) { |
15afbcd0 RD |
18842 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18843 | SWIG_fail; | |
d14a1e28 RD |
18844 | } |
18845 | } | |
18846 | { | |
18847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18848 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18849 | ||
18850 | wxPyEndAllowThreads(__tstate); | |
18851 | if (PyErr_Occurred()) SWIG_fail; | |
18852 | } | |
15afbcd0 | 18853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
18854 | return resultobj; |
18855 | fail: | |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
c32bde28 | 18860 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18861 | PyObject *resultobj; |
18862 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18863 | wxColour *arg2 = 0 ; | |
18864 | wxColour temp2 ; | |
18865 | PyObject * obj0 = 0 ; | |
18866 | PyObject * obj1 = 0 ; | |
18867 | char *kwnames[] = { | |
18868 | (char *) "self",(char *) "colText", NULL | |
18869 | }; | |
18870 | ||
18871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18874 | { |
18875 | arg2 = &temp2; | |
18876 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18877 | } | |
18878 | { | |
18879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18880 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18881 | ||
18882 | wxPyEndAllowThreads(__tstate); | |
18883 | if (PyErr_Occurred()) SWIG_fail; | |
18884 | } | |
18885 | Py_INCREF(Py_None); resultobj = Py_None; | |
18886 | return resultobj; | |
18887 | fail: | |
18888 | return NULL; | |
18889 | } | |
18890 | ||
18891 | ||
c32bde28 | 18892 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18893 | PyObject *resultobj; |
18894 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18895 | wxColour *arg2 = 0 ; | |
18896 | wxColour temp2 ; | |
18897 | PyObject * obj0 = 0 ; | |
18898 | PyObject * obj1 = 0 ; | |
18899 | char *kwnames[] = { | |
18900 | (char *) "self",(char *) "colBack", NULL | |
18901 | }; | |
18902 | ||
18903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18906 | { |
18907 | arg2 = &temp2; | |
18908 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18909 | } | |
18910 | { | |
18911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18912 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18913 | ||
18914 | wxPyEndAllowThreads(__tstate); | |
18915 | if (PyErr_Occurred()) SWIG_fail; | |
18916 | } | |
18917 | Py_INCREF(Py_None); resultobj = Py_None; | |
18918 | return resultobj; | |
18919 | fail: | |
18920 | return NULL; | |
18921 | } | |
18922 | ||
18923 | ||
c32bde28 | 18924 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18925 | PyObject *resultobj; |
18926 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18927 | wxFont *arg2 = 0 ; | |
18928 | PyObject * obj0 = 0 ; | |
18929 | PyObject * obj1 = 0 ; | |
18930 | char *kwnames[] = { | |
18931 | (char *) "self",(char *) "font", NULL | |
18932 | }; | |
18933 | ||
18934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18938 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18939 | SWIG_fail; | |
d14a1e28 | 18940 | if (arg2 == NULL) { |
15afbcd0 RD |
18941 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18942 | SWIG_fail; | |
d14a1e28 RD |
18943 | } |
18944 | { | |
18945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18946 | (arg1)->SetFont((wxFont const &)*arg2); | |
18947 | ||
18948 | wxPyEndAllowThreads(__tstate); | |
18949 | if (PyErr_Occurred()) SWIG_fail; | |
18950 | } | |
18951 | Py_INCREF(Py_None); resultobj = Py_None; | |
18952 | return resultobj; | |
18953 | fail: | |
18954 | return NULL; | |
18955 | } | |
18956 | ||
18957 | ||
c32bde28 | 18958 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18959 | PyObject *resultobj; |
18960 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18961 | bool result; | |
18962 | PyObject * obj0 = 0 ; | |
18963 | char *kwnames[] = { | |
18964 | (char *) "self", NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18970 | { |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | result = (bool)(arg1)->HasTextColour(); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
4f89f6a3 RD |
18977 | { |
18978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18979 | } | |
d14a1e28 RD |
18980 | return resultobj; |
18981 | fail: | |
18982 | return NULL; | |
18983 | } | |
18984 | ||
18985 | ||
c32bde28 | 18986 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18987 | PyObject *resultobj; |
18988 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18989 | bool result; | |
18990 | PyObject * obj0 = 0 ; | |
18991 | char *kwnames[] = { | |
18992 | (char *) "self", NULL | |
18993 | }; | |
18994 | ||
18995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18998 | { |
18999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19000 | result = (bool)(arg1)->HasBackgroundColour(); | |
19001 | ||
19002 | wxPyEndAllowThreads(__tstate); | |
19003 | if (PyErr_Occurred()) SWIG_fail; | |
19004 | } | |
4f89f6a3 RD |
19005 | { |
19006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19007 | } | |
d14a1e28 RD |
19008 | return resultobj; |
19009 | fail: | |
19010 | return NULL; | |
19011 | } | |
19012 | ||
19013 | ||
c32bde28 | 19014 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19015 | PyObject *resultobj; |
19016 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19017 | bool result; | |
19018 | PyObject * obj0 = 0 ; | |
19019 | char *kwnames[] = { | |
19020 | (char *) "self", NULL | |
19021 | }; | |
19022 | ||
19023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19026 | { |
19027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19028 | result = (bool)(arg1)->HasFont(); | |
19029 | ||
19030 | wxPyEndAllowThreads(__tstate); | |
19031 | if (PyErr_Occurred()) SWIG_fail; | |
19032 | } | |
4f89f6a3 RD |
19033 | { |
19034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19035 | } | |
d14a1e28 RD |
19036 | return resultobj; |
19037 | fail: | |
19038 | return NULL; | |
19039 | } | |
19040 | ||
19041 | ||
c32bde28 | 19042 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19043 | PyObject *resultobj; |
19044 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19045 | wxColour result; | |
19046 | PyObject * obj0 = 0 ; | |
19047 | char *kwnames[] = { | |
19048 | (char *) "self", NULL | |
19049 | }; | |
19050 | ||
19051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19054 | { |
19055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19056 | result = (arg1)->GetTextColour(); | |
19057 | ||
19058 | wxPyEndAllowThreads(__tstate); | |
19059 | if (PyErr_Occurred()) SWIG_fail; | |
19060 | } | |
19061 | { | |
19062 | wxColour * resultptr; | |
19063 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19064 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19065 | } |
19066 | return resultobj; | |
19067 | fail: | |
19068 | return NULL; | |
19069 | } | |
19070 | ||
19071 | ||
c32bde28 | 19072 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19073 | PyObject *resultobj; |
19074 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19075 | wxColour result; | |
19076 | PyObject * obj0 = 0 ; | |
19077 | char *kwnames[] = { | |
19078 | (char *) "self", NULL | |
19079 | }; | |
19080 | ||
19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19084 | { |
19085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19086 | result = (arg1)->GetBackgroundColour(); | |
19087 | ||
19088 | wxPyEndAllowThreads(__tstate); | |
19089 | if (PyErr_Occurred()) SWIG_fail; | |
19090 | } | |
19091 | { | |
19092 | wxColour * resultptr; | |
19093 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19094 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19095 | } |
19096 | return resultobj; | |
19097 | fail: | |
19098 | return NULL; | |
19099 | } | |
19100 | ||
19101 | ||
c32bde28 | 19102 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19103 | PyObject *resultobj; |
19104 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19105 | wxFont result; | |
19106 | PyObject * obj0 = 0 ; | |
19107 | char *kwnames[] = { | |
19108 | (char *) "self", NULL | |
19109 | }; | |
19110 | ||
19111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19114 | { |
19115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19116 | result = (arg1)->GetFont(); | |
19117 | ||
19118 | wxPyEndAllowThreads(__tstate); | |
19119 | if (PyErr_Occurred()) SWIG_fail; | |
19120 | } | |
19121 | { | |
19122 | wxFont * resultptr; | |
19123 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 19124 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19125 | } |
19126 | return resultobj; | |
19127 | fail: | |
19128 | return NULL; | |
19129 | } | |
19130 | ||
19131 | ||
c32bde28 | 19132 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19133 | PyObject *resultobj; |
19134 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19135 | PyObject * obj0 = 0 ; | |
19136 | char *kwnames[] = { | |
19137 | (char *) "self", NULL | |
19138 | }; | |
19139 | ||
19140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19143 | { |
19144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19145 | wxListItemAttr_Destroy(arg1); | |
19146 | ||
19147 | wxPyEndAllowThreads(__tstate); | |
19148 | if (PyErr_Occurred()) SWIG_fail; | |
19149 | } | |
19150 | Py_INCREF(Py_None); resultobj = Py_None; | |
19151 | return resultobj; | |
19152 | fail: | |
19153 | return NULL; | |
19154 | } | |
19155 | ||
19156 | ||
c32bde28 | 19157 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19158 | PyObject *obj; |
19159 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19160 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19161 | Py_INCREF(obj); | |
19162 | return Py_BuildValue((char *)""); | |
19163 | } | |
c32bde28 | 19164 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19165 | PyObject *resultobj; |
19166 | wxListItem *result; | |
19167 | char *kwnames[] = { | |
19168 | NULL | |
19169 | }; | |
19170 | ||
19171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19172 | { | |
19173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19174 | result = (wxListItem *)new wxListItem(); | |
19175 | ||
19176 | wxPyEndAllowThreads(__tstate); | |
19177 | if (PyErr_Occurred()) SWIG_fail; | |
19178 | } | |
19179 | { | |
412d302d | 19180 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
19181 | } |
19182 | return resultobj; | |
19183 | fail: | |
19184 | return NULL; | |
19185 | } | |
19186 | ||
19187 | ||
c32bde28 | 19188 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19189 | PyObject *resultobj; |
19190 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19191 | PyObject * obj0 = 0 ; | |
19192 | char *kwnames[] = { | |
19193 | (char *) "self", NULL | |
19194 | }; | |
19195 | ||
19196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19199 | { |
19200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19201 | delete arg1; | |
19202 | ||
19203 | wxPyEndAllowThreads(__tstate); | |
19204 | if (PyErr_Occurred()) SWIG_fail; | |
19205 | } | |
19206 | Py_INCREF(Py_None); resultobj = Py_None; | |
19207 | return resultobj; | |
19208 | fail: | |
19209 | return NULL; | |
19210 | } | |
19211 | ||
19212 | ||
c32bde28 | 19213 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19214 | PyObject *resultobj; |
19215 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19216 | PyObject * obj0 = 0 ; | |
19217 | char *kwnames[] = { | |
19218 | (char *) "self", NULL | |
19219 | }; | |
19220 | ||
19221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19224 | { |
19225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19226 | (arg1)->Clear(); | |
19227 | ||
19228 | wxPyEndAllowThreads(__tstate); | |
19229 | if (PyErr_Occurred()) SWIG_fail; | |
19230 | } | |
19231 | Py_INCREF(Py_None); resultobj = Py_None; | |
19232 | return resultobj; | |
19233 | fail: | |
19234 | return NULL; | |
19235 | } | |
19236 | ||
19237 | ||
c32bde28 | 19238 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19239 | PyObject *resultobj; |
19240 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19241 | PyObject * obj0 = 0 ; | |
19242 | char *kwnames[] = { | |
19243 | (char *) "self", NULL | |
19244 | }; | |
19245 | ||
19246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19249 | { |
19250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19251 | (arg1)->ClearAttributes(); | |
19252 | ||
19253 | wxPyEndAllowThreads(__tstate); | |
19254 | if (PyErr_Occurred()) SWIG_fail; | |
19255 | } | |
19256 | Py_INCREF(Py_None); resultobj = Py_None; | |
19257 | return resultobj; | |
19258 | fail: | |
19259 | return NULL; | |
19260 | } | |
19261 | ||
19262 | ||
c32bde28 | 19263 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19264 | PyObject *resultobj; |
19265 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19266 | long arg2 ; | |
19267 | PyObject * obj0 = 0 ; | |
994141e6 | 19268 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19269 | char *kwnames[] = { |
19270 | (char *) "self",(char *) "mask", NULL | |
19271 | }; | |
19272 | ||
994141e6 | 19273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19276 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19277 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19278 | { |
19279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19280 | (arg1)->SetMask(arg2); | |
19281 | ||
19282 | wxPyEndAllowThreads(__tstate); | |
19283 | if (PyErr_Occurred()) SWIG_fail; | |
19284 | } | |
19285 | Py_INCREF(Py_None); resultobj = Py_None; | |
19286 | return resultobj; | |
19287 | fail: | |
19288 | return NULL; | |
19289 | } | |
19290 | ||
19291 | ||
c32bde28 | 19292 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19293 | PyObject *resultobj; |
19294 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19295 | long arg2 ; | |
19296 | PyObject * obj0 = 0 ; | |
994141e6 | 19297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19298 | char *kwnames[] = { |
19299 | (char *) "self",(char *) "id", NULL | |
19300 | }; | |
19301 | ||
994141e6 | 19302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19305 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19306 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19307 | { |
19308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19309 | (arg1)->SetId(arg2); | |
19310 | ||
19311 | wxPyEndAllowThreads(__tstate); | |
19312 | if (PyErr_Occurred()) SWIG_fail; | |
19313 | } | |
19314 | Py_INCREF(Py_None); resultobj = Py_None; | |
19315 | return resultobj; | |
19316 | fail: | |
19317 | return NULL; | |
19318 | } | |
19319 | ||
19320 | ||
c32bde28 | 19321 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19322 | PyObject *resultobj; |
19323 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19324 | int arg2 ; | |
19325 | PyObject * obj0 = 0 ; | |
994141e6 | 19326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19327 | char *kwnames[] = { |
19328 | (char *) "self",(char *) "col", NULL | |
19329 | }; | |
19330 | ||
994141e6 | 19331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19334 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19335 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19336 | { |
19337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19338 | (arg1)->SetColumn(arg2); | |
19339 | ||
19340 | wxPyEndAllowThreads(__tstate); | |
19341 | if (PyErr_Occurred()) SWIG_fail; | |
19342 | } | |
19343 | Py_INCREF(Py_None); resultobj = Py_None; | |
19344 | return resultobj; | |
19345 | fail: | |
19346 | return NULL; | |
19347 | } | |
19348 | ||
19349 | ||
c32bde28 | 19350 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19351 | PyObject *resultobj; |
19352 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19353 | long arg2 ; | |
19354 | PyObject * obj0 = 0 ; | |
994141e6 | 19355 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19356 | char *kwnames[] = { |
19357 | (char *) "self",(char *) "state", NULL | |
19358 | }; | |
19359 | ||
994141e6 | 19360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19363 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19364 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19365 | { |
19366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19367 | (arg1)->SetState(arg2); | |
19368 | ||
19369 | wxPyEndAllowThreads(__tstate); | |
19370 | if (PyErr_Occurred()) SWIG_fail; | |
19371 | } | |
19372 | Py_INCREF(Py_None); resultobj = Py_None; | |
19373 | return resultobj; | |
19374 | fail: | |
19375 | return NULL; | |
19376 | } | |
19377 | ||
19378 | ||
c32bde28 | 19379 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19380 | PyObject *resultobj; |
19381 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19382 | long arg2 ; | |
19383 | PyObject * obj0 = 0 ; | |
994141e6 | 19384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19385 | char *kwnames[] = { |
19386 | (char *) "self",(char *) "stateMask", NULL | |
19387 | }; | |
19388 | ||
994141e6 | 19389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19392 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19393 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19394 | { |
19395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19396 | (arg1)->SetStateMask(arg2); | |
19397 | ||
19398 | wxPyEndAllowThreads(__tstate); | |
19399 | if (PyErr_Occurred()) SWIG_fail; | |
19400 | } | |
19401 | Py_INCREF(Py_None); resultobj = Py_None; | |
19402 | return resultobj; | |
19403 | fail: | |
19404 | return NULL; | |
19405 | } | |
19406 | ||
19407 | ||
c32bde28 | 19408 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19409 | PyObject *resultobj; |
19410 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19411 | wxString *arg2 = 0 ; | |
e811c8ce | 19412 | bool temp2 = False ; |
d14a1e28 RD |
19413 | PyObject * obj0 = 0 ; |
19414 | PyObject * obj1 = 0 ; | |
19415 | char *kwnames[] = { | |
19416 | (char *) "self",(char *) "text", NULL | |
19417 | }; | |
19418 | ||
19419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19422 | { |
19423 | arg2 = wxString_in_helper(obj1); | |
19424 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19425 | temp2 = True; |
d14a1e28 RD |
19426 | } |
19427 | { | |
19428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19429 | (arg1)->SetText((wxString const &)*arg2); | |
19430 | ||
19431 | wxPyEndAllowThreads(__tstate); | |
19432 | if (PyErr_Occurred()) SWIG_fail; | |
19433 | } | |
19434 | Py_INCREF(Py_None); resultobj = Py_None; | |
19435 | { | |
19436 | if (temp2) | |
19437 | delete arg2; | |
19438 | } | |
19439 | return resultobj; | |
19440 | fail: | |
19441 | { | |
19442 | if (temp2) | |
19443 | delete arg2; | |
19444 | } | |
19445 | return NULL; | |
19446 | } | |
19447 | ||
19448 | ||
c32bde28 | 19449 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19450 | PyObject *resultobj; |
19451 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19452 | int arg2 ; | |
19453 | PyObject * obj0 = 0 ; | |
994141e6 | 19454 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19455 | char *kwnames[] = { |
19456 | (char *) "self",(char *) "image", NULL | |
19457 | }; | |
19458 | ||
994141e6 | 19459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19462 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19463 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19464 | { |
19465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19466 | (arg1)->SetImage(arg2); | |
19467 | ||
19468 | wxPyEndAllowThreads(__tstate); | |
19469 | if (PyErr_Occurred()) SWIG_fail; | |
19470 | } | |
19471 | Py_INCREF(Py_None); resultobj = Py_None; | |
19472 | return resultobj; | |
19473 | fail: | |
19474 | return NULL; | |
19475 | } | |
19476 | ||
19477 | ||
c32bde28 | 19478 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19479 | PyObject *resultobj; |
19480 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19481 | long arg2 ; | |
19482 | PyObject * obj0 = 0 ; | |
994141e6 | 19483 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19484 | char *kwnames[] = { |
19485 | (char *) "self",(char *) "data", NULL | |
19486 | }; | |
19487 | ||
994141e6 | 19488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19491 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19492 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19493 | { |
19494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19495 | (arg1)->SetData(arg2); | |
19496 | ||
19497 | wxPyEndAllowThreads(__tstate); | |
19498 | if (PyErr_Occurred()) SWIG_fail; | |
19499 | } | |
19500 | Py_INCREF(Py_None); resultobj = Py_None; | |
19501 | return resultobj; | |
19502 | fail: | |
19503 | return NULL; | |
19504 | } | |
19505 | ||
19506 | ||
c32bde28 | 19507 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19508 | PyObject *resultobj; |
19509 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19510 | int arg2 ; | |
19511 | PyObject * obj0 = 0 ; | |
994141e6 | 19512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19513 | char *kwnames[] = { |
19514 | (char *) "self",(char *) "width", NULL | |
19515 | }; | |
19516 | ||
994141e6 | 19517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19520 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19521 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19522 | { |
19523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19524 | (arg1)->SetWidth(arg2); | |
19525 | ||
19526 | wxPyEndAllowThreads(__tstate); | |
19527 | if (PyErr_Occurred()) SWIG_fail; | |
19528 | } | |
19529 | Py_INCREF(Py_None); resultobj = Py_None; | |
19530 | return resultobj; | |
19531 | fail: | |
19532 | return NULL; | |
19533 | } | |
19534 | ||
19535 | ||
c32bde28 | 19536 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19537 | PyObject *resultobj; |
19538 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19539 | int arg2 ; | |
19540 | PyObject * obj0 = 0 ; | |
994141e6 | 19541 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19542 | char *kwnames[] = { |
19543 | (char *) "self",(char *) "align", NULL | |
19544 | }; | |
19545 | ||
994141e6 | 19546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19549 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19550 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19551 | { |
19552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19553 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19554 | ||
19555 | wxPyEndAllowThreads(__tstate); | |
19556 | if (PyErr_Occurred()) SWIG_fail; | |
19557 | } | |
19558 | Py_INCREF(Py_None); resultobj = Py_None; | |
19559 | return resultobj; | |
19560 | fail: | |
19561 | return NULL; | |
19562 | } | |
19563 | ||
19564 | ||
c32bde28 | 19565 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19566 | PyObject *resultobj; |
19567 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19568 | wxColour *arg2 = 0 ; | |
19569 | wxColour temp2 ; | |
19570 | PyObject * obj0 = 0 ; | |
19571 | PyObject * obj1 = 0 ; | |
19572 | char *kwnames[] = { | |
19573 | (char *) "self",(char *) "colText", NULL | |
19574 | }; | |
19575 | ||
19576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19579 | { |
19580 | arg2 = &temp2; | |
19581 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19582 | } | |
19583 | { | |
19584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19585 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19586 | ||
19587 | wxPyEndAllowThreads(__tstate); | |
19588 | if (PyErr_Occurred()) SWIG_fail; | |
19589 | } | |
19590 | Py_INCREF(Py_None); resultobj = Py_None; | |
19591 | return resultobj; | |
19592 | fail: | |
19593 | return NULL; | |
19594 | } | |
19595 | ||
19596 | ||
c32bde28 | 19597 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19598 | PyObject *resultobj; |
19599 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19600 | wxColour *arg2 = 0 ; | |
19601 | wxColour temp2 ; | |
19602 | PyObject * obj0 = 0 ; | |
19603 | PyObject * obj1 = 0 ; | |
19604 | char *kwnames[] = { | |
19605 | (char *) "self",(char *) "colBack", NULL | |
19606 | }; | |
19607 | ||
19608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19611 | { |
19612 | arg2 = &temp2; | |
19613 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19614 | } | |
19615 | { | |
19616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19617 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19618 | ||
19619 | wxPyEndAllowThreads(__tstate); | |
19620 | if (PyErr_Occurred()) SWIG_fail; | |
19621 | } | |
19622 | Py_INCREF(Py_None); resultobj = Py_None; | |
19623 | return resultobj; | |
19624 | fail: | |
19625 | return NULL; | |
19626 | } | |
19627 | ||
19628 | ||
c32bde28 | 19629 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19630 | PyObject *resultobj; |
19631 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19632 | wxFont *arg2 = 0 ; | |
19633 | PyObject * obj0 = 0 ; | |
19634 | PyObject * obj1 = 0 ; | |
19635 | char *kwnames[] = { | |
19636 | (char *) "self",(char *) "font", NULL | |
19637 | }; | |
19638 | ||
19639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19642 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19643 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19644 | SWIG_fail; | |
d14a1e28 | 19645 | if (arg2 == NULL) { |
15afbcd0 RD |
19646 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19647 | SWIG_fail; | |
d14a1e28 RD |
19648 | } |
19649 | { | |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | (arg1)->SetFont((wxFont const &)*arg2); | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
19656 | Py_INCREF(Py_None); resultobj = Py_None; | |
19657 | return resultobj; | |
19658 | fail: | |
19659 | return NULL; | |
19660 | } | |
19661 | ||
19662 | ||
c32bde28 | 19663 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19664 | PyObject *resultobj; |
19665 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19666 | long result; | |
19667 | PyObject * obj0 = 0 ; | |
19668 | char *kwnames[] = { | |
19669 | (char *) "self", NULL | |
19670 | }; | |
19671 | ||
19672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19675 | { |
19676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19677 | result = (long)(arg1)->GetMask(); | |
19678 | ||
19679 | wxPyEndAllowThreads(__tstate); | |
19680 | if (PyErr_Occurred()) SWIG_fail; | |
19681 | } | |
c32bde28 | 19682 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
19683 | return resultobj; |
19684 | fail: | |
19685 | return NULL; | |
19686 | } | |
19687 | ||
19688 | ||
c32bde28 | 19689 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19690 | PyObject *resultobj; |
19691 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19692 | long result; | |
19693 | PyObject * obj0 = 0 ; | |
19694 | char *kwnames[] = { | |
19695 | (char *) "self", NULL | |
19696 | }; | |
19697 | ||
19698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19701 | { |
19702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19703 | result = (long)(arg1)->GetId(); | |
19704 | ||
19705 | wxPyEndAllowThreads(__tstate); | |
19706 | if (PyErr_Occurred()) SWIG_fail; | |
19707 | } | |
c32bde28 | 19708 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
19709 | return resultobj; |
19710 | fail: | |
19711 | return NULL; | |
19712 | } | |
19713 | ||
19714 | ||
c32bde28 | 19715 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19716 | PyObject *resultobj; |
19717 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19718 | int result; | |
19719 | PyObject * obj0 = 0 ; | |
19720 | char *kwnames[] = { | |
19721 | (char *) "self", NULL | |
19722 | }; | |
19723 | ||
19724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19727 | { |
19728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19729 | result = (int)(arg1)->GetColumn(); | |
19730 | ||
19731 | wxPyEndAllowThreads(__tstate); | |
19732 | if (PyErr_Occurred()) SWIG_fail; | |
19733 | } | |
c32bde28 | 19734 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
19735 | return resultobj; |
19736 | fail: | |
19737 | return NULL; | |
19738 | } | |
19739 | ||
19740 | ||
c32bde28 | 19741 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19742 | PyObject *resultobj; |
19743 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19744 | long result; | |
19745 | PyObject * obj0 = 0 ; | |
19746 | char *kwnames[] = { | |
19747 | (char *) "self", NULL | |
19748 | }; | |
19749 | ||
19750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19753 | { |
19754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19755 | result = (long)(arg1)->GetState(); | |
19756 | ||
19757 | wxPyEndAllowThreads(__tstate); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
c32bde28 | 19760 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
19761 | return resultobj; |
19762 | fail: | |
19763 | return NULL; | |
19764 | } | |
19765 | ||
19766 | ||
c32bde28 | 19767 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19768 | PyObject *resultobj; |
19769 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19770 | wxString *result; | |
19771 | PyObject * obj0 = 0 ; | |
19772 | char *kwnames[] = { | |
19773 | (char *) "self", NULL | |
19774 | }; | |
19775 | ||
19776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19779 | { |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | { | |
19782 | wxString const &_result_ref = (arg1)->GetText(); | |
19783 | result = (wxString *) &_result_ref; | |
19784 | } | |
19785 | ||
19786 | wxPyEndAllowThreads(__tstate); | |
19787 | if (PyErr_Occurred()) SWIG_fail; | |
19788 | } | |
cc6dd355 RD |
19789 | { |
19790 | #if wxUSE_UNICODE | |
19791 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19792 | #else | |
19793 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19794 | #endif | |
19795 | } | |
d14a1e28 RD |
19796 | return resultobj; |
19797 | fail: | |
19798 | return NULL; | |
19799 | } | |
19800 | ||
19801 | ||
c32bde28 | 19802 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19803 | PyObject *resultobj; |
19804 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19805 | int result; | |
19806 | PyObject * obj0 = 0 ; | |
19807 | char *kwnames[] = { | |
19808 | (char *) "self", NULL | |
19809 | }; | |
19810 | ||
19811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19814 | { |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | result = (int)(arg1)->GetImage(); | |
19817 | ||
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
c32bde28 | 19821 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
19822 | return resultobj; |
19823 | fail: | |
19824 | return NULL; | |
19825 | } | |
19826 | ||
19827 | ||
c32bde28 | 19828 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19829 | PyObject *resultobj; |
19830 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19831 | long result; | |
19832 | PyObject * obj0 = 0 ; | |
19833 | char *kwnames[] = { | |
19834 | (char *) "self", NULL | |
19835 | }; | |
19836 | ||
19837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19840 | { |
19841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19842 | result = (long)(arg1)->GetData(); | |
19843 | ||
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
c32bde28 | 19847 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
19848 | return resultobj; |
19849 | fail: | |
19850 | return NULL; | |
19851 | } | |
19852 | ||
19853 | ||
c32bde28 | 19854 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19855 | PyObject *resultobj; |
19856 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19857 | int result; | |
19858 | PyObject * obj0 = 0 ; | |
19859 | char *kwnames[] = { | |
19860 | (char *) "self", NULL | |
19861 | }; | |
19862 | ||
19863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19866 | { |
19867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19868 | result = (int)(arg1)->GetWidth(); | |
19869 | ||
19870 | wxPyEndAllowThreads(__tstate); | |
19871 | if (PyErr_Occurred()) SWIG_fail; | |
19872 | } | |
c32bde28 | 19873 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
19874 | return resultobj; |
19875 | fail: | |
19876 | return NULL; | |
19877 | } | |
19878 | ||
19879 | ||
c32bde28 | 19880 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19881 | PyObject *resultobj; |
19882 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19883 | int result; | |
19884 | PyObject * obj0 = 0 ; | |
19885 | char *kwnames[] = { | |
19886 | (char *) "self", NULL | |
19887 | }; | |
19888 | ||
19889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19892 | { |
19893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19894 | result = (int)(arg1)->GetAlign(); | |
19895 | ||
19896 | wxPyEndAllowThreads(__tstate); | |
19897 | if (PyErr_Occurred()) SWIG_fail; | |
19898 | } | |
c32bde28 | 19899 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
19900 | return resultobj; |
19901 | fail: | |
19902 | return NULL; | |
19903 | } | |
19904 | ||
19905 | ||
c32bde28 | 19906 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19907 | PyObject *resultobj; |
19908 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19909 | wxListItemAttr *result; | |
19910 | PyObject * obj0 = 0 ; | |
19911 | char *kwnames[] = { | |
19912 | (char *) "self", NULL | |
19913 | }; | |
19914 | ||
19915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19918 | { |
19919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19920 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19921 | ||
19922 | wxPyEndAllowThreads(__tstate); | |
19923 | if (PyErr_Occurred()) SWIG_fail; | |
19924 | } | |
15afbcd0 | 19925 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
19926 | return resultobj; |
19927 | fail: | |
19928 | return NULL; | |
19929 | } | |
19930 | ||
19931 | ||
c32bde28 | 19932 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19933 | PyObject *resultobj; |
19934 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19935 | bool result; | |
19936 | PyObject * obj0 = 0 ; | |
19937 | char *kwnames[] = { | |
19938 | (char *) "self", NULL | |
19939 | }; | |
19940 | ||
19941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19944 | { |
19945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19946 | result = (bool)(arg1)->HasAttributes(); | |
19947 | ||
19948 | wxPyEndAllowThreads(__tstate); | |
19949 | if (PyErr_Occurred()) SWIG_fail; | |
19950 | } | |
4f89f6a3 RD |
19951 | { |
19952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19953 | } | |
d14a1e28 RD |
19954 | return resultobj; |
19955 | fail: | |
19956 | return NULL; | |
19957 | } | |
19958 | ||
19959 | ||
c32bde28 | 19960 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19961 | PyObject *resultobj; |
19962 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19963 | wxColour result; | |
19964 | PyObject * obj0 = 0 ; | |
19965 | char *kwnames[] = { | |
19966 | (char *) "self", NULL | |
19967 | }; | |
19968 | ||
19969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19972 | { |
19973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19974 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19975 | ||
19976 | wxPyEndAllowThreads(__tstate); | |
19977 | if (PyErr_Occurred()) SWIG_fail; | |
19978 | } | |
19979 | { | |
19980 | wxColour * resultptr; | |
19981 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19982 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19983 | } |
19984 | return resultobj; | |
19985 | fail: | |
19986 | return NULL; | |
19987 | } | |
19988 | ||
19989 | ||
c32bde28 | 19990 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19991 | PyObject *resultobj; |
19992 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19993 | wxColour result; | |
19994 | PyObject * obj0 = 0 ; | |
19995 | char *kwnames[] = { | |
19996 | (char *) "self", NULL | |
19997 | }; | |
19998 | ||
19999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20002 | { |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
20005 | ||
20006 | wxPyEndAllowThreads(__tstate); | |
20007 | if (PyErr_Occurred()) SWIG_fail; | |
20008 | } | |
20009 | { | |
20010 | wxColour * resultptr; | |
20011 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 20012 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20013 | } |
20014 | return resultobj; | |
20015 | fail: | |
20016 | return NULL; | |
20017 | } | |
20018 | ||
20019 | ||
c32bde28 | 20020 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20021 | PyObject *resultobj; |
20022 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20023 | wxFont result; | |
20024 | PyObject * obj0 = 0 ; | |
20025 | char *kwnames[] = { | |
20026 | (char *) "self", NULL | |
20027 | }; | |
20028 | ||
20029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20032 | { |
20033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20034 | result = ((wxListItem const *)arg1)->GetFont(); | |
20035 | ||
20036 | wxPyEndAllowThreads(__tstate); | |
20037 | if (PyErr_Occurred()) SWIG_fail; | |
20038 | } | |
20039 | { | |
20040 | wxFont * resultptr; | |
20041 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 20042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
20043 | } |
20044 | return resultobj; | |
20045 | fail: | |
20046 | return NULL; | |
20047 | } | |
20048 | ||
20049 | ||
c32bde28 | 20050 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20051 | PyObject *resultobj; |
20052 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20053 | long arg2 ; | |
20054 | PyObject * obj0 = 0 ; | |
994141e6 | 20055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20056 | char *kwnames[] = { |
20057 | (char *) "self",(char *) "m_mask", NULL | |
20058 | }; | |
20059 | ||
994141e6 | 20060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20063 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20064 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20065 | if (arg1) (arg1)->m_mask = arg2; |
20066 | ||
20067 | Py_INCREF(Py_None); resultobj = Py_None; | |
20068 | return resultobj; | |
20069 | fail: | |
20070 | return NULL; | |
20071 | } | |
20072 | ||
20073 | ||
c32bde28 | 20074 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20075 | PyObject *resultobj; |
20076 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20077 | long result; | |
20078 | PyObject * obj0 = 0 ; | |
20079 | char *kwnames[] = { | |
20080 | (char *) "self", NULL | |
20081 | }; | |
20082 | ||
20083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20086 | result = (long) ((arg1)->m_mask); |
20087 | ||
c32bde28 | 20088 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20089 | return resultobj; |
20090 | fail: | |
20091 | return NULL; | |
20092 | } | |
20093 | ||
20094 | ||
c32bde28 | 20095 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20096 | PyObject *resultobj; |
20097 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20098 | long arg2 ; | |
20099 | PyObject * obj0 = 0 ; | |
994141e6 | 20100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20101 | char *kwnames[] = { |
20102 | (char *) "self",(char *) "m_itemId", NULL | |
20103 | }; | |
20104 | ||
994141e6 | 20105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20108 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20109 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20110 | if (arg1) (arg1)->m_itemId = arg2; |
20111 | ||
20112 | Py_INCREF(Py_None); resultobj = Py_None; | |
20113 | return resultobj; | |
20114 | fail: | |
20115 | return NULL; | |
20116 | } | |
20117 | ||
20118 | ||
c32bde28 | 20119 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20120 | PyObject *resultobj; |
20121 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20122 | long result; | |
20123 | PyObject * obj0 = 0 ; | |
20124 | char *kwnames[] = { | |
20125 | (char *) "self", NULL | |
20126 | }; | |
20127 | ||
20128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20131 | result = (long) ((arg1)->m_itemId); |
20132 | ||
c32bde28 | 20133 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20134 | return resultobj; |
20135 | fail: | |
20136 | return NULL; | |
20137 | } | |
20138 | ||
20139 | ||
c32bde28 | 20140 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20141 | PyObject *resultobj; |
20142 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20143 | int arg2 ; | |
20144 | PyObject * obj0 = 0 ; | |
994141e6 | 20145 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20146 | char *kwnames[] = { |
20147 | (char *) "self",(char *) "m_col", NULL | |
20148 | }; | |
20149 | ||
994141e6 | 20150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20153 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20154 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20155 | if (arg1) (arg1)->m_col = arg2; |
20156 | ||
20157 | Py_INCREF(Py_None); resultobj = Py_None; | |
20158 | return resultobj; | |
20159 | fail: | |
20160 | return NULL; | |
20161 | } | |
20162 | ||
20163 | ||
c32bde28 | 20164 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20165 | PyObject *resultobj; |
20166 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20167 | int result; | |
20168 | PyObject * obj0 = 0 ; | |
20169 | char *kwnames[] = { | |
20170 | (char *) "self", NULL | |
20171 | }; | |
20172 | ||
20173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20176 | result = (int) ((arg1)->m_col); |
20177 | ||
c32bde28 | 20178 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20179 | return resultobj; |
20180 | fail: | |
20181 | return NULL; | |
20182 | } | |
20183 | ||
20184 | ||
c32bde28 | 20185 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20186 | PyObject *resultobj; |
20187 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20188 | long arg2 ; | |
20189 | PyObject * obj0 = 0 ; | |
994141e6 | 20190 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20191 | char *kwnames[] = { |
20192 | (char *) "self",(char *) "m_state", NULL | |
20193 | }; | |
20194 | ||
994141e6 | 20195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20198 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20199 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20200 | if (arg1) (arg1)->m_state = arg2; |
20201 | ||
20202 | Py_INCREF(Py_None); resultobj = Py_None; | |
20203 | return resultobj; | |
20204 | fail: | |
20205 | return NULL; | |
20206 | } | |
20207 | ||
20208 | ||
c32bde28 | 20209 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20210 | PyObject *resultobj; |
20211 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20212 | long result; | |
20213 | PyObject * obj0 = 0 ; | |
20214 | char *kwnames[] = { | |
20215 | (char *) "self", NULL | |
20216 | }; | |
20217 | ||
20218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20221 | result = (long) ((arg1)->m_state); |
20222 | ||
c32bde28 | 20223 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20224 | return resultobj; |
20225 | fail: | |
20226 | return NULL; | |
20227 | } | |
20228 | ||
20229 | ||
c32bde28 | 20230 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20231 | PyObject *resultobj; |
20232 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20233 | long arg2 ; | |
20234 | PyObject * obj0 = 0 ; | |
994141e6 | 20235 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20236 | char *kwnames[] = { |
20237 | (char *) "self",(char *) "m_stateMask", NULL | |
20238 | }; | |
20239 | ||
994141e6 | 20240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20243 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20244 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20245 | if (arg1) (arg1)->m_stateMask = arg2; |
20246 | ||
20247 | Py_INCREF(Py_None); resultobj = Py_None; | |
20248 | return resultobj; | |
20249 | fail: | |
20250 | return NULL; | |
20251 | } | |
20252 | ||
20253 | ||
c32bde28 | 20254 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20255 | PyObject *resultobj; |
20256 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20257 | long result; | |
20258 | PyObject * obj0 = 0 ; | |
20259 | char *kwnames[] = { | |
20260 | (char *) "self", NULL | |
20261 | }; | |
20262 | ||
20263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20266 | result = (long) ((arg1)->m_stateMask); |
20267 | ||
c32bde28 | 20268 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20269 | return resultobj; |
20270 | fail: | |
20271 | return NULL; | |
20272 | } | |
20273 | ||
20274 | ||
c32bde28 | 20275 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20276 | PyObject *resultobj; |
20277 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20278 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 20279 | bool temp2 = False ; |
d14a1e28 RD |
20280 | PyObject * obj0 = 0 ; |
20281 | PyObject * obj1 = 0 ; | |
20282 | char *kwnames[] = { | |
20283 | (char *) "self",(char *) "m_text", NULL | |
20284 | }; | |
20285 | ||
20286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
20289 | { |
20290 | arg2 = wxString_in_helper(obj1); | |
20291 | if (arg2 == NULL) SWIG_fail; | |
20292 | temp2 = True; | |
20293 | } | |
196addbf | 20294 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
20295 | |
20296 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
20297 | { |
20298 | if (temp2) | |
20299 | delete arg2; | |
20300 | } | |
d14a1e28 RD |
20301 | return resultobj; |
20302 | fail: | |
7eae615b RD |
20303 | { |
20304 | if (temp2) | |
20305 | delete arg2; | |
20306 | } | |
d14a1e28 RD |
20307 | return NULL; |
20308 | } | |
20309 | ||
20310 | ||
c32bde28 | 20311 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20312 | PyObject *resultobj; |
20313 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20314 | wxString *result; |
d14a1e28 RD |
20315 | PyObject * obj0 = 0 ; |
20316 | char *kwnames[] = { | |
20317 | (char *) "self", NULL | |
20318 | }; | |
20319 | ||
20320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 20323 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
20324 | |
20325 | { | |
20326 | #if wxUSE_UNICODE | |
196addbf | 20327 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 20328 | #else |
196addbf | 20329 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
20330 | #endif |
20331 | } | |
20332 | return resultobj; | |
20333 | fail: | |
20334 | return NULL; | |
20335 | } | |
20336 | ||
20337 | ||
c32bde28 | 20338 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20339 | PyObject *resultobj; |
20340 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20341 | int arg2 ; | |
20342 | PyObject * obj0 = 0 ; | |
994141e6 | 20343 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20344 | char *kwnames[] = { |
20345 | (char *) "self",(char *) "m_image", NULL | |
20346 | }; | |
20347 | ||
994141e6 | 20348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20351 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20352 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20353 | if (arg1) (arg1)->m_image = arg2; |
20354 | ||
20355 | Py_INCREF(Py_None); resultobj = Py_None; | |
20356 | return resultobj; | |
20357 | fail: | |
20358 | return NULL; | |
20359 | } | |
20360 | ||
20361 | ||
c32bde28 | 20362 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20363 | PyObject *resultobj; |
20364 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20365 | int result; | |
20366 | PyObject * obj0 = 0 ; | |
20367 | char *kwnames[] = { | |
20368 | (char *) "self", NULL | |
20369 | }; | |
20370 | ||
20371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20374 | result = (int) ((arg1)->m_image); |
20375 | ||
c32bde28 | 20376 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20377 | return resultobj; |
20378 | fail: | |
20379 | return NULL; | |
20380 | } | |
20381 | ||
20382 | ||
c32bde28 | 20383 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20384 | PyObject *resultobj; |
20385 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20386 | long arg2 ; | |
20387 | PyObject * obj0 = 0 ; | |
994141e6 | 20388 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20389 | char *kwnames[] = { |
20390 | (char *) "self",(char *) "m_data", NULL | |
20391 | }; | |
20392 | ||
994141e6 | 20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20396 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20397 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20398 | if (arg1) (arg1)->m_data = arg2; |
20399 | ||
20400 | Py_INCREF(Py_None); resultobj = Py_None; | |
20401 | return resultobj; | |
20402 | fail: | |
20403 | return NULL; | |
20404 | } | |
20405 | ||
20406 | ||
c32bde28 | 20407 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20408 | PyObject *resultobj; |
20409 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20410 | long result; | |
20411 | PyObject * obj0 = 0 ; | |
20412 | char *kwnames[] = { | |
20413 | (char *) "self", NULL | |
20414 | }; | |
20415 | ||
20416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20419 | result = (long) ((arg1)->m_data); |
20420 | ||
c32bde28 | 20421 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20422 | return resultobj; |
20423 | fail: | |
20424 | return NULL; | |
20425 | } | |
20426 | ||
20427 | ||
c32bde28 | 20428 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20429 | PyObject *resultobj; |
20430 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20431 | int arg2 ; | |
20432 | PyObject * obj0 = 0 ; | |
994141e6 | 20433 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20434 | char *kwnames[] = { |
20435 | (char *) "self",(char *) "m_format", NULL | |
20436 | }; | |
20437 | ||
994141e6 | 20438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20441 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20442 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20443 | if (arg1) (arg1)->m_format = arg2; |
20444 | ||
20445 | Py_INCREF(Py_None); resultobj = Py_None; | |
20446 | return resultobj; | |
20447 | fail: | |
20448 | return NULL; | |
20449 | } | |
20450 | ||
20451 | ||
c32bde28 | 20452 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20453 | PyObject *resultobj; |
20454 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20455 | int result; | |
20456 | PyObject * obj0 = 0 ; | |
20457 | char *kwnames[] = { | |
20458 | (char *) "self", NULL | |
20459 | }; | |
20460 | ||
20461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20464 | result = (int) ((arg1)->m_format); |
20465 | ||
c32bde28 | 20466 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20467 | return resultobj; |
20468 | fail: | |
20469 | return NULL; | |
20470 | } | |
20471 | ||
20472 | ||
c32bde28 | 20473 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20474 | PyObject *resultobj; |
20475 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20476 | int arg2 ; | |
20477 | PyObject * obj0 = 0 ; | |
994141e6 | 20478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20479 | char *kwnames[] = { |
20480 | (char *) "self",(char *) "m_width", NULL | |
20481 | }; | |
20482 | ||
994141e6 | 20483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20486 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20487 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20488 | if (arg1) (arg1)->m_width = arg2; |
20489 | ||
20490 | Py_INCREF(Py_None); resultobj = Py_None; | |
20491 | return resultobj; | |
20492 | fail: | |
20493 | return NULL; | |
20494 | } | |
20495 | ||
20496 | ||
c32bde28 | 20497 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20498 | PyObject *resultobj; |
20499 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20500 | int result; | |
20501 | PyObject * obj0 = 0 ; | |
20502 | char *kwnames[] = { | |
20503 | (char *) "self", NULL | |
20504 | }; | |
20505 | ||
20506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20509 | result = (int) ((arg1)->m_width); |
20510 | ||
c32bde28 | 20511 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20512 | return resultobj; |
20513 | fail: | |
20514 | return NULL; | |
20515 | } | |
20516 | ||
20517 | ||
c32bde28 | 20518 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20519 | PyObject *obj; |
20520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20521 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20522 | Py_INCREF(obj); | |
20523 | return Py_BuildValue((char *)""); | |
20524 | } | |
c32bde28 | 20525 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20526 | PyObject *resultobj; |
20527 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20528 | int arg2 = (int) 0 ; | |
20529 | wxListEvent *result; | |
994141e6 RD |
20530 | PyObject * obj0 = 0 ; |
20531 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20532 | char *kwnames[] = { |
20533 | (char *) "commandType",(char *) "id", NULL | |
20534 | }; | |
20535 | ||
994141e6 RD |
20536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
20537 | if (obj0) { | |
c32bde28 | 20538 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 20539 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
20540 | } |
20541 | if (obj1) { | |
c32bde28 | 20542 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20543 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 20544 | } |
d14a1e28 RD |
20545 | { |
20546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20547 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20548 | ||
20549 | wxPyEndAllowThreads(__tstate); | |
20550 | if (PyErr_Occurred()) SWIG_fail; | |
20551 | } | |
15afbcd0 | 20552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
20553 | return resultobj; |
20554 | fail: | |
20555 | return NULL; | |
20556 | } | |
20557 | ||
20558 | ||
c32bde28 | 20559 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20560 | PyObject *resultobj; |
20561 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20562 | int arg2 ; | |
20563 | PyObject * obj0 = 0 ; | |
994141e6 | 20564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20565 | char *kwnames[] = { |
20566 | (char *) "self",(char *) "m_code", NULL | |
20567 | }; | |
20568 | ||
994141e6 | 20569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20572 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20573 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20574 | if (arg1) (arg1)->m_code = arg2; |
20575 | ||
20576 | Py_INCREF(Py_None); resultobj = Py_None; | |
20577 | return resultobj; | |
20578 | fail: | |
20579 | return NULL; | |
20580 | } | |
20581 | ||
20582 | ||
c32bde28 | 20583 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20584 | PyObject *resultobj; |
20585 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20586 | int result; | |
20587 | PyObject * obj0 = 0 ; | |
20588 | char *kwnames[] = { | |
20589 | (char *) "self", NULL | |
20590 | }; | |
20591 | ||
20592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20595 | result = (int) ((arg1)->m_code); |
20596 | ||
c32bde28 | 20597 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20598 | return resultobj; |
20599 | fail: | |
20600 | return NULL; | |
20601 | } | |
20602 | ||
20603 | ||
c32bde28 | 20604 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20605 | PyObject *resultobj; |
20606 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20607 | long arg2 ; | |
20608 | PyObject * obj0 = 0 ; | |
994141e6 | 20609 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20610 | char *kwnames[] = { |
20611 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20612 | }; | |
20613 | ||
994141e6 | 20614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20617 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20618 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20619 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
20620 | ||
20621 | Py_INCREF(Py_None); resultobj = Py_None; | |
20622 | return resultobj; | |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
c32bde28 | 20628 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20629 | PyObject *resultobj; |
20630 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20631 | long result; | |
20632 | PyObject * obj0 = 0 ; | |
20633 | char *kwnames[] = { | |
20634 | (char *) "self", NULL | |
20635 | }; | |
20636 | ||
20637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20640 | result = (long) ((arg1)->m_oldItemIndex); |
20641 | ||
c32bde28 | 20642 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20643 | return resultobj; |
20644 | fail: | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
c32bde28 | 20649 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20650 | PyObject *resultobj; |
20651 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20652 | long arg2 ; | |
20653 | PyObject * obj0 = 0 ; | |
994141e6 | 20654 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20655 | char *kwnames[] = { |
20656 | (char *) "self",(char *) "m_itemIndex", NULL | |
20657 | }; | |
20658 | ||
994141e6 | 20659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20662 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20663 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20664 | if (arg1) (arg1)->m_itemIndex = arg2; |
20665 | ||
20666 | Py_INCREF(Py_None); resultobj = Py_None; | |
20667 | return resultobj; | |
20668 | fail: | |
20669 | return NULL; | |
20670 | } | |
20671 | ||
20672 | ||
c32bde28 | 20673 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20674 | PyObject *resultobj; |
20675 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20676 | long result; | |
20677 | PyObject * obj0 = 0 ; | |
20678 | char *kwnames[] = { | |
20679 | (char *) "self", NULL | |
20680 | }; | |
20681 | ||
20682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20685 | result = (long) ((arg1)->m_itemIndex); |
20686 | ||
c32bde28 | 20687 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20688 | return resultobj; |
20689 | fail: | |
20690 | return NULL; | |
20691 | } | |
20692 | ||
20693 | ||
c32bde28 | 20694 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20695 | PyObject *resultobj; |
20696 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20697 | int arg2 ; | |
20698 | PyObject * obj0 = 0 ; | |
994141e6 | 20699 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20700 | char *kwnames[] = { |
20701 | (char *) "self",(char *) "m_col", NULL | |
20702 | }; | |
20703 | ||
994141e6 | 20704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20707 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20708 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20709 | if (arg1) (arg1)->m_col = arg2; |
20710 | ||
20711 | Py_INCREF(Py_None); resultobj = Py_None; | |
20712 | return resultobj; | |
20713 | fail: | |
20714 | return NULL; | |
20715 | } | |
20716 | ||
20717 | ||
c32bde28 | 20718 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20719 | PyObject *resultobj; |
20720 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20721 | int result; | |
20722 | PyObject * obj0 = 0 ; | |
20723 | char *kwnames[] = { | |
20724 | (char *) "self", NULL | |
20725 | }; | |
20726 | ||
20727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20730 | result = (int) ((arg1)->m_col); |
20731 | ||
c32bde28 | 20732 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20733 | return resultobj; |
20734 | fail: | |
20735 | return NULL; | |
20736 | } | |
20737 | ||
20738 | ||
c32bde28 | 20739 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20740 | PyObject *resultobj; |
20741 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20742 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20743 | PyObject * obj0 = 0 ; | |
20744 | PyObject * obj1 = 0 ; | |
20745 | char *kwnames[] = { | |
20746 | (char *) "self",(char *) "m_pointDrag", NULL | |
20747 | }; | |
20748 | ||
20749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20752 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20754 | if (arg1) (arg1)->m_pointDrag = *arg2; |
20755 | ||
20756 | Py_INCREF(Py_None); resultobj = Py_None; | |
20757 | return resultobj; | |
20758 | fail: | |
20759 | return NULL; | |
20760 | } | |
20761 | ||
20762 | ||
c32bde28 | 20763 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20764 | PyObject *resultobj; |
20765 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20766 | wxPoint *result; | |
20767 | PyObject * obj0 = 0 ; | |
20768 | char *kwnames[] = { | |
20769 | (char *) "self", NULL | |
20770 | }; | |
20771 | ||
20772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20775 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
20776 | ||
15afbcd0 | 20777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
20778 | return resultobj; |
20779 | fail: | |
20780 | return NULL; | |
20781 | } | |
20782 | ||
20783 | ||
c32bde28 | 20784 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20785 | PyObject *resultobj; |
20786 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20787 | wxListItem *result; | |
20788 | PyObject * obj0 = 0 ; | |
20789 | char *kwnames[] = { | |
20790 | (char *) "self", NULL | |
20791 | }; | |
20792 | ||
20793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20796 | result = (wxListItem *)& ((arg1)->m_item); |
20797 | ||
20798 | { | |
412d302d | 20799 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20800 | } |
20801 | return resultobj; | |
20802 | fail: | |
20803 | return NULL; | |
20804 | } | |
20805 | ||
20806 | ||
c32bde28 | 20807 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20808 | PyObject *resultobj; |
20809 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20810 | int result; | |
20811 | PyObject * obj0 = 0 ; | |
20812 | char *kwnames[] = { | |
20813 | (char *) "self", NULL | |
20814 | }; | |
20815 | ||
20816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20819 | { |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | result = (int)(arg1)->GetKeyCode(); | |
20822 | ||
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
c32bde28 | 20826 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20827 | return resultobj; |
20828 | fail: | |
20829 | return NULL; | |
20830 | } | |
20831 | ||
20832 | ||
c32bde28 | 20833 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20834 | PyObject *resultobj; |
20835 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20836 | long result; | |
20837 | PyObject * obj0 = 0 ; | |
20838 | char *kwnames[] = { | |
20839 | (char *) "self", NULL | |
20840 | }; | |
20841 | ||
20842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20845 | { |
20846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20847 | result = (long)(arg1)->GetIndex(); | |
20848 | ||
20849 | wxPyEndAllowThreads(__tstate); | |
20850 | if (PyErr_Occurred()) SWIG_fail; | |
20851 | } | |
c32bde28 | 20852 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20853 | return resultobj; |
20854 | fail: | |
20855 | return NULL; | |
20856 | } | |
20857 | ||
20858 | ||
c32bde28 | 20859 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20860 | PyObject *resultobj; |
20861 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20862 | int result; | |
20863 | PyObject * obj0 = 0 ; | |
20864 | char *kwnames[] = { | |
20865 | (char *) "self", NULL | |
20866 | }; | |
20867 | ||
20868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20871 | { |
20872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20873 | result = (int)(arg1)->GetColumn(); | |
20874 | ||
20875 | wxPyEndAllowThreads(__tstate); | |
20876 | if (PyErr_Occurred()) SWIG_fail; | |
20877 | } | |
c32bde28 | 20878 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20879 | return resultobj; |
20880 | fail: | |
20881 | return NULL; | |
20882 | } | |
20883 | ||
20884 | ||
c32bde28 | 20885 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20886 | PyObject *resultobj; |
20887 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20888 | wxPoint result; | |
20889 | PyObject * obj0 = 0 ; | |
20890 | char *kwnames[] = { | |
20891 | (char *) "self", NULL | |
20892 | }; | |
20893 | ||
20894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20897 | { |
20898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20899 | result = (arg1)->GetPoint(); | |
20900 | ||
20901 | wxPyEndAllowThreads(__tstate); | |
20902 | if (PyErr_Occurred()) SWIG_fail; | |
20903 | } | |
20904 | { | |
20905 | wxPoint * resultptr; | |
20906 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 20907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
20908 | } |
20909 | return resultobj; | |
20910 | fail: | |
20911 | return NULL; | |
20912 | } | |
20913 | ||
20914 | ||
c32bde28 | 20915 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20916 | PyObject *resultobj; |
20917 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20918 | wxString *result; | |
20919 | PyObject * obj0 = 0 ; | |
20920 | char *kwnames[] = { | |
20921 | (char *) "self", NULL | |
20922 | }; | |
20923 | ||
20924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20927 | { |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | { | |
20930 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20931 | result = (wxString *) &_result_ref; | |
20932 | } | |
20933 | ||
20934 | wxPyEndAllowThreads(__tstate); | |
20935 | if (PyErr_Occurred()) SWIG_fail; | |
20936 | } | |
cc6dd355 RD |
20937 | { |
20938 | #if wxUSE_UNICODE | |
20939 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20940 | #else | |
20941 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20942 | #endif | |
20943 | } | |
d14a1e28 RD |
20944 | return resultobj; |
20945 | fail: | |
20946 | return NULL; | |
20947 | } | |
20948 | ||
20949 | ||
c32bde28 | 20950 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20951 | PyObject *resultobj; |
20952 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20953 | wxString *result; | |
20954 | PyObject * obj0 = 0 ; | |
20955 | char *kwnames[] = { | |
20956 | (char *) "self", NULL | |
20957 | }; | |
20958 | ||
20959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20962 | { |
20963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20964 | { | |
20965 | wxString const &_result_ref = (arg1)->GetText(); | |
20966 | result = (wxString *) &_result_ref; | |
20967 | } | |
20968 | ||
20969 | wxPyEndAllowThreads(__tstate); | |
20970 | if (PyErr_Occurred()) SWIG_fail; | |
20971 | } | |
cc6dd355 RD |
20972 | { |
20973 | #if wxUSE_UNICODE | |
20974 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20975 | #else | |
20976 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20977 | #endif | |
20978 | } | |
d14a1e28 RD |
20979 | return resultobj; |
20980 | fail: | |
20981 | return NULL; | |
20982 | } | |
20983 | ||
20984 | ||
c32bde28 | 20985 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20986 | PyObject *resultobj; |
20987 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20988 | int result; | |
20989 | PyObject * obj0 = 0 ; | |
20990 | char *kwnames[] = { | |
20991 | (char *) "self", NULL | |
20992 | }; | |
20993 | ||
20994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20997 | { |
20998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20999 | result = (int)(arg1)->GetImage(); | |
21000 | ||
21001 | wxPyEndAllowThreads(__tstate); | |
21002 | if (PyErr_Occurred()) SWIG_fail; | |
21003 | } | |
c32bde28 | 21004 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21005 | return resultobj; |
21006 | fail: | |
21007 | return NULL; | |
21008 | } | |
21009 | ||
21010 | ||
c32bde28 | 21011 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21012 | PyObject *resultobj; |
21013 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21014 | long result; | |
21015 | PyObject * obj0 = 0 ; | |
21016 | char *kwnames[] = { | |
21017 | (char *) "self", NULL | |
21018 | }; | |
21019 | ||
21020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21023 | { |
21024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21025 | result = (long)(arg1)->GetData(); | |
21026 | ||
21027 | wxPyEndAllowThreads(__tstate); | |
21028 | if (PyErr_Occurred()) SWIG_fail; | |
21029 | } | |
c32bde28 | 21030 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21031 | return resultobj; |
21032 | fail: | |
21033 | return NULL; | |
21034 | } | |
21035 | ||
21036 | ||
c32bde28 | 21037 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21038 | PyObject *resultobj; |
21039 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21040 | long result; | |
21041 | PyObject * obj0 = 0 ; | |
21042 | char *kwnames[] = { | |
21043 | (char *) "self", NULL | |
21044 | }; | |
21045 | ||
21046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21049 | { |
21050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21051 | result = (long)(arg1)->GetMask(); | |
21052 | ||
21053 | wxPyEndAllowThreads(__tstate); | |
21054 | if (PyErr_Occurred()) SWIG_fail; | |
21055 | } | |
c32bde28 | 21056 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21057 | return resultobj; |
21058 | fail: | |
21059 | return NULL; | |
21060 | } | |
21061 | ||
21062 | ||
c32bde28 | 21063 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21064 | PyObject *resultobj; |
21065 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21066 | wxListItem *result; | |
21067 | PyObject * obj0 = 0 ; | |
21068 | char *kwnames[] = { | |
21069 | (char *) "self", NULL | |
21070 | }; | |
21071 | ||
21072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21075 | { |
21076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21077 | { | |
21078 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
21079 | result = (wxListItem *) &_result_ref; | |
21080 | } | |
21081 | ||
21082 | wxPyEndAllowThreads(__tstate); | |
21083 | if (PyErr_Occurred()) SWIG_fail; | |
21084 | } | |
15afbcd0 | 21085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
21086 | return resultobj; |
21087 | fail: | |
21088 | return NULL; | |
21089 | } | |
21090 | ||
21091 | ||
c32bde28 | 21092 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21093 | PyObject *resultobj; |
21094 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21095 | long result; | |
21096 | PyObject * obj0 = 0 ; | |
21097 | char *kwnames[] = { | |
21098 | (char *) "self", NULL | |
21099 | }; | |
21100 | ||
21101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21104 | { |
21105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21106 | result = (long)(arg1)->GetCacheFrom(); | |
21107 | ||
21108 | wxPyEndAllowThreads(__tstate); | |
21109 | if (PyErr_Occurred()) SWIG_fail; | |
21110 | } | |
c32bde28 | 21111 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21112 | return resultobj; |
21113 | fail: | |
21114 | return NULL; | |
21115 | } | |
21116 | ||
21117 | ||
c32bde28 | 21118 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21119 | PyObject *resultobj; |
21120 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21121 | long result; | |
21122 | PyObject * obj0 = 0 ; | |
21123 | char *kwnames[] = { | |
21124 | (char *) "self", NULL | |
21125 | }; | |
21126 | ||
21127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21130 | { |
21131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21132 | result = (long)(arg1)->GetCacheTo(); | |
21133 | ||
21134 | wxPyEndAllowThreads(__tstate); | |
21135 | if (PyErr_Occurred()) SWIG_fail; | |
21136 | } | |
c32bde28 | 21137 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21138 | return resultobj; |
21139 | fail: | |
21140 | return NULL; | |
21141 | } | |
21142 | ||
21143 | ||
c32bde28 | 21144 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21145 | PyObject *resultobj; |
21146 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21147 | bool result; | |
21148 | PyObject * obj0 = 0 ; | |
21149 | char *kwnames[] = { | |
21150 | (char *) "self", NULL | |
21151 | }; | |
21152 | ||
21153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21156 | { |
21157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21158 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21159 | ||
21160 | wxPyEndAllowThreads(__tstate); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
4f89f6a3 RD |
21163 | { |
21164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21165 | } | |
d14a1e28 RD |
21166 | return resultobj; |
21167 | fail: | |
21168 | return NULL; | |
21169 | } | |
21170 | ||
21171 | ||
c32bde28 | 21172 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21173 | PyObject *resultobj; |
21174 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21175 | bool arg2 ; | |
21176 | PyObject * obj0 = 0 ; | |
21177 | PyObject * obj1 = 0 ; | |
21178 | char *kwnames[] = { | |
21179 | (char *) "self",(char *) "editCancelled", NULL | |
21180 | }; | |
21181 | ||
21182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21185 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 21186 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21187 | { |
21188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21189 | (arg1)->SetEditCanceled(arg2); | |
21190 | ||
21191 | wxPyEndAllowThreads(__tstate); | |
21192 | if (PyErr_Occurred()) SWIG_fail; | |
21193 | } | |
21194 | Py_INCREF(Py_None); resultobj = Py_None; | |
21195 | return resultobj; | |
21196 | fail: | |
21197 | return NULL; | |
21198 | } | |
21199 | ||
21200 | ||
c32bde28 | 21201 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21202 | PyObject *obj; |
21203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21204 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21205 | Py_INCREF(obj); | |
21206 | return Py_BuildValue((char *)""); | |
21207 | } | |
c32bde28 | 21208 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21209 | PyObject *resultobj; |
21210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21211 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21212 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21213 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21214 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21215 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21216 | long arg5 = (long) wxLC_ICON ; | |
21217 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21218 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21219 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21220 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21221 | wxPyListCtrl *result; | |
21222 | wxPoint temp3 ; | |
21223 | wxSize temp4 ; | |
e811c8ce | 21224 | bool temp7 = False ; |
d14a1e28 | 21225 | PyObject * obj0 = 0 ; |
994141e6 | 21226 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21227 | PyObject * obj2 = 0 ; |
21228 | PyObject * obj3 = 0 ; | |
994141e6 | 21229 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21230 | PyObject * obj5 = 0 ; |
21231 | PyObject * obj6 = 0 ; | |
21232 | char *kwnames[] = { | |
21233 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21234 | }; | |
21235 | ||
994141e6 | 21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21239 | if (obj1) { |
c32bde28 | 21240 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21241 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21242 | } |
d14a1e28 RD |
21243 | if (obj2) { |
21244 | { | |
21245 | arg3 = &temp3; | |
21246 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21247 | } | |
21248 | } | |
21249 | if (obj3) { | |
21250 | { | |
21251 | arg4 = &temp4; | |
21252 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21253 | } | |
21254 | } | |
994141e6 | 21255 | if (obj4) { |
c32bde28 | 21256 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 21257 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21258 | } |
d14a1e28 | 21259 | if (obj5) { |
15afbcd0 RD |
21260 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
21261 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21262 | SWIG_fail; | |
d14a1e28 | 21263 | if (arg6 == NULL) { |
15afbcd0 RD |
21264 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21265 | SWIG_fail; | |
d14a1e28 RD |
21266 | } |
21267 | } | |
21268 | if (obj6) { | |
21269 | { | |
21270 | arg7 = wxString_in_helper(obj6); | |
21271 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21272 | temp7 = True; |
d14a1e28 RD |
21273 | } |
21274 | } | |
21275 | { | |
e3b71cb8 | 21276 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21278 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21279 | ||
21280 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21281 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21282 | } |
15afbcd0 | 21283 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21284 | { |
21285 | if (temp7) | |
21286 | delete arg7; | |
21287 | } | |
21288 | return resultobj; | |
21289 | fail: | |
21290 | { | |
21291 | if (temp7) | |
21292 | delete arg7; | |
21293 | } | |
21294 | return NULL; | |
21295 | } | |
21296 | ||
21297 | ||
c32bde28 | 21298 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21299 | PyObject *resultobj; |
21300 | wxPyListCtrl *result; | |
21301 | char *kwnames[] = { | |
21302 | NULL | |
21303 | }; | |
21304 | ||
21305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21306 | { | |
e3b71cb8 | 21307 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21309 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21310 | ||
21311 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21312 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21313 | } |
15afbcd0 | 21314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21315 | return resultobj; |
21316 | fail: | |
21317 | return NULL; | |
21318 | } | |
21319 | ||
21320 | ||
c32bde28 | 21321 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21322 | PyObject *resultobj; |
21323 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21324 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21325 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21326 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21327 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21328 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21329 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21330 | long arg6 = (long) wxLC_ICON ; | |
21331 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21332 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21333 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21334 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21335 | bool result; | |
21336 | wxPoint temp4 ; | |
21337 | wxSize temp5 ; | |
e811c8ce | 21338 | bool temp8 = False ; |
d14a1e28 RD |
21339 | PyObject * obj0 = 0 ; |
21340 | PyObject * obj1 = 0 ; | |
994141e6 | 21341 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21342 | PyObject * obj3 = 0 ; |
21343 | PyObject * obj4 = 0 ; | |
994141e6 | 21344 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21345 | PyObject * obj6 = 0 ; |
21346 | PyObject * obj7 = 0 ; | |
21347 | char *kwnames[] = { | |
21348 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21349 | }; | |
21350 | ||
994141e6 | 21351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
21352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21356 | if (obj2) { |
c32bde28 | 21357 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21358 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21359 | } |
d14a1e28 RD |
21360 | if (obj3) { |
21361 | { | |
21362 | arg4 = &temp4; | |
21363 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21364 | } | |
21365 | } | |
21366 | if (obj4) { | |
21367 | { | |
21368 | arg5 = &temp5; | |
21369 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21370 | } | |
21371 | } | |
994141e6 | 21372 | if (obj5) { |
c32bde28 | 21373 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 21374 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21375 | } |
d14a1e28 | 21376 | if (obj6) { |
15afbcd0 RD |
21377 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
21378 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21379 | SWIG_fail; | |
d14a1e28 | 21380 | if (arg7 == NULL) { |
15afbcd0 RD |
21381 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21382 | SWIG_fail; | |
d14a1e28 RD |
21383 | } |
21384 | } | |
21385 | if (obj7) { | |
21386 | { | |
21387 | arg8 = wxString_in_helper(obj7); | |
21388 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 21389 | temp8 = True; |
d14a1e28 RD |
21390 | } |
21391 | } | |
21392 | { | |
21393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21394 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21395 | ||
21396 | wxPyEndAllowThreads(__tstate); | |
21397 | if (PyErr_Occurred()) SWIG_fail; | |
21398 | } | |
4f89f6a3 RD |
21399 | { |
21400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21401 | } | |
d14a1e28 RD |
21402 | { |
21403 | if (temp8) | |
21404 | delete arg8; | |
21405 | } | |
21406 | return resultobj; | |
21407 | fail: | |
21408 | { | |
21409 | if (temp8) | |
21410 | delete arg8; | |
21411 | } | |
21412 | return NULL; | |
21413 | } | |
21414 | ||
21415 | ||
c32bde28 | 21416 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21417 | PyObject *resultobj; |
21418 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21419 | PyObject *arg2 = (PyObject *) 0 ; | |
21420 | PyObject *arg3 = (PyObject *) 0 ; | |
21421 | PyObject * obj0 = 0 ; | |
21422 | PyObject * obj1 = 0 ; | |
21423 | PyObject * obj2 = 0 ; | |
21424 | char *kwnames[] = { | |
21425 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21426 | }; | |
21427 | ||
21428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21431 | arg2 = obj1; |
21432 | arg3 = obj2; | |
21433 | { | |
21434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21435 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21436 | ||
21437 | wxPyEndAllowThreads(__tstate); | |
21438 | if (PyErr_Occurred()) SWIG_fail; | |
21439 | } | |
21440 | Py_INCREF(Py_None); resultobj = Py_None; | |
21441 | return resultobj; | |
21442 | fail: | |
21443 | return NULL; | |
21444 | } | |
21445 | ||
21446 | ||
c32bde28 | 21447 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21448 | PyObject *resultobj; |
21449 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21450 | wxColour *arg2 = 0 ; | |
21451 | bool result; | |
21452 | wxColour temp2 ; | |
21453 | PyObject * obj0 = 0 ; | |
21454 | PyObject * obj1 = 0 ; | |
21455 | char *kwnames[] = { | |
21456 | (char *) "self",(char *) "col", NULL | |
21457 | }; | |
21458 | ||
21459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21462 | { |
21463 | arg2 = &temp2; | |
21464 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21465 | } | |
21466 | { | |
21467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21468 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21469 | ||
21470 | wxPyEndAllowThreads(__tstate); | |
21471 | if (PyErr_Occurred()) SWIG_fail; | |
21472 | } | |
4f89f6a3 RD |
21473 | { |
21474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21475 | } | |
d14a1e28 RD |
21476 | return resultobj; |
21477 | fail: | |
21478 | return NULL; | |
21479 | } | |
21480 | ||
21481 | ||
c32bde28 | 21482 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21483 | PyObject *resultobj; |
21484 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21485 | wxColour *arg2 = 0 ; | |
21486 | bool result; | |
21487 | wxColour temp2 ; | |
21488 | PyObject * obj0 = 0 ; | |
21489 | PyObject * obj1 = 0 ; | |
21490 | char *kwnames[] = { | |
21491 | (char *) "self",(char *) "col", NULL | |
21492 | }; | |
21493 | ||
21494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21497 | { |
21498 | arg2 = &temp2; | |
21499 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21500 | } | |
21501 | { | |
21502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21503 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21504 | ||
21505 | wxPyEndAllowThreads(__tstate); | |
21506 | if (PyErr_Occurred()) SWIG_fail; | |
21507 | } | |
4f89f6a3 RD |
21508 | { |
21509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21510 | } | |
d14a1e28 RD |
21511 | return resultobj; |
21512 | fail: | |
21513 | return NULL; | |
21514 | } | |
21515 | ||
21516 | ||
c32bde28 | 21517 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21518 | PyObject *resultobj; |
21519 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21520 | int arg2 ; | |
21521 | wxListItem *result; | |
21522 | PyObject * obj0 = 0 ; | |
994141e6 | 21523 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21524 | char *kwnames[] = { |
21525 | (char *) "self",(char *) "col", NULL | |
21526 | }; | |
21527 | ||
994141e6 | 21528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21531 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21532 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21533 | { |
21534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21535 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21536 | ||
21537 | wxPyEndAllowThreads(__tstate); | |
21538 | if (PyErr_Occurred()) SWIG_fail; | |
21539 | } | |
21540 | { | |
412d302d | 21541 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21542 | } |
21543 | return resultobj; | |
21544 | fail: | |
21545 | return NULL; | |
21546 | } | |
21547 | ||
21548 | ||
c32bde28 | 21549 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21550 | PyObject *resultobj; |
21551 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21552 | int arg2 ; | |
21553 | wxListItem *arg3 = 0 ; | |
21554 | bool result; | |
21555 | PyObject * obj0 = 0 ; | |
994141e6 | 21556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21557 | PyObject * obj2 = 0 ; |
21558 | char *kwnames[] = { | |
21559 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21560 | }; | |
21561 | ||
994141e6 | 21562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21565 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
21566 | if (PyErr_Occurred()) SWIG_fail; |
21567 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21568 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21569 | SWIG_fail; | |
d14a1e28 | 21570 | if (arg3 == NULL) { |
15afbcd0 RD |
21571 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21572 | SWIG_fail; | |
d14a1e28 RD |
21573 | } |
21574 | { | |
21575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21576 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21577 | ||
21578 | wxPyEndAllowThreads(__tstate); | |
21579 | if (PyErr_Occurred()) SWIG_fail; | |
21580 | } | |
4f89f6a3 RD |
21581 | { |
21582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21583 | } | |
d14a1e28 RD |
21584 | return resultobj; |
21585 | fail: | |
21586 | return NULL; | |
21587 | } | |
21588 | ||
21589 | ||
c32bde28 | 21590 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21591 | PyObject *resultobj; |
21592 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21593 | int arg2 ; | |
21594 | int result; | |
21595 | PyObject * obj0 = 0 ; | |
994141e6 | 21596 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21597 | char *kwnames[] = { |
21598 | (char *) "self",(char *) "col", NULL | |
21599 | }; | |
21600 | ||
994141e6 | 21601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21604 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21605 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21606 | { |
21607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21608 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21609 | ||
21610 | wxPyEndAllowThreads(__tstate); | |
21611 | if (PyErr_Occurred()) SWIG_fail; | |
21612 | } | |
c32bde28 | 21613 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21614 | return resultobj; |
21615 | fail: | |
21616 | return NULL; | |
21617 | } | |
21618 | ||
21619 | ||
c32bde28 | 21620 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21621 | PyObject *resultobj; |
21622 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21623 | int arg2 ; | |
21624 | int arg3 ; | |
21625 | bool result; | |
21626 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21627 | PyObject * obj1 = 0 ; |
21628 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21629 | char *kwnames[] = { |
21630 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21631 | }; | |
21632 | ||
994141e6 | 21633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21636 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21637 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21638 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21639 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21640 | { |
21641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21642 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21643 | ||
21644 | wxPyEndAllowThreads(__tstate); | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
4f89f6a3 RD |
21647 | { |
21648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21649 | } | |
d14a1e28 RD |
21650 | return resultobj; |
21651 | fail: | |
21652 | return NULL; | |
21653 | } | |
21654 | ||
21655 | ||
c32bde28 | 21656 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21657 | PyObject *resultobj; |
21658 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21659 | int result; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | char *kwnames[] = { | |
21662 | (char *) "self", NULL | |
21663 | }; | |
21664 | ||
21665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21668 | { |
21669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21670 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21671 | ||
21672 | wxPyEndAllowThreads(__tstate); | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | } | |
c32bde28 | 21675 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21676 | return resultobj; |
21677 | fail: | |
21678 | return NULL; | |
21679 | } | |
21680 | ||
21681 | ||
c32bde28 | 21682 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21683 | PyObject *resultobj; |
21684 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21685 | wxRect result; | |
21686 | PyObject * obj0 = 0 ; | |
21687 | char *kwnames[] = { | |
21688 | (char *) "self", NULL | |
21689 | }; | |
21690 | ||
21691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21694 | { |
21695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21696 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21697 | ||
21698 | wxPyEndAllowThreads(__tstate); | |
21699 | if (PyErr_Occurred()) SWIG_fail; | |
21700 | } | |
21701 | { | |
21702 | wxRect * resultptr; | |
21703 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 21704 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21705 | } |
21706 | return resultobj; | |
21707 | fail: | |
21708 | return NULL; | |
21709 | } | |
21710 | ||
21711 | ||
c32bde28 | 21712 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21713 | PyObject *resultobj; |
21714 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21715 | long arg2 ; | |
21716 | int arg3 = (int) 0 ; | |
21717 | wxListItem *result; | |
21718 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21719 | PyObject * obj1 = 0 ; |
21720 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21721 | char *kwnames[] = { |
21722 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21723 | }; | |
21724 | ||
994141e6 | 21725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21728 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21729 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21730 | if (obj2) { |
c32bde28 | 21731 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21732 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21733 | } |
d14a1e28 RD |
21734 | { |
21735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21736 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21737 | ||
21738 | wxPyEndAllowThreads(__tstate); | |
21739 | if (PyErr_Occurred()) SWIG_fail; | |
21740 | } | |
21741 | { | |
412d302d | 21742 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21743 | } |
21744 | return resultobj; | |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
c32bde28 | 21750 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21751 | PyObject *resultobj; |
21752 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21753 | wxListItem *arg2 = 0 ; | |
21754 | bool result; | |
21755 | PyObject * obj0 = 0 ; | |
21756 | PyObject * obj1 = 0 ; | |
21757 | char *kwnames[] = { | |
21758 | (char *) "self",(char *) "info", NULL | |
21759 | }; | |
21760 | ||
21761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21764 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21765 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21766 | SWIG_fail; | |
d14a1e28 | 21767 | if (arg2 == NULL) { |
15afbcd0 RD |
21768 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21769 | SWIG_fail; | |
d14a1e28 RD |
21770 | } |
21771 | { | |
21772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21773 | result = (bool)(arg1)->SetItem(*arg2); | |
21774 | ||
21775 | wxPyEndAllowThreads(__tstate); | |
21776 | if (PyErr_Occurred()) SWIG_fail; | |
21777 | } | |
4f89f6a3 RD |
21778 | { |
21779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21780 | } | |
d14a1e28 RD |
21781 | return resultobj; |
21782 | fail: | |
21783 | return NULL; | |
21784 | } | |
21785 | ||
21786 | ||
c32bde28 | 21787 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21788 | PyObject *resultobj; |
21789 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21790 | long arg2 ; | |
21791 | int arg3 ; | |
21792 | wxString *arg4 = 0 ; | |
21793 | int arg5 = (int) -1 ; | |
21794 | long result; | |
e811c8ce | 21795 | bool temp4 = False ; |
d14a1e28 | 21796 | PyObject * obj0 = 0 ; |
994141e6 RD |
21797 | PyObject * obj1 = 0 ; |
21798 | PyObject * obj2 = 0 ; | |
d14a1e28 | 21799 | PyObject * obj3 = 0 ; |
994141e6 | 21800 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21801 | char *kwnames[] = { |
21802 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21803 | }; | |
21804 | ||
994141e6 | 21805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
21806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21808 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21809 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21810 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21811 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21812 | { |
21813 | arg4 = wxString_in_helper(obj3); | |
21814 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 21815 | temp4 = True; |
d14a1e28 | 21816 | } |
994141e6 | 21817 | if (obj4) { |
c32bde28 | 21818 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 21819 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21820 | } |
d14a1e28 RD |
21821 | { |
21822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21823 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21824 | ||
21825 | wxPyEndAllowThreads(__tstate); | |
21826 | if (PyErr_Occurred()) SWIG_fail; | |
21827 | } | |
c32bde28 | 21828 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21829 | { |
21830 | if (temp4) | |
21831 | delete arg4; | |
21832 | } | |
21833 | return resultobj; | |
21834 | fail: | |
21835 | { | |
21836 | if (temp4) | |
21837 | delete arg4; | |
21838 | } | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
c32bde28 | 21843 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21844 | PyObject *resultobj; |
21845 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21846 | long arg2 ; | |
21847 | long arg3 ; | |
21848 | int result; | |
21849 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21850 | PyObject * obj1 = 0 ; |
21851 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21852 | char *kwnames[] = { |
21853 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21854 | }; | |
21855 | ||
994141e6 | 21856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21859 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21860 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21861 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 21862 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21863 | { |
21864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21865 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21866 | ||
21867 | wxPyEndAllowThreads(__tstate); | |
21868 | if (PyErr_Occurred()) SWIG_fail; | |
21869 | } | |
c32bde28 | 21870 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21871 | return resultobj; |
21872 | fail: | |
21873 | return NULL; | |
21874 | } | |
21875 | ||
21876 | ||
c32bde28 | 21877 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21878 | PyObject *resultobj; |
21879 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21880 | long arg2 ; | |
21881 | long arg3 ; | |
21882 | long arg4 ; | |
21883 | bool result; | |
21884 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21885 | PyObject * obj1 = 0 ; |
21886 | PyObject * obj2 = 0 ; | |
21887 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21888 | char *kwnames[] = { |
21889 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21890 | }; | |
21891 | ||
994141e6 | 21892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21895 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21896 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21897 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 21898 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21899 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 21900 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21901 | { |
21902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21903 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21904 | ||
21905 | wxPyEndAllowThreads(__tstate); | |
21906 | if (PyErr_Occurred()) SWIG_fail; | |
21907 | } | |
4f89f6a3 RD |
21908 | { |
21909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21910 | } | |
d14a1e28 RD |
21911 | return resultobj; |
21912 | fail: | |
21913 | return NULL; | |
21914 | } | |
21915 | ||
21916 | ||
c32bde28 | 21917 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21918 | PyObject *resultobj; |
21919 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21920 | long arg2 ; | |
21921 | int arg3 ; | |
21922 | int arg4 ; | |
21923 | bool result; | |
21924 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21925 | PyObject * obj1 = 0 ; |
21926 | PyObject * obj2 = 0 ; | |
21927 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21928 | char *kwnames[] = { |
21929 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21930 | }; | |
21931 | ||
994141e6 | 21932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21935 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21936 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21937 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21938 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21939 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 21940 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21941 | { |
21942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21943 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21944 | ||
21945 | wxPyEndAllowThreads(__tstate); | |
21946 | if (PyErr_Occurred()) SWIG_fail; | |
21947 | } | |
4f89f6a3 RD |
21948 | { |
21949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21950 | } | |
d14a1e28 RD |
21951 | return resultobj; |
21952 | fail: | |
21953 | return NULL; | |
21954 | } | |
21955 | ||
21956 | ||
c32bde28 | 21957 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21958 | PyObject *resultobj; |
21959 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21960 | long arg2 ; | |
21961 | wxString result; | |
21962 | PyObject * obj0 = 0 ; | |
994141e6 | 21963 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21964 | char *kwnames[] = { |
21965 | (char *) "self",(char *) "item", NULL | |
21966 | }; | |
21967 | ||
994141e6 | 21968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21971 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21972 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21973 | { |
21974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21975 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21976 | ||
21977 | wxPyEndAllowThreads(__tstate); | |
21978 | if (PyErr_Occurred()) SWIG_fail; | |
21979 | } | |
21980 | { | |
21981 | #if wxUSE_UNICODE | |
21982 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21983 | #else | |
21984 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21985 | #endif | |
21986 | } | |
21987 | return resultobj; | |
21988 | fail: | |
21989 | return NULL; | |
21990 | } | |
21991 | ||
21992 | ||
c32bde28 | 21993 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21994 | PyObject *resultobj; |
21995 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21996 | long arg2 ; | |
21997 | wxString *arg3 = 0 ; | |
e811c8ce | 21998 | bool temp3 = False ; |
d14a1e28 | 21999 | PyObject * obj0 = 0 ; |
994141e6 | 22000 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22001 | PyObject * obj2 = 0 ; |
22002 | char *kwnames[] = { | |
22003 | (char *) "self",(char *) "item",(char *) "str", NULL | |
22004 | }; | |
22005 | ||
994141e6 | 22006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22009 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22010 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22011 | { |
22012 | arg3 = wxString_in_helper(obj2); | |
22013 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22014 | temp3 = True; |
d14a1e28 RD |
22015 | } |
22016 | { | |
22017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22018 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
22019 | ||
22020 | wxPyEndAllowThreads(__tstate); | |
22021 | if (PyErr_Occurred()) SWIG_fail; | |
22022 | } | |
22023 | Py_INCREF(Py_None); resultobj = Py_None; | |
22024 | { | |
22025 | if (temp3) | |
22026 | delete arg3; | |
22027 | } | |
22028 | return resultobj; | |
22029 | fail: | |
22030 | { | |
22031 | if (temp3) | |
22032 | delete arg3; | |
22033 | } | |
22034 | return NULL; | |
22035 | } | |
22036 | ||
22037 | ||
c32bde28 | 22038 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22039 | PyObject *resultobj; |
22040 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22041 | long arg2 ; | |
22042 | long result; | |
22043 | PyObject * obj0 = 0 ; | |
994141e6 | 22044 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22045 | char *kwnames[] = { |
22046 | (char *) "self",(char *) "item", NULL | |
22047 | }; | |
22048 | ||
994141e6 | 22049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22052 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22053 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22054 | { |
22055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22056 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
22057 | ||
22058 | wxPyEndAllowThreads(__tstate); | |
22059 | if (PyErr_Occurred()) SWIG_fail; | |
22060 | } | |
c32bde28 | 22061 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22062 | return resultobj; |
22063 | fail: | |
22064 | return NULL; | |
22065 | } | |
22066 | ||
22067 | ||
c32bde28 | 22068 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22069 | PyObject *resultobj; |
22070 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22071 | long arg2 ; | |
22072 | long arg3 ; | |
22073 | bool result; | |
22074 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22075 | PyObject * obj1 = 0 ; |
22076 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22077 | char *kwnames[] = { |
22078 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22079 | }; | |
22080 | ||
994141e6 | 22081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22084 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22085 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22086 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22087 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22088 | { |
22089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22090 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
22091 | ||
22092 | wxPyEndAllowThreads(__tstate); | |
22093 | if (PyErr_Occurred()) SWIG_fail; | |
22094 | } | |
4f89f6a3 RD |
22095 | { |
22096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22097 | } | |
d14a1e28 RD |
22098 | return resultobj; |
22099 | fail: | |
22100 | return NULL; | |
22101 | } | |
22102 | ||
22103 | ||
c32bde28 | 22104 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22105 | PyObject *resultobj; |
22106 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22107 | long arg2 ; | |
22108 | wxPoint result; | |
22109 | PyObject * obj0 = 0 ; | |
994141e6 | 22110 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22111 | char *kwnames[] = { |
22112 | (char *) "self",(char *) "item", NULL | |
22113 | }; | |
22114 | ||
994141e6 | 22115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22118 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22119 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22120 | { |
22121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22122 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
22123 | ||
22124 | wxPyEndAllowThreads(__tstate); | |
22125 | if (PyErr_Occurred()) SWIG_fail; | |
22126 | } | |
22127 | { | |
22128 | wxPoint * resultptr; | |
22129 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22130 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22131 | } |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
c32bde28 | 22138 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22139 | PyObject *resultobj; |
22140 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22141 | long arg2 ; | |
22142 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22143 | wxRect result; | |
22144 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22145 | PyObject * obj1 = 0 ; |
22146 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22147 | char *kwnames[] = { |
22148 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22149 | }; | |
22150 | ||
994141e6 | 22151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22154 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22155 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22156 | if (obj2) { |
c32bde28 | 22157 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22158 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22159 | } |
d14a1e28 RD |
22160 | { |
22161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22162 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22163 | ||
22164 | wxPyEndAllowThreads(__tstate); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | } | |
22167 | { | |
22168 | wxRect * resultptr; | |
22169 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22170 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22171 | } |
22172 | return resultobj; | |
22173 | fail: | |
22174 | return NULL; | |
22175 | } | |
22176 | ||
22177 | ||
c32bde28 | 22178 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22179 | PyObject *resultobj; |
22180 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22181 | long arg2 ; | |
22182 | wxPoint *arg3 = 0 ; | |
22183 | bool result; | |
22184 | wxPoint temp3 ; | |
22185 | PyObject * obj0 = 0 ; | |
994141e6 | 22186 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22187 | PyObject * obj2 = 0 ; |
22188 | char *kwnames[] = { | |
22189 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22190 | }; | |
22191 | ||
994141e6 | 22192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22195 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22196 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22197 | { |
22198 | arg3 = &temp3; | |
22199 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22200 | } | |
22201 | { | |
22202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22203 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22204 | ||
22205 | wxPyEndAllowThreads(__tstate); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
4f89f6a3 RD |
22208 | { |
22209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22210 | } | |
d14a1e28 RD |
22211 | return resultobj; |
22212 | fail: | |
22213 | return NULL; | |
22214 | } | |
22215 | ||
22216 | ||
c32bde28 | 22217 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22218 | PyObject *resultobj; |
22219 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22220 | int result; | |
22221 | PyObject * obj0 = 0 ; | |
22222 | char *kwnames[] = { | |
22223 | (char *) "self", NULL | |
22224 | }; | |
22225 | ||
22226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22229 | { |
22230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22231 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22232 | ||
22233 | wxPyEndAllowThreads(__tstate); | |
22234 | if (PyErr_Occurred()) SWIG_fail; | |
22235 | } | |
c32bde28 | 22236 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22237 | return resultobj; |
22238 | fail: | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
c32bde28 | 22243 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22244 | PyObject *resultobj; |
22245 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22246 | int result; | |
22247 | PyObject * obj0 = 0 ; | |
22248 | char *kwnames[] = { | |
22249 | (char *) "self", NULL | |
22250 | }; | |
22251 | ||
22252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22255 | { |
22256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22257 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22258 | ||
22259 | wxPyEndAllowThreads(__tstate); | |
22260 | if (PyErr_Occurred()) SWIG_fail; | |
22261 | } | |
c32bde28 | 22262 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22263 | return resultobj; |
22264 | fail: | |
22265 | return NULL; | |
22266 | } | |
22267 | ||
22268 | ||
c32bde28 | 22269 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22270 | PyObject *resultobj; |
22271 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22272 | wxSize result; | |
22273 | PyObject * obj0 = 0 ; | |
22274 | char *kwnames[] = { | |
22275 | (char *) "self", NULL | |
22276 | }; | |
22277 | ||
22278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22281 | { |
22282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22283 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22284 | ||
22285 | wxPyEndAllowThreads(__tstate); | |
22286 | if (PyErr_Occurred()) SWIG_fail; | |
22287 | } | |
22288 | { | |
22289 | wxSize * resultptr; | |
22290 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22291 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22292 | } |
22293 | return resultobj; | |
22294 | fail: | |
22295 | return NULL; | |
22296 | } | |
22297 | ||
22298 | ||
c32bde28 | 22299 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22300 | PyObject *resultobj; |
22301 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22302 | int arg2 ; | |
e811c8ce | 22303 | bool arg3 = (bool) False ; |
d14a1e28 | 22304 | PyObject * obj0 = 0 ; |
994141e6 | 22305 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22306 | PyObject * obj2 = 0 ; |
22307 | char *kwnames[] = { | |
22308 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22309 | }; | |
22310 | ||
994141e6 | 22311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22314 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22315 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22316 | if (obj2) { |
c32bde28 | 22317 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 22318 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22319 | } |
22320 | { | |
22321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22322 | (arg1)->SetItemSpacing(arg2,arg3); | |
22323 | ||
22324 | wxPyEndAllowThreads(__tstate); | |
22325 | if (PyErr_Occurred()) SWIG_fail; | |
22326 | } | |
22327 | Py_INCREF(Py_None); resultobj = Py_None; | |
22328 | return resultobj; | |
22329 | fail: | |
22330 | return NULL; | |
22331 | } | |
22332 | ||
22333 | ||
c32bde28 | 22334 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22335 | PyObject *resultobj; |
22336 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22337 | int result; | |
22338 | PyObject * obj0 = 0 ; | |
22339 | char *kwnames[] = { | |
22340 | (char *) "self", NULL | |
22341 | }; | |
22342 | ||
22343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22346 | { |
22347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22348 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22349 | ||
22350 | wxPyEndAllowThreads(__tstate); | |
22351 | if (PyErr_Occurred()) SWIG_fail; | |
22352 | } | |
c32bde28 | 22353 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22354 | return resultobj; |
22355 | fail: | |
22356 | return NULL; | |
22357 | } | |
22358 | ||
22359 | ||
c32bde28 | 22360 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22361 | PyObject *resultobj; |
22362 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22363 | wxColour result; | |
22364 | PyObject * obj0 = 0 ; | |
22365 | char *kwnames[] = { | |
22366 | (char *) "self", NULL | |
22367 | }; | |
22368 | ||
22369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22372 | { |
22373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22374 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22375 | ||
22376 | wxPyEndAllowThreads(__tstate); | |
22377 | if (PyErr_Occurred()) SWIG_fail; | |
22378 | } | |
22379 | { | |
22380 | wxColour * resultptr; | |
22381 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 22382 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22383 | } |
22384 | return resultobj; | |
22385 | fail: | |
22386 | return NULL; | |
22387 | } | |
22388 | ||
22389 | ||
c32bde28 | 22390 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22391 | PyObject *resultobj; |
22392 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22393 | wxColour *arg2 = 0 ; | |
22394 | wxColour temp2 ; | |
22395 | PyObject * obj0 = 0 ; | |
22396 | PyObject * obj1 = 0 ; | |
22397 | char *kwnames[] = { | |
22398 | (char *) "self",(char *) "col", NULL | |
22399 | }; | |
22400 | ||
22401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22404 | { |
22405 | arg2 = &temp2; | |
22406 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22407 | } | |
22408 | { | |
22409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22410 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22411 | ||
22412 | wxPyEndAllowThreads(__tstate); | |
22413 | if (PyErr_Occurred()) SWIG_fail; | |
22414 | } | |
22415 | Py_INCREF(Py_None); resultobj = Py_None; | |
22416 | return resultobj; | |
22417 | fail: | |
22418 | return NULL; | |
22419 | } | |
22420 | ||
22421 | ||
c32bde28 | 22422 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22423 | PyObject *resultobj; |
22424 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22425 | long result; | |
22426 | PyObject * obj0 = 0 ; | |
22427 | char *kwnames[] = { | |
22428 | (char *) "self", NULL | |
22429 | }; | |
22430 | ||
22431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22434 | { |
22435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22436 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22437 | ||
22438 | wxPyEndAllowThreads(__tstate); | |
22439 | if (PyErr_Occurred()) SWIG_fail; | |
22440 | } | |
c32bde28 | 22441 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22442 | return resultobj; |
22443 | fail: | |
22444 | return NULL; | |
22445 | } | |
22446 | ||
22447 | ||
c32bde28 | 22448 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22449 | PyObject *resultobj; |
22450 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22451 | long arg2 ; | |
e811c8ce | 22452 | bool arg3 = (bool) True ; |
d14a1e28 | 22453 | PyObject * obj0 = 0 ; |
994141e6 | 22454 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22455 | PyObject * obj2 = 0 ; |
22456 | char *kwnames[] = { | |
22457 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22458 | }; | |
22459 | ||
994141e6 | 22460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22463 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22464 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22465 | if (obj2) { |
c32bde28 | 22466 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 22467 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22468 | } |
22469 | { | |
22470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22471 | (arg1)->SetSingleStyle(arg2,arg3); | |
22472 | ||
22473 | wxPyEndAllowThreads(__tstate); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | } | |
22476 | Py_INCREF(Py_None); resultobj = Py_None; | |
22477 | return resultobj; | |
22478 | fail: | |
22479 | return NULL; | |
22480 | } | |
22481 | ||
22482 | ||
c32bde28 | 22483 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22484 | PyObject *resultobj; |
22485 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22486 | long arg2 ; | |
22487 | PyObject * obj0 = 0 ; | |
994141e6 | 22488 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22489 | char *kwnames[] = { |
22490 | (char *) "self",(char *) "style", NULL | |
22491 | }; | |
22492 | ||
994141e6 | 22493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22496 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22497 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22498 | { |
22499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22500 | (arg1)->SetWindowStyleFlag(arg2); | |
22501 | ||
22502 | wxPyEndAllowThreads(__tstate); | |
22503 | if (PyErr_Occurred()) SWIG_fail; | |
22504 | } | |
22505 | Py_INCREF(Py_None); resultobj = Py_None; | |
22506 | return resultobj; | |
22507 | fail: | |
22508 | return NULL; | |
22509 | } | |
22510 | ||
22511 | ||
c32bde28 | 22512 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22513 | PyObject *resultobj; |
22514 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22515 | long arg2 ; | |
22516 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22517 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22518 | long result; | |
22519 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22520 | PyObject * obj1 = 0 ; |
22521 | PyObject * obj2 = 0 ; | |
22522 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22523 | char *kwnames[] = { |
22524 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22525 | }; | |
22526 | ||
994141e6 | 22527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22530 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22531 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22532 | if (obj2) { |
c32bde28 | 22533 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22534 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
22535 | } |
22536 | if (obj3) { | |
c32bde28 | 22537 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 22538 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22539 | } |
d14a1e28 RD |
22540 | { |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22542 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22543 | ||
22544 | wxPyEndAllowThreads(__tstate); | |
22545 | if (PyErr_Occurred()) SWIG_fail; | |
22546 | } | |
c32bde28 | 22547 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22548 | return resultobj; |
22549 | fail: | |
22550 | return NULL; | |
22551 | } | |
22552 | ||
22553 | ||
c32bde28 | 22554 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22555 | PyObject *resultobj; |
22556 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22557 | int arg2 ; | |
22558 | wxImageList *result; | |
22559 | PyObject * obj0 = 0 ; | |
994141e6 | 22560 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22561 | char *kwnames[] = { |
22562 | (char *) "self",(char *) "which", NULL | |
22563 | }; | |
22564 | ||
994141e6 | 22565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22568 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22569 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22570 | { |
22571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22572 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22573 | ||
22574 | wxPyEndAllowThreads(__tstate); | |
22575 | if (PyErr_Occurred()) SWIG_fail; | |
22576 | } | |
22577 | { | |
412d302d | 22578 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
22579 | } |
22580 | return resultobj; | |
22581 | fail: | |
22582 | return NULL; | |
22583 | } | |
22584 | ||
22585 | ||
c32bde28 | 22586 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22587 | PyObject *resultobj; |
22588 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22589 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22590 | int arg3 ; | |
22591 | PyObject * obj0 = 0 ; | |
22592 | PyObject * obj1 = 0 ; | |
994141e6 | 22593 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22594 | char *kwnames[] = { |
22595 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22596 | }; | |
22597 | ||
994141e6 | 22598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22603 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22604 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22605 | { |
22606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22607 | (arg1)->SetImageList(arg2,arg3); | |
22608 | ||
22609 | wxPyEndAllowThreads(__tstate); | |
22610 | if (PyErr_Occurred()) SWIG_fail; | |
22611 | } | |
22612 | Py_INCREF(Py_None); resultobj = Py_None; | |
22613 | return resultobj; | |
22614 | fail: | |
22615 | return NULL; | |
22616 | } | |
22617 | ||
22618 | ||
c32bde28 | 22619 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22620 | PyObject *resultobj; |
22621 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22622 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22623 | int arg3 ; | |
22624 | PyObject * obj0 = 0 ; | |
22625 | PyObject * obj1 = 0 ; | |
994141e6 | 22626 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22627 | char *kwnames[] = { |
22628 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22629 | }; | |
22630 | ||
994141e6 | 22631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22635 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
c32bde28 | 22636 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22637 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22638 | { |
22639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22640 | (arg1)->AssignImageList(arg2,arg3); | |
22641 | ||
22642 | wxPyEndAllowThreads(__tstate); | |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
22644 | } | |
22645 | Py_INCREF(Py_None); resultobj = Py_None; | |
22646 | return resultobj; | |
22647 | fail: | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
c32bde28 | 22652 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
22653 | PyObject *resultobj; |
22654 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22655 | bool result; | |
22656 | PyObject * obj0 = 0 ; | |
22657 | char *kwnames[] = { | |
22658 | (char *) "self", NULL | |
22659 | }; | |
22660 | ||
22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22664 | { | |
22665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22666 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22667 | ||
22668 | wxPyEndAllowThreads(__tstate); | |
22669 | if (PyErr_Occurred()) SWIG_fail; | |
22670 | } | |
4f89f6a3 RD |
22671 | { |
22672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22673 | } | |
4276dc52 RD |
22674 | return resultobj; |
22675 | fail: | |
22676 | return NULL; | |
22677 | } | |
22678 | ||
22679 | ||
c32bde28 | 22680 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22681 | PyObject *resultobj; |
22682 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22683 | bool result; | |
22684 | PyObject * obj0 = 0 ; | |
22685 | char *kwnames[] = { | |
22686 | (char *) "self", NULL | |
22687 | }; | |
22688 | ||
22689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22692 | { |
22693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22694 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22695 | ||
22696 | wxPyEndAllowThreads(__tstate); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
4f89f6a3 RD |
22699 | { |
22700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22701 | } | |
d14a1e28 RD |
22702 | return resultobj; |
22703 | fail: | |
22704 | return NULL; | |
22705 | } | |
22706 | ||
22707 | ||
c32bde28 | 22708 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22709 | PyObject *resultobj; |
22710 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22711 | long arg2 ; | |
22712 | PyObject * obj0 = 0 ; | |
994141e6 | 22713 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22714 | char *kwnames[] = { |
22715 | (char *) "self",(char *) "item", NULL | |
22716 | }; | |
22717 | ||
994141e6 | 22718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22721 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22722 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22723 | { |
22724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22725 | (arg1)->RefreshItem(arg2); | |
22726 | ||
22727 | wxPyEndAllowThreads(__tstate); | |
22728 | if (PyErr_Occurred()) SWIG_fail; | |
22729 | } | |
22730 | Py_INCREF(Py_None); resultobj = Py_None; | |
22731 | return resultobj; | |
22732 | fail: | |
22733 | return NULL; | |
22734 | } | |
22735 | ||
22736 | ||
c32bde28 | 22737 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22738 | PyObject *resultobj; |
22739 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22740 | long arg2 ; | |
22741 | long arg3 ; | |
22742 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22743 | PyObject * obj1 = 0 ; |
22744 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22745 | char *kwnames[] = { |
22746 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22747 | }; | |
22748 | ||
994141e6 | 22749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22752 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22753 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22754 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22755 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22756 | { |
22757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22758 | (arg1)->RefreshItems(arg2,arg3); | |
22759 | ||
22760 | wxPyEndAllowThreads(__tstate); | |
22761 | if (PyErr_Occurred()) SWIG_fail; | |
22762 | } | |
22763 | Py_INCREF(Py_None); resultobj = Py_None; | |
22764 | return resultobj; | |
22765 | fail: | |
22766 | return NULL; | |
22767 | } | |
22768 | ||
22769 | ||
c32bde28 | 22770 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22771 | PyObject *resultobj; |
22772 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22773 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22774 | bool result; | |
22775 | PyObject * obj0 = 0 ; | |
994141e6 | 22776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22777 | char *kwnames[] = { |
22778 | (char *) "self",(char *) "flag", NULL | |
22779 | }; | |
22780 | ||
994141e6 | 22781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22784 | if (obj1) { |
c32bde28 | 22785 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22786 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22787 | } |
d14a1e28 RD |
22788 | { |
22789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22790 | result = (bool)(arg1)->Arrange(arg2); | |
22791 | ||
22792 | wxPyEndAllowThreads(__tstate); | |
22793 | if (PyErr_Occurred()) SWIG_fail; | |
22794 | } | |
4f89f6a3 RD |
22795 | { |
22796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22797 | } | |
d14a1e28 RD |
22798 | return resultobj; |
22799 | fail: | |
22800 | return NULL; | |
22801 | } | |
22802 | ||
22803 | ||
c32bde28 | 22804 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22805 | PyObject *resultobj; |
22806 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22807 | long arg2 ; | |
22808 | bool result; | |
22809 | PyObject * obj0 = 0 ; | |
994141e6 | 22810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22811 | char *kwnames[] = { |
22812 | (char *) "self",(char *) "item", NULL | |
22813 | }; | |
22814 | ||
994141e6 | 22815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22818 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22819 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22820 | { |
22821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22822 | result = (bool)(arg1)->DeleteItem(arg2); | |
22823 | ||
22824 | wxPyEndAllowThreads(__tstate); | |
22825 | if (PyErr_Occurred()) SWIG_fail; | |
22826 | } | |
4f89f6a3 RD |
22827 | { |
22828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22829 | } | |
d14a1e28 RD |
22830 | return resultobj; |
22831 | fail: | |
22832 | return NULL; | |
22833 | } | |
22834 | ||
22835 | ||
c32bde28 | 22836 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22837 | PyObject *resultobj; |
22838 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22839 | bool result; | |
22840 | PyObject * obj0 = 0 ; | |
22841 | char *kwnames[] = { | |
22842 | (char *) "self", NULL | |
22843 | }; | |
22844 | ||
22845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22848 | { |
22849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22850 | result = (bool)(arg1)->DeleteAllItems(); | |
22851 | ||
22852 | wxPyEndAllowThreads(__tstate); | |
22853 | if (PyErr_Occurred()) SWIG_fail; | |
22854 | } | |
4f89f6a3 RD |
22855 | { |
22856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22857 | } | |
d14a1e28 RD |
22858 | return resultobj; |
22859 | fail: | |
22860 | return NULL; | |
22861 | } | |
22862 | ||
22863 | ||
c32bde28 | 22864 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22865 | PyObject *resultobj; |
22866 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22867 | int arg2 ; | |
22868 | bool result; | |
22869 | PyObject * obj0 = 0 ; | |
994141e6 | 22870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22871 | char *kwnames[] = { |
22872 | (char *) "self",(char *) "col", NULL | |
22873 | }; | |
22874 | ||
994141e6 | 22875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22878 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22879 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22880 | { |
22881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22882 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22883 | ||
22884 | wxPyEndAllowThreads(__tstate); | |
22885 | if (PyErr_Occurred()) SWIG_fail; | |
22886 | } | |
4f89f6a3 RD |
22887 | { |
22888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22889 | } | |
d14a1e28 RD |
22890 | return resultobj; |
22891 | fail: | |
22892 | return NULL; | |
22893 | } | |
22894 | ||
22895 | ||
c32bde28 | 22896 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22897 | PyObject *resultobj; |
22898 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22899 | bool result; | |
22900 | PyObject * obj0 = 0 ; | |
22901 | char *kwnames[] = { | |
22902 | (char *) "self", NULL | |
22903 | }; | |
22904 | ||
22905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22908 | { |
22909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22910 | result = (bool)(arg1)->DeleteAllColumns(); | |
22911 | ||
22912 | wxPyEndAllowThreads(__tstate); | |
22913 | if (PyErr_Occurred()) SWIG_fail; | |
22914 | } | |
4f89f6a3 RD |
22915 | { |
22916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22917 | } | |
d14a1e28 RD |
22918 | return resultobj; |
22919 | fail: | |
22920 | return NULL; | |
22921 | } | |
22922 | ||
22923 | ||
c32bde28 | 22924 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22925 | PyObject *resultobj; |
22926 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22927 | PyObject * obj0 = 0 ; | |
22928 | char *kwnames[] = { | |
22929 | (char *) "self", NULL | |
22930 | }; | |
22931 | ||
22932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22935 | { |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | (arg1)->ClearAll(); | |
22938 | ||
22939 | wxPyEndAllowThreads(__tstate); | |
22940 | if (PyErr_Occurred()) SWIG_fail; | |
22941 | } | |
22942 | Py_INCREF(Py_None); resultobj = Py_None; | |
22943 | return resultobj; | |
22944 | fail: | |
22945 | return NULL; | |
22946 | } | |
22947 | ||
22948 | ||
c32bde28 | 22949 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22950 | PyObject *resultobj; |
22951 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22952 | long arg2 ; | |
22953 | PyObject * obj0 = 0 ; | |
994141e6 | 22954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22955 | char *kwnames[] = { |
22956 | (char *) "self",(char *) "item", NULL | |
22957 | }; | |
22958 | ||
994141e6 | 22959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22962 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22963 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22964 | { |
22965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22966 | (arg1)->EditLabel(arg2); | |
22967 | ||
22968 | wxPyEndAllowThreads(__tstate); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | } | |
22971 | Py_INCREF(Py_None); resultobj = Py_None; | |
22972 | return resultobj; | |
22973 | fail: | |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
c32bde28 | 22978 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22979 | PyObject *resultobj; |
22980 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22981 | long arg2 ; | |
22982 | bool result; | |
22983 | PyObject * obj0 = 0 ; | |
994141e6 | 22984 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22985 | char *kwnames[] = { |
22986 | (char *) "self",(char *) "item", NULL | |
22987 | }; | |
22988 | ||
994141e6 | 22989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22992 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22993 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22994 | { |
22995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22996 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22997 | ||
22998 | wxPyEndAllowThreads(__tstate); | |
22999 | if (PyErr_Occurred()) SWIG_fail; | |
23000 | } | |
4f89f6a3 RD |
23001 | { |
23002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23003 | } | |
d14a1e28 RD |
23004 | return resultobj; |
23005 | fail: | |
23006 | return NULL; | |
23007 | } | |
23008 | ||
23009 | ||
c32bde28 | 23010 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23011 | PyObject *resultobj; |
23012 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23013 | long arg2 ; | |
23014 | wxString *arg3 = 0 ; | |
e811c8ce | 23015 | bool arg4 = (bool) False ; |
d14a1e28 | 23016 | long result; |
e811c8ce | 23017 | bool temp3 = False ; |
d14a1e28 | 23018 | PyObject * obj0 = 0 ; |
994141e6 | 23019 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23020 | PyObject * obj2 = 0 ; |
23021 | PyObject * obj3 = 0 ; | |
23022 | char *kwnames[] = { | |
23023 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
23024 | }; | |
23025 | ||
994141e6 | 23026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23029 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23030 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23031 | { |
23032 | arg3 = wxString_in_helper(obj2); | |
23033 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23034 | temp3 = True; |
d14a1e28 RD |
23035 | } |
23036 | if (obj3) { | |
c32bde28 | 23037 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 23038 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23039 | } |
23040 | { | |
23041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23042 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
23043 | ||
23044 | wxPyEndAllowThreads(__tstate); | |
23045 | if (PyErr_Occurred()) SWIG_fail; | |
23046 | } | |
c32bde28 | 23047 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23048 | { |
23049 | if (temp3) | |
23050 | delete arg3; | |
23051 | } | |
23052 | return resultobj; | |
23053 | fail: | |
23054 | { | |
23055 | if (temp3) | |
23056 | delete arg3; | |
23057 | } | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
c32bde28 | 23062 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23063 | PyObject *resultobj; |
23064 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23065 | long arg2 ; | |
23066 | long arg3 ; | |
23067 | long result; | |
23068 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23069 | PyObject * obj1 = 0 ; |
23070 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23071 | char *kwnames[] = { |
23072 | (char *) "self",(char *) "start",(char *) "data", NULL | |
23073 | }; | |
23074 | ||
994141e6 | 23075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23078 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23079 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23080 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 23081 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23082 | { |
23083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23084 | result = (long)(arg1)->FindItem(arg2,arg3); | |
23085 | ||
23086 | wxPyEndAllowThreads(__tstate); | |
23087 | if (PyErr_Occurred()) SWIG_fail; | |
23088 | } | |
c32bde28 | 23089 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23090 | return resultobj; |
23091 | fail: | |
23092 | return NULL; | |
23093 | } | |
23094 | ||
23095 | ||
c32bde28 | 23096 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23097 | PyObject *resultobj; |
23098 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23099 | long arg2 ; | |
23100 | wxPoint *arg3 = 0 ; | |
23101 | int arg4 ; | |
23102 | long result; | |
23103 | wxPoint temp3 ; | |
23104 | PyObject * obj0 = 0 ; | |
994141e6 | 23105 | PyObject * obj1 = 0 ; |
d14a1e28 | 23106 | PyObject * obj2 = 0 ; |
994141e6 | 23107 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23108 | char *kwnames[] = { |
23109 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
23110 | }; | |
23111 | ||
994141e6 | 23112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23115 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23116 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23117 | { |
23118 | arg3 = &temp3; | |
23119 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23120 | } | |
c32bde28 | 23121 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23122 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23123 | { |
23124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23125 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
23126 | ||
23127 | wxPyEndAllowThreads(__tstate); | |
23128 | if (PyErr_Occurred()) SWIG_fail; | |
23129 | } | |
c32bde28 | 23130 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23131 | return resultobj; |
23132 | fail: | |
23133 | return NULL; | |
23134 | } | |
23135 | ||
23136 | ||
c32bde28 | 23137 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23138 | PyObject *resultobj; |
23139 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23140 | wxPoint *arg2 = 0 ; | |
23141 | int *arg3 = 0 ; | |
23142 | long result; | |
23143 | wxPoint temp2 ; | |
23144 | int temp3 ; | |
c32bde28 | 23145 | int res3 = 0 ; |
d14a1e28 RD |
23146 | PyObject * obj0 = 0 ; |
23147 | PyObject * obj1 = 0 ; | |
23148 | char *kwnames[] = { | |
23149 | (char *) "self",(char *) "point", NULL | |
23150 | }; | |
23151 | ||
c32bde28 | 23152 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 23153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23156 | { |
23157 | arg2 = &temp2; | |
23158 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23159 | } | |
23160 | { | |
23161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23162 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23163 | ||
23164 | wxPyEndAllowThreads(__tstate); | |
23165 | if (PyErr_Occurred()) SWIG_fail; | |
23166 | } | |
c32bde28 RD |
23167 | resultobj = SWIG_From_long((long)result); |
23168 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23169 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
23170 | return resultobj; |
23171 | fail: | |
23172 | return NULL; | |
23173 | } | |
23174 | ||
23175 | ||
c32bde28 | 23176 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23177 | PyObject *resultobj; |
23178 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23179 | wxListItem *arg2 = 0 ; | |
23180 | long result; | |
23181 | PyObject * obj0 = 0 ; | |
23182 | PyObject * obj1 = 0 ; | |
23183 | char *kwnames[] = { | |
23184 | (char *) "self",(char *) "info", NULL | |
23185 | }; | |
23186 | ||
23187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23191 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23192 | SWIG_fail; | |
d14a1e28 | 23193 | if (arg2 == NULL) { |
15afbcd0 RD |
23194 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23195 | SWIG_fail; | |
d14a1e28 RD |
23196 | } |
23197 | { | |
23198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23199 | result = (long)(arg1)->InsertItem(*arg2); | |
23200 | ||
23201 | wxPyEndAllowThreads(__tstate); | |
23202 | if (PyErr_Occurred()) SWIG_fail; | |
23203 | } | |
c32bde28 | 23204 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23205 | return resultobj; |
23206 | fail: | |
23207 | return NULL; | |
23208 | } | |
23209 | ||
23210 | ||
c32bde28 | 23211 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23212 | PyObject *resultobj; |
23213 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23214 | long arg2 ; | |
23215 | wxString *arg3 = 0 ; | |
23216 | long result; | |
e811c8ce | 23217 | bool temp3 = False ; |
d14a1e28 | 23218 | PyObject * obj0 = 0 ; |
994141e6 | 23219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23220 | PyObject * obj2 = 0 ; |
23221 | char *kwnames[] = { | |
23222 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23223 | }; | |
23224 | ||
994141e6 | 23225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23228 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23229 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23230 | { |
23231 | arg3 = wxString_in_helper(obj2); | |
23232 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23233 | temp3 = True; |
d14a1e28 RD |
23234 | } |
23235 | { | |
23236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23237 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23238 | ||
23239 | wxPyEndAllowThreads(__tstate); | |
23240 | if (PyErr_Occurred()) SWIG_fail; | |
23241 | } | |
c32bde28 | 23242 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23243 | { |
23244 | if (temp3) | |
23245 | delete arg3; | |
23246 | } | |
23247 | return resultobj; | |
23248 | fail: | |
23249 | { | |
23250 | if (temp3) | |
23251 | delete arg3; | |
23252 | } | |
23253 | return NULL; | |
23254 | } | |
23255 | ||
23256 | ||
c32bde28 | 23257 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23258 | PyObject *resultobj; |
23259 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23260 | long arg2 ; | |
23261 | int arg3 ; | |
23262 | long result; | |
23263 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23264 | PyObject * obj1 = 0 ; |
23265 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23266 | char *kwnames[] = { |
23267 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23268 | }; | |
23269 | ||
994141e6 | 23270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23273 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23274 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23275 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23276 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23277 | { |
23278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23279 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23280 | ||
23281 | wxPyEndAllowThreads(__tstate); | |
23282 | if (PyErr_Occurred()) SWIG_fail; | |
23283 | } | |
c32bde28 | 23284 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23285 | return resultobj; |
23286 | fail: | |
23287 | return NULL; | |
23288 | } | |
23289 | ||
23290 | ||
c32bde28 | 23291 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23292 | PyObject *resultobj; |
23293 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23294 | long arg2 ; | |
23295 | wxString *arg3 = 0 ; | |
23296 | int arg4 ; | |
23297 | long result; | |
e811c8ce | 23298 | bool temp3 = False ; |
d14a1e28 | 23299 | PyObject * obj0 = 0 ; |
994141e6 | 23300 | PyObject * obj1 = 0 ; |
d14a1e28 | 23301 | PyObject * obj2 = 0 ; |
994141e6 | 23302 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23303 | char *kwnames[] = { |
23304 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23305 | }; | |
23306 | ||
994141e6 | 23307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23310 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23311 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23312 | { |
23313 | arg3 = wxString_in_helper(obj2); | |
23314 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23315 | temp3 = True; |
d14a1e28 | 23316 | } |
c32bde28 | 23317 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23318 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23319 | { |
23320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23321 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23322 | ||
23323 | wxPyEndAllowThreads(__tstate); | |
23324 | if (PyErr_Occurred()) SWIG_fail; | |
23325 | } | |
c32bde28 | 23326 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23327 | { |
23328 | if (temp3) | |
23329 | delete arg3; | |
23330 | } | |
23331 | return resultobj; | |
23332 | fail: | |
23333 | { | |
23334 | if (temp3) | |
23335 | delete arg3; | |
23336 | } | |
23337 | return NULL; | |
23338 | } | |
23339 | ||
23340 | ||
c32bde28 | 23341 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23342 | PyObject *resultobj; |
23343 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23344 | long arg2 ; | |
23345 | wxListItem *arg3 = 0 ; | |
23346 | long result; | |
23347 | PyObject * obj0 = 0 ; | |
994141e6 | 23348 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23349 | PyObject * obj2 = 0 ; |
23350 | char *kwnames[] = { | |
23351 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23352 | }; | |
23353 | ||
994141e6 | 23354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23357 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 RD |
23358 | if (PyErr_Occurred()) SWIG_fail; |
23359 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23361 | SWIG_fail; | |
d14a1e28 | 23362 | if (arg3 == NULL) { |
15afbcd0 RD |
23363 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23364 | SWIG_fail; | |
d14a1e28 RD |
23365 | } |
23366 | { | |
23367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23368 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23369 | ||
23370 | wxPyEndAllowThreads(__tstate); | |
23371 | if (PyErr_Occurred()) SWIG_fail; | |
23372 | } | |
c32bde28 | 23373 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23374 | return resultobj; |
23375 | fail: | |
23376 | return NULL; | |
23377 | } | |
23378 | ||
23379 | ||
c32bde28 | 23380 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23381 | PyObject *resultobj; |
23382 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23383 | long arg2 ; | |
23384 | wxString *arg3 = 0 ; | |
23385 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23386 | int arg5 = (int) -1 ; | |
23387 | long result; | |
e811c8ce | 23388 | bool temp3 = False ; |
d14a1e28 | 23389 | PyObject * obj0 = 0 ; |
994141e6 | 23390 | PyObject * obj1 = 0 ; |
d14a1e28 | 23391 | PyObject * obj2 = 0 ; |
994141e6 RD |
23392 | PyObject * obj3 = 0 ; |
23393 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
23394 | char *kwnames[] = { |
23395 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23396 | }; | |
23397 | ||
994141e6 | 23398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23401 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23402 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23403 | { |
23404 | arg3 = wxString_in_helper(obj2); | |
23405 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23406 | temp3 = True; |
d14a1e28 | 23407 | } |
994141e6 | 23408 | if (obj3) { |
c32bde28 | 23409 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23410 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
23411 | } |
23412 | if (obj4) { | |
c32bde28 | 23413 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 23414 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23415 | } |
d14a1e28 RD |
23416 | { |
23417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23418 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23419 | ||
23420 | wxPyEndAllowThreads(__tstate); | |
23421 | if (PyErr_Occurred()) SWIG_fail; | |
23422 | } | |
c32bde28 | 23423 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23424 | { |
23425 | if (temp3) | |
23426 | delete arg3; | |
23427 | } | |
23428 | return resultobj; | |
23429 | fail: | |
23430 | { | |
23431 | if (temp3) | |
23432 | delete arg3; | |
23433 | } | |
23434 | return NULL; | |
23435 | } | |
23436 | ||
23437 | ||
c32bde28 | 23438 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23439 | PyObject *resultobj; |
23440 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23441 | long arg2 ; | |
23442 | PyObject * obj0 = 0 ; | |
994141e6 | 23443 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23444 | char *kwnames[] = { |
23445 | (char *) "self",(char *) "count", NULL | |
23446 | }; | |
23447 | ||
994141e6 | 23448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23451 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23452 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23453 | { |
23454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23455 | (arg1)->SetItemCount(arg2); | |
23456 | ||
23457 | wxPyEndAllowThreads(__tstate); | |
23458 | if (PyErr_Occurred()) SWIG_fail; | |
23459 | } | |
23460 | Py_INCREF(Py_None); resultobj = Py_None; | |
23461 | return resultobj; | |
23462 | fail: | |
23463 | return NULL; | |
23464 | } | |
23465 | ||
23466 | ||
c32bde28 | 23467 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23468 | PyObject *resultobj; |
23469 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23470 | int arg2 ; | |
23471 | int arg3 ; | |
23472 | bool result; | |
23473 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23474 | PyObject * obj1 = 0 ; |
23475 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23476 | char *kwnames[] = { |
23477 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23478 | }; | |
23479 | ||
994141e6 | 23480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23483 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23484 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23485 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23486 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23487 | { |
23488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23489 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23490 | ||
23491 | wxPyEndAllowThreads(__tstate); | |
23492 | if (PyErr_Occurred()) SWIG_fail; | |
23493 | } | |
4f89f6a3 RD |
23494 | { |
23495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23496 | } | |
d14a1e28 RD |
23497 | return resultobj; |
23498 | fail: | |
23499 | return NULL; | |
23500 | } | |
23501 | ||
23502 | ||
c32bde28 | 23503 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23504 | PyObject *resultobj; |
23505 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23506 | long arg2 ; | |
23507 | wxColour *arg3 = 0 ; | |
23508 | wxColour temp3 ; | |
23509 | PyObject * obj0 = 0 ; | |
994141e6 | 23510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23511 | PyObject * obj2 = 0 ; |
23512 | char *kwnames[] = { | |
23513 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23514 | }; | |
23515 | ||
994141e6 | 23516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23519 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23520 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23521 | { |
23522 | arg3 = &temp3; | |
23523 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23524 | } | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
23532 | Py_INCREF(Py_None); resultobj = Py_None; | |
23533 | return resultobj; | |
23534 | fail: | |
23535 | return NULL; | |
23536 | } | |
23537 | ||
23538 | ||
c32bde28 | 23539 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23540 | PyObject *resultobj; |
23541 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23542 | long arg2 ; | |
23543 | wxColour result; | |
23544 | PyObject * obj0 = 0 ; | |
994141e6 | 23545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23546 | char *kwnames[] = { |
23547 | (char *) "self",(char *) "item", NULL | |
23548 | }; | |
23549 | ||
994141e6 | 23550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23557 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23558 | ||
23559 | wxPyEndAllowThreads(__tstate); | |
23560 | if (PyErr_Occurred()) SWIG_fail; | |
23561 | } | |
23562 | { | |
23563 | wxColour * resultptr; | |
23564 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23565 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23566 | } |
23567 | return resultobj; | |
23568 | fail: | |
23569 | return NULL; | |
23570 | } | |
23571 | ||
23572 | ||
c32bde28 | 23573 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23574 | PyObject *resultobj; |
23575 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23576 | long arg2 ; | |
23577 | wxColour *arg3 = 0 ; | |
23578 | wxColour temp3 ; | |
23579 | PyObject * obj0 = 0 ; | |
994141e6 | 23580 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23581 | PyObject * obj2 = 0 ; |
23582 | char *kwnames[] = { | |
23583 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23584 | }; | |
23585 | ||
994141e6 | 23586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23589 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23590 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23591 | { |
23592 | arg3 = &temp3; | |
23593 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23594 | } | |
23595 | { | |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
23602 | Py_INCREF(Py_None); resultobj = Py_None; | |
23603 | return resultobj; | |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
c32bde28 | 23609 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23610 | PyObject *resultobj; |
23611 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23612 | long arg2 ; | |
23613 | wxColour result; | |
23614 | PyObject * obj0 = 0 ; | |
994141e6 | 23615 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23616 | char *kwnames[] = { |
23617 | (char *) "self",(char *) "item", NULL | |
23618 | }; | |
23619 | ||
994141e6 | 23620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23623 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23624 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23625 | { |
23626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23627 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23628 | ||
23629 | wxPyEndAllowThreads(__tstate); | |
23630 | if (PyErr_Occurred()) SWIG_fail; | |
23631 | } | |
23632 | { | |
23633 | wxColour * resultptr; | |
23634 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23635 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23636 | } |
23637 | return resultobj; | |
23638 | fail: | |
23639 | return NULL; | |
23640 | } | |
23641 | ||
23642 | ||
c32bde28 | 23643 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23644 | PyObject *resultobj; |
23645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23646 | PyObject *arg2 = (PyObject *) 0 ; | |
23647 | bool result; | |
23648 | PyObject * obj0 = 0 ; | |
23649 | PyObject * obj1 = 0 ; | |
23650 | char *kwnames[] = { | |
23651 | (char *) "self",(char *) "func", NULL | |
23652 | }; | |
23653 | ||
23654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23657 | arg2 = obj1; |
23658 | { | |
23659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23660 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23661 | ||
23662 | wxPyEndAllowThreads(__tstate); | |
23663 | if (PyErr_Occurred()) SWIG_fail; | |
23664 | } | |
4f89f6a3 RD |
23665 | { |
23666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23667 | } | |
d14a1e28 RD |
23668 | return resultobj; |
23669 | fail: | |
23670 | return NULL; | |
23671 | } | |
23672 | ||
23673 | ||
c32bde28 | 23674 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23675 | PyObject *resultobj; |
23676 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23677 | wxWindow *result; | |
23678 | PyObject * obj0 = 0 ; | |
23679 | char *kwnames[] = { | |
23680 | (char *) "self", NULL | |
23681 | }; | |
23682 | ||
23683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23686 | { |
23687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23688 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23689 | ||
23690 | wxPyEndAllowThreads(__tstate); | |
23691 | if (PyErr_Occurred()) SWIG_fail; | |
23692 | } | |
23693 | { | |
412d302d | 23694 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23695 | } |
23696 | return resultobj; | |
23697 | fail: | |
23698 | return NULL; | |
23699 | } | |
23700 | ||
23701 | ||
c32bde28 | 23702 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
23703 | PyObject *resultobj; |
23704 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23705 | wxVisualAttributes result; | |
23706 | PyObject * obj0 = 0 ; | |
23707 | char *kwnames[] = { | |
23708 | (char *) "variant", NULL | |
23709 | }; | |
23710 | ||
23711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23712 | if (obj0) { | |
c32bde28 | 23713 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
23714 | if (PyErr_Occurred()) SWIG_fail; |
23715 | } | |
23716 | { | |
110da5b0 | 23717 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
23718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23719 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23720 | ||
23721 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 23722 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
23723 | } |
23724 | { | |
23725 | wxVisualAttributes * resultptr; | |
23726 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23727 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23728 | } | |
23729 | return resultobj; | |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
c32bde28 | 23735 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23736 | PyObject *obj; |
23737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23738 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23739 | Py_INCREF(obj); | |
23740 | return Py_BuildValue((char *)""); | |
23741 | } | |
c32bde28 | 23742 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23743 | PyObject *resultobj; |
23744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23745 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23746 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23747 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23748 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23749 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23750 | long arg5 = (long) wxLC_REPORT ; | |
23751 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23752 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23753 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23754 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23755 | wxListView *result; | |
23756 | wxPoint temp3 ; | |
23757 | wxSize temp4 ; | |
e811c8ce | 23758 | bool temp7 = False ; |
d14a1e28 | 23759 | PyObject * obj0 = 0 ; |
994141e6 | 23760 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23761 | PyObject * obj2 = 0 ; |
23762 | PyObject * obj3 = 0 ; | |
994141e6 | 23763 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23764 | PyObject * obj5 = 0 ; |
23765 | PyObject * obj6 = 0 ; | |
23766 | char *kwnames[] = { | |
23767 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23768 | }; | |
23769 | ||
994141e6 | 23770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23773 | if (obj1) { |
c32bde28 | 23774 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23775 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23776 | } |
d14a1e28 RD |
23777 | if (obj2) { |
23778 | { | |
23779 | arg3 = &temp3; | |
23780 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23781 | } | |
23782 | } | |
23783 | if (obj3) { | |
23784 | { | |
23785 | arg4 = &temp4; | |
23786 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23787 | } | |
23788 | } | |
994141e6 | 23789 | if (obj4) { |
c32bde28 | 23790 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 23791 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23792 | } |
d14a1e28 | 23793 | if (obj5) { |
15afbcd0 RD |
23794 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
23795 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23796 | SWIG_fail; | |
d14a1e28 | 23797 | if (arg6 == NULL) { |
15afbcd0 RD |
23798 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23799 | SWIG_fail; | |
d14a1e28 RD |
23800 | } |
23801 | } | |
23802 | if (obj6) { | |
23803 | { | |
23804 | arg7 = wxString_in_helper(obj6); | |
23805 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23806 | temp7 = True; |
d14a1e28 RD |
23807 | } |
23808 | } | |
23809 | { | |
e3b71cb8 | 23810 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23812 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23813 | ||
23814 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23815 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23816 | } |
15afbcd0 | 23817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23818 | { |
23819 | if (temp7) | |
23820 | delete arg7; | |
23821 | } | |
23822 | return resultobj; | |
23823 | fail: | |
23824 | { | |
23825 | if (temp7) | |
23826 | delete arg7; | |
23827 | } | |
23828 | return NULL; | |
23829 | } | |
23830 | ||
23831 | ||
c32bde28 | 23832 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23833 | PyObject *resultobj; |
23834 | wxListView *result; | |
23835 | char *kwnames[] = { | |
23836 | NULL | |
23837 | }; | |
23838 | ||
23839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23840 | { | |
e3b71cb8 | 23841 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23843 | result = (wxListView *)new wxListView(); | |
23844 | ||
23845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23846 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23847 | } |
15afbcd0 | 23848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23849 | return resultobj; |
23850 | fail: | |
23851 | return NULL; | |
23852 | } | |
23853 | ||
23854 | ||
c32bde28 | 23855 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23856 | PyObject *resultobj; |
23857 | wxListView *arg1 = (wxListView *) 0 ; | |
23858 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23859 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23860 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23861 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23862 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23863 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23864 | long arg6 = (long) wxLC_REPORT ; | |
23865 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23866 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23867 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23868 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23869 | bool result; | |
23870 | wxPoint temp4 ; | |
23871 | wxSize temp5 ; | |
e811c8ce | 23872 | bool temp8 = False ; |
d14a1e28 RD |
23873 | PyObject * obj0 = 0 ; |
23874 | PyObject * obj1 = 0 ; | |
994141e6 | 23875 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23876 | PyObject * obj3 = 0 ; |
23877 | PyObject * obj4 = 0 ; | |
994141e6 | 23878 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23879 | PyObject * obj6 = 0 ; |
23880 | PyObject * obj7 = 0 ; | |
23881 | char *kwnames[] = { | |
23882 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23883 | }; | |
23884 | ||
994141e6 | 23885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
23886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23890 | if (obj2) { |
c32bde28 | 23891 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23892 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23893 | } |
d14a1e28 RD |
23894 | if (obj3) { |
23895 | { | |
23896 | arg4 = &temp4; | |
23897 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23898 | } | |
23899 | } | |
23900 | if (obj4) { | |
23901 | { | |
23902 | arg5 = &temp5; | |
23903 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23904 | } | |
23905 | } | |
994141e6 | 23906 | if (obj5) { |
c32bde28 | 23907 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 23908 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23909 | } |
d14a1e28 | 23910 | if (obj6) { |
15afbcd0 RD |
23911 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
23912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23913 | SWIG_fail; | |
d14a1e28 | 23914 | if (arg7 == NULL) { |
15afbcd0 RD |
23915 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23916 | SWIG_fail; | |
d14a1e28 RD |
23917 | } |
23918 | } | |
23919 | if (obj7) { | |
23920 | { | |
23921 | arg8 = wxString_in_helper(obj7); | |
23922 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23923 | temp8 = True; |
d14a1e28 RD |
23924 | } |
23925 | } | |
23926 | { | |
23927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23928 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23929 | ||
23930 | wxPyEndAllowThreads(__tstate); | |
23931 | if (PyErr_Occurred()) SWIG_fail; | |
23932 | } | |
4f89f6a3 RD |
23933 | { |
23934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23935 | } | |
d14a1e28 RD |
23936 | { |
23937 | if (temp8) | |
23938 | delete arg8; | |
23939 | } | |
23940 | return resultobj; | |
23941 | fail: | |
23942 | { | |
23943 | if (temp8) | |
23944 | delete arg8; | |
23945 | } | |
23946 | return NULL; | |
23947 | } | |
23948 | ||
23949 | ||
c32bde28 | 23950 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23951 | PyObject *resultobj; |
23952 | wxListView *arg1 = (wxListView *) 0 ; | |
23953 | long arg2 ; | |
e811c8ce | 23954 | bool arg3 = (bool) True ; |
d14a1e28 | 23955 | PyObject * obj0 = 0 ; |
994141e6 | 23956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23957 | PyObject * obj2 = 0 ; |
23958 | char *kwnames[] = { | |
23959 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23960 | }; | |
23961 | ||
15afbcd0 RD |
23962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23965 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23966 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23967 | if (obj2) { |
c32bde28 | 23968 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 23969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23970 | } |
23971 | { | |
23972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23973 | (arg1)->Select(arg2,arg3); | |
23974 | ||
23975 | wxPyEndAllowThreads(__tstate); | |
23976 | if (PyErr_Occurred()) SWIG_fail; | |
23977 | } | |
23978 | Py_INCREF(Py_None); resultobj = Py_None; | |
23979 | return resultobj; | |
23980 | fail: | |
23981 | return NULL; | |
23982 | } | |
23983 | ||
23984 | ||
c32bde28 | 23985 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23986 | PyObject *resultobj; |
23987 | wxListView *arg1 = (wxListView *) 0 ; | |
23988 | long arg2 ; | |
23989 | PyObject * obj0 = 0 ; | |
994141e6 | 23990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23991 | char *kwnames[] = { |
23992 | (char *) "self",(char *) "index", NULL | |
23993 | }; | |
23994 | ||
994141e6 | 23995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23998 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23999 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24000 | { |
24001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24002 | (arg1)->Focus(arg2); | |
24003 | ||
24004 | wxPyEndAllowThreads(__tstate); | |
24005 | if (PyErr_Occurred()) SWIG_fail; | |
24006 | } | |
24007 | Py_INCREF(Py_None); resultobj = Py_None; | |
24008 | return resultobj; | |
24009 | fail: | |
24010 | return NULL; | |
24011 | } | |
24012 | ||
24013 | ||
c32bde28 | 24014 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24015 | PyObject *resultobj; |
24016 | wxListView *arg1 = (wxListView *) 0 ; | |
24017 | long result; | |
24018 | PyObject * obj0 = 0 ; | |
24019 | char *kwnames[] = { | |
24020 | (char *) "self", NULL | |
24021 | }; | |
24022 | ||
24023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24026 | { |
24027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24028 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
24029 | ||
24030 | wxPyEndAllowThreads(__tstate); | |
24031 | if (PyErr_Occurred()) SWIG_fail; | |
24032 | } | |
c32bde28 | 24033 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24034 | return resultobj; |
24035 | fail: | |
24036 | return NULL; | |
24037 | } | |
24038 | ||
24039 | ||
c32bde28 | 24040 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24041 | PyObject *resultobj; |
24042 | wxListView *arg1 = (wxListView *) 0 ; | |
24043 | long arg2 ; | |
24044 | long result; | |
24045 | PyObject * obj0 = 0 ; | |
994141e6 | 24046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24047 | char *kwnames[] = { |
24048 | (char *) "self",(char *) "item", NULL | |
24049 | }; | |
24050 | ||
994141e6 | 24051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24054 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24055 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24056 | { |
24057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24058 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
24059 | ||
24060 | wxPyEndAllowThreads(__tstate); | |
24061 | if (PyErr_Occurred()) SWIG_fail; | |
24062 | } | |
c32bde28 | 24063 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24064 | return resultobj; |
24065 | fail: | |
24066 | return NULL; | |
24067 | } | |
24068 | ||
24069 | ||
c32bde28 | 24070 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24071 | PyObject *resultobj; |
24072 | wxListView *arg1 = (wxListView *) 0 ; | |
24073 | long result; | |
24074 | PyObject * obj0 = 0 ; | |
24075 | char *kwnames[] = { | |
24076 | (char *) "self", NULL | |
24077 | }; | |
24078 | ||
24079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24082 | { |
24083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24084 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
24085 | ||
24086 | wxPyEndAllowThreads(__tstate); | |
24087 | if (PyErr_Occurred()) SWIG_fail; | |
24088 | } | |
c32bde28 | 24089 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24090 | return resultobj; |
24091 | fail: | |
24092 | return NULL; | |
24093 | } | |
24094 | ||
24095 | ||
c32bde28 | 24096 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24097 | PyObject *resultobj; |
24098 | wxListView *arg1 = (wxListView *) 0 ; | |
24099 | long arg2 ; | |
24100 | bool result; | |
24101 | PyObject * obj0 = 0 ; | |
994141e6 | 24102 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24103 | char *kwnames[] = { |
24104 | (char *) "self",(char *) "index", NULL | |
24105 | }; | |
24106 | ||
994141e6 | 24107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24110 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24111 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24112 | { |
24113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24114 | result = (bool)(arg1)->IsSelected(arg2); | |
24115 | ||
24116 | wxPyEndAllowThreads(__tstate); | |
24117 | if (PyErr_Occurred()) SWIG_fail; | |
24118 | } | |
4f89f6a3 RD |
24119 | { |
24120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24121 | } | |
d14a1e28 RD |
24122 | return resultobj; |
24123 | fail: | |
24124 | return NULL; | |
24125 | } | |
24126 | ||
24127 | ||
c32bde28 | 24128 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24129 | PyObject *resultobj; |
24130 | wxListView *arg1 = (wxListView *) 0 ; | |
24131 | int arg2 ; | |
24132 | int arg3 ; | |
24133 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24134 | PyObject * obj1 = 0 ; |
24135 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24136 | char *kwnames[] = { |
24137 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24138 | }; | |
24139 | ||
994141e6 | 24140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24143 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24144 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24145 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 24146 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24147 | { |
24148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24149 | (arg1)->SetColumnImage(arg2,arg3); | |
24150 | ||
24151 | wxPyEndAllowThreads(__tstate); | |
24152 | if (PyErr_Occurred()) SWIG_fail; | |
24153 | } | |
24154 | Py_INCREF(Py_None); resultobj = Py_None; | |
24155 | return resultobj; | |
24156 | fail: | |
24157 | return NULL; | |
24158 | } | |
24159 | ||
24160 | ||
c32bde28 | 24161 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24162 | PyObject *resultobj; |
24163 | wxListView *arg1 = (wxListView *) 0 ; | |
24164 | int arg2 ; | |
24165 | PyObject * obj0 = 0 ; | |
994141e6 | 24166 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24167 | char *kwnames[] = { |
24168 | (char *) "self",(char *) "col", NULL | |
24169 | }; | |
24170 | ||
994141e6 | 24171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24174 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24175 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24176 | { |
24177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24178 | (arg1)->ClearColumnImage(arg2); | |
24179 | ||
24180 | wxPyEndAllowThreads(__tstate); | |
24181 | if (PyErr_Occurred()) SWIG_fail; | |
24182 | } | |
24183 | Py_INCREF(Py_None); resultobj = Py_None; | |
24184 | return resultobj; | |
24185 | fail: | |
24186 | return NULL; | |
24187 | } | |
24188 | ||
24189 | ||
c32bde28 | 24190 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24191 | PyObject *obj; |
24192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24193 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24194 | Py_INCREF(obj); | |
24195 | return Py_BuildValue((char *)""); | |
24196 | } | |
c32bde28 | 24197 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
24198 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
24199 | return 1; | |
24200 | } | |
24201 | ||
24202 | ||
24203 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24204 | PyObject *pyobj; | |
24205 | ||
24206 | { | |
24207 | #if wxUSE_UNICODE | |
24208 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24209 | #else | |
24210 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24211 | #endif | |
24212 | } | |
24213 | return pyobj; | |
24214 | } | |
24215 | ||
24216 | ||
c32bde28 | 24217 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24218 | PyObject *resultobj; |
24219 | wxTreeItemId *result; | |
24220 | char *kwnames[] = { | |
24221 | NULL | |
24222 | }; | |
24223 | ||
24224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24225 | { | |
24226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24227 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24228 | ||
24229 | wxPyEndAllowThreads(__tstate); | |
24230 | if (PyErr_Occurred()) SWIG_fail; | |
24231 | } | |
15afbcd0 | 24232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24233 | return resultobj; |
24234 | fail: | |
24235 | return NULL; | |
24236 | } | |
24237 | ||
24238 | ||
c32bde28 | 24239 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24240 | PyObject *resultobj; |
24241 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24242 | PyObject * obj0 = 0 ; | |
24243 | char *kwnames[] = { | |
24244 | (char *) "self", NULL | |
24245 | }; | |
24246 | ||
24247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24250 | { |
24251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24252 | delete arg1; | |
24253 | ||
24254 | wxPyEndAllowThreads(__tstate); | |
24255 | if (PyErr_Occurred()) SWIG_fail; | |
24256 | } | |
24257 | Py_INCREF(Py_None); resultobj = Py_None; | |
24258 | return resultobj; | |
24259 | fail: | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
c32bde28 | 24264 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24265 | PyObject *resultobj; |
24266 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24267 | bool result; | |
24268 | PyObject * obj0 = 0 ; | |
24269 | char *kwnames[] = { | |
24270 | (char *) "self", NULL | |
24271 | }; | |
24272 | ||
24273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24276 | { |
24277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24278 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24279 | ||
24280 | wxPyEndAllowThreads(__tstate); | |
24281 | if (PyErr_Occurred()) SWIG_fail; | |
24282 | } | |
4f89f6a3 RD |
24283 | { |
24284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24285 | } | |
d14a1e28 RD |
24286 | return resultobj; |
24287 | fail: | |
24288 | return NULL; | |
24289 | } | |
24290 | ||
24291 | ||
c32bde28 | 24292 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24293 | PyObject *resultobj; |
24294 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24295 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24296 | bool result; | |
24297 | PyObject * obj0 = 0 ; | |
24298 | PyObject * obj1 = 0 ; | |
24299 | char *kwnames[] = { | |
24300 | (char *) "self",(char *) "other", NULL | |
24301 | }; | |
24302 | ||
24303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24308 | { |
24309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24310 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24311 | |
24312 | wxPyEndAllowThreads(__tstate); | |
24313 | if (PyErr_Occurred()) SWIG_fail; | |
24314 | } | |
4f89f6a3 RD |
24315 | { |
24316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24317 | } | |
d14a1e28 RD |
24318 | return resultobj; |
24319 | fail: | |
24320 | return NULL; | |
24321 | } | |
24322 | ||
24323 | ||
c32bde28 | 24324 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24325 | PyObject *resultobj; |
24326 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24327 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24328 | bool result; | |
24329 | PyObject * obj0 = 0 ; | |
24330 | PyObject * obj1 = 0 ; | |
24331 | char *kwnames[] = { | |
24332 | (char *) "self",(char *) "other", NULL | |
24333 | }; | |
24334 | ||
24335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24338 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24340 | { |
24341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24342 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24343 | |
24344 | wxPyEndAllowThreads(__tstate); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
24346 | } | |
4f89f6a3 RD |
24347 | { |
24348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24349 | } | |
d14a1e28 RD |
24350 | return resultobj; |
24351 | fail: | |
24352 | return NULL; | |
24353 | } | |
24354 | ||
24355 | ||
c32bde28 | 24356 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24357 | PyObject *resultobj; |
24358 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24359 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
24360 | PyObject * obj0 = 0 ; |
24361 | PyObject * obj1 = 0 ; | |
24362 | char *kwnames[] = { | |
24363 | (char *) "self",(char *) "m_pItem", NULL | |
24364 | }; | |
24365 | ||
24366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24369 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24370 | if (arg1) (arg1)->m_pItem = arg2; |
24371 | ||
24372 | Py_INCREF(Py_None); resultobj = Py_None; | |
24373 | return resultobj; | |
24374 | fail: | |
24375 | return NULL; | |
24376 | } | |
24377 | ||
24378 | ||
c32bde28 | 24379 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24380 | PyObject *resultobj; |
24381 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24382 | void *result; |
d14a1e28 RD |
24383 | PyObject * obj0 = 0 ; |
24384 | char *kwnames[] = { | |
24385 | (char *) "self", NULL | |
24386 | }; | |
24387 | ||
24388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 24391 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 24392 | |
15afbcd0 | 24393 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
24394 | return resultobj; |
24395 | fail: | |
24396 | return NULL; | |
24397 | } | |
24398 | ||
24399 | ||
c32bde28 | 24400 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24401 | PyObject *obj; |
24402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24403 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24404 | Py_INCREF(obj); | |
24405 | return Py_BuildValue((char *)""); | |
24406 | } | |
c32bde28 | 24407 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24408 | PyObject *resultobj; |
24409 | PyObject *arg1 = (PyObject *) NULL ; | |
24410 | wxPyTreeItemData *result; | |
24411 | PyObject * obj0 = 0 ; | |
24412 | char *kwnames[] = { | |
24413 | (char *) "obj", NULL | |
24414 | }; | |
24415 | ||
24416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24417 | if (obj0) { | |
24418 | arg1 = obj0; | |
24419 | } | |
24420 | { | |
24421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24422 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24423 | ||
24424 | wxPyEndAllowThreads(__tstate); | |
24425 | if (PyErr_Occurred()) SWIG_fail; | |
24426 | } | |
15afbcd0 | 24427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
24428 | return resultobj; |
24429 | fail: | |
24430 | return NULL; | |
24431 | } | |
24432 | ||
24433 | ||
c32bde28 | 24434 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24435 | PyObject *resultobj; |
24436 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24437 | PyObject *result; | |
24438 | PyObject * obj0 = 0 ; | |
24439 | char *kwnames[] = { | |
24440 | (char *) "self", NULL | |
24441 | }; | |
24442 | ||
24443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24446 | { |
24447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24448 | result = (PyObject *)(arg1)->GetData(); | |
24449 | ||
24450 | wxPyEndAllowThreads(__tstate); | |
24451 | if (PyErr_Occurred()) SWIG_fail; | |
24452 | } | |
24453 | resultobj = result; | |
24454 | return resultobj; | |
24455 | fail: | |
24456 | return NULL; | |
24457 | } | |
24458 | ||
24459 | ||
c32bde28 | 24460 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24461 | PyObject *resultobj; |
24462 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24463 | PyObject *arg2 = (PyObject *) 0 ; | |
24464 | PyObject * obj0 = 0 ; | |
24465 | PyObject * obj1 = 0 ; | |
24466 | char *kwnames[] = { | |
24467 | (char *) "self",(char *) "obj", NULL | |
24468 | }; | |
24469 | ||
24470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24473 | arg2 = obj1; |
24474 | { | |
24475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24476 | (arg1)->SetData(arg2); | |
24477 | ||
24478 | wxPyEndAllowThreads(__tstate); | |
24479 | if (PyErr_Occurred()) SWIG_fail; | |
24480 | } | |
24481 | Py_INCREF(Py_None); resultobj = Py_None; | |
24482 | return resultobj; | |
24483 | fail: | |
24484 | return NULL; | |
24485 | } | |
24486 | ||
24487 | ||
c32bde28 | 24488 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24489 | PyObject *resultobj; |
24490 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24491 | wxTreeItemId *result; | |
24492 | PyObject * obj0 = 0 ; | |
24493 | char *kwnames[] = { | |
24494 | (char *) "self", NULL | |
24495 | }; | |
24496 | ||
24497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24500 | { |
24501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24502 | { | |
24503 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24504 | result = (wxTreeItemId *) &_result_ref; | |
24505 | } | |
24506 | ||
24507 | wxPyEndAllowThreads(__tstate); | |
24508 | if (PyErr_Occurred()) SWIG_fail; | |
24509 | } | |
15afbcd0 | 24510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
24511 | return resultobj; |
24512 | fail: | |
24513 | return NULL; | |
24514 | } | |
24515 | ||
24516 | ||
c32bde28 | 24517 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24518 | PyObject *resultobj; |
24519 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24520 | wxTreeItemId *arg2 = 0 ; | |
24521 | PyObject * obj0 = 0 ; | |
24522 | PyObject * obj1 = 0 ; | |
24523 | char *kwnames[] = { | |
24524 | (char *) "self",(char *) "id", NULL | |
24525 | }; | |
24526 | ||
24527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24530 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24531 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24532 | SWIG_fail; | |
d14a1e28 | 24533 | if (arg2 == NULL) { |
15afbcd0 RD |
24534 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24535 | SWIG_fail; | |
d14a1e28 RD |
24536 | } |
24537 | { | |
24538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24539 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24540 | ||
24541 | wxPyEndAllowThreads(__tstate); | |
24542 | if (PyErr_Occurred()) SWIG_fail; | |
24543 | } | |
24544 | Py_INCREF(Py_None); resultobj = Py_None; | |
24545 | return resultobj; | |
24546 | fail: | |
24547 | return NULL; | |
24548 | } | |
24549 | ||
24550 | ||
c32bde28 | 24551 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24552 | PyObject *resultobj; |
24553 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24554 | PyObject * obj0 = 0 ; | |
24555 | char *kwnames[] = { | |
24556 | (char *) "self", NULL | |
24557 | }; | |
24558 | ||
24559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24562 | { |
24563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24564 | wxPyTreeItemData_Destroy(arg1); | |
24565 | ||
24566 | wxPyEndAllowThreads(__tstate); | |
24567 | if (PyErr_Occurred()) SWIG_fail; | |
24568 | } | |
24569 | Py_INCREF(Py_None); resultobj = Py_None; | |
24570 | return resultobj; | |
24571 | fail: | |
24572 | return NULL; | |
24573 | } | |
24574 | ||
24575 | ||
c32bde28 | 24576 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24577 | PyObject *obj; |
24578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24579 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24580 | Py_INCREF(obj); | |
24581 | return Py_BuildValue((char *)""); | |
24582 | } | |
c32bde28 | 24583 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24584 | PyObject *resultobj; |
24585 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24586 | int arg2 = (int) 0 ; | |
24587 | wxTreeEvent *result; | |
994141e6 RD |
24588 | PyObject * obj0 = 0 ; |
24589 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
24590 | char *kwnames[] = { |
24591 | (char *) "commandType",(char *) "id", NULL | |
24592 | }; | |
24593 | ||
994141e6 RD |
24594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
24595 | if (obj0) { | |
c32bde28 | 24596 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 24597 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
24598 | } |
24599 | if (obj1) { | |
c32bde28 | 24600 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24601 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24602 | } |
d14a1e28 RD |
24603 | { |
24604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24605 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24606 | ||
24607 | wxPyEndAllowThreads(__tstate); | |
24608 | if (PyErr_Occurred()) SWIG_fail; | |
24609 | } | |
15afbcd0 | 24610 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
24611 | return resultobj; |
24612 | fail: | |
24613 | return NULL; | |
24614 | } | |
24615 | ||
24616 | ||
c32bde28 | 24617 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24618 | PyObject *resultobj; |
24619 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24620 | wxTreeItemId result; | |
24621 | PyObject * obj0 = 0 ; | |
24622 | char *kwnames[] = { | |
24623 | (char *) "self", NULL | |
24624 | }; | |
24625 | ||
24626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24629 | { |
24630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24631 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24632 | ||
24633 | wxPyEndAllowThreads(__tstate); | |
24634 | if (PyErr_Occurred()) SWIG_fail; | |
24635 | } | |
24636 | { | |
24637 | wxTreeItemId * resultptr; | |
24638 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24639 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24640 | } |
24641 | return resultobj; | |
24642 | fail: | |
24643 | return NULL; | |
24644 | } | |
24645 | ||
24646 | ||
c32bde28 | 24647 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24648 | PyObject *resultobj; |
24649 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24650 | wxTreeItemId *arg2 = 0 ; | |
24651 | PyObject * obj0 = 0 ; | |
24652 | PyObject * obj1 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "self",(char *) "item", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24662 | SWIG_fail; | |
d14a1e28 | 24663 | if (arg2 == NULL) { |
15afbcd0 RD |
24664 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24665 | SWIG_fail; | |
d14a1e28 RD |
24666 | } |
24667 | { | |
24668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24669 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24670 | ||
24671 | wxPyEndAllowThreads(__tstate); | |
24672 | if (PyErr_Occurred()) SWIG_fail; | |
24673 | } | |
24674 | Py_INCREF(Py_None); resultobj = Py_None; | |
24675 | return resultobj; | |
24676 | fail: | |
24677 | return NULL; | |
24678 | } | |
24679 | ||
24680 | ||
c32bde28 | 24681 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24682 | PyObject *resultobj; |
24683 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24684 | wxTreeItemId result; | |
24685 | PyObject * obj0 = 0 ; | |
24686 | char *kwnames[] = { | |
24687 | (char *) "self", NULL | |
24688 | }; | |
24689 | ||
24690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24693 | { |
24694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24695 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24696 | ||
24697 | wxPyEndAllowThreads(__tstate); | |
24698 | if (PyErr_Occurred()) SWIG_fail; | |
24699 | } | |
24700 | { | |
24701 | wxTreeItemId * resultptr; | |
24702 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24703 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24704 | } |
24705 | return resultobj; | |
24706 | fail: | |
24707 | return NULL; | |
24708 | } | |
24709 | ||
24710 | ||
c32bde28 | 24711 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24712 | PyObject *resultobj; |
24713 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24714 | wxTreeItemId *arg2 = 0 ; | |
24715 | PyObject * obj0 = 0 ; | |
24716 | PyObject * obj1 = 0 ; | |
24717 | char *kwnames[] = { | |
24718 | (char *) "self",(char *) "item", NULL | |
24719 | }; | |
24720 | ||
24721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24726 | SWIG_fail; | |
d14a1e28 | 24727 | if (arg2 == NULL) { |
15afbcd0 RD |
24728 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24729 | SWIG_fail; | |
d14a1e28 RD |
24730 | } |
24731 | { | |
24732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24733 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24734 | ||
24735 | wxPyEndAllowThreads(__tstate); | |
24736 | if (PyErr_Occurred()) SWIG_fail; | |
24737 | } | |
24738 | Py_INCREF(Py_None); resultobj = Py_None; | |
24739 | return resultobj; | |
24740 | fail: | |
24741 | return NULL; | |
24742 | } | |
24743 | ||
24744 | ||
c32bde28 | 24745 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24746 | PyObject *resultobj; |
24747 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24748 | wxPoint result; | |
24749 | PyObject * obj0 = 0 ; | |
24750 | char *kwnames[] = { | |
24751 | (char *) "self", NULL | |
24752 | }; | |
24753 | ||
24754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24757 | { |
24758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24759 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24760 | ||
24761 | wxPyEndAllowThreads(__tstate); | |
24762 | if (PyErr_Occurred()) SWIG_fail; | |
24763 | } | |
24764 | { | |
24765 | wxPoint * resultptr; | |
24766 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 24767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24768 | } |
24769 | return resultobj; | |
24770 | fail: | |
24771 | return NULL; | |
24772 | } | |
24773 | ||
24774 | ||
c32bde28 | 24775 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24776 | PyObject *resultobj; |
24777 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24778 | wxPoint *arg2 = 0 ; | |
24779 | wxPoint temp2 ; | |
24780 | PyObject * obj0 = 0 ; | |
24781 | PyObject * obj1 = 0 ; | |
24782 | char *kwnames[] = { | |
24783 | (char *) "self",(char *) "pt", NULL | |
24784 | }; | |
24785 | ||
24786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24789 | { |
24790 | arg2 = &temp2; | |
24791 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24792 | } | |
24793 | { | |
24794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24795 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24796 | ||
24797 | wxPyEndAllowThreads(__tstate); | |
24798 | if (PyErr_Occurred()) SWIG_fail; | |
24799 | } | |
24800 | Py_INCREF(Py_None); resultobj = Py_None; | |
24801 | return resultobj; | |
24802 | fail: | |
24803 | return NULL; | |
24804 | } | |
24805 | ||
24806 | ||
c32bde28 | 24807 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24808 | PyObject *resultobj; |
24809 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24810 | wxKeyEvent *result; | |
24811 | PyObject * obj0 = 0 ; | |
24812 | char *kwnames[] = { | |
24813 | (char *) "self", NULL | |
24814 | }; | |
24815 | ||
24816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24819 | { |
24820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24821 | { | |
24822 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24823 | result = (wxKeyEvent *) &_result_ref; | |
24824 | } | |
24825 | ||
24826 | wxPyEndAllowThreads(__tstate); | |
24827 | if (PyErr_Occurred()) SWIG_fail; | |
24828 | } | |
15afbcd0 | 24829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
24830 | return resultobj; |
24831 | fail: | |
24832 | return NULL; | |
24833 | } | |
24834 | ||
24835 | ||
c32bde28 | 24836 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24837 | PyObject *resultobj; |
24838 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24839 | int result; | |
24840 | PyObject * obj0 = 0 ; | |
24841 | char *kwnames[] = { | |
24842 | (char *) "self", NULL | |
24843 | }; | |
24844 | ||
24845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24848 | { |
24849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24850 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24851 | ||
24852 | wxPyEndAllowThreads(__tstate); | |
24853 | if (PyErr_Occurred()) SWIG_fail; | |
24854 | } | |
c32bde28 | 24855 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
24856 | return resultobj; |
24857 | fail: | |
24858 | return NULL; | |
24859 | } | |
24860 | ||
24861 | ||
c32bde28 | 24862 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24863 | PyObject *resultobj; |
24864 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24865 | wxKeyEvent *arg2 = 0 ; | |
24866 | PyObject * obj0 = 0 ; | |
24867 | PyObject * obj1 = 0 ; | |
24868 | char *kwnames[] = { | |
24869 | (char *) "self",(char *) "evt", NULL | |
24870 | }; | |
24871 | ||
24872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24876 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24877 | SWIG_fail; | |
d14a1e28 | 24878 | if (arg2 == NULL) { |
15afbcd0 RD |
24879 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24880 | SWIG_fail; | |
d14a1e28 RD |
24881 | } |
24882 | { | |
24883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24884 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24885 | ||
24886 | wxPyEndAllowThreads(__tstate); | |
24887 | if (PyErr_Occurred()) SWIG_fail; | |
24888 | } | |
24889 | Py_INCREF(Py_None); resultobj = Py_None; | |
24890 | return resultobj; | |
24891 | fail: | |
24892 | return NULL; | |
24893 | } | |
24894 | ||
24895 | ||
c32bde28 | 24896 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24897 | PyObject *resultobj; |
24898 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24899 | wxString *result; | |
24900 | PyObject * obj0 = 0 ; | |
24901 | char *kwnames[] = { | |
24902 | (char *) "self", NULL | |
24903 | }; | |
24904 | ||
24905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24908 | { |
24909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24910 | { | |
24911 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24912 | result = (wxString *) &_result_ref; | |
24913 | } | |
24914 | ||
24915 | wxPyEndAllowThreads(__tstate); | |
24916 | if (PyErr_Occurred()) SWIG_fail; | |
24917 | } | |
cc6dd355 RD |
24918 | { |
24919 | #if wxUSE_UNICODE | |
24920 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24921 | #else | |
24922 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24923 | #endif | |
24924 | } | |
d14a1e28 RD |
24925 | return resultobj; |
24926 | fail: | |
24927 | return NULL; | |
24928 | } | |
24929 | ||
24930 | ||
c32bde28 | 24931 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24932 | PyObject *resultobj; |
24933 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24934 | wxString *arg2 = 0 ; | |
e811c8ce | 24935 | bool temp2 = False ; |
d14a1e28 RD |
24936 | PyObject * obj0 = 0 ; |
24937 | PyObject * obj1 = 0 ; | |
24938 | char *kwnames[] = { | |
24939 | (char *) "self",(char *) "label", NULL | |
24940 | }; | |
24941 | ||
24942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24945 | { |
24946 | arg2 = wxString_in_helper(obj1); | |
24947 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24948 | temp2 = True; |
d14a1e28 RD |
24949 | } |
24950 | { | |
24951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24952 | (arg1)->SetLabel((wxString const &)*arg2); | |
24953 | ||
24954 | wxPyEndAllowThreads(__tstate); | |
24955 | if (PyErr_Occurred()) SWIG_fail; | |
24956 | } | |
24957 | Py_INCREF(Py_None); resultobj = Py_None; | |
24958 | { | |
24959 | if (temp2) | |
24960 | delete arg2; | |
24961 | } | |
24962 | return resultobj; | |
24963 | fail: | |
24964 | { | |
24965 | if (temp2) | |
24966 | delete arg2; | |
24967 | } | |
24968 | return NULL; | |
24969 | } | |
24970 | ||
24971 | ||
c32bde28 | 24972 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24973 | PyObject *resultobj; |
24974 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24975 | bool result; | |
24976 | PyObject * obj0 = 0 ; | |
24977 | char *kwnames[] = { | |
24978 | (char *) "self", NULL | |
24979 | }; | |
24980 | ||
24981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24984 | { |
24985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24986 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24987 | ||
24988 | wxPyEndAllowThreads(__tstate); | |
24989 | if (PyErr_Occurred()) SWIG_fail; | |
24990 | } | |
4f89f6a3 RD |
24991 | { |
24992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24993 | } | |
d14a1e28 RD |
24994 | return resultobj; |
24995 | fail: | |
24996 | return NULL; | |
24997 | } | |
24998 | ||
24999 | ||
c32bde28 | 25000 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25001 | PyObject *resultobj; |
25002 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25003 | bool arg2 ; | |
25004 | PyObject * obj0 = 0 ; | |
25005 | PyObject * obj1 = 0 ; | |
25006 | char *kwnames[] = { | |
25007 | (char *) "self",(char *) "editCancelled", NULL | |
25008 | }; | |
25009 | ||
25010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25013 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 25014 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25015 | { |
25016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25017 | (arg1)->SetEditCanceled(arg2); | |
25018 | ||
25019 | wxPyEndAllowThreads(__tstate); | |
25020 | if (PyErr_Occurred()) SWIG_fail; | |
25021 | } | |
25022 | Py_INCREF(Py_None); resultobj = Py_None; | |
25023 | return resultobj; | |
25024 | fail: | |
25025 | return NULL; | |
25026 | } | |
25027 | ||
25028 | ||
c32bde28 | 25029 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
25030 | PyObject *resultobj; |
25031 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25032 | wxString *arg2 = 0 ; | |
25033 | bool temp2 = False ; | |
25034 | PyObject * obj0 = 0 ; | |
25035 | PyObject * obj1 = 0 ; | |
25036 | char *kwnames[] = { | |
25037 | (char *) "self",(char *) "toolTip", NULL | |
25038 | }; | |
25039 | ||
25040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
25043 | { |
25044 | arg2 = wxString_in_helper(obj1); | |
25045 | if (arg2 == NULL) SWIG_fail; | |
25046 | temp2 = True; | |
25047 | } | |
25048 | { | |
25049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25050 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25051 | ||
25052 | wxPyEndAllowThreads(__tstate); | |
25053 | if (PyErr_Occurred()) SWIG_fail; | |
25054 | } | |
25055 | Py_INCREF(Py_None); resultobj = Py_None; | |
25056 | { | |
25057 | if (temp2) | |
25058 | delete arg2; | |
25059 | } | |
25060 | return resultobj; | |
25061 | fail: | |
25062 | { | |
25063 | if (temp2) | |
25064 | delete arg2; | |
25065 | } | |
25066 | return NULL; | |
25067 | } | |
25068 | ||
25069 | ||
c32bde28 | 25070 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
25071 | PyObject *obj; |
25072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25073 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
25074 | Py_INCREF(obj); | |
25075 | return Py_BuildValue((char *)""); | |
25076 | } | |
c32bde28 | 25077 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25078 | PyObject *resultobj; |
25079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25080 | int arg2 = (int) -1 ; |
d14a1e28 RD |
25081 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
25082 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25083 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25084 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25085 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
25086 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
25087 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 25088 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25089 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
25090 | wxPyTreeCtrl *result; | |
25091 | wxPoint temp3 ; | |
25092 | wxSize temp4 ; | |
e811c8ce | 25093 | bool temp7 = False ; |
d14a1e28 | 25094 | PyObject * obj0 = 0 ; |
994141e6 | 25095 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25096 | PyObject * obj2 = 0 ; |
25097 | PyObject * obj3 = 0 ; | |
994141e6 | 25098 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
25099 | PyObject * obj5 = 0 ; |
25100 | PyObject * obj6 = 0 ; | |
25101 | char *kwnames[] = { | |
25102 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25103 | }; | |
25104 | ||
994141e6 | 25105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
25106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25108 | if (obj1) { |
c32bde28 | 25109 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 25110 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25111 | } |
d14a1e28 RD |
25112 | if (obj2) { |
25113 | { | |
25114 | arg3 = &temp3; | |
25115 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25116 | } | |
25117 | } | |
25118 | if (obj3) { | |
25119 | { | |
994141e6 RD |
25120 | arg4 = &temp4; |
25121 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25122 | } | |
25123 | } | |
25124 | if (obj4) { | |
c32bde28 | 25125 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 25126 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25127 | } |
25128 | if (obj5) { | |
15afbcd0 RD |
25129 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
25130 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25131 | SWIG_fail; | |
d14a1e28 | 25132 | if (arg6 == NULL) { |
15afbcd0 RD |
25133 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25134 | SWIG_fail; | |
d14a1e28 RD |
25135 | } |
25136 | } | |
25137 | if (obj6) { | |
25138 | { | |
25139 | arg7 = wxString_in_helper(obj6); | |
25140 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 25141 | temp7 = True; |
d14a1e28 RD |
25142 | } |
25143 | } | |
25144 | { | |
e3b71cb8 | 25145 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25147 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25148 | ||
25149 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25150 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25151 | } |
b0f7404b | 25152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25153 | { |
25154 | if (temp7) | |
25155 | delete arg7; | |
25156 | } | |
25157 | return resultobj; | |
25158 | fail: | |
25159 | { | |
25160 | if (temp7) | |
25161 | delete arg7; | |
25162 | } | |
25163 | return NULL; | |
25164 | } | |
25165 | ||
25166 | ||
c32bde28 | 25167 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25168 | PyObject *resultobj; |
25169 | wxPyTreeCtrl *result; | |
25170 | char *kwnames[] = { | |
25171 | NULL | |
25172 | }; | |
25173 | ||
25174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25175 | { | |
e3b71cb8 | 25176 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25178 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25179 | ||
25180 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25181 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25182 | } |
b0f7404b | 25183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25184 | return resultobj; |
25185 | fail: | |
25186 | return NULL; | |
25187 | } | |
25188 | ||
25189 | ||
c32bde28 | 25190 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25191 | PyObject *resultobj; |
25192 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25193 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 25194 | int arg3 = (int) -1 ; |
d14a1e28 RD |
25195 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
25196 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25197 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25198 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25199 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25200 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25201 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 25202 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25203 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
25204 | bool result; | |
25205 | wxPoint temp4 ; | |
25206 | wxSize temp5 ; | |
e811c8ce | 25207 | bool temp8 = False ; |
d14a1e28 RD |
25208 | PyObject * obj0 = 0 ; |
25209 | PyObject * obj1 = 0 ; | |
994141e6 | 25210 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25211 | PyObject * obj3 = 0 ; |
25212 | PyObject * obj4 = 0 ; | |
994141e6 | 25213 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
25214 | PyObject * obj6 = 0 ; |
25215 | PyObject * obj7 = 0 ; | |
25216 | char *kwnames[] = { | |
25217 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25218 | }; | |
25219 | ||
994141e6 | 25220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
25221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25225 | if (obj2) { |
c32bde28 | 25226 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 25227 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25228 | } |
d14a1e28 RD |
25229 | if (obj3) { |
25230 | { | |
25231 | arg4 = &temp4; | |
25232 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25233 | } | |
25234 | } | |
25235 | if (obj4) { | |
25236 | { | |
25237 | arg5 = &temp5; | |
25238 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25239 | } | |
25240 | } | |
994141e6 | 25241 | if (obj5) { |
c32bde28 | 25242 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 25243 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25244 | } |
d14a1e28 | 25245 | if (obj6) { |
15afbcd0 RD |
25246 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
25247 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25248 | SWIG_fail; | |
d14a1e28 | 25249 | if (arg7 == NULL) { |
15afbcd0 RD |
25250 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25251 | SWIG_fail; | |
d14a1e28 RD |
25252 | } |
25253 | } | |
25254 | if (obj7) { | |
25255 | { | |
25256 | arg8 = wxString_in_helper(obj7); | |
25257 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 25258 | temp8 = True; |
d14a1e28 RD |
25259 | } |
25260 | } | |
25261 | { | |
25262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25263 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25264 | ||
25265 | wxPyEndAllowThreads(__tstate); | |
25266 | if (PyErr_Occurred()) SWIG_fail; | |
25267 | } | |
4f89f6a3 RD |
25268 | { |
25269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25270 | } | |
d14a1e28 RD |
25271 | { |
25272 | if (temp8) | |
25273 | delete arg8; | |
25274 | } | |
25275 | return resultobj; | |
25276 | fail: | |
25277 | { | |
25278 | if (temp8) | |
25279 | delete arg8; | |
25280 | } | |
25281 | return NULL; | |
25282 | } | |
25283 | ||
25284 | ||
c32bde28 | 25285 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25286 | PyObject *resultobj; |
25287 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25288 | PyObject *arg2 = (PyObject *) 0 ; | |
25289 | PyObject *arg3 = (PyObject *) 0 ; | |
25290 | PyObject * obj0 = 0 ; | |
25291 | PyObject * obj1 = 0 ; | |
25292 | PyObject * obj2 = 0 ; | |
25293 | char *kwnames[] = { | |
25294 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25295 | }; | |
25296 | ||
25297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25300 | arg2 = obj1; |
25301 | arg3 = obj2; | |
25302 | { | |
25303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25304 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25305 | ||
25306 | wxPyEndAllowThreads(__tstate); | |
25307 | if (PyErr_Occurred()) SWIG_fail; | |
25308 | } | |
25309 | Py_INCREF(Py_None); resultobj = Py_None; | |
25310 | return resultobj; | |
25311 | fail: | |
25312 | return NULL; | |
25313 | } | |
25314 | ||
25315 | ||
c32bde28 | 25316 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25317 | PyObject *resultobj; |
25318 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25319 | size_t result; | |
25320 | PyObject * obj0 = 0 ; | |
25321 | char *kwnames[] = { | |
25322 | (char *) "self", NULL | |
25323 | }; | |
25324 | ||
25325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25328 | { |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
c32bde28 | 25335 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
25336 | return resultobj; |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
c32bde28 | 25342 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25343 | PyObject *resultobj; |
25344 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25345 | unsigned int result; | |
25346 | PyObject * obj0 = 0 ; | |
25347 | char *kwnames[] = { | |
25348 | (char *) "self", NULL | |
25349 | }; | |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25354 | { |
25355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25356 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25357 | ||
25358 | wxPyEndAllowThreads(__tstate); | |
25359 | if (PyErr_Occurred()) SWIG_fail; | |
25360 | } | |
c32bde28 | 25361 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
25362 | return resultobj; |
25363 | fail: | |
25364 | return NULL; | |
25365 | } | |
25366 | ||
25367 | ||
c32bde28 | 25368 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25369 | PyObject *resultobj; |
25370 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25371 | unsigned int arg2 ; | |
25372 | PyObject * obj0 = 0 ; | |
25373 | PyObject * obj1 = 0 ; | |
25374 | char *kwnames[] = { | |
25375 | (char *) "self",(char *) "indent", NULL | |
25376 | }; | |
25377 | ||
25378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25381 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 25382 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25383 | { |
25384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25385 | (arg1)->SetIndent(arg2); | |
25386 | ||
25387 | wxPyEndAllowThreads(__tstate); | |
25388 | if (PyErr_Occurred()) SWIG_fail; | |
25389 | } | |
25390 | Py_INCREF(Py_None); resultobj = Py_None; | |
25391 | return resultobj; | |
25392 | fail: | |
25393 | return NULL; | |
25394 | } | |
25395 | ||
25396 | ||
c32bde28 | 25397 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25398 | PyObject *resultobj; |
25399 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25400 | unsigned int result; | |
25401 | PyObject * obj0 = 0 ; | |
25402 | char *kwnames[] = { | |
25403 | (char *) "self", NULL | |
25404 | }; | |
25405 | ||
25406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25409 | { |
25410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25411 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25412 | ||
25413 | wxPyEndAllowThreads(__tstate); | |
25414 | if (PyErr_Occurred()) SWIG_fail; | |
25415 | } | |
c32bde28 | 25416 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
25417 | return resultobj; |
25418 | fail: | |
25419 | return NULL; | |
25420 | } | |
25421 | ||
25422 | ||
c32bde28 | 25423 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25424 | PyObject *resultobj; |
25425 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25426 | unsigned int arg2 ; | |
25427 | PyObject * obj0 = 0 ; | |
25428 | PyObject * obj1 = 0 ; | |
25429 | char *kwnames[] = { | |
25430 | (char *) "self",(char *) "spacing", NULL | |
25431 | }; | |
25432 | ||
25433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25436 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 25437 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25438 | { |
25439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25440 | (arg1)->SetSpacing(arg2); | |
25441 | ||
25442 | wxPyEndAllowThreads(__tstate); | |
25443 | if (PyErr_Occurred()) SWIG_fail; | |
25444 | } | |
25445 | Py_INCREF(Py_None); resultobj = Py_None; | |
25446 | return resultobj; | |
25447 | fail: | |
25448 | return NULL; | |
25449 | } | |
25450 | ||
25451 | ||
c32bde28 | 25452 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25453 | PyObject *resultobj; |
25454 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25455 | wxImageList *result; | |
25456 | PyObject * obj0 = 0 ; | |
25457 | char *kwnames[] = { | |
25458 | (char *) "self", NULL | |
25459 | }; | |
25460 | ||
25461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25464 | { |
25465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25466 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25467 | ||
25468 | wxPyEndAllowThreads(__tstate); | |
25469 | if (PyErr_Occurred()) SWIG_fail; | |
25470 | } | |
25471 | { | |
412d302d | 25472 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25473 | } |
25474 | return resultobj; | |
25475 | fail: | |
25476 | return NULL; | |
25477 | } | |
25478 | ||
25479 | ||
c32bde28 | 25480 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25481 | PyObject *resultobj; |
25482 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25483 | wxImageList *result; | |
25484 | PyObject * obj0 = 0 ; | |
25485 | char *kwnames[] = { | |
25486 | (char *) "self", NULL | |
25487 | }; | |
25488 | ||
25489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25492 | { |
25493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25494 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25495 | ||
25496 | wxPyEndAllowThreads(__tstate); | |
25497 | if (PyErr_Occurred()) SWIG_fail; | |
25498 | } | |
25499 | { | |
412d302d | 25500 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25501 | } |
25502 | return resultobj; | |
25503 | fail: | |
25504 | return NULL; | |
25505 | } | |
25506 | ||
25507 | ||
c32bde28 | 25508 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25509 | PyObject *resultobj; |
25510 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25511 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25512 | PyObject * obj0 = 0 ; | |
25513 | PyObject * obj1 = 0 ; | |
25514 | char *kwnames[] = { | |
25515 | (char *) "self",(char *) "imageList", NULL | |
25516 | }; | |
25517 | ||
25518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25521 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25523 | { |
25524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25525 | (arg1)->SetImageList(arg2); | |
25526 | ||
25527 | wxPyEndAllowThreads(__tstate); | |
25528 | if (PyErr_Occurred()) SWIG_fail; | |
25529 | } | |
25530 | Py_INCREF(Py_None); resultobj = Py_None; | |
25531 | return resultobj; | |
25532 | fail: | |
25533 | return NULL; | |
25534 | } | |
25535 | ||
25536 | ||
c32bde28 | 25537 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25538 | PyObject *resultobj; |
25539 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25540 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25541 | PyObject * obj0 = 0 ; | |
25542 | PyObject * obj1 = 0 ; | |
25543 | char *kwnames[] = { | |
25544 | (char *) "self",(char *) "imageList", NULL | |
25545 | }; | |
25546 | ||
25547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25552 | { |
25553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25554 | (arg1)->SetStateImageList(arg2); | |
25555 | ||
25556 | wxPyEndAllowThreads(__tstate); | |
25557 | if (PyErr_Occurred()) SWIG_fail; | |
25558 | } | |
25559 | Py_INCREF(Py_None); resultobj = Py_None; | |
25560 | return resultobj; | |
25561 | fail: | |
25562 | return NULL; | |
25563 | } | |
25564 | ||
25565 | ||
c32bde28 | 25566 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25567 | PyObject *resultobj; |
25568 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25569 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25570 | PyObject * obj0 = 0 ; | |
25571 | PyObject * obj1 = 0 ; | |
25572 | char *kwnames[] = { | |
25573 | (char *) "self",(char *) "imageList", NULL | |
25574 | }; | |
25575 | ||
25576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25580 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25581 | { |
25582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25583 | (arg1)->AssignImageList(arg2); | |
25584 | ||
25585 | wxPyEndAllowThreads(__tstate); | |
25586 | if (PyErr_Occurred()) SWIG_fail; | |
25587 | } | |
25588 | Py_INCREF(Py_None); resultobj = Py_None; | |
25589 | return resultobj; | |
25590 | fail: | |
25591 | return NULL; | |
25592 | } | |
25593 | ||
25594 | ||
c32bde28 | 25595 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25596 | PyObject *resultobj; |
25597 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25598 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25599 | PyObject * obj0 = 0 ; | |
25600 | PyObject * obj1 = 0 ; | |
25601 | char *kwnames[] = { | |
25602 | (char *) "self",(char *) "imageList", NULL | |
25603 | }; | |
25604 | ||
25605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25608 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25609 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25610 | { |
25611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25612 | (arg1)->AssignStateImageList(arg2); | |
25613 | ||
25614 | wxPyEndAllowThreads(__tstate); | |
25615 | if (PyErr_Occurred()) SWIG_fail; | |
25616 | } | |
25617 | Py_INCREF(Py_None); resultobj = Py_None; | |
25618 | return resultobj; | |
25619 | fail: | |
25620 | return NULL; | |
25621 | } | |
25622 | ||
25623 | ||
c32bde28 | 25624 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25625 | PyObject *resultobj; |
25626 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25627 | wxTreeItemId *arg2 = 0 ; | |
25628 | wxString result; | |
25629 | PyObject * obj0 = 0 ; | |
25630 | PyObject * obj1 = 0 ; | |
25631 | char *kwnames[] = { | |
25632 | (char *) "self",(char *) "item", NULL | |
25633 | }; | |
25634 | ||
25635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25639 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25640 | SWIG_fail; | |
d14a1e28 | 25641 | if (arg2 == NULL) { |
15afbcd0 RD |
25642 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25643 | SWIG_fail; | |
d14a1e28 RD |
25644 | } |
25645 | { | |
25646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25647 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25648 | ||
25649 | wxPyEndAllowThreads(__tstate); | |
25650 | if (PyErr_Occurred()) SWIG_fail; | |
25651 | } | |
25652 | { | |
25653 | #if wxUSE_UNICODE | |
25654 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25655 | #else | |
25656 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25657 | #endif | |
25658 | } | |
25659 | return resultobj; | |
25660 | fail: | |
25661 | return NULL; | |
25662 | } | |
25663 | ||
25664 | ||
c32bde28 | 25665 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25666 | PyObject *resultobj; |
25667 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25668 | wxTreeItemId *arg2 = 0 ; | |
25669 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25670 | int result; | |
25671 | PyObject * obj0 = 0 ; | |
25672 | PyObject * obj1 = 0 ; | |
994141e6 | 25673 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25674 | char *kwnames[] = { |
25675 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25676 | }; | |
25677 | ||
994141e6 | 25678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25682 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25683 | SWIG_fail; | |
d14a1e28 | 25684 | if (arg2 == NULL) { |
15afbcd0 RD |
25685 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25686 | SWIG_fail; | |
d14a1e28 | 25687 | } |
994141e6 | 25688 | if (obj2) { |
c32bde28 | 25689 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 25690 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25691 | } |
d14a1e28 RD |
25692 | { |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25695 | ||
25696 | wxPyEndAllowThreads(__tstate); | |
25697 | if (PyErr_Occurred()) SWIG_fail; | |
25698 | } | |
c32bde28 | 25699 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
25700 | return resultobj; |
25701 | fail: | |
25702 | return NULL; | |
25703 | } | |
25704 | ||
25705 | ||
c32bde28 | 25706 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25707 | PyObject *resultobj; |
25708 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25709 | wxTreeItemId *arg2 = 0 ; | |
25710 | wxPyTreeItemData *result; | |
25711 | PyObject * obj0 = 0 ; | |
25712 | PyObject * obj1 = 0 ; | |
25713 | char *kwnames[] = { | |
25714 | (char *) "self",(char *) "item", NULL | |
25715 | }; | |
25716 | ||
25717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25721 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25722 | SWIG_fail; | |
d14a1e28 | 25723 | if (arg2 == NULL) { |
15afbcd0 RD |
25724 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25725 | SWIG_fail; | |
d14a1e28 RD |
25726 | } |
25727 | { | |
25728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25729 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25730 | ||
25731 | wxPyEndAllowThreads(__tstate); | |
25732 | if (PyErr_Occurred()) SWIG_fail; | |
25733 | } | |
15afbcd0 | 25734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
25735 | return resultobj; |
25736 | fail: | |
25737 | return NULL; | |
25738 | } | |
25739 | ||
25740 | ||
c32bde28 | 25741 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25742 | PyObject *resultobj; |
25743 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25744 | wxTreeItemId *arg2 = 0 ; | |
25745 | PyObject *result; | |
25746 | PyObject * obj0 = 0 ; | |
25747 | PyObject * obj1 = 0 ; | |
25748 | char *kwnames[] = { | |
25749 | (char *) "self",(char *) "item", NULL | |
25750 | }; | |
25751 | ||
25752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25755 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25756 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25757 | SWIG_fail; | |
d14a1e28 | 25758 | if (arg2 == NULL) { |
15afbcd0 RD |
25759 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25760 | SWIG_fail; | |
d14a1e28 RD |
25761 | } |
25762 | { | |
25763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25764 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25765 | ||
25766 | wxPyEndAllowThreads(__tstate); | |
25767 | if (PyErr_Occurred()) SWIG_fail; | |
25768 | } | |
25769 | resultobj = result; | |
25770 | return resultobj; | |
25771 | fail: | |
25772 | return NULL; | |
25773 | } | |
25774 | ||
25775 | ||
c32bde28 | 25776 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25777 | PyObject *resultobj; |
25778 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25779 | wxTreeItemId *arg2 = 0 ; | |
25780 | wxColour result; | |
25781 | PyObject * obj0 = 0 ; | |
25782 | PyObject * obj1 = 0 ; | |
25783 | char *kwnames[] = { | |
25784 | (char *) "self",(char *) "item", NULL | |
25785 | }; | |
25786 | ||
25787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25791 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25792 | SWIG_fail; | |
d14a1e28 | 25793 | if (arg2 == NULL) { |
15afbcd0 RD |
25794 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25795 | SWIG_fail; | |
d14a1e28 RD |
25796 | } |
25797 | { | |
25798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25799 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25800 | ||
25801 | wxPyEndAllowThreads(__tstate); | |
25802 | if (PyErr_Occurred()) SWIG_fail; | |
25803 | } | |
25804 | { | |
25805 | wxColour * resultptr; | |
25806 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25808 | } |
25809 | return resultobj; | |
25810 | fail: | |
25811 | return NULL; | |
25812 | } | |
25813 | ||
25814 | ||
c32bde28 | 25815 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25816 | PyObject *resultobj; |
25817 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25818 | wxTreeItemId *arg2 = 0 ; | |
25819 | wxColour result; | |
25820 | PyObject * obj0 = 0 ; | |
25821 | PyObject * obj1 = 0 ; | |
25822 | char *kwnames[] = { | |
25823 | (char *) "self",(char *) "item", NULL | |
25824 | }; | |
25825 | ||
25826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25830 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25831 | SWIG_fail; | |
d14a1e28 | 25832 | if (arg2 == NULL) { |
15afbcd0 RD |
25833 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25834 | SWIG_fail; | |
d14a1e28 RD |
25835 | } |
25836 | { | |
25837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25838 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25839 | ||
25840 | wxPyEndAllowThreads(__tstate); | |
25841 | if (PyErr_Occurred()) SWIG_fail; | |
25842 | } | |
25843 | { | |
25844 | wxColour * resultptr; | |
25845 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25846 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25847 | } |
25848 | return resultobj; | |
25849 | fail: | |
25850 | return NULL; | |
25851 | } | |
25852 | ||
25853 | ||
c32bde28 | 25854 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25855 | PyObject *resultobj; |
25856 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25857 | wxTreeItemId *arg2 = 0 ; | |
25858 | wxFont result; | |
25859 | PyObject * obj0 = 0 ; | |
25860 | PyObject * obj1 = 0 ; | |
25861 | char *kwnames[] = { | |
25862 | (char *) "self",(char *) "item", NULL | |
25863 | }; | |
25864 | ||
25865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25870 | SWIG_fail; | |
d14a1e28 | 25871 | if (arg2 == NULL) { |
15afbcd0 RD |
25872 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25873 | SWIG_fail; | |
d14a1e28 RD |
25874 | } |
25875 | { | |
25876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25877 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25878 | ||
25879 | wxPyEndAllowThreads(__tstate); | |
25880 | if (PyErr_Occurred()) SWIG_fail; | |
25881 | } | |
25882 | { | |
25883 | wxFont * resultptr; | |
25884 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 25885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
25886 | } |
25887 | return resultobj; | |
25888 | fail: | |
25889 | return NULL; | |
25890 | } | |
25891 | ||
25892 | ||
c32bde28 | 25893 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25894 | PyObject *resultobj; |
25895 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25896 | wxTreeItemId *arg2 = 0 ; | |
25897 | wxString *arg3 = 0 ; | |
e811c8ce | 25898 | bool temp3 = False ; |
d14a1e28 RD |
25899 | PyObject * obj0 = 0 ; |
25900 | PyObject * obj1 = 0 ; | |
25901 | PyObject * obj2 = 0 ; | |
25902 | char *kwnames[] = { | |
25903 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25904 | }; | |
25905 | ||
25906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25909 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25911 | SWIG_fail; | |
d14a1e28 | 25912 | if (arg2 == NULL) { |
15afbcd0 RD |
25913 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25914 | SWIG_fail; | |
d14a1e28 RD |
25915 | } |
25916 | { | |
25917 | arg3 = wxString_in_helper(obj2); | |
25918 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25919 | temp3 = True; |
d14a1e28 RD |
25920 | } |
25921 | { | |
25922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25923 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25924 | ||
25925 | wxPyEndAllowThreads(__tstate); | |
25926 | if (PyErr_Occurred()) SWIG_fail; | |
25927 | } | |
25928 | Py_INCREF(Py_None); resultobj = Py_None; | |
25929 | { | |
25930 | if (temp3) | |
25931 | delete arg3; | |
25932 | } | |
25933 | return resultobj; | |
25934 | fail: | |
25935 | { | |
25936 | if (temp3) | |
25937 | delete arg3; | |
25938 | } | |
25939 | return NULL; | |
25940 | } | |
25941 | ||
25942 | ||
c32bde28 | 25943 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25944 | PyObject *resultobj; |
25945 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25946 | wxTreeItemId *arg2 = 0 ; | |
25947 | int arg3 ; | |
25948 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25949 | PyObject * obj0 = 0 ; | |
25950 | PyObject * obj1 = 0 ; | |
994141e6 RD |
25951 | PyObject * obj2 = 0 ; |
25952 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25953 | char *kwnames[] = { |
25954 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25955 | }; | |
25956 | ||
994141e6 | 25957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25962 | SWIG_fail; | |
d14a1e28 | 25963 | if (arg2 == NULL) { |
15afbcd0 RD |
25964 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25965 | SWIG_fail; | |
994141e6 | 25966 | } |
c32bde28 | 25967 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 25968 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25969 | if (obj3) { |
c32bde28 | 25970 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 25971 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25972 | } |
d14a1e28 RD |
25973 | { |
25974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25975 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25976 | ||
25977 | wxPyEndAllowThreads(__tstate); | |
25978 | if (PyErr_Occurred()) SWIG_fail; | |
25979 | } | |
25980 | Py_INCREF(Py_None); resultobj = Py_None; | |
25981 | return resultobj; | |
25982 | fail: | |
25983 | return NULL; | |
25984 | } | |
25985 | ||
25986 | ||
c32bde28 | 25987 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25988 | PyObject *resultobj; |
25989 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25990 | wxTreeItemId *arg2 = 0 ; | |
25991 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25992 | PyObject * obj0 = 0 ; | |
25993 | PyObject * obj1 = 0 ; | |
25994 | PyObject * obj2 = 0 ; | |
25995 | char *kwnames[] = { | |
25996 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25997 | }; | |
25998 | ||
25999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26002 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26003 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26004 | SWIG_fail; | |
d14a1e28 | 26005 | if (arg2 == NULL) { |
15afbcd0 RD |
26006 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26007 | SWIG_fail; | |
d14a1e28 | 26008 | } |
15afbcd0 RD |
26009 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
26010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26011 | { |
26012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26013 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26014 | ||
26015 | wxPyEndAllowThreads(__tstate); | |
26016 | if (PyErr_Occurred()) SWIG_fail; | |
26017 | } | |
26018 | Py_INCREF(Py_None); resultobj = Py_None; | |
26019 | return resultobj; | |
26020 | fail: | |
26021 | return NULL; | |
26022 | } | |
26023 | ||
26024 | ||
c32bde28 | 26025 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26026 | PyObject *resultobj; |
26027 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26028 | wxTreeItemId *arg2 = 0 ; | |
26029 | PyObject *arg3 = (PyObject *) 0 ; | |
26030 | PyObject * obj0 = 0 ; | |
26031 | PyObject * obj1 = 0 ; | |
26032 | PyObject * obj2 = 0 ; | |
26033 | char *kwnames[] = { | |
26034 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
26035 | }; | |
26036 | ||
26037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26041 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26042 | SWIG_fail; | |
d14a1e28 | 26043 | if (arg2 == NULL) { |
15afbcd0 RD |
26044 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26045 | SWIG_fail; | |
d14a1e28 RD |
26046 | } |
26047 | arg3 = obj2; | |
26048 | { | |
26049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26050 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26051 | ||
26052 | wxPyEndAllowThreads(__tstate); | |
26053 | if (PyErr_Occurred()) SWIG_fail; | |
26054 | } | |
26055 | Py_INCREF(Py_None); resultobj = Py_None; | |
26056 | return resultobj; | |
26057 | fail: | |
26058 | return NULL; | |
26059 | } | |
26060 | ||
26061 | ||
c32bde28 | 26062 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26063 | PyObject *resultobj; |
26064 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26065 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26066 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26067 | PyObject * obj0 = 0 ; |
26068 | PyObject * obj1 = 0 ; | |
26069 | PyObject * obj2 = 0 ; | |
26070 | char *kwnames[] = { | |
26071 | (char *) "self",(char *) "item",(char *) "has", NULL | |
26072 | }; | |
26073 | ||
26074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26078 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26079 | SWIG_fail; | |
d14a1e28 | 26080 | if (arg2 == NULL) { |
15afbcd0 RD |
26081 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26082 | SWIG_fail; | |
d14a1e28 RD |
26083 | } |
26084 | if (obj2) { | |
c32bde28 | 26085 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26086 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26087 | } |
26088 | { | |
26089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26090 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
26091 | ||
26092 | wxPyEndAllowThreads(__tstate); | |
26093 | if (PyErr_Occurred()) SWIG_fail; | |
26094 | } | |
26095 | Py_INCREF(Py_None); resultobj = Py_None; | |
26096 | return resultobj; | |
26097 | fail: | |
26098 | return NULL; | |
26099 | } | |
26100 | ||
26101 | ||
c32bde28 | 26102 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26103 | PyObject *resultobj; |
26104 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26105 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26106 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26107 | PyObject * obj0 = 0 ; |
26108 | PyObject * obj1 = 0 ; | |
26109 | PyObject * obj2 = 0 ; | |
26110 | char *kwnames[] = { | |
26111 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
26112 | }; | |
26113 | ||
26114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26117 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26118 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26119 | SWIG_fail; | |
d14a1e28 | 26120 | if (arg2 == NULL) { |
15afbcd0 RD |
26121 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26122 | SWIG_fail; | |
d14a1e28 RD |
26123 | } |
26124 | if (obj2) { | |
c32bde28 | 26125 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26126 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26127 | } |
26128 | { | |
26129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26130 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26131 | ||
26132 | wxPyEndAllowThreads(__tstate); | |
26133 | if (PyErr_Occurred()) SWIG_fail; | |
26134 | } | |
26135 | Py_INCREF(Py_None); resultobj = Py_None; | |
26136 | return resultobj; | |
26137 | fail: | |
26138 | return NULL; | |
26139 | } | |
26140 | ||
26141 | ||
c32bde28 | 26142 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26143 | PyObject *resultobj; |
26144 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26145 | wxTreeItemId *arg2 = 0 ; | |
26146 | wxColour *arg3 = 0 ; | |
26147 | wxColour temp3 ; | |
26148 | PyObject * obj0 = 0 ; | |
26149 | PyObject * obj1 = 0 ; | |
26150 | PyObject * obj2 = 0 ; | |
26151 | char *kwnames[] = { | |
26152 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26153 | }; | |
26154 | ||
26155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26160 | SWIG_fail; | |
d14a1e28 | 26161 | if (arg2 == NULL) { |
15afbcd0 RD |
26162 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26163 | SWIG_fail; | |
d14a1e28 RD |
26164 | } |
26165 | { | |
26166 | arg3 = &temp3; | |
26167 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26168 | } | |
26169 | { | |
26170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26171 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26172 | ||
26173 | wxPyEndAllowThreads(__tstate); | |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | } | |
26176 | Py_INCREF(Py_None); resultobj = Py_None; | |
26177 | return resultobj; | |
26178 | fail: | |
26179 | return NULL; | |
26180 | } | |
26181 | ||
26182 | ||
c32bde28 | 26183 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26184 | PyObject *resultobj; |
26185 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26186 | wxTreeItemId *arg2 = 0 ; | |
26187 | wxColour *arg3 = 0 ; | |
26188 | wxColour temp3 ; | |
26189 | PyObject * obj0 = 0 ; | |
26190 | PyObject * obj1 = 0 ; | |
26191 | PyObject * obj2 = 0 ; | |
26192 | char *kwnames[] = { | |
26193 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26194 | }; | |
26195 | ||
26196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26199 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26200 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26201 | SWIG_fail; | |
d14a1e28 | 26202 | if (arg2 == NULL) { |
15afbcd0 RD |
26203 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26204 | SWIG_fail; | |
d14a1e28 RD |
26205 | } |
26206 | { | |
26207 | arg3 = &temp3; | |
26208 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26209 | } | |
26210 | { | |
26211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26212 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26213 | ||
26214 | wxPyEndAllowThreads(__tstate); | |
26215 | if (PyErr_Occurred()) SWIG_fail; | |
26216 | } | |
26217 | Py_INCREF(Py_None); resultobj = Py_None; | |
26218 | return resultobj; | |
26219 | fail: | |
26220 | return NULL; | |
26221 | } | |
26222 | ||
26223 | ||
c32bde28 | 26224 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26225 | PyObject *resultobj; |
26226 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26227 | wxTreeItemId *arg2 = 0 ; | |
26228 | wxFont *arg3 = 0 ; | |
26229 | PyObject * obj0 = 0 ; | |
26230 | PyObject * obj1 = 0 ; | |
26231 | PyObject * obj2 = 0 ; | |
26232 | char *kwnames[] = { | |
26233 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26234 | }; | |
26235 | ||
26236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26241 | SWIG_fail; | |
d14a1e28 | 26242 | if (arg2 == NULL) { |
15afbcd0 RD |
26243 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26244 | SWIG_fail; | |
d14a1e28 | 26245 | } |
15afbcd0 RD |
26246 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
26247 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26248 | SWIG_fail; | |
d14a1e28 | 26249 | if (arg3 == NULL) { |
15afbcd0 RD |
26250 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26251 | SWIG_fail; | |
d14a1e28 RD |
26252 | } |
26253 | { | |
26254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26255 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26256 | ||
26257 | wxPyEndAllowThreads(__tstate); | |
26258 | if (PyErr_Occurred()) SWIG_fail; | |
26259 | } | |
26260 | Py_INCREF(Py_None); resultobj = Py_None; | |
26261 | return resultobj; | |
26262 | fail: | |
26263 | return NULL; | |
26264 | } | |
26265 | ||
26266 | ||
c32bde28 | 26267 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26268 | PyObject *resultobj; |
26269 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26270 | wxTreeItemId *arg2 = 0 ; | |
26271 | bool result; | |
26272 | PyObject * obj0 = 0 ; | |
26273 | PyObject * obj1 = 0 ; | |
26274 | char *kwnames[] = { | |
26275 | (char *) "self",(char *) "item", NULL | |
26276 | }; | |
26277 | ||
26278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26282 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26283 | SWIG_fail; | |
d14a1e28 | 26284 | if (arg2 == NULL) { |
15afbcd0 RD |
26285 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26286 | SWIG_fail; | |
d14a1e28 RD |
26287 | } |
26288 | { | |
26289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26290 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26291 | ||
26292 | wxPyEndAllowThreads(__tstate); | |
26293 | if (PyErr_Occurred()) SWIG_fail; | |
26294 | } | |
4f89f6a3 RD |
26295 | { |
26296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26297 | } | |
d14a1e28 RD |
26298 | return resultobj; |
26299 | fail: | |
26300 | return NULL; | |
26301 | } | |
26302 | ||
26303 | ||
c32bde28 | 26304 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26305 | PyObject *resultobj; |
26306 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26307 | wxTreeItemId *arg2 = 0 ; | |
26308 | bool result; | |
26309 | PyObject * obj0 = 0 ; | |
26310 | PyObject * obj1 = 0 ; | |
26311 | char *kwnames[] = { | |
26312 | (char *) "self",(char *) "item", NULL | |
26313 | }; | |
26314 | ||
26315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26319 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26320 | SWIG_fail; | |
d14a1e28 | 26321 | if (arg2 == NULL) { |
15afbcd0 RD |
26322 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26323 | SWIG_fail; | |
d14a1e28 RD |
26324 | } |
26325 | { | |
26326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26327 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26328 | ||
26329 | wxPyEndAllowThreads(__tstate); | |
26330 | if (PyErr_Occurred()) SWIG_fail; | |
26331 | } | |
4f89f6a3 RD |
26332 | { |
26333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26334 | } | |
d14a1e28 RD |
26335 | return resultobj; |
26336 | fail: | |
26337 | return NULL; | |
26338 | } | |
26339 | ||
26340 | ||
c32bde28 | 26341 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26342 | PyObject *resultobj; |
26343 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26344 | wxTreeItemId *arg2 = 0 ; | |
26345 | bool result; | |
26346 | PyObject * obj0 = 0 ; | |
26347 | PyObject * obj1 = 0 ; | |
26348 | char *kwnames[] = { | |
26349 | (char *) "self",(char *) "item", NULL | |
26350 | }; | |
26351 | ||
26352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26355 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26356 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26357 | SWIG_fail; | |
d14a1e28 | 26358 | if (arg2 == NULL) { |
15afbcd0 RD |
26359 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26360 | SWIG_fail; | |
d14a1e28 RD |
26361 | } |
26362 | { | |
26363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26364 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26365 | ||
26366 | wxPyEndAllowThreads(__tstate); | |
26367 | if (PyErr_Occurred()) SWIG_fail; | |
26368 | } | |
4f89f6a3 RD |
26369 | { |
26370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26371 | } | |
d14a1e28 RD |
26372 | return resultobj; |
26373 | fail: | |
26374 | return NULL; | |
26375 | } | |
26376 | ||
26377 | ||
c32bde28 | 26378 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26379 | PyObject *resultobj; |
26380 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26381 | wxTreeItemId *arg2 = 0 ; | |
26382 | bool result; | |
26383 | PyObject * obj0 = 0 ; | |
26384 | PyObject * obj1 = 0 ; | |
26385 | char *kwnames[] = { | |
26386 | (char *) "self",(char *) "item", NULL | |
26387 | }; | |
26388 | ||
26389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26393 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26394 | SWIG_fail; | |
d14a1e28 | 26395 | if (arg2 == NULL) { |
15afbcd0 RD |
26396 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26397 | SWIG_fail; | |
d14a1e28 RD |
26398 | } |
26399 | { | |
26400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26401 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26402 | ||
26403 | wxPyEndAllowThreads(__tstate); | |
26404 | if (PyErr_Occurred()) SWIG_fail; | |
26405 | } | |
4f89f6a3 RD |
26406 | { |
26407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26408 | } | |
d14a1e28 RD |
26409 | return resultobj; |
26410 | fail: | |
26411 | return NULL; | |
26412 | } | |
26413 | ||
26414 | ||
c32bde28 | 26415 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26416 | PyObject *resultobj; |
26417 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26418 | wxTreeItemId *arg2 = 0 ; | |
26419 | bool result; | |
26420 | PyObject * obj0 = 0 ; | |
26421 | PyObject * obj1 = 0 ; | |
26422 | char *kwnames[] = { | |
26423 | (char *) "self",(char *) "item", NULL | |
26424 | }; | |
26425 | ||
26426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26430 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26431 | SWIG_fail; | |
d14a1e28 | 26432 | if (arg2 == NULL) { |
15afbcd0 RD |
26433 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26434 | SWIG_fail; | |
d14a1e28 RD |
26435 | } |
26436 | { | |
26437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26438 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26439 | ||
26440 | wxPyEndAllowThreads(__tstate); | |
26441 | if (PyErr_Occurred()) SWIG_fail; | |
26442 | } | |
4f89f6a3 RD |
26443 | { |
26444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26445 | } | |
d14a1e28 RD |
26446 | return resultobj; |
26447 | fail: | |
26448 | return NULL; | |
26449 | } | |
26450 | ||
26451 | ||
c32bde28 | 26452 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26453 | PyObject *resultobj; |
26454 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26455 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26456 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26457 | size_t result; |
26458 | PyObject * obj0 = 0 ; | |
26459 | PyObject * obj1 = 0 ; | |
26460 | PyObject * obj2 = 0 ; | |
26461 | char *kwnames[] = { | |
26462 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26463 | }; | |
26464 | ||
26465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26469 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26470 | SWIG_fail; | |
d14a1e28 | 26471 | if (arg2 == NULL) { |
15afbcd0 RD |
26472 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26473 | SWIG_fail; | |
d14a1e28 RD |
26474 | } |
26475 | if (obj2) { | |
c32bde28 | 26476 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26477 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26478 | } |
26479 | { | |
26480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26481 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26482 | ||
26483 | wxPyEndAllowThreads(__tstate); | |
26484 | if (PyErr_Occurred()) SWIG_fail; | |
26485 | } | |
c32bde28 | 26486 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
26487 | return resultobj; |
26488 | fail: | |
26489 | return NULL; | |
26490 | } | |
26491 | ||
26492 | ||
c32bde28 | 26493 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26494 | PyObject *resultobj; |
26495 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26496 | wxTreeItemId result; | |
26497 | PyObject * obj0 = 0 ; | |
26498 | char *kwnames[] = { | |
26499 | (char *) "self", NULL | |
26500 | }; | |
26501 | ||
26502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26505 | { |
26506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26507 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26508 | ||
26509 | wxPyEndAllowThreads(__tstate); | |
26510 | if (PyErr_Occurred()) SWIG_fail; | |
26511 | } | |
26512 | { | |
26513 | wxTreeItemId * resultptr; | |
26514 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26516 | } |
26517 | return resultobj; | |
26518 | fail: | |
26519 | return NULL; | |
26520 | } | |
26521 | ||
26522 | ||
c32bde28 | 26523 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26524 | PyObject *resultobj; |
26525 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26526 | wxTreeItemId result; | |
26527 | PyObject * obj0 = 0 ; | |
26528 | char *kwnames[] = { | |
26529 | (char *) "self", NULL | |
26530 | }; | |
26531 | ||
26532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26535 | { |
26536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26537 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26538 | ||
26539 | wxPyEndAllowThreads(__tstate); | |
26540 | if (PyErr_Occurred()) SWIG_fail; | |
26541 | } | |
26542 | { | |
26543 | wxTreeItemId * resultptr; | |
26544 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26546 | } |
26547 | return resultobj; | |
26548 | fail: | |
26549 | return NULL; | |
26550 | } | |
26551 | ||
26552 | ||
c32bde28 | 26553 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26554 | PyObject *resultobj; |
26555 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26556 | PyObject *result; | |
26557 | PyObject * obj0 = 0 ; | |
26558 | char *kwnames[] = { | |
26559 | (char *) "self", NULL | |
26560 | }; | |
26561 | ||
26562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26565 | { |
26566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26567 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26568 | ||
26569 | wxPyEndAllowThreads(__tstate); | |
26570 | if (PyErr_Occurred()) SWIG_fail; | |
26571 | } | |
26572 | resultobj = result; | |
26573 | return resultobj; | |
26574 | fail: | |
26575 | return NULL; | |
26576 | } | |
26577 | ||
26578 | ||
c32bde28 | 26579 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26580 | PyObject *resultobj; |
26581 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26582 | wxTreeItemId *arg2 = 0 ; | |
26583 | wxTreeItemId result; | |
26584 | PyObject * obj0 = 0 ; | |
26585 | PyObject * obj1 = 0 ; | |
26586 | char *kwnames[] = { | |
26587 | (char *) "self",(char *) "item", NULL | |
26588 | }; | |
26589 | ||
26590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26594 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26595 | SWIG_fail; | |
d14a1e28 | 26596 | if (arg2 == NULL) { |
15afbcd0 RD |
26597 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26598 | SWIG_fail; | |
d14a1e28 RD |
26599 | } |
26600 | { | |
26601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26602 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26603 | ||
26604 | wxPyEndAllowThreads(__tstate); | |
26605 | if (PyErr_Occurred()) SWIG_fail; | |
26606 | } | |
26607 | { | |
26608 | wxTreeItemId * resultptr; | |
26609 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26610 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26611 | } |
26612 | return resultobj; | |
26613 | fail: | |
26614 | return NULL; | |
26615 | } | |
26616 | ||
26617 | ||
c32bde28 | 26618 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26619 | PyObject *resultobj; |
26620 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26621 | wxTreeItemId *arg2 = 0 ; | |
26622 | PyObject *result; | |
26623 | PyObject * obj0 = 0 ; | |
26624 | PyObject * obj1 = 0 ; | |
26625 | char *kwnames[] = { | |
26626 | (char *) "self",(char *) "item", NULL | |
26627 | }; | |
26628 | ||
26629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26633 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26634 | SWIG_fail; | |
d14a1e28 | 26635 | if (arg2 == NULL) { |
15afbcd0 RD |
26636 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26637 | SWIG_fail; | |
d14a1e28 RD |
26638 | } |
26639 | { | |
26640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26641 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26642 | ||
26643 | wxPyEndAllowThreads(__tstate); | |
26644 | if (PyErr_Occurred()) SWIG_fail; | |
26645 | } | |
26646 | resultobj = result; | |
26647 | return resultobj; | |
26648 | fail: | |
26649 | return NULL; | |
26650 | } | |
26651 | ||
26652 | ||
c32bde28 | 26653 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26654 | PyObject *resultobj; |
26655 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26656 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 26657 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
26658 | PyObject *result; |
26659 | PyObject * obj0 = 0 ; | |
26660 | PyObject * obj1 = 0 ; | |
26661 | PyObject * obj2 = 0 ; | |
26662 | char *kwnames[] = { | |
26663 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26664 | }; | |
26665 | ||
26666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26671 | SWIG_fail; | |
d14a1e28 | 26672 | if (arg2 == NULL) { |
15afbcd0 RD |
26673 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26674 | SWIG_fail; | |
d14a1e28 | 26675 | } |
15afbcd0 | 26676 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
26677 | { |
26678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 26679 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
26680 | |
26681 | wxPyEndAllowThreads(__tstate); | |
26682 | if (PyErr_Occurred()) SWIG_fail; | |
26683 | } | |
26684 | resultobj = result; | |
26685 | return resultobj; | |
26686 | fail: | |
26687 | return NULL; | |
26688 | } | |
26689 | ||
26690 | ||
c32bde28 | 26691 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26692 | PyObject *resultobj; |
26693 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26694 | wxTreeItemId *arg2 = 0 ; | |
26695 | wxTreeItemId result; | |
26696 | PyObject * obj0 = 0 ; | |
26697 | PyObject * obj1 = 0 ; | |
26698 | char *kwnames[] = { | |
26699 | (char *) "self",(char *) "item", NULL | |
26700 | }; | |
26701 | ||
26702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26706 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26707 | SWIG_fail; | |
d14a1e28 | 26708 | if (arg2 == NULL) { |
15afbcd0 RD |
26709 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26710 | SWIG_fail; | |
d14a1e28 RD |
26711 | } |
26712 | { | |
26713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26714 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26715 | ||
26716 | wxPyEndAllowThreads(__tstate); | |
26717 | if (PyErr_Occurred()) SWIG_fail; | |
26718 | } | |
26719 | { | |
26720 | wxTreeItemId * resultptr; | |
26721 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26722 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26723 | } |
26724 | return resultobj; | |
26725 | fail: | |
26726 | return NULL; | |
26727 | } | |
26728 | ||
26729 | ||
c32bde28 | 26730 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26731 | PyObject *resultobj; |
26732 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26733 | wxTreeItemId *arg2 = 0 ; | |
26734 | wxTreeItemId result; | |
26735 | PyObject * obj0 = 0 ; | |
26736 | PyObject * obj1 = 0 ; | |
26737 | char *kwnames[] = { | |
26738 | (char *) "self",(char *) "item", NULL | |
26739 | }; | |
26740 | ||
26741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26744 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26745 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26746 | SWIG_fail; | |
d14a1e28 | 26747 | if (arg2 == NULL) { |
15afbcd0 RD |
26748 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26749 | SWIG_fail; | |
d14a1e28 RD |
26750 | } |
26751 | { | |
26752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26753 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26754 | ||
26755 | wxPyEndAllowThreads(__tstate); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | { | |
26759 | wxTreeItemId * resultptr; | |
26760 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26761 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26762 | } |
26763 | return resultobj; | |
26764 | fail: | |
26765 | return NULL; | |
26766 | } | |
26767 | ||
26768 | ||
c32bde28 | 26769 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26770 | PyObject *resultobj; |
26771 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26772 | wxTreeItemId *arg2 = 0 ; | |
26773 | wxTreeItemId result; | |
26774 | PyObject * obj0 = 0 ; | |
26775 | PyObject * obj1 = 0 ; | |
26776 | char *kwnames[] = { | |
26777 | (char *) "self",(char *) "item", NULL | |
26778 | }; | |
26779 | ||
26780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26785 | SWIG_fail; | |
d14a1e28 | 26786 | if (arg2 == NULL) { |
15afbcd0 RD |
26787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26788 | SWIG_fail; | |
d14a1e28 RD |
26789 | } |
26790 | { | |
26791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26792 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26793 | ||
26794 | wxPyEndAllowThreads(__tstate); | |
26795 | if (PyErr_Occurred()) SWIG_fail; | |
26796 | } | |
26797 | { | |
26798 | wxTreeItemId * resultptr; | |
26799 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26800 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26801 | } |
26802 | return resultobj; | |
26803 | fail: | |
26804 | return NULL; | |
26805 | } | |
26806 | ||
26807 | ||
c32bde28 | 26808 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26809 | PyObject *resultobj; |
26810 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26811 | wxTreeItemId result; | |
26812 | PyObject * obj0 = 0 ; | |
26813 | char *kwnames[] = { | |
26814 | (char *) "self", NULL | |
26815 | }; | |
26816 | ||
26817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26820 | { |
26821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26822 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26823 | ||
26824 | wxPyEndAllowThreads(__tstate); | |
26825 | if (PyErr_Occurred()) SWIG_fail; | |
26826 | } | |
26827 | { | |
26828 | wxTreeItemId * resultptr; | |
26829 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26831 | } |
26832 | return resultobj; | |
26833 | fail: | |
26834 | return NULL; | |
26835 | } | |
26836 | ||
26837 | ||
c32bde28 | 26838 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26839 | PyObject *resultobj; |
26840 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26841 | wxTreeItemId *arg2 = 0 ; | |
26842 | wxTreeItemId result; | |
26843 | PyObject * obj0 = 0 ; | |
26844 | PyObject * obj1 = 0 ; | |
26845 | char *kwnames[] = { | |
26846 | (char *) "self",(char *) "item", NULL | |
26847 | }; | |
26848 | ||
26849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26854 | SWIG_fail; | |
d14a1e28 | 26855 | if (arg2 == NULL) { |
15afbcd0 RD |
26856 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26857 | SWIG_fail; | |
d14a1e28 RD |
26858 | } |
26859 | { | |
26860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26861 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26862 | ||
26863 | wxPyEndAllowThreads(__tstate); | |
26864 | if (PyErr_Occurred()) SWIG_fail; | |
26865 | } | |
26866 | { | |
26867 | wxTreeItemId * resultptr; | |
26868 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26869 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26870 | } |
26871 | return resultobj; | |
26872 | fail: | |
26873 | return NULL; | |
26874 | } | |
26875 | ||
26876 | ||
c32bde28 | 26877 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26878 | PyObject *resultobj; |
26879 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26880 | wxTreeItemId *arg2 = 0 ; | |
26881 | wxTreeItemId result; | |
26882 | PyObject * obj0 = 0 ; | |
26883 | PyObject * obj1 = 0 ; | |
26884 | char *kwnames[] = { | |
26885 | (char *) "self",(char *) "item", NULL | |
26886 | }; | |
26887 | ||
26888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26892 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26893 | SWIG_fail; | |
d14a1e28 | 26894 | if (arg2 == NULL) { |
15afbcd0 RD |
26895 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26896 | SWIG_fail; | |
d14a1e28 RD |
26897 | } |
26898 | { | |
26899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26900 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26901 | ||
26902 | wxPyEndAllowThreads(__tstate); | |
26903 | if (PyErr_Occurred()) SWIG_fail; | |
26904 | } | |
26905 | { | |
26906 | wxTreeItemId * resultptr; | |
26907 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26908 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26909 | } |
26910 | return resultobj; | |
26911 | fail: | |
26912 | return NULL; | |
26913 | } | |
26914 | ||
26915 | ||
c32bde28 | 26916 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26917 | PyObject *resultobj; |
26918 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26919 | wxString *arg2 = 0 ; | |
26920 | int arg3 = (int) -1 ; | |
26921 | int arg4 = (int) -1 ; | |
26922 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26923 | wxTreeItemId result; | |
e811c8ce | 26924 | bool temp2 = False ; |
d14a1e28 RD |
26925 | PyObject * obj0 = 0 ; |
26926 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26927 | PyObject * obj2 = 0 ; |
26928 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26929 | PyObject * obj4 = 0 ; |
26930 | char *kwnames[] = { | |
26931 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26932 | }; | |
26933 | ||
994141e6 | 26934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
26935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26937 | { |
26938 | arg2 = wxString_in_helper(obj1); | |
26939 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26940 | temp2 = True; |
d14a1e28 | 26941 | } |
994141e6 | 26942 | if (obj2) { |
c32bde28 | 26943 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 26944 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
26945 | } |
26946 | if (obj3) { | |
c32bde28 | 26947 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 26948 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26949 | } |
d14a1e28 | 26950 | if (obj4) { |
15afbcd0 RD |
26951 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
26952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26953 | } |
26954 | { | |
26955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26956 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26957 | ||
26958 | wxPyEndAllowThreads(__tstate); | |
26959 | if (PyErr_Occurred()) SWIG_fail; | |
26960 | } | |
26961 | { | |
26962 | wxTreeItemId * resultptr; | |
26963 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26964 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26965 | } |
26966 | { | |
26967 | if (temp2) | |
26968 | delete arg2; | |
26969 | } | |
26970 | return resultobj; | |
26971 | fail: | |
26972 | { | |
26973 | if (temp2) | |
26974 | delete arg2; | |
26975 | } | |
26976 | return NULL; | |
26977 | } | |
26978 | ||
26979 | ||
c32bde28 | 26980 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26981 | PyObject *resultobj; |
26982 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26983 | wxTreeItemId *arg2 = 0 ; | |
26984 | wxString *arg3 = 0 ; | |
26985 | int arg4 = (int) -1 ; | |
26986 | int arg5 = (int) -1 ; | |
26987 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26988 | wxTreeItemId result; | |
e811c8ce | 26989 | bool temp3 = False ; |
d14a1e28 RD |
26990 | PyObject * obj0 = 0 ; |
26991 | PyObject * obj1 = 0 ; | |
26992 | PyObject * obj2 = 0 ; | |
994141e6 RD |
26993 | PyObject * obj3 = 0 ; |
26994 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26995 | PyObject * obj5 = 0 ; |
26996 | char *kwnames[] = { | |
26997 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26998 | }; | |
26999 | ||
994141e6 | 27000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27005 | SWIG_fail; | |
d14a1e28 | 27006 | if (arg2 == NULL) { |
15afbcd0 RD |
27007 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27008 | SWIG_fail; | |
d14a1e28 RD |
27009 | } |
27010 | { | |
27011 | arg3 = wxString_in_helper(obj2); | |
27012 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27013 | temp3 = True; |
d14a1e28 | 27014 | } |
994141e6 | 27015 | if (obj3) { |
c32bde28 | 27016 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27017 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27018 | } |
27019 | if (obj4) { | |
c32bde28 | 27020 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27021 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27022 | } |
d14a1e28 | 27023 | if (obj5) { |
15afbcd0 RD |
27024 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27026 | } |
27027 | { | |
27028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27029 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27030 | ||
27031 | wxPyEndAllowThreads(__tstate); | |
27032 | if (PyErr_Occurred()) SWIG_fail; | |
27033 | } | |
27034 | { | |
27035 | wxTreeItemId * resultptr; | |
27036 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27038 | } |
27039 | { | |
27040 | if (temp3) | |
27041 | delete arg3; | |
27042 | } | |
27043 | return resultobj; | |
27044 | fail: | |
27045 | { | |
27046 | if (temp3) | |
27047 | delete arg3; | |
27048 | } | |
27049 | return NULL; | |
27050 | } | |
27051 | ||
27052 | ||
c32bde28 | 27053 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27054 | PyObject *resultobj; |
27055 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27056 | wxTreeItemId *arg2 = 0 ; | |
27057 | wxTreeItemId *arg3 = 0 ; | |
27058 | wxString *arg4 = 0 ; | |
27059 | int arg5 = (int) -1 ; | |
27060 | int arg6 = (int) -1 ; | |
27061 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27062 | wxTreeItemId result; | |
e811c8ce | 27063 | bool temp4 = False ; |
d14a1e28 RD |
27064 | PyObject * obj0 = 0 ; |
27065 | PyObject * obj1 = 0 ; | |
27066 | PyObject * obj2 = 0 ; | |
27067 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27068 | PyObject * obj4 = 0 ; |
27069 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27070 | PyObject * obj6 = 0 ; |
27071 | char *kwnames[] = { | |
27072 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27073 | }; | |
27074 | ||
994141e6 | 27075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27079 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27080 | SWIG_fail; | |
d14a1e28 | 27081 | if (arg2 == NULL) { |
15afbcd0 RD |
27082 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27083 | SWIG_fail; | |
d14a1e28 | 27084 | } |
15afbcd0 RD |
27085 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
27086 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27087 | SWIG_fail; | |
d14a1e28 | 27088 | if (arg3 == NULL) { |
15afbcd0 RD |
27089 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27090 | SWIG_fail; | |
d14a1e28 RD |
27091 | } |
27092 | { | |
27093 | arg4 = wxString_in_helper(obj3); | |
27094 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27095 | temp4 = True; |
d14a1e28 | 27096 | } |
994141e6 | 27097 | if (obj4) { |
c32bde28 | 27098 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27099 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27100 | } |
27101 | if (obj5) { | |
c32bde28 | 27102 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 27103 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27104 | } |
d14a1e28 | 27105 | if (obj6) { |
15afbcd0 RD |
27106 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27108 | } |
27109 | { | |
27110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27111 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27112 | ||
27113 | wxPyEndAllowThreads(__tstate); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
27116 | { | |
27117 | wxTreeItemId * resultptr; | |
27118 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27120 | } |
27121 | { | |
27122 | if (temp4) | |
27123 | delete arg4; | |
27124 | } | |
27125 | return resultobj; | |
27126 | fail: | |
27127 | { | |
27128 | if (temp4) | |
27129 | delete arg4; | |
27130 | } | |
27131 | return NULL; | |
27132 | } | |
27133 | ||
27134 | ||
c32bde28 | 27135 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27136 | PyObject *resultobj; |
27137 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27138 | wxTreeItemId *arg2 = 0 ; | |
27139 | size_t arg3 ; | |
27140 | wxString *arg4 = 0 ; | |
27141 | int arg5 = (int) -1 ; | |
27142 | int arg6 = (int) -1 ; | |
27143 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27144 | wxTreeItemId result; | |
e811c8ce | 27145 | bool temp4 = False ; |
d14a1e28 RD |
27146 | PyObject * obj0 = 0 ; |
27147 | PyObject * obj1 = 0 ; | |
27148 | PyObject * obj2 = 0 ; | |
27149 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27150 | PyObject * obj4 = 0 ; |
27151 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27152 | PyObject * obj6 = 0 ; |
27153 | char *kwnames[] = { | |
27154 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27155 | }; | |
27156 | ||
994141e6 | 27157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27160 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27161 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27162 | SWIG_fail; | |
d14a1e28 | 27163 | if (arg2 == NULL) { |
15afbcd0 RD |
27164 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27165 | SWIG_fail; | |
a41e16b6 | 27166 | } |
c32bde28 | 27167 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
15afbcd0 | 27168 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27169 | { |
27170 | arg4 = wxString_in_helper(obj3); | |
27171 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27172 | temp4 = True; |
d14a1e28 | 27173 | } |
994141e6 | 27174 | if (obj4) { |
c32bde28 | 27175 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27176 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27177 | } |
27178 | if (obj5) { | |
c32bde28 | 27179 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 27180 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27181 | } |
d14a1e28 | 27182 | if (obj6) { |
15afbcd0 RD |
27183 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27185 | } |
27186 | { | |
27187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27188 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27189 | ||
27190 | wxPyEndAllowThreads(__tstate); | |
27191 | if (PyErr_Occurred()) SWIG_fail; | |
27192 | } | |
27193 | { | |
27194 | wxTreeItemId * resultptr; | |
27195 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27196 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27197 | } |
27198 | { | |
27199 | if (temp4) | |
27200 | delete arg4; | |
27201 | } | |
27202 | return resultobj; | |
27203 | fail: | |
27204 | { | |
27205 | if (temp4) | |
27206 | delete arg4; | |
27207 | } | |
27208 | return NULL; | |
27209 | } | |
27210 | ||
27211 | ||
c32bde28 | 27212 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27213 | PyObject *resultobj; |
27214 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27215 | wxTreeItemId *arg2 = 0 ; | |
27216 | wxString *arg3 = 0 ; | |
27217 | int arg4 = (int) -1 ; | |
27218 | int arg5 = (int) -1 ; | |
27219 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27220 | wxTreeItemId result; | |
e811c8ce | 27221 | bool temp3 = False ; |
d14a1e28 RD |
27222 | PyObject * obj0 = 0 ; |
27223 | PyObject * obj1 = 0 ; | |
27224 | PyObject * obj2 = 0 ; | |
994141e6 RD |
27225 | PyObject * obj3 = 0 ; |
27226 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27227 | PyObject * obj5 = 0 ; |
27228 | char *kwnames[] = { | |
27229 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27230 | }; | |
27231 | ||
994141e6 | 27232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27237 | SWIG_fail; | |
d14a1e28 | 27238 | if (arg2 == NULL) { |
15afbcd0 RD |
27239 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27240 | SWIG_fail; | |
d14a1e28 RD |
27241 | } |
27242 | { | |
27243 | arg3 = wxString_in_helper(obj2); | |
27244 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27245 | temp3 = True; |
d14a1e28 | 27246 | } |
994141e6 | 27247 | if (obj3) { |
c32bde28 | 27248 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27249 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27250 | } |
27251 | if (obj4) { | |
c32bde28 | 27252 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27253 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27254 | } |
d14a1e28 | 27255 | if (obj5) { |
15afbcd0 RD |
27256 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27258 | } |
27259 | { | |
27260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27261 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27262 | ||
27263 | wxPyEndAllowThreads(__tstate); | |
27264 | if (PyErr_Occurred()) SWIG_fail; | |
27265 | } | |
27266 | { | |
27267 | wxTreeItemId * resultptr; | |
27268 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27269 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27270 | } |
27271 | { | |
27272 | if (temp3) | |
27273 | delete arg3; | |
27274 | } | |
27275 | return resultobj; | |
27276 | fail: | |
27277 | { | |
27278 | if (temp3) | |
27279 | delete arg3; | |
27280 | } | |
27281 | return NULL; | |
27282 | } | |
27283 | ||
27284 | ||
c32bde28 | 27285 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27286 | PyObject *resultobj; |
27287 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27288 | wxTreeItemId *arg2 = 0 ; | |
27289 | PyObject * obj0 = 0 ; | |
27290 | PyObject * obj1 = 0 ; | |
27291 | char *kwnames[] = { | |
27292 | (char *) "self",(char *) "item", NULL | |
27293 | }; | |
27294 | ||
27295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27299 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27300 | SWIG_fail; | |
d14a1e28 | 27301 | if (arg2 == NULL) { |
15afbcd0 RD |
27302 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27303 | SWIG_fail; | |
d14a1e28 RD |
27304 | } |
27305 | { | |
27306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27307 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27308 | ||
27309 | wxPyEndAllowThreads(__tstate); | |
27310 | if (PyErr_Occurred()) SWIG_fail; | |
27311 | } | |
27312 | Py_INCREF(Py_None); resultobj = Py_None; | |
27313 | return resultobj; | |
27314 | fail: | |
27315 | return NULL; | |
27316 | } | |
27317 | ||
27318 | ||
c32bde28 | 27319 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27320 | PyObject *resultobj; |
27321 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27322 | wxTreeItemId *arg2 = 0 ; | |
27323 | PyObject * obj0 = 0 ; | |
27324 | PyObject * obj1 = 0 ; | |
27325 | char *kwnames[] = { | |
27326 | (char *) "self",(char *) "item", NULL | |
27327 | }; | |
27328 | ||
27329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27332 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27333 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27334 | SWIG_fail; | |
d14a1e28 | 27335 | if (arg2 == NULL) { |
15afbcd0 RD |
27336 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27337 | SWIG_fail; | |
d14a1e28 RD |
27338 | } |
27339 | { | |
27340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27341 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27342 | ||
27343 | wxPyEndAllowThreads(__tstate); | |
27344 | if (PyErr_Occurred()) SWIG_fail; | |
27345 | } | |
27346 | Py_INCREF(Py_None); resultobj = Py_None; | |
27347 | return resultobj; | |
27348 | fail: | |
27349 | return NULL; | |
27350 | } | |
27351 | ||
27352 | ||
c32bde28 | 27353 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27354 | PyObject *resultobj; |
27355 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27356 | PyObject * obj0 = 0 ; | |
27357 | char *kwnames[] = { | |
27358 | (char *) "self", NULL | |
27359 | }; | |
27360 | ||
27361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27364 | { |
27365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27366 | (arg1)->DeleteAllItems(); | |
27367 | ||
27368 | wxPyEndAllowThreads(__tstate); | |
27369 | if (PyErr_Occurred()) SWIG_fail; | |
27370 | } | |
27371 | Py_INCREF(Py_None); resultobj = Py_None; | |
27372 | return resultobj; | |
27373 | fail: | |
27374 | return NULL; | |
27375 | } | |
27376 | ||
27377 | ||
c32bde28 | 27378 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27379 | PyObject *resultobj; |
27380 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27381 | wxTreeItemId *arg2 = 0 ; | |
27382 | PyObject * obj0 = 0 ; | |
27383 | PyObject * obj1 = 0 ; | |
27384 | char *kwnames[] = { | |
27385 | (char *) "self",(char *) "item", NULL | |
27386 | }; | |
27387 | ||
27388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27393 | SWIG_fail; | |
d14a1e28 | 27394 | if (arg2 == NULL) { |
15afbcd0 RD |
27395 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27396 | SWIG_fail; | |
d14a1e28 RD |
27397 | } |
27398 | { | |
27399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27400 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27401 | ||
27402 | wxPyEndAllowThreads(__tstate); | |
27403 | if (PyErr_Occurred()) SWIG_fail; | |
27404 | } | |
27405 | Py_INCREF(Py_None); resultobj = Py_None; | |
27406 | return resultobj; | |
27407 | fail: | |
27408 | return NULL; | |
27409 | } | |
27410 | ||
27411 | ||
c32bde28 | 27412 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27413 | PyObject *resultobj; |
27414 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27415 | wxTreeItemId *arg2 = 0 ; | |
27416 | PyObject * obj0 = 0 ; | |
27417 | PyObject * obj1 = 0 ; | |
27418 | char *kwnames[] = { | |
27419 | (char *) "self",(char *) "item", NULL | |
27420 | }; | |
27421 | ||
27422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27426 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27427 | SWIG_fail; | |
d14a1e28 | 27428 | if (arg2 == NULL) { |
15afbcd0 RD |
27429 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27430 | SWIG_fail; | |
d14a1e28 RD |
27431 | } |
27432 | { | |
27433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27434 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27435 | ||
27436 | wxPyEndAllowThreads(__tstate); | |
27437 | if (PyErr_Occurred()) SWIG_fail; | |
27438 | } | |
27439 | Py_INCREF(Py_None); resultobj = Py_None; | |
27440 | return resultobj; | |
27441 | fail: | |
27442 | return NULL; | |
27443 | } | |
27444 | ||
27445 | ||
c32bde28 | 27446 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27447 | PyObject *resultobj; |
27448 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27449 | wxTreeItemId *arg2 = 0 ; | |
27450 | PyObject * obj0 = 0 ; | |
27451 | PyObject * obj1 = 0 ; | |
27452 | char *kwnames[] = { | |
27453 | (char *) "self",(char *) "item", NULL | |
27454 | }; | |
27455 | ||
27456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27461 | SWIG_fail; | |
d14a1e28 | 27462 | if (arg2 == NULL) { |
15afbcd0 RD |
27463 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27464 | SWIG_fail; | |
d14a1e28 RD |
27465 | } |
27466 | { | |
27467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27468 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27469 | ||
27470 | wxPyEndAllowThreads(__tstate); | |
27471 | if (PyErr_Occurred()) SWIG_fail; | |
27472 | } | |
27473 | Py_INCREF(Py_None); resultobj = Py_None; | |
27474 | return resultobj; | |
27475 | fail: | |
27476 | return NULL; | |
27477 | } | |
27478 | ||
27479 | ||
c32bde28 | 27480 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27481 | PyObject *resultobj; |
27482 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27483 | wxTreeItemId *arg2 = 0 ; | |
27484 | PyObject * obj0 = 0 ; | |
27485 | PyObject * obj1 = 0 ; | |
27486 | char *kwnames[] = { | |
27487 | (char *) "self",(char *) "item", NULL | |
27488 | }; | |
27489 | ||
27490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27493 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27494 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27495 | SWIG_fail; | |
d14a1e28 | 27496 | if (arg2 == NULL) { |
15afbcd0 RD |
27497 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27498 | SWIG_fail; | |
d14a1e28 RD |
27499 | } |
27500 | { | |
27501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27502 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27503 | ||
27504 | wxPyEndAllowThreads(__tstate); | |
27505 | if (PyErr_Occurred()) SWIG_fail; | |
27506 | } | |
27507 | Py_INCREF(Py_None); resultobj = Py_None; | |
27508 | return resultobj; | |
27509 | fail: | |
27510 | return NULL; | |
27511 | } | |
27512 | ||
27513 | ||
c32bde28 | 27514 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27515 | PyObject *resultobj; |
27516 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27517 | PyObject * obj0 = 0 ; | |
27518 | char *kwnames[] = { | |
27519 | (char *) "self", NULL | |
27520 | }; | |
27521 | ||
27522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27525 | { |
27526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27527 | (arg1)->Unselect(); | |
27528 | ||
27529 | wxPyEndAllowThreads(__tstate); | |
27530 | if (PyErr_Occurred()) SWIG_fail; | |
27531 | } | |
27532 | Py_INCREF(Py_None); resultobj = Py_None; | |
27533 | return resultobj; | |
27534 | fail: | |
27535 | return NULL; | |
27536 | } | |
27537 | ||
27538 | ||
c32bde28 | 27539 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
27540 | PyObject *resultobj; |
27541 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27542 | wxTreeItemId *arg2 = 0 ; | |
27543 | PyObject * obj0 = 0 ; | |
27544 | PyObject * obj1 = 0 ; | |
27545 | char *kwnames[] = { | |
27546 | (char *) "self",(char *) "item", NULL | |
27547 | }; | |
27548 | ||
27549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27553 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27554 | SWIG_fail; | |
3adfb63b | 27555 | if (arg2 == NULL) { |
15afbcd0 RD |
27556 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27557 | SWIG_fail; | |
3adfb63b RD |
27558 | } |
27559 | { | |
27560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27561 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27562 | ||
27563 | wxPyEndAllowThreads(__tstate); | |
27564 | if (PyErr_Occurred()) SWIG_fail; | |
27565 | } | |
27566 | Py_INCREF(Py_None); resultobj = Py_None; | |
27567 | return resultobj; | |
27568 | fail: | |
27569 | return NULL; | |
27570 | } | |
27571 | ||
27572 | ||
c32bde28 | 27573 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27574 | PyObject *resultobj; |
27575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27576 | PyObject * obj0 = 0 ; | |
27577 | char *kwnames[] = { | |
27578 | (char *) "self", NULL | |
27579 | }; | |
27580 | ||
27581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27584 | { |
27585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27586 | (arg1)->UnselectAll(); | |
27587 | ||
27588 | wxPyEndAllowThreads(__tstate); | |
27589 | if (PyErr_Occurred()) SWIG_fail; | |
27590 | } | |
27591 | Py_INCREF(Py_None); resultobj = Py_None; | |
27592 | return resultobj; | |
27593 | fail: | |
27594 | return NULL; | |
27595 | } | |
27596 | ||
27597 | ||
c32bde28 | 27598 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
27599 | PyObject *resultobj; |
27600 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27601 | wxTreeItemId *arg2 = 0 ; | |
27602 | bool arg3 = (bool) True ; | |
27603 | PyObject * obj0 = 0 ; | |
27604 | PyObject * obj1 = 0 ; | |
27605 | PyObject * obj2 = 0 ; | |
27606 | char *kwnames[] = { | |
27607 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27608 | }; | |
27609 | ||
27610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27613 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27614 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27615 | SWIG_fail; | |
3adfb63b | 27616 | if (arg2 == NULL) { |
15afbcd0 RD |
27617 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27618 | SWIG_fail; | |
3adfb63b RD |
27619 | } |
27620 | if (obj2) { | |
c32bde28 | 27621 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 27622 | if (PyErr_Occurred()) SWIG_fail; |
3adfb63b RD |
27623 | } |
27624 | { | |
27625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27626 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27627 | ||
27628 | wxPyEndAllowThreads(__tstate); | |
27629 | if (PyErr_Occurred()) SWIG_fail; | |
27630 | } | |
27631 | Py_INCREF(Py_None); resultobj = Py_None; | |
27632 | return resultobj; | |
27633 | fail: | |
27634 | return NULL; | |
27635 | } | |
27636 | ||
27637 | ||
c32bde28 | 27638 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27639 | PyObject *resultobj; |
27640 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27641 | wxTreeItemId *arg2 = 0 ; | |
27642 | PyObject * obj0 = 0 ; | |
27643 | PyObject * obj1 = 0 ; | |
27644 | char *kwnames[] = { | |
27645 | (char *) "self",(char *) "item", NULL | |
27646 | }; | |
27647 | ||
3adfb63b | 27648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27652 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27653 | SWIG_fail; | |
d14a1e28 | 27654 | if (arg2 == NULL) { |
15afbcd0 RD |
27655 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27656 | SWIG_fail; | |
d14a1e28 RD |
27657 | } |
27658 | { | |
27659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 27660 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
27661 | |
27662 | wxPyEndAllowThreads(__tstate); | |
27663 | if (PyErr_Occurred()) SWIG_fail; | |
27664 | } | |
27665 | Py_INCREF(Py_None); resultobj = Py_None; | |
27666 | return resultobj; | |
27667 | fail: | |
27668 | return NULL; | |
27669 | } | |
27670 | ||
27671 | ||
c32bde28 | 27672 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27673 | PyObject *resultobj; |
27674 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27675 | wxTreeItemId *arg2 = 0 ; | |
27676 | PyObject * obj0 = 0 ; | |
27677 | PyObject * obj1 = 0 ; | |
27678 | char *kwnames[] = { | |
27679 | (char *) "self",(char *) "item", NULL | |
27680 | }; | |
27681 | ||
27682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27686 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27687 | SWIG_fail; | |
d14a1e28 | 27688 | if (arg2 == NULL) { |
15afbcd0 RD |
27689 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27690 | SWIG_fail; | |
d14a1e28 RD |
27691 | } |
27692 | { | |
27693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27694 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27695 | ||
27696 | wxPyEndAllowThreads(__tstate); | |
27697 | if (PyErr_Occurred()) SWIG_fail; | |
27698 | } | |
27699 | Py_INCREF(Py_None); resultobj = Py_None; | |
27700 | return resultobj; | |
27701 | fail: | |
27702 | return NULL; | |
27703 | } | |
27704 | ||
27705 | ||
c32bde28 | 27706 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27707 | PyObject *resultobj; |
27708 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27709 | wxTreeItemId *arg2 = 0 ; | |
27710 | PyObject * obj0 = 0 ; | |
27711 | PyObject * obj1 = 0 ; | |
27712 | char *kwnames[] = { | |
27713 | (char *) "self",(char *) "item", NULL | |
27714 | }; | |
27715 | ||
27716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27721 | SWIG_fail; | |
d14a1e28 | 27722 | if (arg2 == NULL) { |
15afbcd0 RD |
27723 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27724 | SWIG_fail; | |
d14a1e28 RD |
27725 | } |
27726 | { | |
27727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27728 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27729 | ||
27730 | wxPyEndAllowThreads(__tstate); | |
27731 | if (PyErr_Occurred()) SWIG_fail; | |
27732 | } | |
27733 | Py_INCREF(Py_None); resultobj = Py_None; | |
27734 | return resultobj; | |
27735 | fail: | |
27736 | return NULL; | |
27737 | } | |
27738 | ||
27739 | ||
c32bde28 | 27740 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27741 | PyObject *resultobj; |
27742 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27743 | wxTreeItemId *arg2 = 0 ; | |
27744 | PyObject * obj0 = 0 ; | |
27745 | PyObject * obj1 = 0 ; | |
27746 | char *kwnames[] = { | |
27747 | (char *) "self",(char *) "item", NULL | |
27748 | }; | |
27749 | ||
27750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27755 | SWIG_fail; | |
d14a1e28 | 27756 | if (arg2 == NULL) { |
15afbcd0 RD |
27757 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27758 | SWIG_fail; | |
d14a1e28 RD |
27759 | } |
27760 | { | |
27761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27762 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27763 | ||
27764 | wxPyEndAllowThreads(__tstate); | |
27765 | if (PyErr_Occurred()) SWIG_fail; | |
27766 | } | |
27767 | Py_INCREF(Py_None); resultobj = Py_None; | |
27768 | return resultobj; | |
27769 | fail: | |
27770 | return NULL; | |
27771 | } | |
27772 | ||
27773 | ||
c32bde28 | 27774 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27775 | PyObject *resultobj; |
27776 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27777 | wxTextCtrl *result; | |
27778 | PyObject * obj0 = 0 ; | |
27779 | char *kwnames[] = { | |
27780 | (char *) "self", NULL | |
27781 | }; | |
27782 | ||
27783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27786 | { |
27787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27788 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27789 | ||
27790 | wxPyEndAllowThreads(__tstate); | |
27791 | if (PyErr_Occurred()) SWIG_fail; | |
27792 | } | |
27793 | { | |
412d302d | 27794 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27795 | } |
27796 | return resultobj; | |
27797 | fail: | |
27798 | return NULL; | |
27799 | } | |
27800 | ||
27801 | ||
c32bde28 | 27802 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27803 | PyObject *resultobj; |
27804 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27805 | wxTreeItemId *arg2 = 0 ; | |
27806 | PyObject * obj0 = 0 ; | |
27807 | PyObject * obj1 = 0 ; | |
27808 | char *kwnames[] = { | |
27809 | (char *) "self",(char *) "item", NULL | |
27810 | }; | |
27811 | ||
27812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27816 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27817 | SWIG_fail; | |
d14a1e28 | 27818 | if (arg2 == NULL) { |
15afbcd0 RD |
27819 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27820 | SWIG_fail; | |
d14a1e28 RD |
27821 | } |
27822 | { | |
27823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27824 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27825 | ||
27826 | wxPyEndAllowThreads(__tstate); | |
27827 | if (PyErr_Occurred()) SWIG_fail; | |
27828 | } | |
27829 | Py_INCREF(Py_None); resultobj = Py_None; | |
27830 | return resultobj; | |
27831 | fail: | |
27832 | return NULL; | |
27833 | } | |
27834 | ||
27835 | ||
c32bde28 | 27836 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27837 | PyObject *resultobj; |
27838 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27839 | wxPoint *arg2 = 0 ; | |
27840 | int *arg3 = 0 ; | |
27841 | wxTreeItemId result; | |
27842 | wxPoint temp2 ; | |
27843 | int temp3 ; | |
c32bde28 | 27844 | int res3 = 0 ; |
d14a1e28 RD |
27845 | PyObject * obj0 = 0 ; |
27846 | PyObject * obj1 = 0 ; | |
27847 | char *kwnames[] = { | |
27848 | (char *) "self",(char *) "point", NULL | |
27849 | }; | |
27850 | ||
c32bde28 | 27851 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 27852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27855 | { |
27856 | arg2 = &temp2; | |
27857 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27858 | } | |
27859 | { | |
27860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27861 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27862 | ||
27863 | wxPyEndAllowThreads(__tstate); | |
27864 | if (PyErr_Occurred()) SWIG_fail; | |
27865 | } | |
27866 | { | |
27867 | wxTreeItemId * resultptr; | |
27868 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27869 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 27870 | } |
c32bde28 RD |
27871 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27872 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
27873 | return resultobj; |
27874 | fail: | |
27875 | return NULL; | |
27876 | } | |
27877 | ||
27878 | ||
c32bde28 | 27879 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27880 | PyObject *resultobj; |
27881 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27882 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 27883 | bool arg3 = (bool) False ; |
d14a1e28 RD |
27884 | PyObject *result; |
27885 | PyObject * obj0 = 0 ; | |
27886 | PyObject * obj1 = 0 ; | |
27887 | PyObject * obj2 = 0 ; | |
27888 | char *kwnames[] = { | |
27889 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27890 | }; | |
27891 | ||
27892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27895 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27896 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27897 | SWIG_fail; | |
d14a1e28 | 27898 | if (arg2 == NULL) { |
15afbcd0 RD |
27899 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27900 | SWIG_fail; | |
d14a1e28 RD |
27901 | } |
27902 | if (obj2) { | |
c32bde28 | 27903 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 27904 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27905 | } |
27906 | { | |
27907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27908 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27909 | ||
27910 | wxPyEndAllowThreads(__tstate); | |
27911 | if (PyErr_Occurred()) SWIG_fail; | |
27912 | } | |
27913 | resultobj = result; | |
27914 | return resultobj; | |
27915 | fail: | |
27916 | return NULL; | |
27917 | } | |
27918 | ||
27919 | ||
c32bde28 | 27920 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
27921 | PyObject *resultobj; |
27922 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27923 | wxVisualAttributes result; | |
27924 | PyObject * obj0 = 0 ; | |
27925 | char *kwnames[] = { | |
27926 | (char *) "variant", NULL | |
27927 | }; | |
27928 | ||
27929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27930 | if (obj0) { | |
c32bde28 | 27931 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
27932 | if (PyErr_Occurred()) SWIG_fail; |
27933 | } | |
27934 | { | |
110da5b0 | 27935 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
27936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27937 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27938 | ||
27939 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 27940 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
27941 | } |
27942 | { | |
27943 | wxVisualAttributes * resultptr; | |
27944 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27945 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27946 | } | |
27947 | return resultobj; | |
27948 | fail: | |
27949 | return NULL; | |
27950 | } | |
27951 | ||
27952 | ||
c32bde28 | 27953 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27954 | PyObject *obj; |
27955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27956 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27957 | Py_INCREF(obj); | |
27958 | return Py_BuildValue((char *)""); | |
27959 | } | |
c32bde28 | 27960 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
b2dc1044 RD |
27961 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
27962 | return 1; | |
27963 | } | |
27964 | ||
27965 | ||
27966 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27967 | PyObject *pyobj; | |
27968 | ||
27969 | { | |
27970 | #if wxUSE_UNICODE | |
27971 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27972 | #else | |
27973 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27974 | #endif | |
27975 | } | |
27976 | return pyobj; | |
27977 | } | |
27978 | ||
27979 | ||
c32bde28 | 27980 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27981 | PyObject *resultobj; |
27982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27983 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27984 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27985 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27986 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27987 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27988 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27989 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27990 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27991 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27992 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27993 | int arg8 = (int) 0 ; | |
b2dc1044 | 27994 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27995 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27996 | wxGenericDirCtrl *result; | |
e811c8ce | 27997 | bool temp3 = False ; |
d14a1e28 RD |
27998 | wxPoint temp4 ; |
27999 | wxSize temp5 ; | |
e811c8ce RD |
28000 | bool temp7 = False ; |
28001 | bool temp9 = False ; | |
d14a1e28 | 28002 | PyObject * obj0 = 0 ; |
994141e6 | 28003 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28004 | PyObject * obj2 = 0 ; |
28005 | PyObject * obj3 = 0 ; | |
28006 | PyObject * obj4 = 0 ; | |
994141e6 | 28007 | PyObject * obj5 = 0 ; |
d14a1e28 | 28008 | PyObject * obj6 = 0 ; |
994141e6 | 28009 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
28010 | PyObject * obj8 = 0 ; |
28011 | char *kwnames[] = { | |
28012 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28013 | }; | |
28014 | ||
994141e6 | 28015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
28016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28018 | if (obj1) { |
c32bde28 | 28019 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28020 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28021 | } |
d14a1e28 RD |
28022 | if (obj2) { |
28023 | { | |
28024 | arg3 = wxString_in_helper(obj2); | |
28025 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28026 | temp3 = True; |
d14a1e28 RD |
28027 | } |
28028 | } | |
28029 | if (obj3) { | |
28030 | { | |
28031 | arg4 = &temp4; | |
28032 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28033 | } | |
28034 | } | |
28035 | if (obj4) { | |
28036 | { | |
28037 | arg5 = &temp5; | |
28038 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28039 | } | |
28040 | } | |
994141e6 | 28041 | if (obj5) { |
c32bde28 | 28042 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 28043 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28044 | } |
d14a1e28 RD |
28045 | if (obj6) { |
28046 | { | |
28047 | arg7 = wxString_in_helper(obj6); | |
28048 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 28049 | temp7 = True; |
d14a1e28 RD |
28050 | } |
28051 | } | |
994141e6 | 28052 | if (obj7) { |
c32bde28 | 28053 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 28054 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28055 | } |
d14a1e28 RD |
28056 | if (obj8) { |
28057 | { | |
28058 | arg9 = wxString_in_helper(obj8); | |
28059 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 28060 | temp9 = True; |
d14a1e28 RD |
28061 | } |
28062 | } | |
28063 | { | |
e3b71cb8 | 28064 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28066 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
28067 | ||
28068 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28069 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28070 | } |
15afbcd0 | 28071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
28072 | { |
28073 | if (temp3) | |
28074 | delete arg3; | |
28075 | } | |
28076 | { | |
28077 | if (temp7) | |
28078 | delete arg7; | |
28079 | } | |
28080 | { | |
28081 | if (temp9) | |
28082 | delete arg9; | |
28083 | } | |
28084 | return resultobj; | |
28085 | fail: | |
28086 | { | |
28087 | if (temp3) | |
28088 | delete arg3; | |
28089 | } | |
28090 | { | |
28091 | if (temp7) | |
28092 | delete arg7; | |
28093 | } | |
28094 | { | |
28095 | if (temp9) | |
28096 | delete arg9; | |
28097 | } | |
28098 | return NULL; | |
28099 | } | |
28100 | ||
28101 | ||
c32bde28 | 28102 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28103 | PyObject *resultobj; |
28104 | wxGenericDirCtrl *result; | |
28105 | char *kwnames[] = { | |
28106 | NULL | |
28107 | }; | |
28108 | ||
28109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
28110 | { | |
e3b71cb8 | 28111 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28113 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
28114 | ||
28115 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28116 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28117 | } |
15afbcd0 | 28118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
28119 | return resultobj; |
28120 | fail: | |
28121 | return NULL; | |
28122 | } | |
28123 | ||
28124 | ||
c32bde28 | 28125 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28126 | PyObject *resultobj; |
28127 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28128 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 28129 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28130 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
28131 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28132 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
28133 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
28134 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
28135 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
28136 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28137 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28138 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28139 | int arg9 = (int) 0 ; | |
b2dc1044 | 28140 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28141 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
28142 | bool result; | |
e811c8ce | 28143 | bool temp4 = False ; |
d14a1e28 RD |
28144 | wxPoint temp5 ; |
28145 | wxSize temp6 ; | |
e811c8ce RD |
28146 | bool temp8 = False ; |
28147 | bool temp10 = False ; | |
d14a1e28 RD |
28148 | PyObject * obj0 = 0 ; |
28149 | PyObject * obj1 = 0 ; | |
994141e6 | 28150 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28151 | PyObject * obj3 = 0 ; |
28152 | PyObject * obj4 = 0 ; | |
28153 | PyObject * obj5 = 0 ; | |
994141e6 | 28154 | PyObject * obj6 = 0 ; |
d14a1e28 | 28155 | PyObject * obj7 = 0 ; |
994141e6 | 28156 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
28157 | PyObject * obj9 = 0 ; |
28158 | char *kwnames[] = { | |
28159 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28160 | }; | |
28161 | ||
994141e6 | 28162 | 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 |
28163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28167 | if (obj2) { |
c32bde28 | 28168 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 28169 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28170 | } |
d14a1e28 RD |
28171 | if (obj3) { |
28172 | { | |
28173 | arg4 = wxString_in_helper(obj3); | |
28174 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28175 | temp4 = True; |
d14a1e28 RD |
28176 | } |
28177 | } | |
28178 | if (obj4) { | |
28179 | { | |
28180 | arg5 = &temp5; | |
28181 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28182 | } | |
28183 | } | |
28184 | if (obj5) { | |
28185 | { | |
28186 | arg6 = &temp6; | |
28187 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28188 | } | |
28189 | } | |
994141e6 | 28190 | if (obj6) { |
c32bde28 | 28191 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 28192 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28193 | } |
d14a1e28 RD |
28194 | if (obj7) { |
28195 | { | |
28196 | arg8 = wxString_in_helper(obj7); | |
28197 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 28198 | temp8 = True; |
d14a1e28 RD |
28199 | } |
28200 | } | |
994141e6 | 28201 | if (obj8) { |
c32bde28 | 28202 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 28203 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28204 | } |
d14a1e28 RD |
28205 | if (obj9) { |
28206 | { | |
28207 | arg10 = wxString_in_helper(obj9); | |
28208 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 28209 | temp10 = True; |
d14a1e28 RD |
28210 | } |
28211 | } | |
28212 | { | |
28213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28214 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28215 | ||
28216 | wxPyEndAllowThreads(__tstate); | |
28217 | if (PyErr_Occurred()) SWIG_fail; | |
28218 | } | |
4f89f6a3 RD |
28219 | { |
28220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28221 | } | |
d14a1e28 RD |
28222 | { |
28223 | if (temp4) | |
28224 | delete arg4; | |
28225 | } | |
28226 | { | |
28227 | if (temp8) | |
28228 | delete arg8; | |
28229 | } | |
28230 | { | |
28231 | if (temp10) | |
28232 | delete arg10; | |
28233 | } | |
28234 | return resultobj; | |
28235 | fail: | |
28236 | { | |
28237 | if (temp4) | |
28238 | delete arg4; | |
28239 | } | |
28240 | { | |
28241 | if (temp8) | |
28242 | delete arg8; | |
28243 | } | |
28244 | { | |
28245 | if (temp10) | |
28246 | delete arg10; | |
28247 | } | |
28248 | return NULL; | |
28249 | } | |
28250 | ||
28251 | ||
c32bde28 | 28252 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28253 | PyObject *resultobj; |
28254 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28255 | wxString *arg2 = 0 ; | |
28256 | bool result; | |
e811c8ce | 28257 | bool temp2 = False ; |
d14a1e28 RD |
28258 | PyObject * obj0 = 0 ; |
28259 | PyObject * obj1 = 0 ; | |
28260 | char *kwnames[] = { | |
28261 | (char *) "self",(char *) "path", NULL | |
28262 | }; | |
28263 | ||
28264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28267 | { |
28268 | arg2 = wxString_in_helper(obj1); | |
28269 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28270 | temp2 = True; |
d14a1e28 RD |
28271 | } |
28272 | { | |
28273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28274 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28275 | ||
28276 | wxPyEndAllowThreads(__tstate); | |
28277 | if (PyErr_Occurred()) SWIG_fail; | |
28278 | } | |
4f89f6a3 RD |
28279 | { |
28280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28281 | } | |
d14a1e28 RD |
28282 | { |
28283 | if (temp2) | |
28284 | delete arg2; | |
28285 | } | |
28286 | return resultobj; | |
28287 | fail: | |
28288 | { | |
28289 | if (temp2) | |
28290 | delete arg2; | |
28291 | } | |
28292 | return NULL; | |
28293 | } | |
28294 | ||
28295 | ||
c32bde28 | 28296 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28297 | PyObject *resultobj; |
28298 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28299 | wxString result; | |
28300 | PyObject * obj0 = 0 ; | |
28301 | char *kwnames[] = { | |
28302 | (char *) "self", NULL | |
28303 | }; | |
28304 | ||
28305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28308 | { |
28309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28310 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28311 | ||
28312 | wxPyEndAllowThreads(__tstate); | |
28313 | if (PyErr_Occurred()) SWIG_fail; | |
28314 | } | |
28315 | { | |
28316 | #if wxUSE_UNICODE | |
28317 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28318 | #else | |
28319 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28320 | #endif | |
28321 | } | |
28322 | return resultobj; | |
28323 | fail: | |
28324 | return NULL; | |
28325 | } | |
28326 | ||
28327 | ||
c32bde28 | 28328 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28329 | PyObject *resultobj; |
28330 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28331 | wxString *arg2 = 0 ; | |
e811c8ce | 28332 | bool temp2 = False ; |
d14a1e28 RD |
28333 | PyObject * obj0 = 0 ; |
28334 | PyObject * obj1 = 0 ; | |
28335 | char *kwnames[] = { | |
28336 | (char *) "self",(char *) "path", NULL | |
28337 | }; | |
28338 | ||
28339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28342 | { |
28343 | arg2 = wxString_in_helper(obj1); | |
28344 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28345 | temp2 = True; |
d14a1e28 RD |
28346 | } |
28347 | { | |
28348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28349 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28350 | ||
28351 | wxPyEndAllowThreads(__tstate); | |
28352 | if (PyErr_Occurred()) SWIG_fail; | |
28353 | } | |
28354 | Py_INCREF(Py_None); resultobj = Py_None; | |
28355 | { | |
28356 | if (temp2) | |
28357 | delete arg2; | |
28358 | } | |
28359 | return resultobj; | |
28360 | fail: | |
28361 | { | |
28362 | if (temp2) | |
28363 | delete arg2; | |
28364 | } | |
28365 | return NULL; | |
28366 | } | |
28367 | ||
28368 | ||
c32bde28 | 28369 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28370 | PyObject *resultobj; |
28371 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28372 | wxString result; | |
28373 | PyObject * obj0 = 0 ; | |
28374 | char *kwnames[] = { | |
28375 | (char *) "self", NULL | |
28376 | }; | |
28377 | ||
28378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28381 | { |
28382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28383 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28384 | ||
28385 | wxPyEndAllowThreads(__tstate); | |
28386 | if (PyErr_Occurred()) SWIG_fail; | |
28387 | } | |
28388 | { | |
28389 | #if wxUSE_UNICODE | |
28390 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28391 | #else | |
28392 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28393 | #endif | |
28394 | } | |
28395 | return resultobj; | |
28396 | fail: | |
28397 | return NULL; | |
28398 | } | |
28399 | ||
28400 | ||
c32bde28 | 28401 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28402 | PyObject *resultobj; |
28403 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28404 | wxString result; | |
28405 | PyObject * obj0 = 0 ; | |
28406 | char *kwnames[] = { | |
28407 | (char *) "self", NULL | |
28408 | }; | |
28409 | ||
28410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28413 | { |
28414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28415 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28416 | ||
28417 | wxPyEndAllowThreads(__tstate); | |
28418 | if (PyErr_Occurred()) SWIG_fail; | |
28419 | } | |
28420 | { | |
28421 | #if wxUSE_UNICODE | |
28422 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28423 | #else | |
28424 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28425 | #endif | |
28426 | } | |
28427 | return resultobj; | |
28428 | fail: | |
28429 | return NULL; | |
28430 | } | |
28431 | ||
28432 | ||
c32bde28 | 28433 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28434 | PyObject *resultobj; |
28435 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28436 | wxString *arg2 = 0 ; | |
e811c8ce | 28437 | bool temp2 = False ; |
d14a1e28 RD |
28438 | PyObject * obj0 = 0 ; |
28439 | PyObject * obj1 = 0 ; | |
28440 | char *kwnames[] = { | |
28441 | (char *) "self",(char *) "path", NULL | |
28442 | }; | |
28443 | ||
28444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28447 | { |
28448 | arg2 = wxString_in_helper(obj1); | |
28449 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28450 | temp2 = True; |
d14a1e28 RD |
28451 | } |
28452 | { | |
28453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28454 | (arg1)->SetPath((wxString const &)*arg2); | |
28455 | ||
28456 | wxPyEndAllowThreads(__tstate); | |
28457 | if (PyErr_Occurred()) SWIG_fail; | |
28458 | } | |
28459 | Py_INCREF(Py_None); resultobj = Py_None; | |
28460 | { | |
28461 | if (temp2) | |
28462 | delete arg2; | |
28463 | } | |
28464 | return resultobj; | |
28465 | fail: | |
28466 | { | |
28467 | if (temp2) | |
28468 | delete arg2; | |
28469 | } | |
28470 | return NULL; | |
28471 | } | |
28472 | ||
28473 | ||
c32bde28 | 28474 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28475 | PyObject *resultobj; |
28476 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28477 | bool arg2 ; | |
28478 | PyObject * obj0 = 0 ; | |
28479 | PyObject * obj1 = 0 ; | |
28480 | char *kwnames[] = { | |
28481 | (char *) "self",(char *) "show", NULL | |
28482 | }; | |
28483 | ||
28484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28487 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 28488 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28489 | { |
28490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28491 | (arg1)->ShowHidden(arg2); | |
28492 | ||
28493 | wxPyEndAllowThreads(__tstate); | |
28494 | if (PyErr_Occurred()) SWIG_fail; | |
28495 | } | |
28496 | Py_INCREF(Py_None); resultobj = Py_None; | |
28497 | return resultobj; | |
28498 | fail: | |
28499 | return NULL; | |
28500 | } | |
28501 | ||
28502 | ||
c32bde28 | 28503 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28504 | PyObject *resultobj; |
28505 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28506 | bool result; | |
28507 | PyObject * obj0 = 0 ; | |
28508 | char *kwnames[] = { | |
28509 | (char *) "self", NULL | |
28510 | }; | |
28511 | ||
28512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28515 | { |
28516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28517 | result = (bool)(arg1)->GetShowHidden(); | |
28518 | ||
28519 | wxPyEndAllowThreads(__tstate); | |
28520 | if (PyErr_Occurred()) SWIG_fail; | |
28521 | } | |
4f89f6a3 RD |
28522 | { |
28523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28524 | } | |
d14a1e28 RD |
28525 | return resultobj; |
28526 | fail: | |
28527 | return NULL; | |
28528 | } | |
28529 | ||
28530 | ||
c32bde28 | 28531 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28532 | PyObject *resultobj; |
28533 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28534 | wxString result; | |
28535 | PyObject * obj0 = 0 ; | |
28536 | char *kwnames[] = { | |
28537 | (char *) "self", NULL | |
28538 | }; | |
28539 | ||
28540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28543 | { |
28544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28545 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28546 | ||
28547 | wxPyEndAllowThreads(__tstate); | |
28548 | if (PyErr_Occurred()) SWIG_fail; | |
28549 | } | |
28550 | { | |
28551 | #if wxUSE_UNICODE | |
28552 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28553 | #else | |
28554 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28555 | #endif | |
28556 | } | |
28557 | return resultobj; | |
28558 | fail: | |
28559 | return NULL; | |
28560 | } | |
28561 | ||
28562 | ||
c32bde28 | 28563 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28564 | PyObject *resultobj; |
28565 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28566 | wxString *arg2 = 0 ; | |
e811c8ce | 28567 | bool temp2 = False ; |
d14a1e28 RD |
28568 | PyObject * obj0 = 0 ; |
28569 | PyObject * obj1 = 0 ; | |
28570 | char *kwnames[] = { | |
28571 | (char *) "self",(char *) "filter", NULL | |
28572 | }; | |
28573 | ||
28574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28577 | { |
28578 | arg2 = wxString_in_helper(obj1); | |
28579 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28580 | temp2 = True; |
d14a1e28 RD |
28581 | } |
28582 | { | |
28583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28584 | (arg1)->SetFilter((wxString const &)*arg2); | |
28585 | ||
28586 | wxPyEndAllowThreads(__tstate); | |
28587 | if (PyErr_Occurred()) SWIG_fail; | |
28588 | } | |
28589 | Py_INCREF(Py_None); resultobj = Py_None; | |
28590 | { | |
28591 | if (temp2) | |
28592 | delete arg2; | |
28593 | } | |
28594 | return resultobj; | |
28595 | fail: | |
28596 | { | |
28597 | if (temp2) | |
28598 | delete arg2; | |
28599 | } | |
28600 | return NULL; | |
28601 | } | |
28602 | ||
28603 | ||
c32bde28 | 28604 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28605 | PyObject *resultobj; |
28606 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28607 | int result; | |
28608 | PyObject * obj0 = 0 ; | |
28609 | char *kwnames[] = { | |
28610 | (char *) "self", NULL | |
28611 | }; | |
28612 | ||
28613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28616 | { |
28617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28618 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28619 | ||
28620 | wxPyEndAllowThreads(__tstate); | |
28621 | if (PyErr_Occurred()) SWIG_fail; | |
28622 | } | |
c32bde28 | 28623 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
28624 | return resultobj; |
28625 | fail: | |
28626 | return NULL; | |
28627 | } | |
28628 | ||
28629 | ||
c32bde28 | 28630 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28631 | PyObject *resultobj; |
28632 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28633 | int arg2 ; | |
28634 | PyObject * obj0 = 0 ; | |
994141e6 | 28635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28636 | char *kwnames[] = { |
28637 | (char *) "self",(char *) "n", NULL | |
28638 | }; | |
28639 | ||
994141e6 | 28640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28643 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28644 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28645 | { |
28646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28647 | (arg1)->SetFilterIndex(arg2); | |
28648 | ||
28649 | wxPyEndAllowThreads(__tstate); | |
28650 | if (PyErr_Occurred()) SWIG_fail; | |
28651 | } | |
28652 | Py_INCREF(Py_None); resultobj = Py_None; | |
28653 | return resultobj; | |
28654 | fail: | |
28655 | return NULL; | |
28656 | } | |
28657 | ||
28658 | ||
c32bde28 | 28659 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28660 | PyObject *resultobj; |
28661 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28662 | wxTreeItemId result; | |
28663 | PyObject * obj0 = 0 ; | |
28664 | char *kwnames[] = { | |
28665 | (char *) "self", NULL | |
28666 | }; | |
28667 | ||
28668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28671 | { |
28672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28673 | result = (arg1)->GetRootId(); | |
28674 | ||
28675 | wxPyEndAllowThreads(__tstate); | |
28676 | if (PyErr_Occurred()) SWIG_fail; | |
28677 | } | |
28678 | { | |
28679 | wxTreeItemId * resultptr; | |
28680 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28682 | } |
28683 | return resultobj; | |
28684 | fail: | |
28685 | return NULL; | |
28686 | } | |
28687 | ||
28688 | ||
c32bde28 | 28689 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28690 | PyObject *resultobj; |
28691 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 28692 | wxPyTreeCtrl *result; |
d14a1e28 RD |
28693 | PyObject * obj0 = 0 ; |
28694 | char *kwnames[] = { | |
28695 | (char *) "self", NULL | |
28696 | }; | |
28697 | ||
28698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28701 | { |
28702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 28703 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
28704 | |
28705 | wxPyEndAllowThreads(__tstate); | |
28706 | if (PyErr_Occurred()) SWIG_fail; | |
28707 | } | |
28708 | { | |
412d302d | 28709 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28710 | } |
28711 | return resultobj; | |
28712 | fail: | |
28713 | return NULL; | |
28714 | } | |
28715 | ||
28716 | ||
c32bde28 | 28717 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28718 | PyObject *resultobj; |
28719 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28720 | wxDirFilterListCtrl *result; | |
28721 | PyObject * obj0 = 0 ; | |
28722 | char *kwnames[] = { | |
28723 | (char *) "self", NULL | |
28724 | }; | |
28725 | ||
28726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28729 | { |
28730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28731 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28732 | ||
28733 | wxPyEndAllowThreads(__tstate); | |
28734 | if (PyErr_Occurred()) SWIG_fail; | |
28735 | } | |
15afbcd0 | 28736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
28737 | return resultobj; |
28738 | fail: | |
28739 | return NULL; | |
28740 | } | |
28741 | ||
28742 | ||
c32bde28 | 28743 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28744 | PyObject *resultobj; |
28745 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28746 | wxTreeItemId arg2 ; | |
28747 | wxString *arg3 = 0 ; | |
28748 | bool *arg4 = 0 ; | |
28749 | wxTreeItemId result; | |
28750 | wxTreeItemId *argp2 ; | |
e811c8ce | 28751 | bool temp3 = False ; |
d14a1e28 | 28752 | bool temp4 ; |
c32bde28 | 28753 | int res4 = 0 ; |
d14a1e28 RD |
28754 | PyObject * obj0 = 0 ; |
28755 | PyObject * obj1 = 0 ; | |
28756 | PyObject * obj2 = 0 ; | |
28757 | char *kwnames[] = { | |
28758 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28759 | }; | |
28760 | ||
c32bde28 | 28761 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d14a1e28 | 28762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
28763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28765 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28766 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28767 | arg2 = *argp2; | |
d14a1e28 RD |
28768 | { |
28769 | arg3 = wxString_in_helper(obj2); | |
28770 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28771 | temp3 = True; |
d14a1e28 RD |
28772 | } |
28773 | { | |
28774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28775 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28776 | ||
28777 | wxPyEndAllowThreads(__tstate); | |
28778 | if (PyErr_Occurred()) SWIG_fail; | |
28779 | } | |
28780 | { | |
28781 | wxTreeItemId * resultptr; | |
28782 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28783 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 28784 | } |
c32bde28 RD |
28785 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
28786 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d14a1e28 RD |
28787 | { |
28788 | if (temp3) | |
28789 | delete arg3; | |
28790 | } | |
28791 | return resultobj; | |
28792 | fail: | |
28793 | { | |
28794 | if (temp3) | |
28795 | delete arg3; | |
28796 | } | |
28797 | return NULL; | |
28798 | } | |
28799 | ||
28800 | ||
c32bde28 | 28801 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28802 | PyObject *resultobj; |
28803 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28804 | PyObject * obj0 = 0 ; | |
28805 | char *kwnames[] = { | |
28806 | (char *) "self", NULL | |
28807 | }; | |
28808 | ||
28809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28812 | { |
28813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28814 | (arg1)->DoResize(); | |
28815 | ||
28816 | wxPyEndAllowThreads(__tstate); | |
28817 | if (PyErr_Occurred()) SWIG_fail; | |
28818 | } | |
28819 | Py_INCREF(Py_None); resultobj = Py_None; | |
28820 | return resultobj; | |
28821 | fail: | |
28822 | return NULL; | |
28823 | } | |
28824 | ||
28825 | ||
c32bde28 | 28826 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28827 | PyObject *resultobj; |
28828 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28829 | PyObject * obj0 = 0 ; | |
28830 | char *kwnames[] = { | |
28831 | (char *) "self", NULL | |
28832 | }; | |
28833 | ||
28834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28837 | { |
28838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28839 | (arg1)->ReCreateTree(); | |
28840 | ||
28841 | wxPyEndAllowThreads(__tstate); | |
28842 | if (PyErr_Occurred()) SWIG_fail; | |
28843 | } | |
28844 | Py_INCREF(Py_None); resultobj = Py_None; | |
28845 | return resultobj; | |
28846 | fail: | |
28847 | return NULL; | |
28848 | } | |
28849 | ||
28850 | ||
c32bde28 | 28851 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28852 | PyObject *obj; |
28853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28854 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28855 | Py_INCREF(obj); | |
28856 | return Py_BuildValue((char *)""); | |
28857 | } | |
c32bde28 | 28858 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28859 | PyObject *resultobj; |
28860 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28861 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28862 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28863 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28864 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28865 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28866 | long arg5 = (long) 0 ; | |
28867 | wxDirFilterListCtrl *result; | |
28868 | wxPoint temp3 ; | |
28869 | wxSize temp4 ; | |
28870 | PyObject * obj0 = 0 ; | |
994141e6 | 28871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28872 | PyObject * obj2 = 0 ; |
28873 | PyObject * obj3 = 0 ; | |
994141e6 | 28874 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28875 | char *kwnames[] = { |
28876 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28877 | }; | |
28878 | ||
994141e6 | 28879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28882 | if (obj1) { |
c32bde28 | 28883 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28884 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28885 | } |
d14a1e28 RD |
28886 | if (obj2) { |
28887 | { | |
28888 | arg3 = &temp3; | |
28889 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28890 | } | |
28891 | } | |
28892 | if (obj3) { | |
28893 | { | |
28894 | arg4 = &temp4; | |
28895 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28896 | } | |
28897 | } | |
994141e6 | 28898 | if (obj4) { |
c32bde28 | 28899 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 28900 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28901 | } |
d14a1e28 | 28902 | { |
e3b71cb8 | 28903 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28905 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28906 | ||
28907 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28908 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28909 | } |
15afbcd0 | 28910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28911 | return resultobj; |
28912 | fail: | |
28913 | return NULL; | |
28914 | } | |
28915 | ||
28916 | ||
c32bde28 | 28917 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28918 | PyObject *resultobj; |
28919 | wxDirFilterListCtrl *result; | |
28920 | char *kwnames[] = { | |
28921 | NULL | |
28922 | }; | |
28923 | ||
28924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28925 | { | |
e3b71cb8 | 28926 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28928 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28929 | ||
28930 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28931 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28932 | } |
15afbcd0 | 28933 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28934 | return resultobj; |
28935 | fail: | |
28936 | return NULL; | |
28937 | } | |
28938 | ||
28939 | ||
c32bde28 | 28940 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28941 | PyObject *resultobj; |
28942 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28943 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28944 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28945 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28946 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28947 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28948 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28949 | long arg6 = (long) 0 ; | |
28950 | bool result; | |
28951 | wxPoint temp4 ; | |
28952 | wxSize temp5 ; | |
28953 | PyObject * obj0 = 0 ; | |
28954 | PyObject * obj1 = 0 ; | |
994141e6 | 28955 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28956 | PyObject * obj3 = 0 ; |
28957 | PyObject * obj4 = 0 ; | |
994141e6 | 28958 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28959 | char *kwnames[] = { |
28960 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28961 | }; | |
28962 | ||
994141e6 | 28963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28966 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28968 | if (obj2) { |
c32bde28 | 28969 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 28970 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28971 | } |
d14a1e28 RD |
28972 | if (obj3) { |
28973 | { | |
28974 | arg4 = &temp4; | |
28975 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28976 | } | |
28977 | } | |
28978 | if (obj4) { | |
28979 | { | |
28980 | arg5 = &temp5; | |
28981 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28982 | } | |
28983 | } | |
994141e6 | 28984 | if (obj5) { |
c32bde28 | 28985 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 28986 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28987 | } |
d14a1e28 RD |
28988 | { |
28989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28990 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28991 | ||
28992 | wxPyEndAllowThreads(__tstate); | |
28993 | if (PyErr_Occurred()) SWIG_fail; | |
28994 | } | |
4f89f6a3 RD |
28995 | { |
28996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28997 | } | |
d14a1e28 RD |
28998 | return resultobj; |
28999 | fail: | |
29000 | return NULL; | |
29001 | } | |
29002 | ||
29003 | ||
c32bde28 | 29004 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29005 | PyObject *resultobj; |
29006 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29007 | wxString *arg2 = 0 ; | |
29008 | int arg3 ; | |
e811c8ce | 29009 | bool temp2 = False ; |
d14a1e28 RD |
29010 | PyObject * obj0 = 0 ; |
29011 | PyObject * obj1 = 0 ; | |
994141e6 | 29012 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29013 | char *kwnames[] = { |
29014 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
29015 | }; | |
29016 | ||
994141e6 | 29017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
29019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29020 | { |
29021 | arg2 = wxString_in_helper(obj1); | |
29022 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29023 | temp2 = True; |
d14a1e28 | 29024 | } |
c32bde28 | 29025 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29026 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29027 | { |
29028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29029 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
29030 | ||
29031 | wxPyEndAllowThreads(__tstate); | |
29032 | if (PyErr_Occurred()) SWIG_fail; | |
29033 | } | |
29034 | Py_INCREF(Py_None); resultobj = Py_None; | |
29035 | { | |
29036 | if (temp2) | |
29037 | delete arg2; | |
29038 | } | |
29039 | return resultobj; | |
29040 | fail: | |
29041 | { | |
29042 | if (temp2) | |
29043 | delete arg2; | |
29044 | } | |
29045 | return NULL; | |
29046 | } | |
29047 | ||
29048 | ||
c32bde28 | 29049 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29050 | PyObject *obj; |
29051 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29052 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
29053 | Py_INCREF(obj); | |
29054 | return Py_BuildValue((char *)""); | |
29055 | } | |
c32bde28 | 29056 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29057 | PyObject *resultobj; |
29058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 29059 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
29060 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29061 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29062 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29063 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29064 | long arg5 = (long) 0 ; | |
29065 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29066 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29067 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29068 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29069 | wxPyControl *result; | |
29070 | wxPoint temp3 ; | |
29071 | wxSize temp4 ; | |
e811c8ce | 29072 | bool temp7 = False ; |
d14a1e28 | 29073 | PyObject * obj0 = 0 ; |
994141e6 | 29074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29075 | PyObject * obj2 = 0 ; |
29076 | PyObject * obj3 = 0 ; | |
994141e6 | 29077 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29078 | PyObject * obj5 = 0 ; |
29079 | PyObject * obj6 = 0 ; | |
29080 | char *kwnames[] = { | |
29081 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29082 | }; | |
29083 | ||
248ed943 | 29084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
29085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 29087 | if (obj1) { |
c32bde28 | 29088 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
29089 | if (PyErr_Occurred()) SWIG_fail; |
29090 | } | |
d14a1e28 RD |
29091 | if (obj2) { |
29092 | { | |
29093 | arg3 = &temp3; | |
29094 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29095 | } | |
29096 | } | |
29097 | if (obj3) { | |
29098 | { | |
29099 | arg4 = &temp4; | |
29100 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29101 | } | |
29102 | } | |
994141e6 | 29103 | if (obj4) { |
c32bde28 | 29104 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 29105 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29106 | } |
d14a1e28 | 29107 | if (obj5) { |
15afbcd0 RD |
29108 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
29109 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29110 | SWIG_fail; | |
d14a1e28 | 29111 | if (arg6 == NULL) { |
15afbcd0 RD |
29112 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29113 | SWIG_fail; | |
d14a1e28 RD |
29114 | } |
29115 | } | |
29116 | if (obj6) { | |
29117 | { | |
29118 | arg7 = wxString_in_helper(obj6); | |
29119 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 29120 | temp7 = True; |
d14a1e28 RD |
29121 | } |
29122 | } | |
29123 | { | |
e3b71cb8 | 29124 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29126 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29127 | ||
29128 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29129 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29130 | } |
15afbcd0 | 29131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
29132 | { |
29133 | if (temp7) | |
29134 | delete arg7; | |
29135 | } | |
29136 | return resultobj; | |
29137 | fail: | |
29138 | { | |
29139 | if (temp7) | |
29140 | delete arg7; | |
29141 | } | |
29142 | return NULL; | |
29143 | } | |
29144 | ||
29145 | ||
c32bde28 | 29146 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
29147 | PyObject *resultobj; |
29148 | wxPyControl *result; | |
29149 | char *kwnames[] = { | |
29150 | NULL | |
29151 | }; | |
29152 | ||
29153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29154 | { | |
e3b71cb8 | 29155 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
29156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29157 | result = (wxPyControl *)new wxPyControl(); | |
29158 | ||
29159 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29160 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
29161 | } |
29162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29163 | return resultobj; | |
29164 | fail: | |
29165 | return NULL; | |
29166 | } | |
29167 | ||
29168 | ||
c32bde28 | 29169 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29170 | PyObject *resultobj; |
29171 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29172 | PyObject *arg2 = (PyObject *) 0 ; | |
29173 | PyObject *arg3 = (PyObject *) 0 ; | |
29174 | PyObject * obj0 = 0 ; | |
29175 | PyObject * obj1 = 0 ; | |
29176 | PyObject * obj2 = 0 ; | |
29177 | char *kwnames[] = { | |
29178 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29179 | }; | |
29180 | ||
29181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29184 | arg2 = obj1; |
29185 | arg3 = obj2; | |
29186 | { | |
29187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29188 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29189 | ||
29190 | wxPyEndAllowThreads(__tstate); | |
29191 | if (PyErr_Occurred()) SWIG_fail; | |
29192 | } | |
29193 | Py_INCREF(Py_None); resultobj = Py_None; | |
29194 | return resultobj; | |
29195 | fail: | |
29196 | return NULL; | |
29197 | } | |
29198 | ||
29199 | ||
c32bde28 | 29200 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
29201 | PyObject *resultobj; |
29202 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29203 | wxSize *arg2 = 0 ; | |
29204 | wxSize temp2 ; | |
29205 | PyObject * obj0 = 0 ; | |
29206 | PyObject * obj1 = 0 ; | |
29207 | char *kwnames[] = { | |
29208 | (char *) "self",(char *) "size", NULL | |
29209 | }; | |
29210 | ||
29211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29214 | { | |
29215 | arg2 = &temp2; | |
29216 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29217 | } | |
29218 | { | |
29219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29220 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29221 | ||
29222 | wxPyEndAllowThreads(__tstate); | |
29223 | if (PyErr_Occurred()) SWIG_fail; | |
29224 | } | |
29225 | Py_INCREF(Py_None); resultobj = Py_None; | |
29226 | return resultobj; | |
29227 | fail: | |
29228 | return NULL; | |
29229 | } | |
29230 | ||
29231 | ||
c32bde28 | 29232 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29233 | PyObject *resultobj; |
29234 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29235 | int arg2 ; | |
29236 | int arg3 ; | |
29237 | int arg4 ; | |
29238 | int arg5 ; | |
29239 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29240 | PyObject * obj1 = 0 ; |
29241 | PyObject * obj2 = 0 ; | |
29242 | PyObject * obj3 = 0 ; | |
29243 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
29244 | char *kwnames[] = { |
29245 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29246 | }; | |
29247 | ||
994141e6 | 29248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29251 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29252 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29253 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29254 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29255 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 29256 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29257 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 29258 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29259 | { |
29260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29261 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29262 | ||
29263 | wxPyEndAllowThreads(__tstate); | |
29264 | if (PyErr_Occurred()) SWIG_fail; | |
29265 | } | |
29266 | Py_INCREF(Py_None); resultobj = Py_None; | |
29267 | return resultobj; | |
29268 | fail: | |
29269 | return NULL; | |
29270 | } | |
29271 | ||
29272 | ||
c32bde28 | 29273 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29274 | PyObject *resultobj; |
29275 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29276 | int arg2 ; | |
29277 | int arg3 ; | |
29278 | int arg4 ; | |
29279 | int arg5 ; | |
29280 | int arg6 = (int) wxSIZE_AUTO ; | |
29281 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29282 | PyObject * obj1 = 0 ; |
29283 | PyObject * obj2 = 0 ; | |
29284 | PyObject * obj3 = 0 ; | |
29285 | PyObject * obj4 = 0 ; | |
29286 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
29287 | char *kwnames[] = { |
29288 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29289 | }; | |
29290 | ||
994141e6 | 29291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29294 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29295 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29296 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29297 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29298 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 29299 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29300 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 29301 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29302 | if (obj5) { |
c32bde28 | 29303 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 29304 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29305 | } |
d14a1e28 RD |
29306 | { |
29307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29308 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29309 | ||
29310 | wxPyEndAllowThreads(__tstate); | |
29311 | if (PyErr_Occurred()) SWIG_fail; | |
29312 | } | |
29313 | Py_INCREF(Py_None); resultobj = Py_None; | |
29314 | return resultobj; | |
29315 | fail: | |
29316 | return NULL; | |
29317 | } | |
29318 | ||
29319 | ||
c32bde28 | 29320 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29321 | PyObject *resultobj; |
29322 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29323 | int arg2 ; | |
29324 | int arg3 ; | |
29325 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29326 | PyObject * obj1 = 0 ; |
29327 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29328 | char *kwnames[] = { |
29329 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29330 | }; | |
29331 | ||
994141e6 | 29332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29335 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29336 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29337 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29338 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29339 | { |
29340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29341 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29342 | ||
29343 | wxPyEndAllowThreads(__tstate); | |
29344 | if (PyErr_Occurred()) SWIG_fail; | |
29345 | } | |
29346 | Py_INCREF(Py_None); resultobj = Py_None; | |
29347 | return resultobj; | |
29348 | fail: | |
29349 | return NULL; | |
29350 | } | |
29351 | ||
29352 | ||
c32bde28 | 29353 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29354 | PyObject *resultobj; |
29355 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29356 | int arg2 ; | |
29357 | int arg3 ; | |
29358 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29359 | PyObject * obj1 = 0 ; |
29360 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29361 | char *kwnames[] = { |
29362 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29363 | }; | |
29364 | ||
994141e6 | 29365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29368 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29369 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29370 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29371 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29372 | { |
29373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29374 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29375 | ||
29376 | wxPyEndAllowThreads(__tstate); | |
29377 | if (PyErr_Occurred()) SWIG_fail; | |
29378 | } | |
29379 | Py_INCREF(Py_None); resultobj = Py_None; | |
29380 | return resultobj; | |
29381 | fail: | |
29382 | return NULL; | |
29383 | } | |
29384 | ||
29385 | ||
c32bde28 | 29386 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29387 | PyObject *resultobj; |
29388 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29389 | int *arg2 = (int *) 0 ; | |
29390 | int *arg3 = (int *) 0 ; | |
29391 | int temp2 ; | |
c32bde28 | 29392 | int res2 = 0 ; |
d14a1e28 | 29393 | int temp3 ; |
c32bde28 | 29394 | int res3 = 0 ; |
d14a1e28 RD |
29395 | PyObject * obj0 = 0 ; |
29396 | char *kwnames[] = { | |
29397 | (char *) "self", NULL | |
29398 | }; | |
29399 | ||
c32bde28 RD |
29400 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29401 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 29402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
29403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29405 | { |
29406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29407 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29408 | ||
29409 | wxPyEndAllowThreads(__tstate); | |
29410 | if (PyErr_Occurred()) SWIG_fail; | |
29411 | } | |
29412 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29413 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29414 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29415 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29416 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
29417 | return resultobj; |
29418 | fail: | |
29419 | return NULL; | |
29420 | } | |
29421 | ||
29422 | ||
c32bde28 | 29423 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29424 | PyObject *resultobj; |
29425 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29426 | int *arg2 = (int *) 0 ; | |
29427 | int *arg3 = (int *) 0 ; | |
29428 | int temp2 ; | |
c32bde28 | 29429 | int res2 = 0 ; |
d14a1e28 | 29430 | int temp3 ; |
c32bde28 | 29431 | int res3 = 0 ; |
d14a1e28 RD |
29432 | PyObject * obj0 = 0 ; |
29433 | char *kwnames[] = { | |
29434 | (char *) "self", NULL | |
29435 | }; | |
29436 | ||
c32bde28 RD |
29437 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29438 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 29439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
29440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29442 | { |
29443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29444 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29445 | ||
29446 | wxPyEndAllowThreads(__tstate); | |
29447 | if (PyErr_Occurred()) SWIG_fail; | |
29448 | } | |
29449 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29450 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29451 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29452 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29453 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
29454 | return resultobj; |
29455 | fail: | |
29456 | return NULL; | |
29457 | } | |
29458 | ||
29459 | ||
c32bde28 | 29460 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29461 | PyObject *resultobj; |
29462 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29463 | int *arg2 = (int *) 0 ; | |
29464 | int *arg3 = (int *) 0 ; | |
29465 | int temp2 ; | |
c32bde28 | 29466 | int res2 = 0 ; |
d14a1e28 | 29467 | int temp3 ; |
c32bde28 | 29468 | int res3 = 0 ; |
d14a1e28 RD |
29469 | PyObject * obj0 = 0 ; |
29470 | char *kwnames[] = { | |
29471 | (char *) "self", NULL | |
29472 | }; | |
29473 | ||
c32bde28 RD |
29474 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29475 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 29476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
29477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29479 | { |
29480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29481 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29482 | ||
29483 | wxPyEndAllowThreads(__tstate); | |
29484 | if (PyErr_Occurred()) SWIG_fail; | |
29485 | } | |
29486 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29487 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29488 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29489 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29490 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
29491 | return resultobj; |
29492 | fail: | |
29493 | return NULL; | |
29494 | } | |
29495 | ||
29496 | ||
c32bde28 | 29497 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29498 | PyObject *resultobj; |
29499 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29500 | wxSize result; | |
29501 | PyObject * obj0 = 0 ; | |
29502 | char *kwnames[] = { | |
29503 | (char *) "self", NULL | |
29504 | }; | |
29505 | ||
29506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) 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 | { |
29510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29511 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29512 | ||
29513 | wxPyEndAllowThreads(__tstate); | |
29514 | if (PyErr_Occurred()) SWIG_fail; | |
29515 | } | |
29516 | { | |
29517 | wxSize * resultptr; | |
29518 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29520 | } |
29521 | return resultobj; | |
29522 | fail: | |
29523 | return NULL; | |
29524 | } | |
29525 | ||
29526 | ||
c32bde28 | 29527 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29528 | PyObject *resultobj; |
29529 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29530 | wxSize result; | |
29531 | PyObject * obj0 = 0 ; | |
29532 | char *kwnames[] = { | |
29533 | (char *) "self", NULL | |
29534 | }; | |
29535 | ||
29536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29539 | { |
29540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29541 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29542 | ||
29543 | wxPyEndAllowThreads(__tstate); | |
29544 | if (PyErr_Occurred()) SWIG_fail; | |
29545 | } | |
29546 | { | |
29547 | wxSize * resultptr; | |
29548 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29550 | } |
29551 | return resultobj; | |
29552 | fail: | |
29553 | return NULL; | |
29554 | } | |
29555 | ||
29556 | ||
c32bde28 | 29557 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29558 | PyObject *resultobj; |
29559 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29560 | PyObject * obj0 = 0 ; | |
29561 | char *kwnames[] = { | |
29562 | (char *) "self", NULL | |
29563 | }; | |
29564 | ||
29565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29568 | { |
29569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29570 | (arg1)->base_InitDialog(); | |
29571 | ||
29572 | wxPyEndAllowThreads(__tstate); | |
29573 | if (PyErr_Occurred()) SWIG_fail; | |
29574 | } | |
29575 | Py_INCREF(Py_None); resultobj = Py_None; | |
29576 | return resultobj; | |
29577 | fail: | |
29578 | return NULL; | |
29579 | } | |
29580 | ||
29581 | ||
c32bde28 | 29582 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29583 | PyObject *resultobj; |
29584 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29585 | bool result; | |
29586 | PyObject * obj0 = 0 ; | |
29587 | char *kwnames[] = { | |
29588 | (char *) "self", NULL | |
29589 | }; | |
29590 | ||
29591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29594 | { |
29595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29596 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29597 | ||
29598 | wxPyEndAllowThreads(__tstate); | |
29599 | if (PyErr_Occurred()) SWIG_fail; | |
29600 | } | |
4f89f6a3 RD |
29601 | { |
29602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29603 | } | |
d14a1e28 RD |
29604 | return resultobj; |
29605 | fail: | |
29606 | return NULL; | |
29607 | } | |
29608 | ||
29609 | ||
c32bde28 | 29610 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29611 | PyObject *resultobj; |
29612 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29613 | bool result; | |
29614 | PyObject * obj0 = 0 ; | |
29615 | char *kwnames[] = { | |
29616 | (char *) "self", NULL | |
29617 | }; | |
29618 | ||
29619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29622 | { |
29623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29624 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29625 | ||
29626 | wxPyEndAllowThreads(__tstate); | |
29627 | if (PyErr_Occurred()) SWIG_fail; | |
29628 | } | |
4f89f6a3 RD |
29629 | { |
29630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29631 | } | |
d14a1e28 RD |
29632 | return resultobj; |
29633 | fail: | |
29634 | return NULL; | |
29635 | } | |
29636 | ||
29637 | ||
c32bde28 | 29638 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29639 | PyObject *resultobj; |
29640 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29641 | bool result; | |
29642 | PyObject * obj0 = 0 ; | |
29643 | char *kwnames[] = { | |
29644 | (char *) "self", NULL | |
29645 | }; | |
29646 | ||
29647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29650 | { |
29651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29652 | result = (bool)(arg1)->base_Validate(); | |
29653 | ||
29654 | wxPyEndAllowThreads(__tstate); | |
29655 | if (PyErr_Occurred()) SWIG_fail; | |
29656 | } | |
4f89f6a3 RD |
29657 | { |
29658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29659 | } | |
d14a1e28 RD |
29660 | return resultobj; |
29661 | fail: | |
29662 | return NULL; | |
29663 | } | |
29664 | ||
29665 | ||
c32bde28 | 29666 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29667 | PyObject *resultobj; |
29668 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29669 | bool result; | |
29670 | PyObject * obj0 = 0 ; | |
29671 | char *kwnames[] = { | |
29672 | (char *) "self", NULL | |
29673 | }; | |
29674 | ||
29675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29678 | { |
29679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29680 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29681 | ||
29682 | wxPyEndAllowThreads(__tstate); | |
29683 | if (PyErr_Occurred()) SWIG_fail; | |
29684 | } | |
4f89f6a3 RD |
29685 | { |
29686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29687 | } | |
d14a1e28 RD |
29688 | return resultobj; |
29689 | fail: | |
29690 | return NULL; | |
29691 | } | |
29692 | ||
29693 | ||
c32bde28 | 29694 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29695 | PyObject *resultobj; |
29696 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29697 | bool result; | |
29698 | PyObject * obj0 = 0 ; | |
29699 | char *kwnames[] = { | |
29700 | (char *) "self", NULL | |
29701 | }; | |
29702 | ||
29703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29706 | { |
29707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29708 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29709 | ||
29710 | wxPyEndAllowThreads(__tstate); | |
29711 | if (PyErr_Occurred()) SWIG_fail; | |
29712 | } | |
4f89f6a3 RD |
29713 | { |
29714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29715 | } | |
d14a1e28 RD |
29716 | return resultobj; |
29717 | fail: | |
29718 | return NULL; | |
29719 | } | |
29720 | ||
29721 | ||
c32bde28 | 29722 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29723 | PyObject *resultobj; |
29724 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29725 | wxSize result; | |
29726 | PyObject * obj0 = 0 ; | |
29727 | char *kwnames[] = { | |
29728 | (char *) "self", NULL | |
29729 | }; | |
29730 | ||
29731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29734 | { |
29735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29736 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29737 | ||
29738 | wxPyEndAllowThreads(__tstate); | |
29739 | if (PyErr_Occurred()) SWIG_fail; | |
29740 | } | |
29741 | { | |
29742 | wxSize * resultptr; | |
29743 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29745 | } |
29746 | return resultobj; | |
29747 | fail: | |
29748 | return NULL; | |
29749 | } | |
29750 | ||
29751 | ||
c32bde28 | 29752 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29753 | PyObject *resultobj; |
29754 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29755 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29756 | PyObject * obj0 = 0 ; | |
29757 | PyObject * obj1 = 0 ; | |
29758 | char *kwnames[] = { | |
29759 | (char *) "self",(char *) "child", NULL | |
29760 | }; | |
29761 | ||
29762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29767 | { |
29768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29769 | (arg1)->base_AddChild(arg2); | |
29770 | ||
29771 | wxPyEndAllowThreads(__tstate); | |
29772 | if (PyErr_Occurred()) SWIG_fail; | |
29773 | } | |
29774 | Py_INCREF(Py_None); resultobj = Py_None; | |
29775 | return resultobj; | |
29776 | fail: | |
29777 | return NULL; | |
29778 | } | |
29779 | ||
29780 | ||
c32bde28 | 29781 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29782 | PyObject *resultobj; |
29783 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29784 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29785 | PyObject * obj0 = 0 ; | |
29786 | PyObject * obj1 = 0 ; | |
29787 | char *kwnames[] = { | |
29788 | (char *) "self",(char *) "child", NULL | |
29789 | }; | |
29790 | ||
29791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29794 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29796 | { |
29797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29798 | (arg1)->base_RemoveChild(arg2); | |
29799 | ||
29800 | wxPyEndAllowThreads(__tstate); | |
29801 | if (PyErr_Occurred()) SWIG_fail; | |
29802 | } | |
29803 | Py_INCREF(Py_None); resultobj = Py_None; | |
29804 | return resultobj; | |
29805 | fail: | |
29806 | return NULL; | |
29807 | } | |
29808 | ||
29809 | ||
c32bde28 | 29810 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
29811 | PyObject *resultobj; |
29812 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29813 | bool result; | |
29814 | PyObject * obj0 = 0 ; | |
29815 | char *kwnames[] = { | |
29816 | (char *) "self", NULL | |
29817 | }; | |
29818 | ||
29819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29822 | { | |
29823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 29824 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
29825 | |
29826 | wxPyEndAllowThreads(__tstate); | |
29827 | if (PyErr_Occurred()) SWIG_fail; | |
29828 | } | |
29829 | { | |
29830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29831 | } | |
29832 | return resultobj; | |
29833 | fail: | |
29834 | return NULL; | |
29835 | } | |
29836 | ||
29837 | ||
c32bde28 | 29838 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
29839 | PyObject *resultobj; |
29840 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29841 | wxColour *arg2 = 0 ; | |
29842 | wxColour temp2 ; | |
29843 | PyObject * obj0 = 0 ; | |
29844 | PyObject * obj1 = 0 ; | |
29845 | char *kwnames[] = { | |
29846 | (char *) "self",(char *) "c", NULL | |
29847 | }; | |
29848 | ||
29849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29852 | { | |
29853 | arg2 = &temp2; | |
29854 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29855 | } | |
29856 | { | |
29857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29858 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29859 | ||
29860 | wxPyEndAllowThreads(__tstate); | |
29861 | if (PyErr_Occurred()) SWIG_fail; | |
29862 | } | |
29863 | Py_INCREF(Py_None); resultobj = Py_None; | |
29864 | return resultobj; | |
29865 | fail: | |
29866 | return NULL; | |
29867 | } | |
29868 | ||
29869 | ||
c32bde28 | 29870 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
29871 | PyObject *resultobj; |
29872 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29873 | wxVisualAttributes result; | |
29874 | PyObject * obj0 = 0 ; | |
29875 | char *kwnames[] = { | |
29876 | (char *) "self", NULL | |
29877 | }; | |
29878 | ||
29879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29882 | { | |
29883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29884 | result = (arg1)->base_GetDefaultAttributes(); | |
29885 | ||
29886 | wxPyEndAllowThreads(__tstate); | |
29887 | if (PyErr_Occurred()) SWIG_fail; | |
29888 | } | |
29889 | { | |
29890 | wxVisualAttributes * resultptr; | |
29891 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29893 | } | |
29894 | return resultobj; | |
29895 | fail: | |
29896 | return NULL; | |
29897 | } | |
29898 | ||
29899 | ||
c32bde28 | 29900 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29901 | PyObject *obj; |
29902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29903 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29904 | Py_INCREF(obj); | |
29905 | return Py_BuildValue((char *)""); | |
29906 | } | |
c32bde28 | 29907 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29908 | PyObject *resultobj; |
29909 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 29910 | int arg2 = (int) 0 ; |
d14a1e28 RD |
29911 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29912 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29913 | wxHelpEvent *result; | |
29914 | wxPoint temp3 ; | |
994141e6 RD |
29915 | PyObject * obj0 = 0 ; |
29916 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
29917 | PyObject * obj2 = 0 ; |
29918 | char *kwnames[] = { | |
29919 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29920 | }; | |
29921 | ||
994141e6 RD |
29922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
29923 | if (obj0) { | |
c32bde28 | 29924 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 29925 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
29926 | } |
29927 | if (obj1) { | |
c32bde28 | 29928 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29929 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29930 | } |
d14a1e28 RD |
29931 | if (obj2) { |
29932 | { | |
29933 | arg3 = &temp3; | |
29934 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29935 | } | |
29936 | } | |
29937 | { | |
29938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29939 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29940 | ||
29941 | wxPyEndAllowThreads(__tstate); | |
29942 | if (PyErr_Occurred()) SWIG_fail; | |
29943 | } | |
15afbcd0 | 29944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
29945 | return resultobj; |
29946 | fail: | |
29947 | return NULL; | |
29948 | } | |
29949 | ||
29950 | ||
c32bde28 | 29951 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29952 | PyObject *resultobj; |
29953 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 29954 | wxPoint result; |
d14a1e28 RD |
29955 | PyObject * obj0 = 0 ; |
29956 | char *kwnames[] = { | |
29957 | (char *) "self", NULL | |
29958 | }; | |
29959 | ||
29960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29963 | { |
29964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 29965 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
29966 | |
29967 | wxPyEndAllowThreads(__tstate); | |
29968 | if (PyErr_Occurred()) SWIG_fail; | |
29969 | } | |
15afbcd0 RD |
29970 | { |
29971 | wxPoint * resultptr; | |
29972 | resultptr = new wxPoint((wxPoint &) result); | |
29973 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29974 | } | |
d14a1e28 RD |
29975 | return resultobj; |
29976 | fail: | |
29977 | return NULL; | |
29978 | } | |
29979 | ||
29980 | ||
c32bde28 | 29981 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29982 | PyObject *resultobj; |
29983 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29984 | wxPoint *arg2 = 0 ; | |
29985 | wxPoint temp2 ; | |
29986 | PyObject * obj0 = 0 ; | |
29987 | PyObject * obj1 = 0 ; | |
29988 | char *kwnames[] = { | |
29989 | (char *) "self",(char *) "pos", NULL | |
29990 | }; | |
29991 | ||
29992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29995 | { |
29996 | arg2 = &temp2; | |
29997 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29998 | } | |
29999 | { | |
30000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30001 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
30002 | ||
30003 | wxPyEndAllowThreads(__tstate); | |
30004 | if (PyErr_Occurred()) SWIG_fail; | |
30005 | } | |
30006 | Py_INCREF(Py_None); resultobj = Py_None; | |
30007 | return resultobj; | |
30008 | fail: | |
30009 | return NULL; | |
30010 | } | |
30011 | ||
30012 | ||
c32bde28 | 30013 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30014 | PyObject *resultobj; |
30015 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30016 | wxString *result; | |
30017 | PyObject * obj0 = 0 ; | |
30018 | char *kwnames[] = { | |
30019 | (char *) "self", NULL | |
30020 | }; | |
30021 | ||
30022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30025 | { |
30026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30027 | { | |
30028 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
30029 | result = (wxString *) &_result_ref; | |
30030 | } | |
30031 | ||
30032 | wxPyEndAllowThreads(__tstate); | |
30033 | if (PyErr_Occurred()) SWIG_fail; | |
30034 | } | |
cc6dd355 RD |
30035 | { |
30036 | #if wxUSE_UNICODE | |
30037 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30038 | #else | |
30039 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30040 | #endif | |
30041 | } | |
d14a1e28 RD |
30042 | return resultobj; |
30043 | fail: | |
30044 | return NULL; | |
30045 | } | |
30046 | ||
30047 | ||
c32bde28 | 30048 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30049 | PyObject *resultobj; |
30050 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30051 | wxString *arg2 = 0 ; | |
e811c8ce | 30052 | bool temp2 = False ; |
d14a1e28 RD |
30053 | PyObject * obj0 = 0 ; |
30054 | PyObject * obj1 = 0 ; | |
30055 | char *kwnames[] = { | |
30056 | (char *) "self",(char *) "link", NULL | |
30057 | }; | |
30058 | ||
30059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30062 | { |
30063 | arg2 = wxString_in_helper(obj1); | |
30064 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30065 | temp2 = True; |
d14a1e28 RD |
30066 | } |
30067 | { | |
30068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30069 | (arg1)->SetLink((wxString const &)*arg2); | |
30070 | ||
30071 | wxPyEndAllowThreads(__tstate); | |
30072 | if (PyErr_Occurred()) SWIG_fail; | |
30073 | } | |
30074 | Py_INCREF(Py_None); resultobj = Py_None; | |
30075 | { | |
30076 | if (temp2) | |
30077 | delete arg2; | |
30078 | } | |
30079 | return resultobj; | |
30080 | fail: | |
30081 | { | |
30082 | if (temp2) | |
30083 | delete arg2; | |
30084 | } | |
30085 | return NULL; | |
30086 | } | |
30087 | ||
30088 | ||
c32bde28 | 30089 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30090 | PyObject *resultobj; |
30091 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30092 | wxString *result; | |
30093 | PyObject * obj0 = 0 ; | |
30094 | char *kwnames[] = { | |
30095 | (char *) "self", NULL | |
30096 | }; | |
30097 | ||
30098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30101 | { |
30102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30103 | { | |
30104 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
30105 | result = (wxString *) &_result_ref; | |
30106 | } | |
30107 | ||
30108 | wxPyEndAllowThreads(__tstate); | |
30109 | if (PyErr_Occurred()) SWIG_fail; | |
30110 | } | |
cc6dd355 RD |
30111 | { |
30112 | #if wxUSE_UNICODE | |
30113 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30114 | #else | |
30115 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30116 | #endif | |
30117 | } | |
d14a1e28 RD |
30118 | return resultobj; |
30119 | fail: | |
30120 | return NULL; | |
30121 | } | |
30122 | ||
30123 | ||
c32bde28 | 30124 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30125 | PyObject *resultobj; |
30126 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30127 | wxString *arg2 = 0 ; | |
e811c8ce | 30128 | bool temp2 = False ; |
d14a1e28 RD |
30129 | PyObject * obj0 = 0 ; |
30130 | PyObject * obj1 = 0 ; | |
30131 | char *kwnames[] = { | |
30132 | (char *) "self",(char *) "target", NULL | |
30133 | }; | |
30134 | ||
30135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30138 | { |
30139 | arg2 = wxString_in_helper(obj1); | |
30140 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30141 | temp2 = True; |
d14a1e28 RD |
30142 | } |
30143 | { | |
30144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30145 | (arg1)->SetTarget((wxString const &)*arg2); | |
30146 | ||
30147 | wxPyEndAllowThreads(__tstate); | |
30148 | if (PyErr_Occurred()) SWIG_fail; | |
30149 | } | |
30150 | Py_INCREF(Py_None); resultobj = Py_None; | |
30151 | { | |
30152 | if (temp2) | |
30153 | delete arg2; | |
30154 | } | |
30155 | return resultobj; | |
30156 | fail: | |
30157 | { | |
30158 | if (temp2) | |
30159 | delete arg2; | |
30160 | } | |
30161 | return NULL; | |
30162 | } | |
30163 | ||
30164 | ||
c32bde28 | 30165 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30166 | PyObject *obj; |
30167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30168 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30169 | Py_INCREF(obj); | |
30170 | return Py_BuildValue((char *)""); | |
30171 | } | |
c32bde28 | 30172 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30173 | PyObject *resultobj; |
30174 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 30175 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30176 | wxContextHelp *result; |
30177 | PyObject * obj0 = 0 ; | |
30178 | PyObject * obj1 = 0 ; | |
30179 | char *kwnames[] = { | |
30180 | (char *) "window",(char *) "doNow", NULL | |
30181 | }; | |
30182 | ||
30183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30184 | if (obj0) { | |
15afbcd0 RD |
30185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30187 | } |
30188 | if (obj1) { | |
c32bde28 | 30189 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 30190 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30191 | } |
30192 | { | |
e3b71cb8 | 30193 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30195 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30196 | ||
30197 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30198 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30199 | } |
15afbcd0 | 30200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
30201 | return resultobj; |
30202 | fail: | |
30203 | return NULL; | |
30204 | } | |
30205 | ||
30206 | ||
c32bde28 | 30207 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30208 | PyObject *resultobj; |
30209 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30210 | PyObject * obj0 = 0 ; | |
30211 | char *kwnames[] = { | |
30212 | (char *) "self", NULL | |
30213 | }; | |
30214 | ||
30215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30218 | { |
30219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30220 | delete arg1; | |
30221 | ||
30222 | wxPyEndAllowThreads(__tstate); | |
30223 | if (PyErr_Occurred()) SWIG_fail; | |
30224 | } | |
30225 | Py_INCREF(Py_None); resultobj = Py_None; | |
30226 | return resultobj; | |
30227 | fail: | |
30228 | return NULL; | |
30229 | } | |
30230 | ||
30231 | ||
c32bde28 | 30232 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30233 | PyObject *resultobj; |
30234 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30235 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30236 | bool result; | |
30237 | PyObject * obj0 = 0 ; | |
30238 | PyObject * obj1 = 0 ; | |
30239 | char *kwnames[] = { | |
30240 | (char *) "self",(char *) "window", NULL | |
30241 | }; | |
30242 | ||
30243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30246 | if (obj1) { |
15afbcd0 RD |
30247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
30248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30249 | } |
30250 | { | |
30251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30252 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30253 | ||
30254 | wxPyEndAllowThreads(__tstate); | |
30255 | if (PyErr_Occurred()) SWIG_fail; | |
30256 | } | |
4f89f6a3 RD |
30257 | { |
30258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30259 | } | |
d14a1e28 RD |
30260 | return resultobj; |
30261 | fail: | |
30262 | return NULL; | |
30263 | } | |
30264 | ||
30265 | ||
c32bde28 | 30266 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30267 | PyObject *resultobj; |
30268 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30269 | bool result; | |
30270 | PyObject * obj0 = 0 ; | |
30271 | char *kwnames[] = { | |
30272 | (char *) "self", NULL | |
30273 | }; | |
30274 | ||
30275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30278 | { |
30279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30280 | result = (bool)(arg1)->EndContextHelp(); | |
30281 | ||
30282 | wxPyEndAllowThreads(__tstate); | |
30283 | if (PyErr_Occurred()) SWIG_fail; | |
30284 | } | |
4f89f6a3 RD |
30285 | { |
30286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30287 | } | |
d14a1e28 RD |
30288 | return resultobj; |
30289 | fail: | |
30290 | return NULL; | |
30291 | } | |
30292 | ||
30293 | ||
c32bde28 | 30294 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30295 | PyObject *obj; |
30296 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30297 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30298 | Py_INCREF(obj); | |
30299 | return Py_BuildValue((char *)""); | |
30300 | } | |
c32bde28 | 30301 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30302 | PyObject *resultobj; |
30303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 30304 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
30305 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30306 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30307 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30308 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30309 | long arg5 = (long) wxBU_AUTODRAW ; | |
30310 | wxContextHelpButton *result; | |
30311 | wxPoint temp3 ; | |
30312 | wxSize temp4 ; | |
30313 | PyObject * obj0 = 0 ; | |
994141e6 | 30314 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30315 | PyObject * obj2 = 0 ; |
30316 | PyObject * obj3 = 0 ; | |
994141e6 | 30317 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30318 | char *kwnames[] = { |
30319 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30320 | }; | |
30321 | ||
994141e6 | 30322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 30325 | if (obj1) { |
c32bde28 | 30326 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30327 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30328 | } |
d14a1e28 RD |
30329 | if (obj2) { |
30330 | { | |
30331 | arg3 = &temp3; | |
30332 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30333 | } | |
30334 | } | |
30335 | if (obj3) { | |
30336 | { | |
30337 | arg4 = &temp4; | |
30338 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30339 | } | |
30340 | } | |
994141e6 | 30341 | if (obj4) { |
c32bde28 | 30342 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 30343 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30344 | } |
d14a1e28 | 30345 | { |
e3b71cb8 | 30346 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30348 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30349 | ||
30350 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30351 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30352 | } |
15afbcd0 | 30353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
30354 | return resultobj; |
30355 | fail: | |
30356 | return NULL; | |
30357 | } | |
30358 | ||
30359 | ||
c32bde28 | 30360 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30361 | PyObject *obj; |
30362 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30363 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30364 | Py_INCREF(obj); | |
30365 | return Py_BuildValue((char *)""); | |
30366 | } | |
c32bde28 | 30367 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30368 | PyObject *resultobj; |
30369 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30370 | wxHelpProvider *result; | |
30371 | PyObject * obj0 = 0 ; | |
30372 | char *kwnames[] = { | |
30373 | (char *) "helpProvider", NULL | |
30374 | }; | |
30375 | ||
30376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30379 | { |
30380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30381 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30382 | ||
30383 | wxPyEndAllowThreads(__tstate); | |
30384 | if (PyErr_Occurred()) SWIG_fail; | |
30385 | } | |
15afbcd0 | 30386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30387 | return resultobj; |
30388 | fail: | |
30389 | return NULL; | |
30390 | } | |
30391 | ||
30392 | ||
c32bde28 | 30393 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30394 | PyObject *resultobj; |
30395 | wxHelpProvider *result; | |
30396 | char *kwnames[] = { | |
30397 | NULL | |
30398 | }; | |
30399 | ||
30400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30401 | { | |
30402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30403 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30404 | ||
30405 | wxPyEndAllowThreads(__tstate); | |
30406 | if (PyErr_Occurred()) SWIG_fail; | |
30407 | } | |
15afbcd0 | 30408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30409 | return resultobj; |
30410 | fail: | |
30411 | return NULL; | |
30412 | } | |
30413 | ||
30414 | ||
c32bde28 | 30415 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30416 | PyObject *resultobj; |
30417 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30418 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30419 | wxString result; | |
30420 | PyObject * obj0 = 0 ; | |
30421 | PyObject * obj1 = 0 ; | |
30422 | char *kwnames[] = { | |
30423 | (char *) "self",(char *) "window", NULL | |
30424 | }; | |
30425 | ||
30426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30431 | { |
30432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30433 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30434 | ||
30435 | wxPyEndAllowThreads(__tstate); | |
30436 | if (PyErr_Occurred()) SWIG_fail; | |
30437 | } | |
30438 | { | |
30439 | #if wxUSE_UNICODE | |
30440 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30441 | #else | |
30442 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30443 | #endif | |
30444 | } | |
30445 | return resultobj; | |
30446 | fail: | |
30447 | return NULL; | |
30448 | } | |
30449 | ||
30450 | ||
c32bde28 | 30451 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30452 | PyObject *resultobj; |
30453 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30454 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30455 | bool result; | |
30456 | PyObject * obj0 = 0 ; | |
30457 | PyObject * obj1 = 0 ; | |
30458 | char *kwnames[] = { | |
30459 | (char *) "self",(char *) "window", NULL | |
30460 | }; | |
30461 | ||
30462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30467 | { |
30468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30469 | result = (bool)(arg1)->ShowHelp(arg2); | |
30470 | ||
30471 | wxPyEndAllowThreads(__tstate); | |
30472 | if (PyErr_Occurred()) SWIG_fail; | |
30473 | } | |
4f89f6a3 RD |
30474 | { |
30475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30476 | } | |
d14a1e28 RD |
30477 | return resultobj; |
30478 | fail: | |
30479 | return NULL; | |
30480 | } | |
30481 | ||
30482 | ||
c32bde28 | 30483 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30484 | PyObject *resultobj; |
30485 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30486 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30487 | wxString *arg3 = 0 ; | |
e811c8ce | 30488 | bool temp3 = False ; |
d14a1e28 RD |
30489 | PyObject * obj0 = 0 ; |
30490 | PyObject * obj1 = 0 ; | |
30491 | PyObject * obj2 = 0 ; | |
30492 | char *kwnames[] = { | |
30493 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30494 | }; | |
30495 | ||
30496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30501 | { |
30502 | arg3 = wxString_in_helper(obj2); | |
30503 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30504 | temp3 = True; |
d14a1e28 RD |
30505 | } |
30506 | { | |
30507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30508 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30509 | ||
30510 | wxPyEndAllowThreads(__tstate); | |
30511 | if (PyErr_Occurred()) SWIG_fail; | |
30512 | } | |
30513 | Py_INCREF(Py_None); resultobj = Py_None; | |
30514 | { | |
30515 | if (temp3) | |
30516 | delete arg3; | |
30517 | } | |
30518 | return resultobj; | |
30519 | fail: | |
30520 | { | |
30521 | if (temp3) | |
30522 | delete arg3; | |
30523 | } | |
30524 | return NULL; | |
30525 | } | |
30526 | ||
30527 | ||
c32bde28 | 30528 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30529 | PyObject *resultobj; |
30530 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 30531 | int arg2 ; |
d14a1e28 | 30532 | wxString *arg3 = 0 ; |
e811c8ce | 30533 | bool temp3 = False ; |
d14a1e28 | 30534 | PyObject * obj0 = 0 ; |
994141e6 | 30535 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30536 | PyObject * obj2 = 0 ; |
30537 | char *kwnames[] = { | |
30538 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30539 | }; | |
30540 | ||
994141e6 | 30541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30544 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30545 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30546 | { |
30547 | arg3 = wxString_in_helper(obj2); | |
30548 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30549 | temp3 = True; |
d14a1e28 RD |
30550 | } |
30551 | { | |
30552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30553 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30554 | ||
30555 | wxPyEndAllowThreads(__tstate); | |
30556 | if (PyErr_Occurred()) SWIG_fail; | |
30557 | } | |
30558 | Py_INCREF(Py_None); resultobj = Py_None; | |
30559 | { | |
30560 | if (temp3) | |
30561 | delete arg3; | |
30562 | } | |
30563 | return resultobj; | |
30564 | fail: | |
30565 | { | |
30566 | if (temp3) | |
30567 | delete arg3; | |
30568 | } | |
30569 | return NULL; | |
30570 | } | |
30571 | ||
30572 | ||
c32bde28 | 30573 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
15afbcd0 RD |
30574 | PyObject *resultobj; |
30575 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30576 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30577 | PyObject * obj0 = 0 ; | |
30578 | PyObject * obj1 = 0 ; | |
30579 | char *kwnames[] = { | |
30580 | (char *) "self",(char *) "window", NULL | |
30581 | }; | |
30582 | ||
30583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30586 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30588 | { | |
30589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30590 | (arg1)->RemoveHelp(arg2); | |
30591 | ||
30592 | wxPyEndAllowThreads(__tstate); | |
30593 | if (PyErr_Occurred()) SWIG_fail; | |
30594 | } | |
30595 | Py_INCREF(Py_None); resultobj = Py_None; | |
30596 | return resultobj; | |
30597 | fail: | |
30598 | return NULL; | |
30599 | } | |
30600 | ||
30601 | ||
c32bde28 | 30602 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30603 | PyObject *resultobj; |
30604 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30605 | PyObject * obj0 = 0 ; | |
30606 | char *kwnames[] = { | |
30607 | (char *) "self", NULL | |
30608 | }; | |
30609 | ||
30610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30613 | { |
30614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30615 | wxHelpProvider_Destroy(arg1); | |
30616 | ||
30617 | wxPyEndAllowThreads(__tstate); | |
30618 | if (PyErr_Occurred()) SWIG_fail; | |
30619 | } | |
30620 | Py_INCREF(Py_None); resultobj = Py_None; | |
30621 | return resultobj; | |
30622 | fail: | |
30623 | return NULL; | |
30624 | } | |
30625 | ||
30626 | ||
c32bde28 | 30627 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30628 | PyObject *obj; |
30629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30630 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30631 | Py_INCREF(obj); | |
30632 | return Py_BuildValue((char *)""); | |
30633 | } | |
c32bde28 | 30634 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30635 | PyObject *resultobj; |
30636 | wxSimpleHelpProvider *result; | |
30637 | char *kwnames[] = { | |
30638 | NULL | |
30639 | }; | |
30640 | ||
30641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30642 | { | |
30643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30644 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30645 | ||
30646 | wxPyEndAllowThreads(__tstate); | |
30647 | if (PyErr_Occurred()) SWIG_fail; | |
30648 | } | |
15afbcd0 | 30649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
30650 | return resultobj; |
30651 | fail: | |
30652 | return NULL; | |
30653 | } | |
30654 | ||
30655 | ||
c32bde28 | 30656 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30657 | PyObject *obj; |
30658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30659 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30660 | Py_INCREF(obj); | |
30661 | return Py_BuildValue((char *)""); | |
30662 | } | |
c32bde28 | 30663 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30664 | PyObject *resultobj; |
30665 | wxBitmap *arg1 = 0 ; | |
30666 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30667 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30668 | wxGenericDragImage *result; | |
30669 | PyObject * obj0 = 0 ; | |
30670 | PyObject * obj1 = 0 ; | |
30671 | char *kwnames[] = { | |
30672 | (char *) "image",(char *) "cursor", NULL | |
30673 | }; | |
30674 | ||
30675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
30677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30678 | SWIG_fail; | |
e811c8ce | 30679 | if (arg1 == NULL) { |
15afbcd0 RD |
30680 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30681 | SWIG_fail; | |
e811c8ce RD |
30682 | } |
30683 | if (obj1) { | |
15afbcd0 RD |
30684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30685 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30686 | SWIG_fail; | |
e811c8ce | 30687 | if (arg2 == NULL) { |
15afbcd0 RD |
30688 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30689 | SWIG_fail; | |
e811c8ce RD |
30690 | } |
30691 | } | |
30692 | { | |
e3b71cb8 | 30693 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30695 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30696 | ||
30697 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30698 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30699 | } |
15afbcd0 | 30700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30701 | return resultobj; |
30702 | fail: | |
30703 | return NULL; | |
30704 | } | |
30705 | ||
30706 | ||
c32bde28 | 30707 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30708 | PyObject *resultobj; |
30709 | wxIcon *arg1 = 0 ; | |
30710 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30711 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30712 | wxGenericDragImage *result; | |
30713 | PyObject * obj0 = 0 ; | |
30714 | PyObject * obj1 = 0 ; | |
30715 | char *kwnames[] = { | |
30716 | (char *) "image",(char *) "cursor", NULL | |
30717 | }; | |
30718 | ||
30719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
30721 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30722 | SWIG_fail; | |
e811c8ce | 30723 | if (arg1 == NULL) { |
15afbcd0 RD |
30724 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30725 | SWIG_fail; | |
e811c8ce RD |
30726 | } |
30727 | if (obj1) { | |
15afbcd0 RD |
30728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30730 | SWIG_fail; | |
e811c8ce | 30731 | if (arg2 == NULL) { |
15afbcd0 RD |
30732 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30733 | SWIG_fail; | |
e811c8ce RD |
30734 | } |
30735 | } | |
30736 | { | |
e3b71cb8 | 30737 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30739 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30740 | ||
30741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30742 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30743 | } |
15afbcd0 | 30744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30745 | return resultobj; |
30746 | fail: | |
30747 | return NULL; | |
30748 | } | |
30749 | ||
30750 | ||
c32bde28 | 30751 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30752 | PyObject *resultobj; |
30753 | wxString *arg1 = 0 ; | |
30754 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30755 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30756 | wxGenericDragImage *result; | |
30757 | bool temp1 = False ; | |
30758 | PyObject * obj0 = 0 ; | |
30759 | PyObject * obj1 = 0 ; | |
30760 | char *kwnames[] = { | |
30761 | (char *) "str",(char *) "cursor", NULL | |
30762 | }; | |
30763 | ||
30764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30765 | { | |
30766 | arg1 = wxString_in_helper(obj0); | |
30767 | if (arg1 == NULL) SWIG_fail; | |
30768 | temp1 = True; | |
30769 | } | |
30770 | if (obj1) { | |
15afbcd0 RD |
30771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30773 | SWIG_fail; | |
e811c8ce | 30774 | if (arg2 == NULL) { |
15afbcd0 RD |
30775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30776 | SWIG_fail; | |
e811c8ce RD |
30777 | } |
30778 | } | |
30779 | { | |
e3b71cb8 | 30780 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30782 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30783 | ||
30784 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30785 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30786 | } |
15afbcd0 | 30787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30788 | { |
30789 | if (temp1) | |
30790 | delete arg1; | |
30791 | } | |
30792 | return resultobj; | |
30793 | fail: | |
30794 | { | |
30795 | if (temp1) | |
30796 | delete arg1; | |
30797 | } | |
30798 | return NULL; | |
30799 | } | |
30800 | ||
30801 | ||
c32bde28 | 30802 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30803 | PyObject *resultobj; |
30804 | wxPyTreeCtrl *arg1 = 0 ; | |
30805 | wxTreeItemId *arg2 = 0 ; | |
30806 | wxGenericDragImage *result; | |
30807 | PyObject * obj0 = 0 ; | |
30808 | PyObject * obj1 = 0 ; | |
30809 | char *kwnames[] = { | |
30810 | (char *) "treeCtrl",(char *) "id", NULL | |
30811 | }; | |
30812 | ||
30813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
30815 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30816 | SWIG_fail; | |
e811c8ce | 30817 | if (arg1 == NULL) { |
15afbcd0 RD |
30818 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30819 | SWIG_fail; | |
e811c8ce | 30820 | } |
15afbcd0 RD |
30821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
30822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30823 | SWIG_fail; | |
e811c8ce | 30824 | if (arg2 == NULL) { |
15afbcd0 RD |
30825 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30826 | SWIG_fail; | |
e811c8ce RD |
30827 | } |
30828 | { | |
e3b71cb8 | 30829 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30831 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30832 | ||
30833 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30834 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30835 | } |
15afbcd0 | 30836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30837 | return resultobj; |
30838 | fail: | |
30839 | return NULL; | |
30840 | } | |
30841 | ||
30842 | ||
c32bde28 | 30843 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30844 | PyObject *resultobj; |
30845 | wxPyListCtrl *arg1 = 0 ; | |
30846 | long arg2 ; | |
30847 | wxGenericDragImage *result; | |
30848 | PyObject * obj0 = 0 ; | |
994141e6 | 30849 | PyObject * obj1 = 0 ; |
e811c8ce RD |
30850 | char *kwnames[] = { |
30851 | (char *) "listCtrl",(char *) "id", NULL | |
30852 | }; | |
30853 | ||
994141e6 | 30854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
30856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30857 | SWIG_fail; | |
e811c8ce | 30858 | if (arg1 == NULL) { |
15afbcd0 RD |
30859 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30860 | SWIG_fail; | |
994141e6 | 30861 | } |
c32bde28 | 30862 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 30863 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30864 | { |
e3b71cb8 | 30865 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30867 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30868 | ||
30869 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30870 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30871 | } |
15afbcd0 | 30872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30873 | return resultobj; |
30874 | fail: | |
30875 | return NULL; | |
30876 | } | |
30877 | ||
30878 | ||
c32bde28 | 30879 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30880 | PyObject *resultobj; |
30881 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30882 | PyObject * obj0 = 0 ; | |
30883 | char *kwnames[] = { | |
30884 | (char *) "self", NULL | |
30885 | }; | |
30886 | ||
30887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30890 | { |
30891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30892 | delete arg1; | |
30893 | ||
30894 | wxPyEndAllowThreads(__tstate); | |
30895 | if (PyErr_Occurred()) SWIG_fail; | |
30896 | } | |
30897 | Py_INCREF(Py_None); resultobj = Py_None; | |
30898 | return resultobj; | |
30899 | fail: | |
30900 | return NULL; | |
30901 | } | |
30902 | ||
30903 | ||
c32bde28 | 30904 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30905 | PyObject *resultobj; |
30906 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30907 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30908 | PyObject * obj0 = 0 ; | |
30909 | PyObject * obj1 = 0 ; | |
30910 | char *kwnames[] = { | |
30911 | (char *) "self",(char *) "bitmap", NULL | |
30912 | }; | |
30913 | ||
30914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30917 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30919 | { |
30920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30921 | (arg1)->SetBackingBitmap(arg2); | |
30922 | ||
30923 | wxPyEndAllowThreads(__tstate); | |
30924 | if (PyErr_Occurred()) SWIG_fail; | |
30925 | } | |
30926 | Py_INCREF(Py_None); resultobj = Py_None; | |
30927 | return resultobj; | |
30928 | fail: | |
30929 | return NULL; | |
30930 | } | |
30931 | ||
30932 | ||
c32bde28 | 30933 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30934 | PyObject *resultobj; |
30935 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30936 | wxPoint *arg2 = 0 ; | |
30937 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30938 | bool arg4 = (bool) False ; | |
30939 | wxRect *arg5 = (wxRect *) NULL ; | |
30940 | bool result; | |
30941 | wxPoint temp2 ; | |
30942 | PyObject * obj0 = 0 ; | |
30943 | PyObject * obj1 = 0 ; | |
30944 | PyObject * obj2 = 0 ; | |
30945 | PyObject * obj3 = 0 ; | |
30946 | PyObject * obj4 = 0 ; | |
30947 | char *kwnames[] = { | |
30948 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30949 | }; | |
30950 | ||
30951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30954 | { |
30955 | arg2 = &temp2; | |
30956 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30957 | } | |
15afbcd0 RD |
30958 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 30960 | if (obj3) { |
c32bde28 | 30961 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 30962 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce RD |
30963 | } |
30964 | if (obj4) { | |
15afbcd0 RD |
30965 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
30966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30967 | } |
30968 | { | |
30969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30970 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30971 | ||
30972 | wxPyEndAllowThreads(__tstate); | |
30973 | if (PyErr_Occurred()) SWIG_fail; | |
30974 | } | |
4f89f6a3 RD |
30975 | { |
30976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30977 | } | |
e811c8ce RD |
30978 | return resultobj; |
30979 | fail: | |
30980 | return NULL; | |
30981 | } | |
30982 | ||
30983 | ||
c32bde28 | 30984 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30985 | PyObject *resultobj; |
30986 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30987 | wxPoint *arg2 = 0 ; | |
30988 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30989 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30990 | bool result; | |
30991 | wxPoint temp2 ; | |
30992 | PyObject * obj0 = 0 ; | |
30993 | PyObject * obj1 = 0 ; | |
30994 | PyObject * obj2 = 0 ; | |
30995 | PyObject * obj3 = 0 ; | |
30996 | char *kwnames[] = { | |
30997 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30998 | }; | |
30999 | ||
31000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
31001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31003 | { |
31004 | arg2 = &temp2; | |
31005 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31006 | } | |
15afbcd0 RD |
31007 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
31008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31009 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
31010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31011 | { |
31012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31013 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
31014 | ||
31015 | wxPyEndAllowThreads(__tstate); | |
31016 | if (PyErr_Occurred()) SWIG_fail; | |
31017 | } | |
4f89f6a3 RD |
31018 | { |
31019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31020 | } | |
e811c8ce RD |
31021 | return resultobj; |
31022 | fail: | |
31023 | return NULL; | |
31024 | } | |
31025 | ||
31026 | ||
c32bde28 | 31027 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31028 | PyObject *resultobj; |
31029 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31030 | bool result; | |
31031 | PyObject * obj0 = 0 ; | |
31032 | char *kwnames[] = { | |
31033 | (char *) "self", NULL | |
31034 | }; | |
31035 | ||
31036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31039 | { |
31040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31041 | result = (bool)(arg1)->EndDrag(); | |
31042 | ||
31043 | wxPyEndAllowThreads(__tstate); | |
31044 | if (PyErr_Occurred()) SWIG_fail; | |
31045 | } | |
4f89f6a3 RD |
31046 | { |
31047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31048 | } | |
e811c8ce RD |
31049 | return resultobj; |
31050 | fail: | |
31051 | return NULL; | |
31052 | } | |
31053 | ||
31054 | ||
c32bde28 | 31055 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31056 | PyObject *resultobj; |
31057 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31058 | wxPoint *arg2 = 0 ; | |
31059 | bool result; | |
31060 | wxPoint temp2 ; | |
31061 | PyObject * obj0 = 0 ; | |
31062 | PyObject * obj1 = 0 ; | |
31063 | char *kwnames[] = { | |
31064 | (char *) "self",(char *) "pt", NULL | |
31065 | }; | |
31066 | ||
31067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31070 | { |
31071 | arg2 = &temp2; | |
31072 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31073 | } | |
31074 | { | |
31075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31076 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
31077 | ||
31078 | wxPyEndAllowThreads(__tstate); | |
31079 | if (PyErr_Occurred()) SWIG_fail; | |
31080 | } | |
4f89f6a3 RD |
31081 | { |
31082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31083 | } | |
e811c8ce RD |
31084 | return resultobj; |
31085 | fail: | |
31086 | return NULL; | |
31087 | } | |
31088 | ||
31089 | ||
c32bde28 | 31090 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31091 | PyObject *resultobj; |
31092 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31093 | bool result; | |
31094 | PyObject * obj0 = 0 ; | |
31095 | char *kwnames[] = { | |
31096 | (char *) "self", NULL | |
31097 | }; | |
31098 | ||
31099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31102 | { |
31103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31104 | result = (bool)(arg1)->Show(); | |
31105 | ||
31106 | wxPyEndAllowThreads(__tstate); | |
31107 | if (PyErr_Occurred()) SWIG_fail; | |
31108 | } | |
4f89f6a3 RD |
31109 | { |
31110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31111 | } | |
e811c8ce RD |
31112 | return resultobj; |
31113 | fail: | |
31114 | return NULL; | |
31115 | } | |
31116 | ||
31117 | ||
c32bde28 | 31118 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31119 | PyObject *resultobj; |
31120 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31121 | bool result; | |
31122 | PyObject * obj0 = 0 ; | |
31123 | char *kwnames[] = { | |
31124 | (char *) "self", NULL | |
31125 | }; | |
31126 | ||
31127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31130 | { |
31131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31132 | result = (bool)(arg1)->Hide(); | |
31133 | ||
31134 | wxPyEndAllowThreads(__tstate); | |
31135 | if (PyErr_Occurred()) SWIG_fail; | |
31136 | } | |
4f89f6a3 RD |
31137 | { |
31138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31139 | } | |
e811c8ce RD |
31140 | return resultobj; |
31141 | fail: | |
31142 | return NULL; | |
31143 | } | |
31144 | ||
31145 | ||
c32bde28 | 31146 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31147 | PyObject *resultobj; |
31148 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31149 | wxPoint *arg2 = 0 ; | |
31150 | wxRect result; | |
31151 | wxPoint temp2 ; | |
31152 | PyObject * obj0 = 0 ; | |
31153 | PyObject * obj1 = 0 ; | |
31154 | char *kwnames[] = { | |
31155 | (char *) "self",(char *) "pos", NULL | |
31156 | }; | |
31157 | ||
31158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31161 | { |
31162 | arg2 = &temp2; | |
31163 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31164 | } | |
31165 | { | |
31166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31167 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31168 | ||
31169 | wxPyEndAllowThreads(__tstate); | |
31170 | if (PyErr_Occurred()) SWIG_fail; | |
31171 | } | |
31172 | { | |
31173 | wxRect * resultptr; | |
31174 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 31175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
31176 | } |
31177 | return resultobj; | |
31178 | fail: | |
31179 | return NULL; | |
31180 | } | |
31181 | ||
31182 | ||
c32bde28 | 31183 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31184 | PyObject *resultobj; |
31185 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31186 | wxDC *arg2 = 0 ; | |
31187 | wxPoint *arg3 = 0 ; | |
31188 | bool result; | |
31189 | wxPoint temp3 ; | |
31190 | PyObject * obj0 = 0 ; | |
31191 | PyObject * obj1 = 0 ; | |
31192 | PyObject * obj2 = 0 ; | |
31193 | char *kwnames[] = { | |
31194 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31195 | }; | |
31196 | ||
31197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31202 | SWIG_fail; | |
e811c8ce | 31203 | if (arg2 == NULL) { |
15afbcd0 RD |
31204 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31205 | SWIG_fail; | |
e811c8ce RD |
31206 | } |
31207 | { | |
31208 | arg3 = &temp3; | |
31209 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31210 | } | |
31211 | { | |
31212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31213 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31214 | ||
31215 | wxPyEndAllowThreads(__tstate); | |
31216 | if (PyErr_Occurred()) SWIG_fail; | |
31217 | } | |
4f89f6a3 RD |
31218 | { |
31219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31220 | } | |
e811c8ce RD |
31221 | return resultobj; |
31222 | fail: | |
31223 | return NULL; | |
31224 | } | |
31225 | ||
31226 | ||
c32bde28 | 31227 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31228 | PyObject *resultobj; |
31229 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31230 | wxDC *arg2 = 0 ; | |
31231 | wxMemoryDC *arg3 = 0 ; | |
31232 | wxRect *arg4 = 0 ; | |
31233 | wxRect *arg5 = 0 ; | |
31234 | bool result; | |
31235 | wxRect temp4 ; | |
31236 | wxRect temp5 ; | |
31237 | PyObject * obj0 = 0 ; | |
31238 | PyObject * obj1 = 0 ; | |
31239 | PyObject * obj2 = 0 ; | |
31240 | PyObject * obj3 = 0 ; | |
31241 | PyObject * obj4 = 0 ; | |
31242 | char *kwnames[] = { | |
31243 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31244 | }; | |
31245 | ||
31246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31249 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31250 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31251 | SWIG_fail; | |
e811c8ce | 31252 | if (arg2 == NULL) { |
15afbcd0 RD |
31253 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31254 | SWIG_fail; | |
e811c8ce | 31255 | } |
15afbcd0 RD |
31256 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
31257 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31258 | SWIG_fail; | |
e811c8ce | 31259 | if (arg3 == NULL) { |
15afbcd0 RD |
31260 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31261 | SWIG_fail; | |
e811c8ce RD |
31262 | } |
31263 | { | |
31264 | arg4 = &temp4; | |
31265 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31266 | } | |
31267 | { | |
31268 | arg5 = &temp5; | |
31269 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31270 | } | |
31271 | { | |
31272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31273 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31274 | ||
31275 | wxPyEndAllowThreads(__tstate); | |
31276 | if (PyErr_Occurred()) SWIG_fail; | |
31277 | } | |
4f89f6a3 RD |
31278 | { |
31279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31280 | } | |
e811c8ce RD |
31281 | return resultobj; |
31282 | fail: | |
31283 | return NULL; | |
31284 | } | |
31285 | ||
31286 | ||
c32bde28 | 31287 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31288 | PyObject *resultobj; |
31289 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31290 | wxPoint *arg2 = 0 ; | |
31291 | wxPoint *arg3 = 0 ; | |
31292 | bool arg4 ; | |
31293 | bool arg5 ; | |
31294 | bool result; | |
31295 | wxPoint temp2 ; | |
31296 | wxPoint temp3 ; | |
31297 | PyObject * obj0 = 0 ; | |
31298 | PyObject * obj1 = 0 ; | |
31299 | PyObject * obj2 = 0 ; | |
31300 | PyObject * obj3 = 0 ; | |
31301 | PyObject * obj4 = 0 ; | |
31302 | char *kwnames[] = { | |
31303 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31304 | }; | |
31305 | ||
31306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31309 | { |
31310 | arg2 = &temp2; | |
31311 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31312 | } | |
31313 | { | |
31314 | arg3 = &temp3; | |
31315 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31316 | } | |
c32bde28 | 31317 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 31318 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31319 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 31320 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce RD |
31321 | { |
31322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31323 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31324 | ||
31325 | wxPyEndAllowThreads(__tstate); | |
31326 | if (PyErr_Occurred()) SWIG_fail; | |
31327 | } | |
4f89f6a3 RD |
31328 | { |
31329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31330 | } | |
e811c8ce RD |
31331 | return resultobj; |
31332 | fail: | |
31333 | return NULL; | |
31334 | } | |
31335 | ||
31336 | ||
c32bde28 | 31337 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
e811c8ce RD |
31338 | PyObject *obj; |
31339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31340 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31341 | Py_INCREF(obj); | |
31342 | return Py_BuildValue((char *)""); | |
31343 | } | |
31344 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
31345 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL }, |
31346 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31347 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31348 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31349 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31350 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31351 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL }, | |
31352 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31353 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31354 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31355 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31356 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31357 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31358 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31359 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31360 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31361 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31362 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31363 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31364 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31365 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31366 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL }, | |
31367 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31368 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31369 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31370 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31371 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31372 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31373 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31374 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31375 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31376 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31377 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31378 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL }, | |
31379 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31380 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31381 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31382 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31383 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31384 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31385 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31386 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL }, | |
31387 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31388 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31389 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31390 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31391 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31392 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31393 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31394 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31395 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31396 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31397 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31398 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31399 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31400 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31401 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31402 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31403 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31404 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31405 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31406 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31407 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL }, | |
31408 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31409 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31410 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31411 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31412 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31413 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31414 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31415 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31416 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31417 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31418 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31419 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31420 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31421 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL }, | |
31422 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31423 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31424 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31425 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31426 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL }, | |
31427 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31428 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31429 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31430 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31431 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31432 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31433 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL }, | |
31434 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31435 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31436 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31437 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31438 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL }, | |
31439 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31440 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31441 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31442 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31443 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31444 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31445 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31446 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL }, | |
31447 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31448 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31449 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31450 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31451 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31452 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31453 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31454 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31455 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31456 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31457 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31458 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31459 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31460 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31461 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31462 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31463 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31464 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31465 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31466 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31467 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31468 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31469 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL }, | |
31470 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31471 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31472 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31473 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31474 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31475 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31476 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31477 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31478 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL }, | |
31479 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31480 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31481 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31482 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31483 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31484 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31485 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31486 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31487 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31488 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31489 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31490 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31491 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31492 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31493 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31494 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31495 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31496 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31497 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31498 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31499 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31500 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31501 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31502 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31503 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31504 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31505 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31506 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31507 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31508 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31509 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL }, | |
31510 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31511 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31512 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31513 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31514 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31515 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31516 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31517 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31518 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31519 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31520 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31521 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31522 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31523 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31524 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31525 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31526 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31527 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31528 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31529 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31530 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31531 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31532 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31533 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31534 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31535 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31536 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31537 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31538 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31539 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31540 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31541 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31542 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31543 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31544 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31545 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31546 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31547 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31548 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31549 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31550 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31551 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31552 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31553 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31554 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31555 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31556 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31557 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31558 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31559 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31560 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31561 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31562 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31563 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31564 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31565 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL }, | |
31566 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31567 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31568 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31569 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31570 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL }, | |
31571 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31572 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31573 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31574 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31575 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31576 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31577 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31578 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31579 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31580 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31581 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31582 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL }, | |
31583 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31584 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31585 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31586 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31587 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31588 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31589 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31590 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31591 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31592 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31593 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31594 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31595 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL }, | |
31596 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31597 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31598 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31599 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31600 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31601 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31602 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31603 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31604 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31605 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31606 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31607 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL }, | |
31608 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31609 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31610 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31611 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL }, | |
31612 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31613 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31614 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31615 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31616 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31617 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31618 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31619 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31620 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31621 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31622 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31623 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31624 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31625 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31626 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31627 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31628 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31629 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL }, | |
31630 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31631 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31632 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31633 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31634 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31635 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31636 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL }, | |
31637 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31638 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31639 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31640 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31641 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31642 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31643 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31644 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31645 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31646 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31647 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31648 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31649 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31650 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31651 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31652 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31653 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31654 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31655 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31656 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31657 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31658 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31659 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31660 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31661 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31662 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL }, | |
31663 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31664 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31665 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31666 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31667 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31668 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31669 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31670 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL }, | |
31671 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31672 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31673 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31674 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31675 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31676 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31677 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31678 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31679 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31680 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31681 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31682 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31683 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31684 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31685 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31686 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31687 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31688 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31689 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31690 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31691 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL }, | |
31692 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31693 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31694 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31695 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31696 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31697 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL }, | |
31698 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31699 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31700 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31701 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31702 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31703 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31704 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31705 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31706 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31707 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL }, | |
31708 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31709 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL }, | |
31710 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31711 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31712 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31713 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31714 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL }, | |
31715 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31716 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL }, | |
31717 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31718 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31719 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31720 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31721 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL }, | |
31722 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31723 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31724 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31725 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31726 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL }, | |
31727 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31728 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31729 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31730 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31731 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31732 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31733 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31734 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31735 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31736 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31737 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31738 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31739 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31740 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31741 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31742 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31743 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31744 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31745 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31746 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31747 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31748 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31749 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31750 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31751 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31752 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31753 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31754 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31755 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31756 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL }, | |
31757 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31758 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31759 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31760 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31761 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31762 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31763 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31764 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31765 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31766 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31767 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31768 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31769 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31770 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31771 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31772 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31773 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31774 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31775 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31776 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31777 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31778 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31779 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31780 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31781 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31782 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31783 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31784 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31785 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31786 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31787 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31788 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31789 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31790 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31791 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31792 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31793 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31794 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31795 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31796 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31797 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31798 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31799 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31800 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31801 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL }, | |
31802 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31803 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31804 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31805 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31806 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31807 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL }, | |
31808 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31809 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31810 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31811 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31812 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31813 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31814 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31815 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31816 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31817 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31818 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31819 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL }, | |
31820 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31821 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31822 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31823 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31824 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31825 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31826 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31827 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31828 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31829 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31830 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31831 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31832 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31833 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31834 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31835 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31836 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31837 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31838 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31839 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31840 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31841 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31842 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31843 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31844 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31845 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31846 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31847 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31848 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31849 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31850 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31851 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31852 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31853 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31854 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31855 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31856 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31857 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31858 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31859 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31860 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31861 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31862 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31863 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31864 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31865 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31866 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31867 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31868 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31869 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31870 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31871 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL }, | |
31872 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31873 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31874 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31875 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31876 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31877 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31878 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31879 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31880 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31881 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31882 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31883 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31884 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31885 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31886 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31887 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31888 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31889 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31890 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31891 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31892 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31893 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31894 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31895 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31896 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31897 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31898 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL }, | |
31899 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31900 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31901 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31902 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31903 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31904 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31905 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31906 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31907 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31908 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31909 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31910 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31911 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31912 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31913 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31914 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31915 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31916 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31917 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31918 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31919 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31920 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31921 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31922 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31923 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31924 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31925 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31926 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31927 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31928 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31929 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31930 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31931 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31932 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31933 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31934 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31935 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31936 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31937 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31938 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31939 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31940 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31941 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31942 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31943 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31944 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31945 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31946 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31947 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31948 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31949 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31950 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31951 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31952 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31953 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31954 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31955 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31956 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31957 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31958 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31959 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31960 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31961 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31962 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31963 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31964 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31965 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31966 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31967 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31968 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31969 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL }, | |
31970 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31971 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31972 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31973 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31974 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31975 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31976 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31977 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31978 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31979 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31980 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31981 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL }, | |
31982 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31983 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31984 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31985 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31986 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31987 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31988 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31989 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL }, | |
31990 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31991 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31992 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31993 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31994 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31995 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31996 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL }, | |
31997 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31998 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31999 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32000 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32001 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32002 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32003 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32004 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32005 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32006 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32007 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32008 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32009 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32010 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32011 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32012 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL }, | |
32013 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32014 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32015 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32016 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32017 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32018 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32019 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32020 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32021 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32022 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32023 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32024 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32025 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32026 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32027 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32028 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32029 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32030 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32031 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32032 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32033 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32034 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32035 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32036 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32037 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32038 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32039 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32040 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32041 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32042 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32043 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32044 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32045 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32046 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32047 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32048 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32049 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32050 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32051 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32052 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32053 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32054 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32055 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32056 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32057 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32058 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32059 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32060 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32061 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32062 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32063 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32064 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32065 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32066 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32067 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32068 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32069 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32070 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32071 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32072 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32073 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32074 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32075 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32076 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32077 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32078 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32079 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32080 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32081 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32082 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32083 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32084 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32085 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32086 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32087 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL }, | |
32088 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32089 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32090 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32091 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32092 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32093 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32094 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32095 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32096 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32097 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32098 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32099 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32100 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32101 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32102 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32103 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32104 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32105 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32106 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32107 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32108 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32109 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL }, | |
32110 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32111 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32112 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32113 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32114 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL }, | |
32115 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32116 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32117 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32118 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32119 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32120 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32121 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32122 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32123 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32124 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32125 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32126 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32127 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32128 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32129 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32130 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32131 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32132 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32133 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32134 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32135 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32136 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32137 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32138 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32139 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32140 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL }, | |
32141 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32142 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32143 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32144 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32145 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32146 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32147 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32148 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL }, | |
32149 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32150 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32151 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32152 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32153 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL }, | |
32154 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32155 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL }, | |
32156 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32157 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32158 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32159 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32160 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32161 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32162 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32163 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32164 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL }, | |
32165 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32166 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL }, | |
32167 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32168 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32169 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32170 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32171 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32172 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32173 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32174 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32175 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32176 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32177 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32178 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32179 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32180 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32181 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32182 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32183 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32184 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL }, | |
32185 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
32186 | }; |
32187 | ||
32188 | ||
32189 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32190 | ||
32191 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32192 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32193 | } | |
32194 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32195 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32196 | } | |
32197 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
32198 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32199 | } | |
32200 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32201 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32202 | } | |
32203 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32204 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32205 | } | |
32206 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32207 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32208 | } | |
32209 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32210 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32211 | } | |
32212 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32213 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32214 | } | |
32215 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32216 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32217 | } | |
32218 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32219 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32220 | } | |
32221 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32222 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32223 | } | |
32224 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32225 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32226 | } | |
32227 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32228 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32229 | } | |
32230 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32231 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32232 | } | |
32233 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32234 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32235 | } | |
32236 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32237 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32238 | } | |
32239 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32240 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32241 | } | |
32242 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32243 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32244 | } | |
32245 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32246 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32247 | } | |
32248 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32249 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32250 | } | |
32251 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32252 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32253 | } | |
32254 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32255 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32256 | } | |
32257 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32258 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32259 | } | |
32260 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32261 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32262 | } | |
32263 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32264 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32265 | } | |
32266 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32267 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32268 | } | |
32269 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
32270 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32271 | } | |
32272 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32273 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32274 | } | |
32275 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32276 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32277 | } | |
32278 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32279 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32280 | } | |
32281 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32282 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32283 | } | |
32284 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32285 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32286 | } | |
32287 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32288 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32289 | } | |
32290 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32291 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32292 | } | |
32293 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32294 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32295 | } | |
32296 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32297 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32298 | } | |
32299 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32300 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32301 | } | |
32302 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32303 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32304 | } | |
32305 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32306 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32307 | } | |
32308 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32309 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32310 | } | |
32311 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32312 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32313 | } | |
32314 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32315 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32316 | } | |
32317 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32318 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32319 | } | |
32320 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32321 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32322 | } | |
32323 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32324 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32325 | } | |
32326 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32327 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32328 | } | |
32329 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32330 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32331 | } | |
32332 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32333 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32334 | } | |
32335 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32336 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32337 | } | |
32338 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32339 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32340 | } | |
32341 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32342 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32343 | } | |
32344 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32345 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32346 | } | |
d1e20054 RD |
32347 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
32348 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32349 | } | |
d14a1e28 RD |
32350 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
32351 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32352 | } | |
32353 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32354 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32355 | } | |
32356 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32357 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32358 | } | |
32359 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32360 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32361 | } | |
32362 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32363 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32364 | } | |
32365 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32366 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32367 | } | |
32368 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32369 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32370 | } | |
32371 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32372 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32373 | } | |
32374 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32375 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32376 | } | |
32377 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32378 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32379 | } | |
32380 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32381 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32382 | } | |
32383 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32384 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32385 | } | |
32386 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32387 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
32388 | } | |
32389 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32390 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32391 | } | |
32392 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32393 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32394 | } | |
32395 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32396 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32397 | } | |
32398 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32399 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32400 | } | |
32401 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32402 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32403 | } | |
32404 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32405 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32406 | } | |
32407 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32408 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32409 | } | |
32410 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32411 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32412 | } | |
32413 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32414 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32415 | } | |
32416 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32417 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32418 | } | |
32419 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32420 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32421 | } | |
32422 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32423 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32424 | } | |
32425 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32426 | return (void *)((wxControl *) ((wxButton *) x)); | |
32427 | } | |
32428 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32429 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32430 | } | |
32431 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32432 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32433 | } | |
32434 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32435 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32436 | } | |
32437 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32438 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32439 | } | |
32440 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32441 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32442 | } | |
32443 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32444 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32445 | } | |
32446 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32447 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32448 | } | |
32449 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32450 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32451 | } | |
32452 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32453 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32454 | } | |
32455 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32456 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32457 | } | |
32458 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32459 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32460 | } | |
32461 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32462 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32463 | } | |
32464 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32465 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32466 | } | |
32467 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32468 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32469 | } | |
32470 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32471 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32472 | } | |
32473 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32474 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32475 | } | |
32476 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32477 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32478 | } | |
32479 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32480 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32481 | } | |
32482 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32483 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32484 | } | |
d1e20054 RD |
32485 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
32486 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32487 | } | |
d14a1e28 RD |
32488 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
32489 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32490 | } | |
32491 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32492 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32493 | } | |
32494 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32495 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32496 | } | |
32497 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32498 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32499 | } | |
32500 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32501 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32502 | } | |
32503 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32504 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32505 | } | |
32506 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32507 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32508 | } | |
32509 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32510 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32511 | } | |
32512 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32513 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32514 | } | |
32515 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32516 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32517 | } | |
32518 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32519 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32520 | } | |
32521 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32522 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32523 | } | |
32524 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32525 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32526 | } | |
32527 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32528 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32529 | } | |
32530 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32531 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32532 | } | |
32533 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32534 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32535 | } | |
32536 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32537 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32538 | } | |
32539 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32540 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32541 | } | |
32542 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32543 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32544 | } | |
32545 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32546 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32547 | } | |
32548 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32549 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32550 | } | |
32551 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32552 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32553 | } | |
32554 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32555 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32556 | } | |
32557 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32558 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32559 | } | |
32560 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32561 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32562 | } | |
32563 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32564 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32565 | } | |
32566 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32567 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32568 | } | |
32569 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32570 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32571 | } | |
32572 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32573 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32574 | } | |
32575 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32576 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32577 | } | |
32578 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32579 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32580 | } | |
32581 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32582 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32583 | } | |
32584 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32585 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32586 | } | |
32587 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32588 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32589 | } | |
32590 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32591 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32592 | } | |
32593 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32594 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32595 | } | |
32596 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32597 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32598 | } | |
32599 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32600 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32601 | } | |
32602 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32603 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32604 | } | |
32605 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32606 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32607 | } | |
32608 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32609 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32610 | } | |
32611 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32612 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32613 | } | |
32614 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32615 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32616 | } | |
32617 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32618 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32619 | } | |
32620 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32621 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32622 | } | |
32623 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32624 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32625 | } | |
32626 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32627 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32628 | } | |
32629 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32630 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32631 | } | |
32632 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32633 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32634 | } | |
32635 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32636 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32637 | } | |
32638 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32639 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32640 | } | |
32641 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32642 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32643 | } | |
32644 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32645 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32646 | } | |
32647 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32648 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32649 | } | |
32650 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32651 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32652 | } | |
32653 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32654 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32655 | } | |
32656 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32657 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32658 | } | |
32659 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32660 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32661 | } | |
32662 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32663 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32664 | } | |
32665 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32666 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32667 | } | |
32668 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32669 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32670 | } | |
32671 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32672 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32673 | } | |
32674 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32675 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32676 | } | |
32677 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32678 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32679 | } | |
32680 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32681 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32682 | } | |
32683 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32684 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32685 | } | |
32686 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32687 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32688 | } | |
32689 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32690 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32691 | } | |
32692 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32693 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32694 | } | |
32695 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32696 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32697 | } | |
32698 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32699 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32700 | } | |
32701 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32702 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32703 | } | |
32704 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32705 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32706 | } | |
32707 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32708 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32709 | } | |
32710 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32711 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32712 | } | |
32713 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32714 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32715 | } | |
32716 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32717 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32718 | } | |
32719 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32720 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32721 | } | |
32722 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32723 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32724 | } | |
32725 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32726 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32727 | } | |
32728 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32729 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32730 | } | |
32731 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32732 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32733 | } | |
32734 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32735 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32736 | } | |
32737 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32738 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32739 | } | |
32740 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32741 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32742 | } | |
32743 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32744 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32745 | } | |
32746 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32747 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32748 | } | |
32749 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32750 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32751 | } | |
32752 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32753 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32754 | } | |
32755 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32756 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32757 | } | |
32758 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32759 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32760 | } | |
32761 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32762 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32763 | } | |
32764 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32765 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32766 | } | |
32767 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32768 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32769 | } | |
32770 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32771 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32772 | } | |
32773 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32774 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32775 | } | |
32776 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32777 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32778 | } | |
32779 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32780 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32781 | } | |
32782 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32783 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32784 | } | |
32785 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32786 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32787 | } | |
32788 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32789 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32790 | } | |
32791 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32792 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32793 | } | |
32794 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32795 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32796 | } | |
32797 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32798 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32799 | } | |
32800 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32801 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32802 | } | |
32803 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32804 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32805 | } | |
32806 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32807 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32808 | } | |
32809 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32810 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32811 | } | |
32812 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32813 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32814 | } | |
32815 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32816 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32817 | } | |
32818 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32819 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32820 | } | |
32821 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32822 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32823 | } | |
32824 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32825 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32826 | } | |
32827 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32828 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32829 | } | |
32830 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32831 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32832 | } | |
32833 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32834 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32835 | } | |
32836 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32837 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32838 | } | |
32839 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32840 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32841 | } | |
32842 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32843 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32844 | } | |
32845 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32846 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32847 | } | |
32848 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32849 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32850 | } | |
32851 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32852 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32853 | } | |
32854 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32855 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32856 | } | |
32857 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32858 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32859 | } | |
d14a1e28 RD |
32860 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
32861 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32862 | } | |
1e0c8722 RD |
32863 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
32864 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32865 | } | |
d14a1e28 RD |
32866 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
32867 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32868 | } | |
32869 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32870 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32871 | } | |
1e0c8722 RD |
32872 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32873 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32874 | } | |
d14a1e28 RD |
32875 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
32876 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32877 | } | |
32878 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32879 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32880 | } | |
32881 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32882 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32883 | } | |
32884 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32885 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32886 | } | |
32887 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32888 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32889 | } | |
32890 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32891 | return (void *)((wxObject *) ((wxImage *) x)); | |
32892 | } | |
32893 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32894 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32895 | } | |
32896 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32897 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32898 | } | |
d1e20054 RD |
32899 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
32900 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32901 | } | |
e811c8ce RD |
32902 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
32903 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32904 | } | |
d14a1e28 RD |
32905 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
32906 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32907 | } | |
32908 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32909 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32910 | } | |
32911 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32912 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32913 | } | |
32914 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32915 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32916 | } | |
32917 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32918 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32919 | } | |
32920 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32921 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32922 | } | |
32923 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32924 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32925 | } | |
32926 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32927 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32928 | } | |
32929 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32930 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32931 | } | |
32932 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32933 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32934 | } | |
32935 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32936 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32937 | } | |
32938 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32939 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32940 | } | |
32941 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32942 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32943 | } | |
32944 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32945 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32946 | } | |
32947 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32948 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32949 | } | |
32950 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32951 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32952 | } | |
32953 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32954 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32955 | } | |
32956 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32957 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32958 | } | |
32959 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32960 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32961 | } | |
32962 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32963 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32964 | } | |
32965 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32966 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32967 | } | |
32968 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32969 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32970 | } | |
32971 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32972 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32973 | } | |
32974 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32975 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32976 | } | |
32977 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32978 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32979 | } | |
32980 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32981 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32982 | } | |
32983 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32984 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32985 | } | |
32986 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32987 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32988 | } | |
32989 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32990 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32991 | } | |
32992 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32993 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32994 | } | |
32995 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32996 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32997 | } | |
32998 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32999 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33000 | } | |
33001 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
33002 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
33003 | } | |
33004 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
33005 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
33006 | } | |
33007 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
33008 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
33009 | } | |
33010 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
33011 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33012 | } | |
33013 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
33014 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
33015 | } | |
33016 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
33017 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33018 | } | |
33019 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
33020 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
33021 | } | |
33022 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
33023 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
33024 | } | |
33025 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
33026 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
33027 | } | |
33028 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
33029 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
33030 | } | |
33031 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33032 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33033 | } | |
33034 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
33035 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
33036 | } | |
33037 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
33038 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
33039 | } | |
33040 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
33041 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
33042 | } | |
33043 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
33044 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
33045 | } | |
33046 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
33047 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
33048 | } | |
33049 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
33050 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
33051 | } | |
33052 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
33053 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33054 | } | |
33055 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
33056 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33057 | } | |
33058 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
33059 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33060 | } | |
33061 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
33062 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33063 | } | |
33064 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
33065 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
33066 | } | |
33067 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
33068 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
33069 | } | |
33070 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
33071 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
33072 | } | |
33073 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
33074 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
33075 | } | |
33076 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
33077 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
33078 | } | |
33079 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
33080 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
33081 | } | |
33082 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
33083 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
33084 | } | |
33085 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
33086 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
33087 | } | |
33088 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
33089 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33090 | } | |
33091 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
33092 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33093 | } | |
33094 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
33095 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
33096 | } | |
33097 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
33098 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33099 | } | |
33100 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
33101 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
33102 | } | |
33103 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
33104 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33105 | } | |
33106 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33107 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33108 | } | |
33109 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33110 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33111 | } | |
33112 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33113 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33114 | } | |
33115 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33116 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33117 | } | |
33118 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
33119 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33120 | } | |
33121 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
33122 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33123 | } | |
33124 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
33125 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
33126 | } | |
33127 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
33128 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33129 | } | |
33130 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
33131 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33132 | } | |
d1e20054 RD |
33133 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
33134 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33135 | } | |
d14a1e28 RD |
33136 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
33137 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33138 | } | |
33139 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33140 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33141 | } | |
33142 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33143 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33144 | } | |
33145 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33146 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33147 | } | |
33148 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33149 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33150 | } | |
33151 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33152 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33153 | } | |
33154 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33155 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33156 | } | |
33157 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33158 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33159 | } | |
15afbcd0 RD |
33160 | 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}}; |
33161 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33162 | 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}}; | |
33163 | 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}}; | |
33164 | 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}}; | |
33165 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33166 | 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}}; | |
33167 | 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}}; | |
33168 | 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}}; | |
33169 | 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 | 33170 | 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 | 33171 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33172 | 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}}; |
33173 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33174 | 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}}; | |
33175 | 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}}; | |
33176 | 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}}; | |
33177 | 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}}; | |
33178 | 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}}; | |
33179 | 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}}; | |
33180 | 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}}; | |
33181 | 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}}; | |
33182 | 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}}; | |
33183 | 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}}; | |
33184 | 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}}; | |
33185 | 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}}; | |
33186 | 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}}; | |
33187 | 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}}; | |
33188 | 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 | 33189 | 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 |
33190 | 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}}; |
33191 | 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}}; | |
33192 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33193 | 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}}; | |
33194 | 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}}; | |
33195 | 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}}; | |
33196 | 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}}; | |
33197 | 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}}; | |
33198 | 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}}; | |
33199 | 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}}; | |
33200 | 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}}; | |
33201 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33202 | 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 | 33203 | 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 | 33204 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33205 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
33206 | 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}}; | |
33207 | 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}}; | |
33208 | 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}}; | |
33209 | 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}}; | |
33210 | 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}}; | |
33211 | 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}}; | |
33212 | 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}}; | |
33213 | 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}}; | |
33214 | 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}}; | |
33215 | 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}}; | |
33216 | 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}}; | |
33217 | 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}}; | |
33218 | 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}}; | |
33219 | 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}}; | |
33220 | 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}}; | |
33221 | 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}}; | |
33222 | 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}}; | |
33223 | 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}}; | |
33224 | 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}}; | |
33225 | 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}}; | |
33226 | 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}}; | |
33227 | 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}}; | |
33228 | 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}}; | |
33229 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33230 | 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}}; | |
33231 | 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}}; | |
33232 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33233 | 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}}; | |
33234 | 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}}; | |
33235 | 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}}; | |
33236 | 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}}; | |
33237 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33238 | 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}}; | |
33239 | 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}}; | |
33240 | 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}}; | |
33241 | 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}}; | |
33242 | 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}}; | |
33243 | 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}}; | |
33244 | 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 |
33245 | |
33246 | static swig_type_info *swig_types_initial[] = { | |
33247 | _swigt__p_wxTextUrlEvent, | |
33248 | _swigt__p_wxBookCtrlEvent, | |
33249 | _swigt__p_wxSizer, | |
d14a1e28 RD |
33250 | _swigt__p_wxCheckBox, |
33251 | _swigt__p_wxPyTreeCtrl, | |
33252 | _swigt__p_wxEvent, | |
33253 | _swigt__p_wxGenericDirCtrl, | |
33254 | _swigt__p_bool, | |
33255 | _swigt__p_wxPyTreeItemData, | |
33256 | _swigt__p_wxItemContainer, | |
d14a1e28 | 33257 | _swigt__p_wxPyListCtrl, |
74a57fcd | 33258 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
33259 | _swigt__p_wxStaticLine, |
33260 | _swigt__p_wxControl, | |
33261 | _swigt__p_wxPyControl, | |
33262 | _swigt__p_wxGauge, | |
33263 | _swigt__p_wxToolBarBase, | |
33264 | _swigt__p_wxFont, | |
33265 | _swigt__p_wxToggleButton, | |
33266 | _swigt__p_wxRadioButton, | |
33267 | _swigt__p_wxChoice, | |
e811c8ce | 33268 | _swigt__p_wxMemoryDC, |
d14a1e28 | 33269 | _swigt__p_wxListItemAttr, |
58203fa6 | 33270 | _swigt__p_void, |
d14a1e28 RD |
33271 | _swigt__p_int, |
33272 | _swigt__p_wxSize, | |
e811c8ce | 33273 | _swigt__p_wxDC, |
d14a1e28 RD |
33274 | _swigt__p_wxListView, |
33275 | _swigt__p_wxIcon, | |
74a57fcd | 33276 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
33277 | _swigt__p_wxTextCtrl, |
33278 | _swigt__p_wxNotebook, | |
33279 | _swigt__p_wxNotifyEvent, | |
33280 | _swigt__p_wxArrayString, | |
33281 | _swigt__p_wxListbook, | |
33282 | _swigt__p_wxStaticBitmap, | |
33283 | _swigt__p_wxSlider, | |
33284 | _swigt__p_wxStaticBox, | |
33285 | _swigt__p_wxArrayInt, | |
33286 | _swigt__p_wxContextHelp, | |
33287 | _swigt__p_long, | |
33288 | _swigt__p_wxEvtHandler, | |
33289 | _swigt__p_wxListEvent, | |
d14a1e28 | 33290 | _swigt__p_wxCheckListBox, |
74a57fcd | 33291 | _swigt__p_wxListBox, |
d14a1e28 RD |
33292 | _swigt__p_wxBookCtrl, |
33293 | _swigt__p_wxSpinButton, | |
33294 | _swigt__p_wxButton, | |
33295 | _swigt__p_wxBitmapButton, | |
33296 | _swigt__p_wxRect, | |
33297 | _swigt__p_wxContextHelpButton, | |
33298 | _swigt__p_wxRadioBox, | |
33299 | _swigt__p_wxScrollBar, | |
994141e6 | 33300 | _swigt__p_char, |
d14a1e28 RD |
33301 | _swigt__p_wxTreeItemId, |
33302 | _swigt__p_wxComboBox, | |
33303 | _swigt__p_wxHelpEvent, | |
33304 | _swigt__p_wxListItem, | |
33305 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 33306 | _swigt__p_wxSpinEvent, |
e811c8ce | 33307 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
33308 | _swigt__p_wxSpinCtrl, |
33309 | _swigt__p_wxImageList, | |
33310 | _swigt__p_wxHelpProvider, | |
33311 | _swigt__p_wxTextAttr, | |
33312 | _swigt__p_wxSimpleHelpProvider, | |
33313 | _swigt__p_wxPoint, | |
33314 | _swigt__p_wxListbookEvent, | |
33315 | _swigt__p_wxNotebookEvent, | |
33316 | _swigt__p_wxObject, | |
e811c8ce | 33317 | _swigt__p_wxCursor, |
d14a1e28 RD |
33318 | _swigt__p_wxKeyEvent, |
33319 | _swigt__p_wxWindow, | |
33320 | _swigt__p_wxString, | |
33321 | _swigt__p_wxBitmap, | |
33322 | _swigt__p_wxTreeEvent, | |
33323 | _swigt__p_wxMouseEvent, | |
33324 | _swigt__p_wxCommandEvent, | |
33325 | _swigt__p_wxStaticText, | |
33326 | _swigt__p_wxControlWithItems, | |
33327 | _swigt__p_wxToolBarToolBase, | |
33328 | _swigt__p_wxColour, | |
33329 | _swigt__p_wxToolBar, | |
33330 | _swigt__p_wxBookCtrlSizer, | |
33331 | _swigt__p_wxValidator, | |
33332 | 0 | |
33333 | }; | |
33334 | ||
33335 | ||
33336 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33337 | ||
33338 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 33339 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
33340 | |
33341 | #ifdef __cplusplus | |
33342 | } | |
33343 | #endif | |
33344 | ||
33345 | #ifdef __cplusplus | |
33346 | extern "C" | |
33347 | #endif | |
33348 | SWIGEXPORT(void) SWIG_init(void) { | |
33349 | static PyObject *SWIG_globals = 0; | |
33350 | static int typeinit = 0; | |
33351 | PyObject *m, *d; | |
33352 | int i; | |
33353 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33354 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33355 | d = PyModule_GetDict(m); | |
33356 | ||
33357 | if (!typeinit) { | |
33358 | for (i = 0; swig_types_initial[i]; i++) { | |
33359 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33360 | } | |
33361 | typeinit = 1; | |
33362 | } | |
33363 | SWIG_InstallConstants(d,swig_const_table); | |
33364 | ||
b2dc1044 RD |
33365 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
33366 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
c32bde28 RD |
33367 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT)); |
33368 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP)); | |
33369 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT)); | |
33370 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM)); | |
33371 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT)); | |
33372 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW)); | |
b2dc1044 | 33373 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
c32bde28 RD |
33374 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE)); |
33375 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE)); | |
33376 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33377 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED)); | |
33378 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED)); | |
33379 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
33380 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
33381 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33382 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
c32bde28 RD |
33383 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL)); |
33384 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL)); | |
33385 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH)); | |
33386 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
33387 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
33388 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33389 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33390 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33391 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
c32bde28 RD |
33392 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL)); |
33393 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL)); | |
33394 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY)); | |
33395 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE)); | |
33396 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB)); | |
33397 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT)); | |
33398 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER)); | |
33399 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT)); | |
33400 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE)); | |
33401 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH)); | |
33402 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER)); | |
33403 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD)); | |
33404 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL)); | |
33405 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL)); | |
33406 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP)); | |
33407 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP)); | |
33408 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP)); | |
33409 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2)); | |
33410 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33411 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT)); | |
33412 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33413 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER)); | |
33414 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33415 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33416 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33417 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33418 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE)); | |
33419 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE)); | |
33420 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33421 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33422 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33423 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT)); | |
33424 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT)); | |
33425 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33426 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33427 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS)); | |
33428 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN)); | |
33429 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE)); | |
33430 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT)); | |
33431 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW)); | |
33432 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
33433 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
33434 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33435 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33436 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
33437 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
33438 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33439 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
c32bde28 RD |
33440 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL)); |
33441 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL)); | |
33442 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS)); | |
33443 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP)); | |
d14a1e28 | 33444 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
33445 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
33446 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33447 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33448 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 33449 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 33450 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
c32bde28 RD |
33451 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH)); |
33452 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP)); | |
33453 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT)); | |
33454 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT)); | |
33455 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM)); | |
33456 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE)); | |
33457 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE)); | |
33458 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON)); | |
33459 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL)); | |
33460 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
33461 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
33462 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
33463 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT)); |
33464 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP)); | |
33465 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM)); | |
33466 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT)); | |
33467 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT)); | |
33468 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
33469 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
33470 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
33471 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON)); |
33472 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR)); | |
33473 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL)); | |
33474 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL)); | |
33475 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL)); | |
33476 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS)); | |
33477 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT)); | |
33478 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE)); | |
33479 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS)); | |
33480 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT)); | |
33481 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER)); | |
33482 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN)); | |
33483 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT)); | |
33484 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 33485 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
c32bde28 RD |
33486 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES)); |
33487 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES)); | |
33488 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON)); | |
33489 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON)); | |
33490 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST)); | |
33491 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT)); | |
33492 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP)); | |
33493 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT)); | |
33494 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE)); | |
33495 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL)); | |
33496 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS)); | |
33497 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER)); | |
33498 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER)); | |
33499 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL)); | |
33500 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING)); | |
33501 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING)); | |
33502 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE)); | |
33503 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN)); | |
33504 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT)); | |
33505 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE)); | |
33506 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT)); | |
33507 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE)); | |
33508 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA)); | |
33509 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM)); | |
33510 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH)); | |
33511 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT)); | |
33512 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE)); | |
33513 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED)); | |
33514 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED)); | |
33515 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED)); | |
33516 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT)); | |
33517 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED)); | |
33518 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED)); | |
33519 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE)); | |
33520 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED)); | |
33521 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE)); | |
33522 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE)); | |
33523 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW)); | |
33524 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE)); | |
33525 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON)); | |
33526 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33527 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33528 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33529 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT)); | |
33530 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT)); | |
33531 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM)); | |
33532 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE)); | |
33533 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL)); | |
33534 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW)); | |
33535 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT)); | |
33536 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT)); | |
33537 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT)); | |
33538 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT)); | |
33539 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP)); | |
33540 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33541 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT)); | |
33542 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT)); | |
33543 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE)); | |
33544 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER)); | |
33545 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE)); | |
33546 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33547 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS)); | |
33548 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON)); | |
33549 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL)); | |
33550 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP)); | |
33551 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN)); | |
33552 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT)); | |
33553 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
33554 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
33555 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33556 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33557 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33558 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33559 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33560 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33561 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33562 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33563 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33564 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33565 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33566 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33567 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33568 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33569 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33570 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33571 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33572 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33573 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33574 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33575 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33576 | ||
33577 | // Map renamed classes back to their common name for OOR | |
33578 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33579 | ||
b2dc1044 | 33580 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
c32bde28 RD |
33581 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS)); |
33582 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS)); | |
33583 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES)); | |
33584 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT)); | |
33585 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE)); | |
33586 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE)); | |
33587 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED)); | |
33588 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33589 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS)); | |
33590 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT)); | |
33591 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES)); | |
33592 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33593 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE)); | |
33594 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS)); | |
33595 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS)); | |
33596 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS)); | |
33597 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal)); | |
33598 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected)); | |
33599 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded)); | |
33600 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded)); | |
33601 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max)); | |
33602 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE)); | |
33603 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW)); | |
33604 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE)); | |
33605 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33606 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON)); | |
33607 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33608 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33609 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33610 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33611 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT)); | |
33612 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT)); | |
33613 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33614 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33615 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
33616 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
33617 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33618 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33619 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33620 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33621 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33622 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33623 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33624 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33625 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33626 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33627 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33628 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33629 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33630 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33631 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33632 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33633 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33634 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 33635 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
33636 | |
33637 | // Map renamed classes back to their common name for OOR | |
33638 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33639 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33640 | ||
b2dc1044 | 33641 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
c32bde28 RD |
33642 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY)); |
33643 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST)); | |
33644 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS)); | |
33645 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL)); | |
33646 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS)); | |
33647 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP)); | |
33648 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
33649 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
33650 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
33651 | |
33652 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33653 | ||
d14a1e28 RD |
33654 | } |
33655 |