]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
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 |
d55e5bfc RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
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 | ||
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 | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
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 { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
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 *); |
d55e5bfc RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c32bde28 | 128 | |
d55e5bfc 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 | ||
d55e5bfc 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 | ||
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) | |
174 | ||
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) | |
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 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
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[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c32bde28 | 208 | |
d55e5bfc RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
8ac8dba0 RD |
212 | #define SWIGTYPE_p_wxSizer swig_types[1] |
213 | #define SWIGTYPE_p_wxCheckBox swig_types[2] | |
214 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[3] | |
215 | #define SWIGTYPE_p_wxEvent swig_types[4] | |
216 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[5] | |
217 | #define SWIGTYPE_p_bool swig_types[6] | |
218 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[7] | |
219 | #define SWIGTYPE_p_wxItemContainer swig_types[8] | |
220 | #define SWIGTYPE_p_wxPyListCtrl swig_types[9] | |
221 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
222 | #define SWIGTYPE_p_wxStaticLine swig_types[11] | |
223 | #define SWIGTYPE_p_wxControl swig_types[12] | |
224 | #define SWIGTYPE_p_wxPyControl swig_types[13] | |
225 | #define SWIGTYPE_p_wxGauge swig_types[14] | |
226 | #define SWIGTYPE_p_wxToolBarBase swig_types[15] | |
227 | #define SWIGTYPE_p_wxFont swig_types[16] | |
228 | #define SWIGTYPE_p_wxToggleButton swig_types[17] | |
229 | #define SWIGTYPE_p_wxRadioButton swig_types[18] | |
230 | #define SWIGTYPE_p_wxChoice swig_types[19] | |
231 | #define SWIGTYPE_p_wxMemoryDC swig_types[20] | |
232 | #define SWIGTYPE_p_wxListItemAttr swig_types[21] | |
233 | #define SWIGTYPE_p_void swig_types[22] | |
234 | #define SWIGTYPE_p_int swig_types[23] | |
235 | #define SWIGTYPE_p_wxSize swig_types[24] | |
236 | #define SWIGTYPE_p_wxDC swig_types[25] | |
237 | #define SWIGTYPE_p_wxListView swig_types[26] | |
238 | #define SWIGTYPE_p_wxIcon swig_types[27] | |
239 | #define SWIGTYPE_p_wxVisualAttributes swig_types[28] | |
240 | #define SWIGTYPE_p_wxTextCtrl swig_types[29] | |
241 | #define SWIGTYPE_p_wxNotebook swig_types[30] | |
242 | #define SWIGTYPE_p_wxChoicebook swig_types[31] | |
243 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
244 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
245 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
246 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
247 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
248 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
249 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
250 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
251 | #define SWIGTYPE_p_long swig_types[40] | |
252 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[41] | |
ae8162c8 RD |
253 | #define SWIGTYPE_p_wxEvtHandler swig_types[42] |
254 | #define SWIGTYPE_p_wxListEvent swig_types[43] | |
255 | #define SWIGTYPE_p_wxCheckListBox swig_types[44] | |
256 | #define SWIGTYPE_p_wxListBox swig_types[45] | |
8ac8dba0 RD |
257 | #define SWIGTYPE_p_wxSpinButton swig_types[46] |
258 | #define SWIGTYPE_p_wxButton swig_types[47] | |
259 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
260 | #define SWIGTYPE_p_wxRect swig_types[49] | |
261 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
262 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
263 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
264 | #define SWIGTYPE_p_char swig_types[53] | |
265 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
266 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
267 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
268 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
269 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
270 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
271 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
272 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
273 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
274 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
275 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
276 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
277 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
278 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[67] | |
279 | #define SWIGTYPE_p_wxListbookEvent swig_types[68] | |
280 | #define SWIGTYPE_p_wxNotebookEvent swig_types[69] | |
281 | #define SWIGTYPE_p_wxObject swig_types[70] | |
282 | #define SWIGTYPE_p_wxCursor swig_types[71] | |
283 | #define SWIGTYPE_p_wxKeyEvent swig_types[72] | |
284 | #define SWIGTYPE_p_wxWindow swig_types[73] | |
285 | #define SWIGTYPE_p_wxString swig_types[74] | |
286 | #define SWIGTYPE_p_wxBitmap swig_types[75] | |
287 | #define SWIGTYPE_p_wxTreeEvent swig_types[76] | |
288 | #define SWIGTYPE_p_wxMouseEvent swig_types[77] | |
289 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[78] | |
ae8162c8 RD |
290 | #define SWIGTYPE_p_wxCommandEvent swig_types[79] |
291 | #define SWIGTYPE_p_wxStaticText swig_types[80] | |
292 | #define SWIGTYPE_p_wxControlWithItems swig_types[81] | |
293 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[82] | |
294 | #define SWIGTYPE_p_wxColour swig_types[83] | |
295 | #define SWIGTYPE_p_wxToolBar swig_types[84] | |
296 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[85] | |
297 | #define SWIGTYPE_p_wxValidator swig_types[86] | |
298 | static swig_type_info *swig_types[88]; | |
d55e5bfc RD |
299 | |
300 | /* -------- TYPES TABLE (END) -------- */ | |
301 | ||
302 | ||
303 | /*----------------------------------------------- | |
304 | @(target):= _controls_.so | |
305 | ------------------------------------------------*/ | |
306 | #define SWIG_init init_controls_ | |
307 | ||
308 | #define SWIG_name "_controls_" | |
309 | ||
c32bde28 RD |
310 | /* Auxiliar swig macros that appear in the header */ |
311 | ||
312 | #define SWIG_OLDOBJ 1 | |
313 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
314 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
315 | |
316 | #ifdef __cplusplus | |
317 | #define SWIGSTATICINLINE(a) static inline a | |
318 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
319 | #define swig_new_array(size,Type) (new Type[(size)]) |
320 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 321 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
322 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
323 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
324 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
325 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
326 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
327 | |
328 | #else /* C case */ | |
329 | ||
330 | #define SWIGSTATICINLINE(a) static a | |
331 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
332 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
333 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 334 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
335 | #define swig_const_cast(a,Type) (Type)(a) |
336 | #define swig_static_cast(a,Type) (Type)(a) | |
337 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
338 | #define swig_numeric_cast(a,Type) (Type)(a) | |
339 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
340 | |
341 | #endif /* __cplusplus */ | |
342 | ||
343 | ||
c32bde28 RD |
344 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
345 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
346 | /*@@*/ | |
347 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
348 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
349 | /*@@*/ | |
350 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
351 | #define SWIG_From_short PyInt_FromLong | |
352 | /*@@*/ | |
353 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
354 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
355 | /*@@*/ | |
356 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
357 | #define SWIG_From_int PyInt_FromLong | |
358 | /*@@*/ | |
359 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
360 | #define SWIG_From_long PyInt_FromLong | |
361 | /*@@*/ | |
362 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
363 | #define SWIG_From_float PyFloat_FromDouble | |
364 | /*@@*/ | |
365 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
366 | #define SWIG_From_double PyFloat_FromDouble | |
367 | /*@@*/ | |
d55e5bfc RD |
368 | |
369 | ||
370 | #include "wx/wxPython/wxPython.h" | |
371 | #include "wx/wxPython/pyclasses.h" | |
372 | ||
373 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
374 | static const wxString wxPyEmptyString(wxEmptyString); | |
375 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
376 | ||
377 | const wxArrayString wxPyEmptyStringArray; | |
378 | ||
379 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
380 | ||
381 | #include <limits.h> | |
382 | ||
383 | ||
c32bde28 RD |
384 | SWIGSTATICINLINE(int) |
385 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
386 | const char *errmsg) | |
d55e5bfc | 387 | { |
c32bde28 RD |
388 | if (value < min_value) { |
389 | if (errmsg) { | |
390 | PyErr_Format(PyExc_OverflowError, | |
391 | "value %ld is less than '%s' minimum %ld", | |
392 | value, errmsg, min_value); | |
393 | } | |
394 | return 0; | |
395 | } else if (value > max_value) { | |
396 | if (errmsg) { | |
397 | PyErr_Format(PyExc_OverflowError, | |
398 | "value %ld is greater than '%s' maximum %ld", | |
399 | value, errmsg, max_value); | |
d55e5bfc | 400 | } |
c32bde28 | 401 | return 0; |
d55e5bfc | 402 | } |
c32bde28 | 403 | return 1; |
d55e5bfc RD |
404 | } |
405 | ||
406 | ||
c32bde28 RD |
407 | // See my_fragments.i |
408 | SWIGSTATICINLINE(int) | |
409 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 410 | { |
c32bde28 RD |
411 | if (PyNumber_Check(obj)) { |
412 | if (val) *val = PyInt_AsLong(obj); | |
413 | return 1; | |
414 | } | |
d55e5bfc RD |
415 | else { |
416 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
417 | obj->ob_type->tp_name); | |
418 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
419 | Py_DECREF(errmsg); | |
d55e5bfc | 420 | } |
c32bde28 | 421 | return 0; |
d55e5bfc RD |
422 | } |
423 | ||
424 | ||
425 | #if INT_MAX != LONG_MAX | |
426 | SWIGSTATICINLINE(int) | |
c32bde28 | 427 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 428 | { |
c32bde28 RD |
429 | const char* errmsg = val ? "int" : 0; |
430 | long v; | |
431 | if (SWIG_AsVal_long(obj, &v)) { | |
432 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
433 | if (val) *val = swig_numeric_cast(v, int); | |
434 | return 1; | |
435 | } else { | |
436 | return 0; | |
437 | } | |
438 | } else { | |
439 | PyErr_Clear(); | |
440 | } | |
441 | if (val) { | |
442 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
443 | } | |
444 | return 0; | |
d55e5bfc RD |
445 | } |
446 | #else | |
c32bde28 RD |
447 | SWIGSTATICINLINE(int) |
448 | SWIG_AsVal_int(PyObject *obj, int *val) | |
449 | { | |
450 | return SWIG_AsVal_long(obj,(long*)val); | |
451 | } | |
d55e5bfc RD |
452 | #endif |
453 | ||
454 | ||
455 | SWIGSTATICINLINE(int) | |
c32bde28 | 456 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 457 | { |
c32bde28 RD |
458 | int v; |
459 | if (!SWIG_AsVal_int(obj, &v)) { | |
460 | /* | |
461 | this is needed to make valgrind/purify happier. the other | |
462 | solution is throw an exception, but since this code should work | |
463 | with plain C .... | |
464 | */ | |
465 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 466 | } |
c32bde28 | 467 | return v; |
d55e5bfc RD |
468 | } |
469 | ||
470 | ||
c32bde28 RD |
471 | SWIGSTATICINLINE(long) |
472 | SWIG_As_long(PyObject* obj) | |
d55e5bfc | 473 | { |
c32bde28 RD |
474 | long v; |
475 | if (!SWIG_AsVal_long(obj, &v)) { | |
476 | /* | |
477 | this is needed to make valgrind/purify happier. the other | |
478 | solution is throw an exception, but since this code should work | |
479 | with plain C .... | |
480 | */ | |
481 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 482 | } |
c32bde28 | 483 | return v; |
d55e5bfc RD |
484 | } |
485 | ||
c32bde28 RD |
486 | |
487 | SWIGSTATICINLINE(int) | |
488 | SWIG_Check_int(PyObject* obj) | |
489 | { | |
490 | return SWIG_AsVal_int(obj, (int*)0); | |
491 | } | |
d55e5bfc | 492 | |
c32bde28 RD |
493 | |
494 | SWIGSTATICINLINE(int) | |
495 | SWIG_Check_long(PyObject* obj) | |
d55e5bfc | 496 | { |
c32bde28 | 497 | return SWIG_AsVal_long(obj, (long*)0); |
d55e5bfc RD |
498 | } |
499 | ||
c32bde28 | 500 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
d55e5bfc RD |
501 | |
502 | SWIGSTATICINLINE(int) | |
c32bde28 | 503 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
d55e5bfc | 504 | { |
c32bde28 RD |
505 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
506 | if (obj == Py_True) { | |
507 | if (val) *val = true; | |
508 | return 1; | |
509 | } | |
510 | if (obj == Py_False) { | |
511 | if (val) *val = false; | |
d55e5bfc RD |
512 | return 1; |
513 | } | |
c32bde28 RD |
514 | int res = 0; |
515 | if (SWIG_AsVal_int(obj, &res)) { | |
516 | if (val) *val = (bool)res; | |
517 | return 1; | |
518 | } | |
519 | if (val) { | |
520 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
521 | } | |
522 | return 0; | |
523 | } | |
524 | ||
525 | ||
526 | SWIGSTATICINLINE(bool) | |
527 | SWIG_As_bool(PyObject* obj) | |
528 | { | |
529 | bool v; | |
530 | if (!SWIG_AsVal_bool(obj, &v)) { | |
531 | /* | |
532 | this is needed to make valgrind/purify happier. the other | |
533 | solution is throw an exception, but since this code should work | |
534 | with plain C .... | |
535 | */ | |
536 | memset((void*)&v, 0, sizeof(bool)); | |
537 | } | |
538 | return v; | |
539 | } | |
540 | ||
541 | ||
542 | SWIGSTATICINLINE(int) | |
543 | SWIG_Check_bool(PyObject* obj) | |
544 | { | |
545 | return SWIG_AsVal_bool(obj, (bool*)0); | |
d55e5bfc RD |
546 | } |
547 | ||
548 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
549 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
f78cc896 RD |
550 | |
551 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
552 | PyObject* o2; | |
553 | PyObject* o3; | |
554 | ||
555 | if (!target) { | |
556 | target = o; | |
557 | } else if (target == Py_None) { | |
558 | Py_DECREF(Py_None); | |
559 | target = o; | |
560 | } else { | |
561 | if (!PyTuple_Check(target)) { | |
562 | o2 = target; | |
563 | target = PyTuple_New(1); | |
564 | PyTuple_SetItem(target, 0, o2); | |
565 | } | |
566 | o3 = PyTuple_New(1); | |
567 | PyTuple_SetItem(o3, 0, o); | |
568 | ||
569 | o2 = target; | |
570 | target = PySequence_Concat(o2, o3); | |
571 | Py_DECREF(o2); | |
572 | Py_DECREF(o3); | |
573 | } | |
574 | return target; | |
575 | } | |
576 | ||
577 | ||
d55e5bfc RD |
578 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); |
579 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
580 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
581 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
582 | ||
583 | #include <wx/checklst.h> | |
584 | ||
585 | ||
586 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
587 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
588 | if (clientData) { | |
589 | wxPyClientData* data = new wxPyClientData(clientData); | |
590 | self->Insert(item, pos, data); | |
591 | } else | |
592 | self->Insert(item, pos); | |
593 | } | |
594 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
595 | wxArrayInt lst; | |
596 | self->GetSelections(lst); | |
597 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
598 | for(size_t i=0; i<lst.GetCount(); i++) { | |
599 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
600 | } | |
601 | return tup; | |
602 | } | |
603 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ | |
604 | #ifdef __WXMSW__ | |
605 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
606 | self->GetItem(item)->SetTextColour(c); | |
607 | #endif | |
608 | } | |
609 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
610 | #ifdef __WXMSW__ | |
611 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
612 | self->GetItem(item)->SetBackgroundColour(c); | |
613 | #endif | |
614 | } | |
615 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
616 | #ifdef __WXMSW__ | |
617 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
618 | self->GetItem(item)->SetFont(f); | |
619 | #endif | |
620 | } | |
621 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
622 | ||
c32bde28 RD |
623 | // See my_fragments.i |
624 | SWIGSTATICINLINE(int) | |
625 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 626 | { |
c32bde28 RD |
627 | long v = 0; |
628 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
629 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
630 | return 0; | |
d55e5bfc | 631 | } |
c32bde28 RD |
632 | else if (val) |
633 | *val = (unsigned long)v; | |
634 | return 1; | |
d55e5bfc RD |
635 | } |
636 | ||
637 | ||
c32bde28 RD |
638 | SWIGSTATICINLINE(unsigned long) |
639 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 640 | { |
c32bde28 RD |
641 | unsigned long v; |
642 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
643 | /* | |
644 | this is needed to make valgrind/purify happier. the other | |
645 | solution is throw an exception, but since this code should work | |
646 | with plain C .... | |
647 | */ | |
648 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 649 | } |
c32bde28 RD |
650 | return v; |
651 | } | |
652 | ||
653 | ||
654 | SWIGSTATICINLINE(int) | |
655 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
656 | { | |
657 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
658 | } |
659 | ||
660 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
661 | self->AppendText(text); | |
662 | } | |
663 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
664 | return self->GetValue().Mid(from, to - from); | |
665 | } | |
666 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
667 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
668 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
669 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
670 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
671 | ||
672 | #include <wx/slider.h> | |
673 | ||
674 | ||
675 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
676 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
677 | ||
678 | #if !wxUSE_TOGGLEBTN | |
679 | // implement dummy items for platforms that don't have this class | |
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&) | |
689 | { wxPyRaiseNotImplemented(); } | |
690 | ||
691 | wxToggleButton() | |
692 | { wxPyRaiseNotImplemented(); } | |
693 | }; | |
694 | #endif | |
695 | ||
696 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); | |
697 | ||
698 | SWIGSTATICINLINE(PyObject* ) | |
c32bde28 | 699 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
700 | { |
701 | return (value > LONG_MAX) ? | |
702 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 703 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
704 | } |
705 | ||
706 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
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 | ||
d55e5bfc RD |
750 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
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; | |
756 | bool blocked = wxPyBeginBlockThreads(); | |
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 | ||
766 | wxPyEndBlockThreads(blocked); | |
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); | |
d55e5bfc RD |
793 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
794 | ||
84f85550 RD |
795 | // use the virtual version to avoid a confusing assert in the base class |
796 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
797 | ||
d55e5bfc RD |
798 | PYPRIVATE; |
799 | }; | |
800 | ||
801 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
802 | ||
803 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d55e5bfc | 804 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 RD |
805 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
806 | ||
d55e5bfc RD |
807 | |
808 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
809 | wxListItem item; | |
810 | item.SetMask( wxLIST_MASK_STATE | | |
811 | wxLIST_MASK_TEXT | | |
812 | wxLIST_MASK_IMAGE | | |
813 | wxLIST_MASK_DATA | | |
814 | wxLIST_SET_ITEM | | |
815 | wxLIST_MASK_WIDTH | | |
816 | wxLIST_MASK_FORMAT | |
817 | ); | |
818 | if (self->GetColumn(col, item)) | |
819 | return new wxListItem(item); | |
820 | else | |
821 | return NULL; | |
822 | } | |
823 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
824 | wxListItem* info = new wxListItem; | |
825 | info->m_itemId = itemId; | |
826 | info->m_col = col; | |
827 | info->m_mask = 0xFFFF; | |
828 | self->GetItem(*info); | |
829 | return info; | |
830 | } | |
831 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
832 | wxPoint pos; | |
833 | self->GetItemPosition(item, pos); | |
834 | return pos; | |
835 | } | |
836 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
837 | wxRect rect; | |
838 | self->GetItemRect(item, rect, code); | |
839 | return rect; | |
840 | } | |
c32bde28 | 841 | |
d55e5bfc RD |
842 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
843 | if (!PyCallable_Check(func)) | |
ae8162c8 | 844 | return false; |
d55e5bfc RD |
845 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
846 | } | |
847 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
848 | ||
849 | return self; | |
850 | ||
851 | ||
852 | ||
853 | } | |
854 | ||
855 | #include <wx/treectrl.h> | |
856 | #include "wx/wxPython/pytree.h" | |
857 | ||
858 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
ae8162c8 RD |
859 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
860 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
861 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
862 | // C++ version of Python aware wxTreeCtrl | |
863 | class wxPyTreeCtrl : public wxTreeCtrl { | |
864 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
865 | public: | |
866 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
867 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
868 | const wxPoint& pos, | |
869 | const wxSize& size, | |
870 | long style, | |
871 | const wxValidator& validator, | |
872 | const wxString& name) : | |
873 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
874 | ||
875 | bool Create(wxWindow *parent, wxWindowID id, | |
876 | const wxPoint& pos, | |
877 | const wxSize& size, | |
878 | long style, | |
879 | const wxValidator& validator, | |
880 | const wxString& name) { | |
881 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
882 | } | |
883 | ||
884 | ||
885 | int OnCompareItems(const wxTreeItemId& item1, | |
886 | const wxTreeItemId& item2) { | |
887 | int rval = 0; | |
888 | bool found; | |
889 | bool blocked = wxPyBeginBlockThreads(); | |
890 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
ae8162c8 RD |
891 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
892 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d55e5bfc RD |
893 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
894 | Py_DECREF(o1); | |
895 | Py_DECREF(o2); | |
896 | } | |
897 | wxPyEndBlockThreads(blocked); | |
898 | if (! found) | |
899 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
900 | return rval; | |
901 | } | |
902 | PYPRIVATE; | |
903 | }; | |
904 | ||
905 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
906 | ||
907 | ||
908 | ||
909 | #if UINT_MAX < LONG_MAX | |
c32bde28 RD |
910 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
911 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
912 | /*@@*/ | |
d55e5bfc | 913 | #else |
c32bde28 RD |
914 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
915 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
916 | /*@@*/ | |
d55e5bfc RD |
917 | #endif |
918 | ||
919 | ||
c32bde28 RD |
920 | SWIGSTATICINLINE(int) |
921 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
922 | unsigned long max_value, | |
923 | const char *errmsg) | |
d55e5bfc | 924 | { |
c32bde28 RD |
925 | if (value > max_value) { |
926 | if (errmsg) { | |
927 | PyErr_Format(PyExc_OverflowError, | |
928 | "value %ld is greater than '%s' minimum %ld", | |
929 | value, errmsg, max_value); | |
d55e5bfc | 930 | } |
c32bde28 | 931 | return 0; |
d55e5bfc | 932 | } |
c32bde28 RD |
933 | return 1; |
934 | } | |
d55e5bfc RD |
935 | |
936 | ||
937 | #if UINT_MAX != ULONG_MAX | |
c32bde28 RD |
938 | SWIGSTATICINLINE(int) |
939 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 940 | { |
c32bde28 RD |
941 | const char* errmsg = val ? "unsigned int" : 0; |
942 | unsigned long v; | |
943 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
944 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
945 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
946 | return 1; | |
947 | } | |
948 | } else { | |
949 | PyErr_Clear(); | |
950 | } | |
951 | if (val) { | |
952 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
953 | } | |
954 | return 0; | |
d55e5bfc RD |
955 | } |
956 | #else | |
c32bde28 RD |
957 | SWIGSTATICINLINE(unsigned int) |
958 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
959 | { | |
960 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
961 | } | |
d55e5bfc RD |
962 | #endif |
963 | ||
964 | ||
c32bde28 RD |
965 | SWIGSTATICINLINE(unsigned int) |
966 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 967 | { |
c32bde28 RD |
968 | unsigned int v; |
969 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
970 | /* | |
971 | this is needed to make valgrind/purify happier. the other | |
972 | solution is throw an exception, but since this code should work | |
973 | with plain C .... | |
974 | */ | |
975 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 976 | } |
c32bde28 RD |
977 | return v; |
978 | } | |
979 | ||
980 | ||
981 | SWIGSTATICINLINE(int) | |
982 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
983 | { | |
984 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
985 | } |
986 | ||
987 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
988 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
989 | if (data == NULL) { | |
990 | data = new wxPyTreeItemData(); | |
991 | data->SetId(item); // set the id | |
992 | self->SetItemData(item, data); | |
993 | } | |
994 | return data; | |
995 | } | |
996 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
997 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
998 | if (data == NULL) { | |
999 | data = new wxPyTreeItemData(); | |
1000 | data->SetId(item); // set the id | |
1001 | self->SetItemData(item, data); | |
1002 | } | |
1003 | return data->GetData(); | |
1004 | } | |
1005 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
1006 | data->SetId(item); // set the id | |
1007 | self->SetItemData(item, data); | |
1008 | } | |
1009 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
1010 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
1011 | if (data == NULL) { | |
1012 | data = new wxPyTreeItemData(obj); | |
1013 | data->SetId(item); // set the id | |
1014 | self->SetItemData(item, data); | |
1015 | } else | |
1016 | data->SetData(obj); | |
1017 | } | |
1018 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
1019 | bool blocked = wxPyBeginBlockThreads(); | |
1020 | PyObject* rval = PyList_New(0); | |
1021 | wxArrayTreeItemIds array; | |
1022 | size_t num, x; | |
1023 | num = self->GetSelections(array); | |
1024 | for (x=0; x < num; x++) { | |
1025 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 1026 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d55e5bfc | 1027 | PyList_Append(rval, item); |
a07a67e6 | 1028 | Py_DECREF(item); |
d55e5bfc RD |
1029 | } |
1030 | wxPyEndBlockThreads(blocked); | |
1031 | return rval; | |
1032 | } | |
1033 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
1034 | void* cookie = 0; | |
1035 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
1036 | bool blocked = wxPyBeginBlockThreads(); | |
1037 | PyObject* tup = PyTuple_New(2); | |
ae8162c8 | 1038 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
1039 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
1040 | wxPyEndBlockThreads(blocked); | |
1041 | return tup; | |
1042 | } | |
1043 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
1044 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
1045 | bool blocked = wxPyBeginBlockThreads(); | |
1046 | PyObject* tup = PyTuple_New(2); | |
ae8162c8 | 1047 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
1048 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
1049 | wxPyEndBlockThreads(blocked); | |
1050 | return tup; | |
1051 | } | |
1052 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
1053 | wxRect rect; | |
1054 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
1055 | bool blocked = wxPyBeginBlockThreads(); | |
1056 | wxRect* r = new wxRect(rect); | |
ae8162c8 | 1057 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
d55e5bfc RD |
1058 | wxPyEndBlockThreads(blocked); |
1059 | return val; | |
1060 | } | |
1061 | else | |
1062 | RETURN_NONE(); | |
1063 | } | |
1064 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
c32bde28 RD |
1065 | |
1066 | SWIGSTATICINLINE(PyObject*) | |
1067 | SWIG_From_bool(bool value) | |
1068 | { | |
1069 | PyObject *obj = value ? Py_True : Py_False; | |
1070 | Py_INCREF(obj); | |
1071 | return obj; | |
1072 | } | |
1073 | ||
1074 | ||
d55e5bfc RD |
1075 | // C++ version of Python aware wxControl |
1076 | class wxPyControl : public wxControl | |
1077 | { | |
1078 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
1079 | public: | |
1080 | wxPyControl() : wxControl() {} | |
1081 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
1082 | const wxPoint& pos = wxDefaultPosition, | |
1083 | const wxSize& size = wxDefaultSize, | |
1084 | long style = 0, | |
1085 | const wxValidator& validator=wxDefaultValidator, | |
1086 | const wxString& name = wxPyControlNameStr) | |
1087 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
1088 | ||
caef1a4d | 1089 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc RD |
1090 | |
1091 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1092 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1093 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1094 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1095 | ||
1096 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1097 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1098 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1099 | ||
1100 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1101 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1102 | ||
1103 | DEC_PYCALLBACK__(InitDialog); | |
1104 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1105 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1106 | DEC_PYCALLBACK_BOOL_(Validate); | |
1107 | ||
1108 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1109 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1110 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1111 | ||
1112 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1113 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1114 | ||
caef1a4d | 1115 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1116 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 1117 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1118 | |
1119 | PYPRIVATE; | |
1120 | }; | |
1121 | ||
1122 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
1123 | ||
1124 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
1125 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
1126 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
1127 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
1128 | ||
1129 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
1130 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
1131 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
1132 | ||
1133 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
1134 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
1135 | ||
1136 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
1137 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1138 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1139 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1140 | ||
1141 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1142 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1143 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1144 | ||
1145 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1146 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1147 | ||
caef1a4d | 1148 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
d55e5bfc | 1149 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
caef1a4d | 1150 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc RD |
1151 | |
1152 | ||
1153 | ||
1154 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
1155 | ||
1156 | #include <wx/generic/dragimgg.h> | |
1157 | ||
1158 | #ifdef __cplusplus | |
1159 | extern "C" { | |
1160 | #endif | |
c32bde28 | 1161 | static int _wrap_ButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
1162 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1163 | return 1; | |
1164 | } | |
1165 | ||
1166 | ||
1167 | static PyObject *_wrap_ButtonNameStr_get() { | |
1168 | PyObject *pyobj; | |
1169 | ||
1170 | { | |
1171 | #if wxUSE_UNICODE | |
1172 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1173 | #else | |
1174 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1175 | #endif | |
1176 | } | |
1177 | return pyobj; | |
1178 | } | |
1179 | ||
1180 | ||
c32bde28 | 1181 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1182 | PyObject *resultobj; |
1183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1184 | int arg2 = (int) -1 ; |
1185 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1186 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1187 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1188 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1189 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1190 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1191 | long arg6 = (long) 0 ; | |
1192 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1193 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1194 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1195 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1196 | wxButton *result; | |
ae8162c8 | 1197 | bool temp3 = false ; |
d55e5bfc RD |
1198 | wxPoint temp4 ; |
1199 | wxSize temp5 ; | |
ae8162c8 | 1200 | bool temp8 = false ; |
d55e5bfc RD |
1201 | PyObject * obj0 = 0 ; |
1202 | PyObject * obj1 = 0 ; | |
1203 | PyObject * obj2 = 0 ; | |
1204 | PyObject * obj3 = 0 ; | |
1205 | PyObject * obj4 = 0 ; | |
1206 | PyObject * obj5 = 0 ; | |
1207 | PyObject * obj6 = 0 ; | |
1208 | PyObject * obj7 = 0 ; | |
1209 | char *kwnames[] = { | |
1210 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1211 | }; | |
1212 | ||
248ed943 | 1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1216 | if (obj1) { |
c32bde28 | 1217 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1218 | if (PyErr_Occurred()) SWIG_fail; |
1219 | } | |
1220 | if (obj2) { | |
1221 | { | |
1222 | arg3 = wxString_in_helper(obj2); | |
1223 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1224 | temp3 = true; |
248ed943 | 1225 | } |
d55e5bfc RD |
1226 | } |
1227 | if (obj3) { | |
1228 | { | |
1229 | arg4 = &temp4; | |
1230 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1231 | } | |
1232 | } | |
1233 | if (obj4) { | |
1234 | { | |
1235 | arg5 = &temp5; | |
1236 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1237 | } | |
1238 | } | |
1239 | if (obj5) { | |
c32bde28 | 1240 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
1241 | if (PyErr_Occurred()) SWIG_fail; |
1242 | } | |
1243 | if (obj6) { | |
1244 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1246 | SWIG_fail; | |
1247 | if (arg7 == NULL) { | |
1248 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1249 | SWIG_fail; | |
1250 | } | |
1251 | } | |
1252 | if (obj7) { | |
1253 | { | |
1254 | arg8 = wxString_in_helper(obj7); | |
1255 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 1256 | temp8 = true; |
d55e5bfc RD |
1257 | } |
1258 | } | |
1259 | { | |
0439c23b | 1260 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1262 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1263 | ||
1264 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1265 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1266 | } |
b0f7404b | 1267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
1268 | { |
1269 | if (temp3) | |
1270 | delete arg3; | |
1271 | } | |
1272 | { | |
1273 | if (temp8) | |
1274 | delete arg8; | |
1275 | } | |
1276 | return resultobj; | |
1277 | fail: | |
1278 | { | |
1279 | if (temp3) | |
1280 | delete arg3; | |
1281 | } | |
1282 | { | |
1283 | if (temp8) | |
1284 | delete arg8; | |
1285 | } | |
1286 | return NULL; | |
1287 | } | |
1288 | ||
1289 | ||
c32bde28 | 1290 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1291 | PyObject *resultobj; |
1292 | wxButton *result; | |
1293 | char *kwnames[] = { | |
1294 | NULL | |
1295 | }; | |
1296 | ||
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1298 | { | |
0439c23b | 1299 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1301 | result = (wxButton *)new wxButton(); | |
1302 | ||
1303 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1304 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1305 | } |
b0f7404b | 1306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
1307 | return resultobj; |
1308 | fail: | |
1309 | return NULL; | |
1310 | } | |
1311 | ||
1312 | ||
c32bde28 | 1313 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1314 | PyObject *resultobj; |
1315 | wxButton *arg1 = (wxButton *) 0 ; | |
1316 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1317 | int arg3 = (int) -1 ; |
1318 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1319 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
1320 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1321 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1322 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1323 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1324 | long arg7 = (long) 0 ; | |
1325 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1326 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1327 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1328 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1329 | bool result; | |
ae8162c8 | 1330 | bool temp4 = false ; |
d55e5bfc RD |
1331 | wxPoint temp5 ; |
1332 | wxSize temp6 ; | |
ae8162c8 | 1333 | bool temp9 = false ; |
d55e5bfc RD |
1334 | PyObject * obj0 = 0 ; |
1335 | PyObject * obj1 = 0 ; | |
1336 | PyObject * obj2 = 0 ; | |
1337 | PyObject * obj3 = 0 ; | |
1338 | PyObject * obj4 = 0 ; | |
1339 | PyObject * obj5 = 0 ; | |
1340 | PyObject * obj6 = 0 ; | |
1341 | PyObject * obj7 = 0 ; | |
1342 | PyObject * obj8 = 0 ; | |
1343 | char *kwnames[] = { | |
1344 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1345 | }; | |
1346 | ||
248ed943 | 1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1352 | if (obj2) { |
c32bde28 | 1353 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1354 | if (PyErr_Occurred()) SWIG_fail; |
1355 | } | |
1356 | if (obj3) { | |
1357 | { | |
1358 | arg4 = wxString_in_helper(obj3); | |
1359 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1360 | temp4 = true; |
248ed943 | 1361 | } |
d55e5bfc RD |
1362 | } |
1363 | if (obj4) { | |
1364 | { | |
1365 | arg5 = &temp5; | |
1366 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1367 | } | |
1368 | } | |
1369 | if (obj5) { | |
1370 | { | |
1371 | arg6 = &temp6; | |
1372 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1373 | } | |
1374 | } | |
1375 | if (obj6) { | |
c32bde28 | 1376 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
1377 | if (PyErr_Occurred()) SWIG_fail; |
1378 | } | |
1379 | if (obj7) { | |
1380 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1381 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1382 | SWIG_fail; | |
1383 | if (arg8 == NULL) { | |
1384 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1385 | SWIG_fail; | |
1386 | } | |
1387 | } | |
1388 | if (obj8) { | |
1389 | { | |
1390 | arg9 = wxString_in_helper(obj8); | |
1391 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 1392 | temp9 = true; |
d55e5bfc RD |
1393 | } |
1394 | } | |
1395 | { | |
1396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1397 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1398 | ||
1399 | wxPyEndAllowThreads(__tstate); | |
1400 | if (PyErr_Occurred()) SWIG_fail; | |
1401 | } | |
1402 | { | |
1403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1404 | } | |
1405 | { | |
1406 | if (temp4) | |
1407 | delete arg4; | |
1408 | } | |
1409 | { | |
1410 | if (temp9) | |
1411 | delete arg9; | |
1412 | } | |
1413 | return resultobj; | |
1414 | fail: | |
1415 | { | |
1416 | if (temp4) | |
1417 | delete arg4; | |
1418 | } | |
1419 | { | |
1420 | if (temp9) | |
1421 | delete arg9; | |
1422 | } | |
1423 | return NULL; | |
1424 | } | |
1425 | ||
1426 | ||
c32bde28 | 1427 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1428 | PyObject *resultobj; |
1429 | wxButton *arg1 = (wxButton *) 0 ; | |
1430 | PyObject * obj0 = 0 ; | |
1431 | char *kwnames[] = { | |
1432 | (char *) "self", NULL | |
1433 | }; | |
1434 | ||
1435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1438 | { | |
1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1440 | (arg1)->SetDefault(); | |
1441 | ||
1442 | wxPyEndAllowThreads(__tstate); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
1445 | Py_INCREF(Py_None); resultobj = Py_None; | |
1446 | return resultobj; | |
1447 | fail: | |
1448 | return NULL; | |
1449 | } | |
1450 | ||
1451 | ||
c32bde28 | 1452 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1453 | PyObject *resultobj; |
1454 | wxSize result; | |
1455 | char *kwnames[] = { | |
1456 | NULL | |
1457 | }; | |
1458 | ||
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1460 | { | |
1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1462 | result = wxButton::GetDefaultSize(); | |
1463 | ||
1464 | wxPyEndAllowThreads(__tstate); | |
1465 | if (PyErr_Occurred()) SWIG_fail; | |
1466 | } | |
1467 | { | |
1468 | wxSize * resultptr; | |
1469 | resultptr = new wxSize((wxSize &) result); | |
1470 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1471 | } | |
1472 | return resultobj; | |
1473 | fail: | |
1474 | return NULL; | |
1475 | } | |
1476 | ||
1477 | ||
c32bde28 | 1478 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
1479 | PyObject *resultobj; |
1480 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1481 | wxVisualAttributes result; | |
1482 | PyObject * obj0 = 0 ; | |
1483 | char *kwnames[] = { | |
1484 | (char *) "variant", NULL | |
1485 | }; | |
1486 | ||
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1488 | if (obj0) { | |
c32bde28 | 1489 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
1490 | if (PyErr_Occurred()) SWIG_fail; |
1491 | } | |
1492 | { | |
19272049 | 1493 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
1494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1495 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1496 | ||
1497 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1498 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1499 | } |
1500 | { | |
1501 | wxVisualAttributes * resultptr; | |
1502 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1504 | } | |
1505 | return resultobj; | |
1506 | fail: | |
1507 | return NULL; | |
1508 | } | |
1509 | ||
1510 | ||
c32bde28 | 1511 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1512 | PyObject *obj; |
1513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1514 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1515 | Py_INCREF(obj); | |
1516 | return Py_BuildValue((char *)""); | |
1517 | } | |
c32bde28 | 1518 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1519 | PyObject *resultobj; |
1520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1521 | int arg2 = (int) -1 ; |
1522 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1523 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
1524 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1525 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1526 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1527 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1528 | long arg6 = (long) wxBU_AUTODRAW ; | |
1529 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1530 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1531 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1532 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1533 | wxBitmapButton *result; | |
1534 | wxPoint temp4 ; | |
1535 | wxSize temp5 ; | |
ae8162c8 | 1536 | bool temp8 = false ; |
d55e5bfc RD |
1537 | PyObject * obj0 = 0 ; |
1538 | PyObject * obj1 = 0 ; | |
1539 | PyObject * obj2 = 0 ; | |
1540 | PyObject * obj3 = 0 ; | |
1541 | PyObject * obj4 = 0 ; | |
1542 | PyObject * obj5 = 0 ; | |
1543 | PyObject * obj6 = 0 ; | |
1544 | PyObject * obj7 = 0 ; | |
1545 | char *kwnames[] = { | |
1546 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1547 | }; | |
1548 | ||
248ed943 | 1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1552 | if (obj1) { |
c32bde28 | 1553 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1554 | if (PyErr_Occurred()) SWIG_fail; |
1555 | } | |
1556 | if (obj2) { | |
1557 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1559 | SWIG_fail; |
248ed943 RD |
1560 | if (arg3 == NULL) { |
1561 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1562 | SWIG_fail; | |
1563 | } | |
d55e5bfc RD |
1564 | } |
1565 | if (obj3) { | |
1566 | { | |
1567 | arg4 = &temp4; | |
1568 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1569 | } | |
1570 | } | |
1571 | if (obj4) { | |
1572 | { | |
1573 | arg5 = &temp5; | |
1574 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1575 | } | |
1576 | } | |
1577 | if (obj5) { | |
c32bde28 | 1578 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
1579 | if (PyErr_Occurred()) SWIG_fail; |
1580 | } | |
1581 | if (obj6) { | |
1582 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1584 | SWIG_fail; | |
1585 | if (arg7 == NULL) { | |
1586 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1587 | SWIG_fail; | |
1588 | } | |
1589 | } | |
1590 | if (obj7) { | |
1591 | { | |
1592 | arg8 = wxString_in_helper(obj7); | |
1593 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 1594 | temp8 = true; |
d55e5bfc RD |
1595 | } |
1596 | } | |
1597 | { | |
0439c23b | 1598 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1600 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1601 | ||
1602 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1603 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1604 | } |
b0f7404b | 1605 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
1606 | { |
1607 | if (temp8) | |
1608 | delete arg8; | |
1609 | } | |
1610 | return resultobj; | |
1611 | fail: | |
1612 | { | |
1613 | if (temp8) | |
1614 | delete arg8; | |
1615 | } | |
1616 | return NULL; | |
1617 | } | |
1618 | ||
1619 | ||
c32bde28 | 1620 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1621 | PyObject *resultobj; |
1622 | wxBitmapButton *result; | |
1623 | char *kwnames[] = { | |
1624 | NULL | |
1625 | }; | |
1626 | ||
1627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1628 | { | |
0439c23b | 1629 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1631 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1634 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1635 | } |
b0f7404b | 1636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
1637 | return resultobj; |
1638 | fail: | |
1639 | return NULL; | |
1640 | } | |
1641 | ||
1642 | ||
c32bde28 | 1643 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1644 | PyObject *resultobj; |
1645 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1646 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1647 | int arg3 = (int) -1 ; |
1648 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1649 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
1650 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1651 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1652 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1653 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1654 | long arg7 = (long) wxBU_AUTODRAW ; | |
1655 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1656 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1657 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1658 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1659 | bool result; | |
1660 | wxPoint temp5 ; | |
1661 | wxSize temp6 ; | |
ae8162c8 | 1662 | bool temp9 = false ; |
d55e5bfc RD |
1663 | PyObject * obj0 = 0 ; |
1664 | PyObject * obj1 = 0 ; | |
1665 | PyObject * obj2 = 0 ; | |
1666 | PyObject * obj3 = 0 ; | |
1667 | PyObject * obj4 = 0 ; | |
1668 | PyObject * obj5 = 0 ; | |
1669 | PyObject * obj6 = 0 ; | |
1670 | PyObject * obj7 = 0 ; | |
1671 | PyObject * obj8 = 0 ; | |
1672 | char *kwnames[] = { | |
1673 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1674 | }; | |
1675 | ||
248ed943 | 1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1681 | if (obj2) { |
c32bde28 | 1682 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1683 | if (PyErr_Occurred()) SWIG_fail; |
1684 | } | |
1685 | if (obj3) { | |
1686 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1687 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1688 | SWIG_fail; |
248ed943 RD |
1689 | if (arg4 == NULL) { |
1690 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1691 | SWIG_fail; | |
1692 | } | |
d55e5bfc RD |
1693 | } |
1694 | if (obj4) { | |
1695 | { | |
1696 | arg5 = &temp5; | |
1697 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1698 | } | |
1699 | } | |
1700 | if (obj5) { | |
1701 | { | |
1702 | arg6 = &temp6; | |
1703 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1704 | } | |
1705 | } | |
1706 | if (obj6) { | |
c32bde28 | 1707 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
1708 | if (PyErr_Occurred()) SWIG_fail; |
1709 | } | |
1710 | if (obj7) { | |
1711 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1713 | SWIG_fail; | |
1714 | if (arg8 == NULL) { | |
1715 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1716 | SWIG_fail; | |
1717 | } | |
1718 | } | |
1719 | if (obj8) { | |
1720 | { | |
1721 | arg9 = wxString_in_helper(obj8); | |
1722 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 1723 | temp9 = true; |
d55e5bfc RD |
1724 | } |
1725 | } | |
1726 | { | |
1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1728 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1729 | ||
1730 | wxPyEndAllowThreads(__tstate); | |
1731 | if (PyErr_Occurred()) SWIG_fail; | |
1732 | } | |
1733 | { | |
1734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1735 | } | |
1736 | { | |
1737 | if (temp9) | |
1738 | delete arg9; | |
1739 | } | |
1740 | return resultobj; | |
1741 | fail: | |
1742 | { | |
1743 | if (temp9) | |
1744 | delete arg9; | |
1745 | } | |
1746 | return NULL; | |
1747 | } | |
1748 | ||
1749 | ||
c32bde28 | 1750 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1751 | PyObject *resultobj; |
1752 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1753 | wxBitmap result; | |
1754 | PyObject * obj0 = 0 ; | |
1755 | char *kwnames[] = { | |
1756 | (char *) "self", NULL | |
1757 | }; | |
1758 | ||
1759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1762 | { | |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | result = (arg1)->GetBitmapLabel(); | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
1769 | { | |
1770 | wxBitmap * resultptr; | |
1771 | resultptr = new wxBitmap((wxBitmap &) result); | |
1772 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1773 | } | |
1774 | return resultobj; | |
1775 | fail: | |
1776 | return NULL; | |
1777 | } | |
1778 | ||
1779 | ||
c32bde28 | 1780 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1781 | PyObject *resultobj; |
1782 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1783 | wxBitmap result; | |
1784 | PyObject * obj0 = 0 ; | |
1785 | char *kwnames[] = { | |
1786 | (char *) "self", NULL | |
1787 | }; | |
1788 | ||
1789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1792 | { | |
1793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1794 | result = (arg1)->GetBitmapDisabled(); | |
1795 | ||
1796 | wxPyEndAllowThreads(__tstate); | |
1797 | if (PyErr_Occurred()) SWIG_fail; | |
1798 | } | |
1799 | { | |
1800 | wxBitmap * resultptr; | |
1801 | resultptr = new wxBitmap((wxBitmap &) result); | |
1802 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1803 | } | |
1804 | return resultobj; | |
1805 | fail: | |
1806 | return NULL; | |
1807 | } | |
1808 | ||
1809 | ||
c32bde28 | 1810 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1811 | PyObject *resultobj; |
1812 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1813 | wxBitmap result; | |
1814 | PyObject * obj0 = 0 ; | |
1815 | char *kwnames[] = { | |
1816 | (char *) "self", NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1822 | { | |
1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1824 | result = (arg1)->GetBitmapFocus(); | |
1825 | ||
1826 | wxPyEndAllowThreads(__tstate); | |
1827 | if (PyErr_Occurred()) SWIG_fail; | |
1828 | } | |
1829 | { | |
1830 | wxBitmap * resultptr; | |
1831 | resultptr = new wxBitmap((wxBitmap &) result); | |
1832 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1833 | } | |
1834 | return resultobj; | |
1835 | fail: | |
1836 | return NULL; | |
1837 | } | |
1838 | ||
1839 | ||
c32bde28 | 1840 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1841 | PyObject *resultobj; |
1842 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1843 | wxBitmap result; | |
1844 | PyObject * obj0 = 0 ; | |
1845 | char *kwnames[] = { | |
1846 | (char *) "self", NULL | |
1847 | }; | |
1848 | ||
1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1852 | { | |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | result = (arg1)->GetBitmapSelected(); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
1858 | } | |
1859 | { | |
1860 | wxBitmap * resultptr; | |
1861 | resultptr = new wxBitmap((wxBitmap &) result); | |
1862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1863 | } | |
1864 | return resultobj; | |
1865 | fail: | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
c32bde28 | 1870 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1871 | PyObject *resultobj; |
1872 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1873 | wxBitmap *arg2 = 0 ; | |
1874 | PyObject * obj0 = 0 ; | |
1875 | PyObject * obj1 = 0 ; | |
1876 | char *kwnames[] = { | |
1877 | (char *) "self",(char *) "bitmap", NULL | |
1878 | }; | |
1879 | ||
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1885 | SWIG_fail; | |
1886 | if (arg2 == NULL) { | |
1887 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1888 | SWIG_fail; | |
1889 | } | |
1890 | { | |
1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1892 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1893 | ||
1894 | wxPyEndAllowThreads(__tstate); | |
1895 | if (PyErr_Occurred()) SWIG_fail; | |
1896 | } | |
1897 | Py_INCREF(Py_None); resultobj = Py_None; | |
1898 | return resultobj; | |
1899 | fail: | |
1900 | return NULL; | |
1901 | } | |
1902 | ||
1903 | ||
c32bde28 | 1904 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1905 | PyObject *resultobj; |
1906 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1907 | wxBitmap *arg2 = 0 ; | |
1908 | PyObject * obj0 = 0 ; | |
1909 | PyObject * obj1 = 0 ; | |
1910 | char *kwnames[] = { | |
1911 | (char *) "self",(char *) "bitmap", NULL | |
1912 | }; | |
1913 | ||
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1917 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1919 | SWIG_fail; | |
1920 | if (arg2 == NULL) { | |
1921 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1922 | SWIG_fail; | |
1923 | } | |
1924 | { | |
1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1926 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1927 | ||
1928 | wxPyEndAllowThreads(__tstate); | |
1929 | if (PyErr_Occurred()) SWIG_fail; | |
1930 | } | |
1931 | Py_INCREF(Py_None); resultobj = Py_None; | |
1932 | return resultobj; | |
1933 | fail: | |
1934 | return NULL; | |
1935 | } | |
1936 | ||
1937 | ||
c32bde28 | 1938 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1939 | PyObject *resultobj; |
1940 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1941 | wxBitmap *arg2 = 0 ; | |
1942 | PyObject * obj0 = 0 ; | |
1943 | PyObject * obj1 = 0 ; | |
1944 | char *kwnames[] = { | |
1945 | (char *) "self",(char *) "bitmap", NULL | |
1946 | }; | |
1947 | ||
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1953 | SWIG_fail; | |
1954 | if (arg2 == NULL) { | |
1955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1956 | SWIG_fail; | |
1957 | } | |
1958 | { | |
1959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1960 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1961 | ||
1962 | wxPyEndAllowThreads(__tstate); | |
1963 | if (PyErr_Occurred()) SWIG_fail; | |
1964 | } | |
1965 | Py_INCREF(Py_None); resultobj = Py_None; | |
1966 | return resultobj; | |
1967 | fail: | |
1968 | return NULL; | |
1969 | } | |
1970 | ||
1971 | ||
c32bde28 | 1972 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1973 | PyObject *resultobj; |
1974 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1975 | wxBitmap *arg2 = 0 ; | |
1976 | PyObject * obj0 = 0 ; | |
1977 | PyObject * obj1 = 0 ; | |
1978 | char *kwnames[] = { | |
1979 | (char *) "self",(char *) "bitmap", NULL | |
1980 | }; | |
1981 | ||
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1985 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1987 | SWIG_fail; | |
1988 | if (arg2 == NULL) { | |
1989 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1990 | SWIG_fail; | |
1991 | } | |
1992 | { | |
1993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1994 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1995 | ||
1996 | wxPyEndAllowThreads(__tstate); | |
1997 | if (PyErr_Occurred()) SWIG_fail; | |
1998 | } | |
1999 | Py_INCREF(Py_None); resultobj = Py_None; | |
2000 | return resultobj; | |
2001 | fail: | |
2002 | return NULL; | |
2003 | } | |
2004 | ||
2005 | ||
c32bde28 | 2006 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2007 | PyObject *resultobj; |
2008 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2009 | int arg2 ; | |
2010 | int arg3 ; | |
2011 | PyObject * obj0 = 0 ; | |
2012 | PyObject * obj1 = 0 ; | |
2013 | PyObject * obj2 = 0 ; | |
2014 | char *kwnames[] = { | |
2015 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2016 | }; | |
2017 | ||
2018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
2020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2021 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2022 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2023 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2024 | if (PyErr_Occurred()) SWIG_fail; |
2025 | { | |
2026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2027 | (arg1)->SetMargins(arg2,arg3); | |
2028 | ||
2029 | wxPyEndAllowThreads(__tstate); | |
2030 | if (PyErr_Occurred()) SWIG_fail; | |
2031 | } | |
2032 | Py_INCREF(Py_None); resultobj = Py_None; | |
2033 | return resultobj; | |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
c32bde28 | 2039 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2040 | PyObject *resultobj; |
2041 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2042 | int result; | |
2043 | PyObject * obj0 = 0 ; | |
2044 | char *kwnames[] = { | |
2045 | (char *) "self", NULL | |
2046 | }; | |
2047 | ||
2048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
2049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
2050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2051 | { | |
2052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2053 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
2054 | ||
2055 | wxPyEndAllowThreads(__tstate); | |
2056 | if (PyErr_Occurred()) SWIG_fail; | |
2057 | } | |
c32bde28 | 2058 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2059 | return resultobj; |
2060 | fail: | |
2061 | return NULL; | |
2062 | } | |
2063 | ||
2064 | ||
c32bde28 | 2065 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2066 | PyObject *resultobj; |
2067 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2068 | int result; | |
2069 | PyObject * obj0 = 0 ; | |
2070 | char *kwnames[] = { | |
2071 | (char *) "self", NULL | |
2072 | }; | |
2073 | ||
2074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
2075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
2076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2077 | { | |
2078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2079 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
2080 | ||
2081 | wxPyEndAllowThreads(__tstate); | |
2082 | if (PyErr_Occurred()) SWIG_fail; | |
2083 | } | |
c32bde28 | 2084 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2085 | return resultobj; |
2086 | fail: | |
2087 | return NULL; | |
2088 | } | |
2089 | ||
2090 | ||
c32bde28 | 2091 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2092 | PyObject *obj; |
2093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2094 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
2095 | Py_INCREF(obj); | |
2096 | return Py_BuildValue((char *)""); | |
2097 | } | |
c32bde28 | 2098 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
2099 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
2100 | return 1; | |
2101 | } | |
2102 | ||
2103 | ||
2104 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
2105 | PyObject *pyobj; | |
2106 | ||
2107 | { | |
2108 | #if wxUSE_UNICODE | |
2109 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2110 | #else | |
2111 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2112 | #endif | |
2113 | } | |
2114 | return pyobj; | |
2115 | } | |
2116 | ||
2117 | ||
c32bde28 | 2118 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2119 | PyObject *resultobj; |
2120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2121 | int arg2 = (int) -1 ; |
2122 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2123 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
2124 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2125 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2126 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2127 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2128 | long arg6 = (long) 0 ; | |
2129 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2130 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2131 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
2132 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2133 | wxCheckBox *result; | |
ae8162c8 | 2134 | bool temp3 = false ; |
d55e5bfc RD |
2135 | wxPoint temp4 ; |
2136 | wxSize temp5 ; | |
ae8162c8 | 2137 | bool temp8 = false ; |
d55e5bfc RD |
2138 | PyObject * obj0 = 0 ; |
2139 | PyObject * obj1 = 0 ; | |
2140 | PyObject * obj2 = 0 ; | |
2141 | PyObject * obj3 = 0 ; | |
2142 | PyObject * obj4 = 0 ; | |
2143 | PyObject * obj5 = 0 ; | |
2144 | PyObject * obj6 = 0 ; | |
2145 | PyObject * obj7 = 0 ; | |
2146 | char *kwnames[] = { | |
2147 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2148 | }; | |
2149 | ||
248ed943 | 2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
2151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2153 | if (obj1) { |
c32bde28 | 2154 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
2155 | if (PyErr_Occurred()) SWIG_fail; |
2156 | } | |
2157 | if (obj2) { | |
2158 | { | |
2159 | arg3 = wxString_in_helper(obj2); | |
2160 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2161 | temp3 = true; |
248ed943 | 2162 | } |
d55e5bfc RD |
2163 | } |
2164 | if (obj3) { | |
2165 | { | |
2166 | arg4 = &temp4; | |
2167 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2168 | } | |
2169 | } | |
2170 | if (obj4) { | |
2171 | { | |
2172 | arg5 = &temp5; | |
2173 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2174 | } | |
2175 | } | |
2176 | if (obj5) { | |
c32bde28 | 2177 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
2178 | if (PyErr_Occurred()) SWIG_fail; |
2179 | } | |
2180 | if (obj6) { | |
2181 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2182 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2183 | SWIG_fail; | |
2184 | if (arg7 == NULL) { | |
2185 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2186 | SWIG_fail; | |
2187 | } | |
2188 | } | |
2189 | if (obj7) { | |
2190 | { | |
2191 | arg8 = wxString_in_helper(obj7); | |
2192 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2193 | temp8 = true; |
d55e5bfc RD |
2194 | } |
2195 | } | |
2196 | { | |
0439c23b | 2197 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2199 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2200 | ||
2201 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2202 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2203 | } |
2204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2205 | { | |
2206 | if (temp3) | |
2207 | delete arg3; | |
2208 | } | |
2209 | { | |
2210 | if (temp8) | |
2211 | delete arg8; | |
2212 | } | |
2213 | return resultobj; | |
2214 | fail: | |
2215 | { | |
2216 | if (temp3) | |
2217 | delete arg3; | |
2218 | } | |
2219 | { | |
2220 | if (temp8) | |
2221 | delete arg8; | |
2222 | } | |
2223 | return NULL; | |
2224 | } | |
2225 | ||
2226 | ||
c32bde28 | 2227 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2228 | PyObject *resultobj; |
2229 | wxCheckBox *result; | |
2230 | char *kwnames[] = { | |
2231 | NULL | |
2232 | }; | |
2233 | ||
2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2235 | { | |
0439c23b | 2236 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2238 | result = (wxCheckBox *)new wxCheckBox(); | |
2239 | ||
2240 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2241 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2242 | } |
2243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2244 | return resultobj; | |
2245 | fail: | |
2246 | return NULL; | |
2247 | } | |
2248 | ||
2249 | ||
c32bde28 | 2250 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2251 | PyObject *resultobj; |
2252 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2253 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2254 | int arg3 = (int) -1 ; |
2255 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2256 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
2257 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2258 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2259 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2260 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2261 | long arg7 = (long) 0 ; | |
2262 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2263 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2264 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2265 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2266 | bool result; | |
ae8162c8 | 2267 | bool temp4 = false ; |
d55e5bfc RD |
2268 | wxPoint temp5 ; |
2269 | wxSize temp6 ; | |
ae8162c8 | 2270 | bool temp9 = false ; |
d55e5bfc RD |
2271 | PyObject * obj0 = 0 ; |
2272 | PyObject * obj1 = 0 ; | |
2273 | PyObject * obj2 = 0 ; | |
2274 | PyObject * obj3 = 0 ; | |
2275 | PyObject * obj4 = 0 ; | |
2276 | PyObject * obj5 = 0 ; | |
2277 | PyObject * obj6 = 0 ; | |
2278 | PyObject * obj7 = 0 ; | |
2279 | PyObject * obj8 = 0 ; | |
2280 | char *kwnames[] = { | |
2281 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2282 | }; | |
2283 | ||
248ed943 | 2284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
2285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2289 | if (obj2) { |
c32bde28 | 2290 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
2291 | if (PyErr_Occurred()) SWIG_fail; |
2292 | } | |
2293 | if (obj3) { | |
2294 | { | |
2295 | arg4 = wxString_in_helper(obj3); | |
2296 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2297 | temp4 = true; |
248ed943 | 2298 | } |
d55e5bfc RD |
2299 | } |
2300 | if (obj4) { | |
2301 | { | |
2302 | arg5 = &temp5; | |
2303 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2304 | } | |
2305 | } | |
2306 | if (obj5) { | |
2307 | { | |
2308 | arg6 = &temp6; | |
2309 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2310 | } | |
2311 | } | |
2312 | if (obj6) { | |
c32bde28 | 2313 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
2314 | if (PyErr_Occurred()) SWIG_fail; |
2315 | } | |
2316 | if (obj7) { | |
2317 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2319 | SWIG_fail; | |
2320 | if (arg8 == NULL) { | |
2321 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2322 | SWIG_fail; | |
2323 | } | |
2324 | } | |
2325 | if (obj8) { | |
2326 | { | |
2327 | arg9 = wxString_in_helper(obj8); | |
2328 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2329 | temp9 = true; |
d55e5bfc RD |
2330 | } |
2331 | } | |
2332 | { | |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2334 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2335 | ||
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
2339 | { | |
2340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2341 | } | |
2342 | { | |
2343 | if (temp4) | |
2344 | delete arg4; | |
2345 | } | |
2346 | { | |
2347 | if (temp9) | |
2348 | delete arg9; | |
2349 | } | |
2350 | return resultobj; | |
2351 | fail: | |
2352 | { | |
2353 | if (temp4) | |
2354 | delete arg4; | |
2355 | } | |
2356 | { | |
2357 | if (temp9) | |
2358 | delete arg9; | |
2359 | } | |
2360 | return NULL; | |
2361 | } | |
2362 | ||
2363 | ||
c32bde28 | 2364 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2365 | PyObject *resultobj; |
2366 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2367 | bool result; | |
2368 | PyObject * obj0 = 0 ; | |
2369 | char *kwnames[] = { | |
2370 | (char *) "self", NULL | |
2371 | }; | |
2372 | ||
2373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2376 | { | |
2377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2378 | result = (bool)(arg1)->GetValue(); | |
2379 | ||
2380 | wxPyEndAllowThreads(__tstate); | |
2381 | if (PyErr_Occurred()) SWIG_fail; | |
2382 | } | |
2383 | { | |
2384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2385 | } | |
2386 | return resultobj; | |
2387 | fail: | |
2388 | return NULL; | |
2389 | } | |
2390 | ||
2391 | ||
c32bde28 | 2392 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2393 | PyObject *resultobj; |
2394 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2395 | bool result; | |
2396 | PyObject * obj0 = 0 ; | |
2397 | char *kwnames[] = { | |
2398 | (char *) "self", NULL | |
2399 | }; | |
2400 | ||
2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2404 | { | |
2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2406 | result = (bool)(arg1)->IsChecked(); | |
2407 | ||
2408 | wxPyEndAllowThreads(__tstate); | |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
2410 | } | |
2411 | { | |
2412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2413 | } | |
2414 | return resultobj; | |
2415 | fail: | |
2416 | return NULL; | |
2417 | } | |
2418 | ||
2419 | ||
c32bde28 | 2420 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2421 | PyObject *resultobj; |
2422 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2423 | bool arg2 ; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | PyObject * obj1 = 0 ; | |
2426 | char *kwnames[] = { | |
2427 | (char *) "self",(char *) "state", NULL | |
2428 | }; | |
2429 | ||
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2433 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
2434 | if (PyErr_Occurred()) SWIG_fail; |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2437 | (arg1)->SetValue(arg2); | |
2438 | ||
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) SWIG_fail; | |
2441 | } | |
2442 | Py_INCREF(Py_None); resultobj = Py_None; | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
c32bde28 | 2449 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2450 | PyObject *resultobj; |
2451 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2452 | int result; | |
2453 | PyObject * obj0 = 0 ; | |
2454 | char *kwnames[] = { | |
2455 | (char *) "self", NULL | |
2456 | }; | |
2457 | ||
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2461 | { | |
2462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2463 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2464 | ||
2465 | wxPyEndAllowThreads(__tstate); | |
2466 | if (PyErr_Occurred()) SWIG_fail; | |
2467 | } | |
c32bde28 | 2468 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2469 | return resultobj; |
2470 | fail: | |
2471 | return NULL; | |
2472 | } | |
2473 | ||
2474 | ||
c32bde28 | 2475 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2476 | PyObject *resultobj; |
2477 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2478 | int arg2 ; | |
2479 | PyObject * obj0 = 0 ; | |
2480 | PyObject * obj1 = 0 ; | |
2481 | char *kwnames[] = { | |
2482 | (char *) "self",(char *) "state", NULL | |
2483 | }; | |
2484 | ||
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2488 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2489 | if (PyErr_Occurred()) SWIG_fail; |
2490 | { | |
2491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2492 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2493 | ||
2494 | wxPyEndAllowThreads(__tstate); | |
2495 | if (PyErr_Occurred()) SWIG_fail; | |
2496 | } | |
2497 | Py_INCREF(Py_None); resultobj = Py_None; | |
2498 | return resultobj; | |
2499 | fail: | |
2500 | return NULL; | |
2501 | } | |
2502 | ||
2503 | ||
c32bde28 | 2504 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2505 | PyObject *resultobj; |
2506 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2507 | bool result; | |
2508 | PyObject * obj0 = 0 ; | |
2509 | char *kwnames[] = { | |
2510 | (char *) "self", NULL | |
2511 | }; | |
2512 | ||
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2516 | { | |
2517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2518 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2519 | ||
2520 | wxPyEndAllowThreads(__tstate); | |
2521 | if (PyErr_Occurred()) SWIG_fail; | |
2522 | } | |
2523 | { | |
2524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2525 | } | |
2526 | return resultobj; | |
2527 | fail: | |
2528 | return NULL; | |
2529 | } | |
2530 | ||
2531 | ||
c32bde28 | 2532 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2533 | PyObject *resultobj; |
2534 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2535 | bool result; | |
2536 | PyObject * obj0 = 0 ; | |
2537 | char *kwnames[] = { | |
2538 | (char *) "self", NULL | |
2539 | }; | |
2540 | ||
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2544 | { | |
2545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2546 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2547 | ||
2548 | wxPyEndAllowThreads(__tstate); | |
2549 | if (PyErr_Occurred()) SWIG_fail; | |
2550 | } | |
2551 | { | |
2552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2553 | } | |
2554 | return resultobj; | |
2555 | fail: | |
2556 | return NULL; | |
2557 | } | |
2558 | ||
2559 | ||
c32bde28 | 2560 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
2561 | PyObject *resultobj; |
2562 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2563 | wxVisualAttributes result; | |
2564 | PyObject * obj0 = 0 ; | |
2565 | char *kwnames[] = { | |
2566 | (char *) "variant", NULL | |
2567 | }; | |
2568 | ||
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2570 | if (obj0) { | |
c32bde28 | 2571 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
2572 | if (PyErr_Occurred()) SWIG_fail; |
2573 | } | |
2574 | { | |
19272049 | 2575 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2577 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2578 | ||
2579 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2580 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2581 | } |
2582 | { | |
2583 | wxVisualAttributes * resultptr; | |
2584 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2586 | } | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
c32bde28 | 2593 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2594 | PyObject *obj; |
2595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2596 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2597 | Py_INCREF(obj); | |
2598 | return Py_BuildValue((char *)""); | |
2599 | } | |
c32bde28 | 2600 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
d55e5bfc RD |
2601 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2602 | return 1; | |
2603 | } | |
2604 | ||
2605 | ||
2606 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2607 | PyObject *pyobj; | |
2608 | ||
2609 | { | |
2610 | #if wxUSE_UNICODE | |
2611 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2612 | #else | |
2613 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2614 | #endif | |
2615 | } | |
2616 | return pyobj; | |
2617 | } | |
2618 | ||
2619 | ||
c32bde28 | 2620 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2621 | PyObject *resultobj; |
2622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2623 | int arg2 = (int) -1 ; | |
2624 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2625 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2626 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2627 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2628 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
2629 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2630 | long arg6 = (long) 0 ; | |
2631 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2632 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2633 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2634 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2635 | wxChoice *result; | |
2636 | wxPoint temp3 ; | |
2637 | wxSize temp4 ; | |
ae8162c8 RD |
2638 | bool temp5 = false ; |
2639 | bool temp8 = false ; | |
d55e5bfc RD |
2640 | PyObject * obj0 = 0 ; |
2641 | PyObject * obj1 = 0 ; | |
2642 | PyObject * obj2 = 0 ; | |
2643 | PyObject * obj3 = 0 ; | |
2644 | PyObject * obj4 = 0 ; | |
2645 | PyObject * obj5 = 0 ; | |
2646 | PyObject * obj6 = 0 ; | |
2647 | PyObject * obj7 = 0 ; | |
2648 | char *kwnames[] = { | |
2649 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2650 | }; | |
2651 | ||
2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2655 | if (obj1) { | |
c32bde28 | 2656 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2657 | if (PyErr_Occurred()) SWIG_fail; |
2658 | } | |
2659 | if (obj2) { | |
2660 | { | |
2661 | arg3 = &temp3; | |
2662 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2663 | } | |
2664 | } | |
2665 | if (obj3) { | |
2666 | { | |
2667 | arg4 = &temp4; | |
2668 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2669 | } | |
2670 | } | |
2671 | if (obj4) { | |
2672 | { | |
2673 | if (! PySequence_Check(obj4)) { | |
2674 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2675 | SWIG_fail; | |
2676 | } | |
2677 | arg5 = new wxArrayString; | |
ae8162c8 | 2678 | temp5 = true; |
d55e5bfc RD |
2679 | int i, len=PySequence_Length(obj4); |
2680 | for (i=0; i<len; i++) { | |
2681 | PyObject* item = PySequence_GetItem(obj4, i); | |
2682 | #if wxUSE_UNICODE | |
2683 | PyObject* str = PyObject_Unicode(item); | |
2684 | #else | |
2685 | PyObject* str = PyObject_Str(item); | |
2686 | #endif | |
2687 | if (PyErr_Occurred()) SWIG_fail; | |
2688 | arg5->Add(Py2wxString(str)); | |
2689 | Py_DECREF(item); | |
2690 | Py_DECREF(str); | |
2691 | } | |
2692 | } | |
2693 | } | |
2694 | if (obj5) { | |
c32bde28 | 2695 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
2696 | if (PyErr_Occurred()) SWIG_fail; |
2697 | } | |
2698 | if (obj6) { | |
2699 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2701 | SWIG_fail; | |
2702 | if (arg7 == NULL) { | |
2703 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2704 | SWIG_fail; | |
2705 | } | |
2706 | } | |
2707 | if (obj7) { | |
2708 | { | |
2709 | arg8 = wxString_in_helper(obj7); | |
2710 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2711 | temp8 = true; |
d55e5bfc RD |
2712 | } |
2713 | } | |
2714 | { | |
0439c23b | 2715 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2717 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2718 | ||
2719 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2720 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2721 | } |
2722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2723 | { | |
2724 | if (temp5) delete arg5; | |
2725 | } | |
2726 | { | |
2727 | if (temp8) | |
2728 | delete arg8; | |
2729 | } | |
2730 | return resultobj; | |
2731 | fail: | |
2732 | { | |
2733 | if (temp5) delete arg5; | |
2734 | } | |
2735 | { | |
2736 | if (temp8) | |
2737 | delete arg8; | |
2738 | } | |
2739 | return NULL; | |
2740 | } | |
2741 | ||
2742 | ||
c32bde28 | 2743 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2744 | PyObject *resultobj; |
2745 | wxChoice *result; | |
2746 | char *kwnames[] = { | |
2747 | NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2751 | { | |
0439c23b | 2752 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2754 | result = (wxChoice *)new wxChoice(); | |
2755 | ||
2756 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2757 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2758 | } |
2759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2760 | return resultobj; | |
2761 | fail: | |
2762 | return NULL; | |
2763 | } | |
2764 | ||
2765 | ||
c32bde28 | 2766 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2767 | PyObject *resultobj; |
2768 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2769 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2770 | int arg3 = (int) -1 ; | |
2771 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2772 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2773 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2774 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2775 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2776 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2777 | long arg7 = (long) 0 ; | |
2778 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2779 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2780 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2781 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2782 | bool result; | |
2783 | wxPoint temp4 ; | |
2784 | wxSize temp5 ; | |
ae8162c8 RD |
2785 | bool temp6 = false ; |
2786 | bool temp9 = false ; | |
d55e5bfc RD |
2787 | PyObject * obj0 = 0 ; |
2788 | PyObject * obj1 = 0 ; | |
2789 | PyObject * obj2 = 0 ; | |
2790 | PyObject * obj3 = 0 ; | |
2791 | PyObject * obj4 = 0 ; | |
2792 | PyObject * obj5 = 0 ; | |
2793 | PyObject * obj6 = 0 ; | |
2794 | PyObject * obj7 = 0 ; | |
2795 | PyObject * obj8 = 0 ; | |
2796 | char *kwnames[] = { | |
2797 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2798 | }; | |
2799 | ||
2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2805 | if (obj2) { | |
c32bde28 | 2806 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2807 | if (PyErr_Occurred()) SWIG_fail; |
2808 | } | |
2809 | if (obj3) { | |
2810 | { | |
2811 | arg4 = &temp4; | |
2812 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2813 | } | |
2814 | } | |
2815 | if (obj4) { | |
2816 | { | |
2817 | arg5 = &temp5; | |
2818 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2819 | } | |
2820 | } | |
2821 | if (obj5) { | |
2822 | { | |
2823 | if (! PySequence_Check(obj5)) { | |
2824 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2825 | SWIG_fail; | |
2826 | } | |
2827 | arg6 = new wxArrayString; | |
ae8162c8 | 2828 | temp6 = true; |
d55e5bfc RD |
2829 | int i, len=PySequence_Length(obj5); |
2830 | for (i=0; i<len; i++) { | |
2831 | PyObject* item = PySequence_GetItem(obj5, i); | |
2832 | #if wxUSE_UNICODE | |
2833 | PyObject* str = PyObject_Unicode(item); | |
2834 | #else | |
2835 | PyObject* str = PyObject_Str(item); | |
2836 | #endif | |
2837 | if (PyErr_Occurred()) SWIG_fail; | |
2838 | arg6->Add(Py2wxString(str)); | |
2839 | Py_DECREF(item); | |
2840 | Py_DECREF(str); | |
2841 | } | |
2842 | } | |
2843 | } | |
2844 | if (obj6) { | |
c32bde28 | 2845 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
2846 | if (PyErr_Occurred()) SWIG_fail; |
2847 | } | |
2848 | if (obj7) { | |
2849 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2851 | SWIG_fail; | |
2852 | if (arg8 == NULL) { | |
2853 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2854 | SWIG_fail; | |
2855 | } | |
2856 | } | |
2857 | if (obj8) { | |
2858 | { | |
2859 | arg9 = wxString_in_helper(obj8); | |
2860 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2861 | temp9 = true; |
d55e5bfc RD |
2862 | } |
2863 | } | |
2864 | { | |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2866 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2867 | ||
2868 | wxPyEndAllowThreads(__tstate); | |
2869 | if (PyErr_Occurred()) SWIG_fail; | |
2870 | } | |
2871 | { | |
2872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2873 | } | |
2874 | { | |
2875 | if (temp6) delete arg6; | |
2876 | } | |
2877 | { | |
2878 | if (temp9) | |
2879 | delete arg9; | |
2880 | } | |
2881 | return resultobj; | |
2882 | fail: | |
2883 | { | |
2884 | if (temp6) delete arg6; | |
2885 | } | |
2886 | { | |
2887 | if (temp9) | |
2888 | delete arg9; | |
2889 | } | |
2890 | return NULL; | |
2891 | } | |
2892 | ||
2893 | ||
c32bde28 | 2894 | static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2895 | PyObject *resultobj; |
2896 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2897 | int arg2 ; | |
2898 | PyObject * obj0 = 0 ; | |
2899 | PyObject * obj1 = 0 ; | |
2900 | char *kwnames[] = { | |
2901 | (char *) "self",(char *) "n", NULL | |
2902 | }; | |
2903 | ||
2904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2907 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2908 | if (PyErr_Occurred()) SWIG_fail; |
2909 | { | |
2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2911 | (arg1)->SetSelection(arg2); | |
2912 | ||
2913 | wxPyEndAllowThreads(__tstate); | |
2914 | if (PyErr_Occurred()) SWIG_fail; | |
2915 | } | |
2916 | Py_INCREF(Py_None); resultobj = Py_None; | |
2917 | return resultobj; | |
2918 | fail: | |
2919 | return NULL; | |
2920 | } | |
2921 | ||
2922 | ||
c32bde28 | 2923 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2924 | PyObject *resultobj; |
2925 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2926 | wxString *arg2 = 0 ; | |
121b9a67 | 2927 | bool result; |
ae8162c8 | 2928 | bool temp2 = false ; |
d55e5bfc RD |
2929 | PyObject * obj0 = 0 ; |
2930 | PyObject * obj1 = 0 ; | |
2931 | char *kwnames[] = { | |
2932 | (char *) "self",(char *) "string", NULL | |
2933 | }; | |
2934 | ||
2935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2938 | { | |
2939 | arg2 = wxString_in_helper(obj1); | |
2940 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2941 | temp2 = true; |
d55e5bfc RD |
2942 | } |
2943 | { | |
2944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2945 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d55e5bfc RD |
2946 | |
2947 | wxPyEndAllowThreads(__tstate); | |
2948 | if (PyErr_Occurred()) SWIG_fail; | |
2949 | } | |
121b9a67 RD |
2950 | { |
2951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2952 | } | |
d55e5bfc RD |
2953 | { |
2954 | if (temp2) | |
2955 | delete arg2; | |
2956 | } | |
2957 | return resultobj; | |
2958 | fail: | |
2959 | { | |
2960 | if (temp2) | |
2961 | delete arg2; | |
2962 | } | |
2963 | return NULL; | |
2964 | } | |
2965 | ||
2966 | ||
c32bde28 | 2967 | static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2968 | PyObject *resultobj; |
2969 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2970 | int arg2 ; | |
2971 | wxString *arg3 = 0 ; | |
ae8162c8 | 2972 | bool temp3 = false ; |
d55e5bfc RD |
2973 | PyObject * obj0 = 0 ; |
2974 | PyObject * obj1 = 0 ; | |
2975 | PyObject * obj2 = 0 ; | |
2976 | char *kwnames[] = { | |
2977 | (char *) "self",(char *) "n",(char *) "string", NULL | |
2978 | }; | |
2979 | ||
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2983 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2984 | if (PyErr_Occurred()) SWIG_fail; |
2985 | { | |
2986 | arg3 = wxString_in_helper(obj2); | |
2987 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2988 | temp3 = true; |
d55e5bfc RD |
2989 | } |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) SWIG_fail; | |
2996 | } | |
2997 | Py_INCREF(Py_None); resultobj = Py_None; | |
2998 | { | |
2999 | if (temp3) | |
3000 | delete arg3; | |
3001 | } | |
3002 | return resultobj; | |
3003 | fail: | |
3004 | { | |
3005 | if (temp3) | |
3006 | delete arg3; | |
3007 | } | |
3008 | return NULL; | |
3009 | } | |
3010 | ||
3011 | ||
c32bde28 | 3012 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
3013 | PyObject *resultobj; |
3014 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3015 | wxVisualAttributes result; | |
3016 | PyObject * obj0 = 0 ; | |
3017 | char *kwnames[] = { | |
3018 | (char *) "variant", NULL | |
3019 | }; | |
3020 | ||
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3022 | if (obj0) { | |
c32bde28 | 3023 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
3024 | if (PyErr_Occurred()) SWIG_fail; |
3025 | } | |
3026 | { | |
19272049 | 3027 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3029 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3030 | ||
3031 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3032 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
3033 | } |
3034 | { | |
3035 | wxVisualAttributes * resultptr; | |
3036 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3038 | } | |
3039 | return resultobj; | |
3040 | fail: | |
3041 | return NULL; | |
3042 | } | |
3043 | ||
3044 | ||
c32bde28 | 3045 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3046 | PyObject *obj; |
3047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3048 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
3049 | Py_INCREF(obj); | |
3050 | return Py_BuildValue((char *)""); | |
3051 | } | |
c32bde28 | 3052 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
3053 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
3054 | return 1; | |
3055 | } | |
3056 | ||
3057 | ||
3058 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
3059 | PyObject *pyobj; | |
3060 | ||
3061 | { | |
3062 | #if wxUSE_UNICODE | |
3063 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3064 | #else | |
3065 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3066 | #endif | |
3067 | } | |
3068 | return pyobj; | |
3069 | } | |
3070 | ||
3071 | ||
c32bde28 | 3072 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3073 | PyObject *resultobj; |
3074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3075 | int arg2 = (int) -1 ; | |
3076 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3077 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3078 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3079 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3080 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3081 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3082 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
3083 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3084 | long arg7 = (long) 0 ; | |
3085 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3086 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3087 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
3088 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3089 | wxComboBox *result; | |
ae8162c8 | 3090 | bool temp3 = false ; |
d55e5bfc RD |
3091 | wxPoint temp4 ; |
3092 | wxSize temp5 ; | |
ae8162c8 RD |
3093 | bool temp6 = false ; |
3094 | bool temp9 = false ; | |
d55e5bfc RD |
3095 | PyObject * obj0 = 0 ; |
3096 | PyObject * obj1 = 0 ; | |
3097 | PyObject * obj2 = 0 ; | |
3098 | PyObject * obj3 = 0 ; | |
3099 | PyObject * obj4 = 0 ; | |
3100 | PyObject * obj5 = 0 ; | |
3101 | PyObject * obj6 = 0 ; | |
3102 | PyObject * obj7 = 0 ; | |
3103 | PyObject * obj8 = 0 ; | |
3104 | char *kwnames[] = { | |
3105 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3106 | }; | |
3107 | ||
3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3111 | if (obj1) { | |
c32bde28 | 3112 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3113 | if (PyErr_Occurred()) SWIG_fail; |
3114 | } | |
3115 | if (obj2) { | |
3116 | { | |
3117 | arg3 = wxString_in_helper(obj2); | |
3118 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3119 | temp3 = true; |
d55e5bfc RD |
3120 | } |
3121 | } | |
3122 | if (obj3) { | |
3123 | { | |
3124 | arg4 = &temp4; | |
3125 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3126 | } | |
3127 | } | |
3128 | if (obj4) { | |
3129 | { | |
3130 | arg5 = &temp5; | |
3131 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3132 | } | |
3133 | } | |
3134 | if (obj5) { | |
3135 | { | |
3136 | if (! PySequence_Check(obj5)) { | |
3137 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3138 | SWIG_fail; | |
3139 | } | |
3140 | arg6 = new wxArrayString; | |
ae8162c8 | 3141 | temp6 = true; |
d55e5bfc RD |
3142 | int i, len=PySequence_Length(obj5); |
3143 | for (i=0; i<len; i++) { | |
3144 | PyObject* item = PySequence_GetItem(obj5, i); | |
3145 | #if wxUSE_UNICODE | |
3146 | PyObject* str = PyObject_Unicode(item); | |
3147 | #else | |
3148 | PyObject* str = PyObject_Str(item); | |
3149 | #endif | |
3150 | if (PyErr_Occurred()) SWIG_fail; | |
3151 | arg6->Add(Py2wxString(str)); | |
3152 | Py_DECREF(item); | |
3153 | Py_DECREF(str); | |
3154 | } | |
3155 | } | |
3156 | } | |
3157 | if (obj6) { | |
c32bde28 | 3158 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
3159 | if (PyErr_Occurred()) SWIG_fail; |
3160 | } | |
3161 | if (obj7) { | |
3162 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
3163 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3164 | SWIG_fail; | |
3165 | if (arg8 == NULL) { | |
3166 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3167 | SWIG_fail; | |
3168 | } | |
3169 | } | |
3170 | if (obj8) { | |
3171 | { | |
3172 | arg9 = wxString_in_helper(obj8); | |
3173 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3174 | temp9 = true; |
d55e5bfc RD |
3175 | } |
3176 | } | |
3177 | { | |
0439c23b | 3178 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3180 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3181 | ||
3182 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3183 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3184 | } |
3185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3186 | { | |
3187 | if (temp3) | |
3188 | delete arg3; | |
3189 | } | |
3190 | { | |
3191 | if (temp6) delete arg6; | |
3192 | } | |
3193 | { | |
3194 | if (temp9) | |
3195 | delete arg9; | |
3196 | } | |
3197 | return resultobj; | |
3198 | fail: | |
3199 | { | |
3200 | if (temp3) | |
3201 | delete arg3; | |
3202 | } | |
3203 | { | |
3204 | if (temp6) delete arg6; | |
3205 | } | |
3206 | { | |
3207 | if (temp9) | |
3208 | delete arg9; | |
3209 | } | |
3210 | return NULL; | |
3211 | } | |
3212 | ||
3213 | ||
c32bde28 | 3214 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3215 | PyObject *resultobj; |
3216 | wxComboBox *result; | |
3217 | char *kwnames[] = { | |
3218 | NULL | |
3219 | }; | |
3220 | ||
3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3222 | { | |
0439c23b | 3223 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3225 | result = (wxComboBox *)new wxComboBox(); | |
3226 | ||
3227 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3228 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3229 | } |
3230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3231 | return resultobj; | |
3232 | fail: | |
3233 | return NULL; | |
3234 | } | |
3235 | ||
3236 | ||
c32bde28 | 3237 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3238 | PyObject *resultobj; |
3239 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3240 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3241 | int arg3 = (int) -1 ; | |
3242 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3243 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3244 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3245 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3246 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3247 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3248 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
3249 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3250 | long arg8 = (long) 0 ; | |
3251 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3252 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
3253 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
3254 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
3255 | bool result; | |
ae8162c8 | 3256 | bool temp4 = false ; |
d55e5bfc RD |
3257 | wxPoint temp5 ; |
3258 | wxSize temp6 ; | |
ae8162c8 RD |
3259 | bool temp7 = false ; |
3260 | bool temp10 = false ; | |
d55e5bfc RD |
3261 | PyObject * obj0 = 0 ; |
3262 | PyObject * obj1 = 0 ; | |
3263 | PyObject * obj2 = 0 ; | |
3264 | PyObject * obj3 = 0 ; | |
3265 | PyObject * obj4 = 0 ; | |
3266 | PyObject * obj5 = 0 ; | |
3267 | PyObject * obj6 = 0 ; | |
3268 | PyObject * obj7 = 0 ; | |
3269 | PyObject * obj8 = 0 ; | |
3270 | PyObject * obj9 = 0 ; | |
3271 | char *kwnames[] = { | |
3272 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3273 | }; | |
3274 | ||
3275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
3276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3278 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3280 | if (obj2) { | |
c32bde28 | 3281 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3282 | if (PyErr_Occurred()) SWIG_fail; |
3283 | } | |
3284 | if (obj3) { | |
3285 | { | |
3286 | arg4 = wxString_in_helper(obj3); | |
3287 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3288 | temp4 = true; |
d55e5bfc RD |
3289 | } |
3290 | } | |
3291 | if (obj4) { | |
3292 | { | |
3293 | arg5 = &temp5; | |
3294 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3295 | } | |
3296 | } | |
3297 | if (obj5) { | |
3298 | { | |
3299 | arg6 = &temp6; | |
3300 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3301 | } | |
3302 | } | |
3303 | if (obj6) { | |
3304 | { | |
3305 | if (! PySequence_Check(obj6)) { | |
3306 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3307 | SWIG_fail; | |
3308 | } | |
3309 | arg7 = new wxArrayString; | |
ae8162c8 | 3310 | temp7 = true; |
d55e5bfc RD |
3311 | int i, len=PySequence_Length(obj6); |
3312 | for (i=0; i<len; i++) { | |
3313 | PyObject* item = PySequence_GetItem(obj6, i); | |
3314 | #if wxUSE_UNICODE | |
3315 | PyObject* str = PyObject_Unicode(item); | |
3316 | #else | |
3317 | PyObject* str = PyObject_Str(item); | |
3318 | #endif | |
3319 | if (PyErr_Occurred()) SWIG_fail; | |
3320 | arg7->Add(Py2wxString(str)); | |
3321 | Py_DECREF(item); | |
3322 | Py_DECREF(str); | |
3323 | } | |
3324 | } | |
3325 | } | |
3326 | if (obj7) { | |
c32bde28 | 3327 | arg8 = (long)SWIG_As_long(obj7); |
d55e5bfc RD |
3328 | if (PyErr_Occurred()) SWIG_fail; |
3329 | } | |
3330 | if (obj8) { | |
3331 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
3332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3333 | SWIG_fail; | |
3334 | if (arg9 == NULL) { | |
3335 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3336 | SWIG_fail; | |
3337 | } | |
3338 | } | |
3339 | if (obj9) { | |
3340 | { | |
3341 | arg10 = wxString_in_helper(obj9); | |
3342 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 3343 | temp10 = true; |
d55e5bfc RD |
3344 | } |
3345 | } | |
3346 | { | |
3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3348 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
3349 | ||
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) SWIG_fail; | |
3352 | } | |
3353 | { | |
3354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3355 | } | |
3356 | { | |
3357 | if (temp4) | |
3358 | delete arg4; | |
3359 | } | |
3360 | { | |
3361 | if (temp7) delete arg7; | |
3362 | } | |
3363 | { | |
3364 | if (temp10) | |
3365 | delete arg10; | |
3366 | } | |
3367 | return resultobj; | |
3368 | fail: | |
3369 | { | |
3370 | if (temp4) | |
3371 | delete arg4; | |
3372 | } | |
3373 | { | |
3374 | if (temp7) delete arg7; | |
3375 | } | |
3376 | { | |
3377 | if (temp10) | |
3378 | delete arg10; | |
3379 | } | |
3380 | return NULL; | |
3381 | } | |
3382 | ||
3383 | ||
c32bde28 | 3384 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3385 | PyObject *resultobj; |
3386 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3387 | wxString result; | |
3388 | PyObject * obj0 = 0 ; | |
3389 | char *kwnames[] = { | |
3390 | (char *) "self", NULL | |
3391 | }; | |
3392 | ||
3393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3396 | { | |
3397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3398 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3399 | ||
3400 | wxPyEndAllowThreads(__tstate); | |
3401 | if (PyErr_Occurred()) SWIG_fail; | |
3402 | } | |
3403 | { | |
3404 | #if wxUSE_UNICODE | |
3405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3406 | #else | |
3407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3408 | #endif | |
3409 | } | |
3410 | return resultobj; | |
3411 | fail: | |
3412 | return NULL; | |
3413 | } | |
3414 | ||
3415 | ||
c32bde28 | 3416 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3417 | PyObject *resultobj; |
3418 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3419 | wxString *arg2 = 0 ; | |
ae8162c8 | 3420 | bool temp2 = false ; |
d55e5bfc RD |
3421 | PyObject * obj0 = 0 ; |
3422 | PyObject * obj1 = 0 ; | |
3423 | char *kwnames[] = { | |
3424 | (char *) "self",(char *) "value", NULL | |
3425 | }; | |
3426 | ||
3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3430 | { | |
3431 | arg2 = wxString_in_helper(obj1); | |
3432 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3433 | temp2 = true; |
d55e5bfc RD |
3434 | } |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | (arg1)->SetValue((wxString const &)*arg2); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | Py_INCREF(Py_None); resultobj = Py_None; | |
3443 | { | |
3444 | if (temp2) | |
3445 | delete arg2; | |
3446 | } | |
3447 | return resultobj; | |
3448 | fail: | |
3449 | { | |
3450 | if (temp2) | |
3451 | delete arg2; | |
3452 | } | |
3453 | return NULL; | |
3454 | } | |
3455 | ||
3456 | ||
c32bde28 | 3457 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3458 | PyObject *resultobj; |
3459 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3460 | PyObject * obj0 = 0 ; | |
3461 | char *kwnames[] = { | |
3462 | (char *) "self", NULL | |
3463 | }; | |
3464 | ||
3465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3468 | { | |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | (arg1)->Copy(); | |
3471 | ||
3472 | wxPyEndAllowThreads(__tstate); | |
3473 | if (PyErr_Occurred()) SWIG_fail; | |
3474 | } | |
3475 | Py_INCREF(Py_None); resultobj = Py_None; | |
3476 | return resultobj; | |
3477 | fail: | |
3478 | return NULL; | |
3479 | } | |
3480 | ||
3481 | ||
c32bde28 | 3482 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3483 | PyObject *resultobj; |
3484 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3485 | PyObject * obj0 = 0 ; | |
3486 | char *kwnames[] = { | |
3487 | (char *) "self", NULL | |
3488 | }; | |
3489 | ||
3490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3493 | { | |
3494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3495 | (arg1)->Cut(); | |
3496 | ||
3497 | wxPyEndAllowThreads(__tstate); | |
3498 | if (PyErr_Occurred()) SWIG_fail; | |
3499 | } | |
3500 | Py_INCREF(Py_None); resultobj = Py_None; | |
3501 | return resultobj; | |
3502 | fail: | |
3503 | return NULL; | |
3504 | } | |
3505 | ||
3506 | ||
c32bde28 | 3507 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3508 | PyObject *resultobj; |
3509 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3510 | PyObject * obj0 = 0 ; | |
3511 | char *kwnames[] = { | |
3512 | (char *) "self", NULL | |
3513 | }; | |
3514 | ||
3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3518 | { | |
3519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3520 | (arg1)->Paste(); | |
3521 | ||
3522 | wxPyEndAllowThreads(__tstate); | |
3523 | if (PyErr_Occurred()) SWIG_fail; | |
3524 | } | |
3525 | Py_INCREF(Py_None); resultobj = Py_None; | |
3526 | return resultobj; | |
3527 | fail: | |
3528 | return NULL; | |
3529 | } | |
3530 | ||
3531 | ||
c32bde28 | 3532 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3533 | PyObject *resultobj; |
3534 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3535 | long arg2 ; | |
3536 | PyObject * obj0 = 0 ; | |
3537 | PyObject * obj1 = 0 ; | |
3538 | char *kwnames[] = { | |
3539 | (char *) "self",(char *) "pos", NULL | |
3540 | }; | |
3541 | ||
3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3545 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
3546 | if (PyErr_Occurred()) SWIG_fail; |
3547 | { | |
3548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3549 | (arg1)->SetInsertionPoint(arg2); | |
3550 | ||
3551 | wxPyEndAllowThreads(__tstate); | |
3552 | if (PyErr_Occurred()) SWIG_fail; | |
3553 | } | |
3554 | Py_INCREF(Py_None); resultobj = Py_None; | |
3555 | return resultobj; | |
3556 | fail: | |
3557 | return NULL; | |
3558 | } | |
3559 | ||
3560 | ||
c32bde28 | 3561 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3562 | PyObject *resultobj; |
3563 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3564 | long result; | |
3565 | PyObject * obj0 = 0 ; | |
3566 | char *kwnames[] = { | |
3567 | (char *) "self", NULL | |
3568 | }; | |
3569 | ||
3570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3573 | { | |
3574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3575 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3576 | ||
3577 | wxPyEndAllowThreads(__tstate); | |
3578 | if (PyErr_Occurred()) SWIG_fail; | |
3579 | } | |
c32bde28 | 3580 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
3581 | return resultobj; |
3582 | fail: | |
3583 | return NULL; | |
3584 | } | |
3585 | ||
3586 | ||
c32bde28 | 3587 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3588 | PyObject *resultobj; |
3589 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3590 | long result; | |
3591 | PyObject * obj0 = 0 ; | |
3592 | char *kwnames[] = { | |
3593 | (char *) "self", NULL | |
3594 | }; | |
3595 | ||
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3599 | { | |
3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3601 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3602 | ||
3603 | wxPyEndAllowThreads(__tstate); | |
3604 | if (PyErr_Occurred()) SWIG_fail; | |
3605 | } | |
c32bde28 | 3606 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
3607 | return resultobj; |
3608 | fail: | |
3609 | return NULL; | |
3610 | } | |
3611 | ||
3612 | ||
c32bde28 | 3613 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3614 | PyObject *resultobj; |
3615 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3616 | long arg2 ; | |
3617 | long arg3 ; | |
3618 | wxString *arg4 = 0 ; | |
ae8162c8 | 3619 | bool temp4 = false ; |
d55e5bfc RD |
3620 | PyObject * obj0 = 0 ; |
3621 | PyObject * obj1 = 0 ; | |
3622 | PyObject * obj2 = 0 ; | |
3623 | PyObject * obj3 = 0 ; | |
3624 | char *kwnames[] = { | |
3625 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3626 | }; | |
3627 | ||
3628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3631 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3632 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3633 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3634 | if (PyErr_Occurred()) SWIG_fail; |
3635 | { | |
3636 | arg4 = wxString_in_helper(obj3); | |
3637 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3638 | temp4 = true; |
d55e5bfc RD |
3639 | } |
3640 | { | |
3641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3642 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3643 | ||
3644 | wxPyEndAllowThreads(__tstate); | |
3645 | if (PyErr_Occurred()) SWIG_fail; | |
3646 | } | |
3647 | Py_INCREF(Py_None); resultobj = Py_None; | |
3648 | { | |
3649 | if (temp4) | |
3650 | delete arg4; | |
3651 | } | |
3652 | return resultobj; | |
3653 | fail: | |
3654 | { | |
3655 | if (temp4) | |
3656 | delete arg4; | |
3657 | } | |
3658 | return NULL; | |
3659 | } | |
3660 | ||
3661 | ||
c32bde28 | 3662 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3663 | PyObject *resultobj; |
3664 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3665 | int arg2 ; | |
3666 | PyObject * obj0 = 0 ; | |
3667 | PyObject * obj1 = 0 ; | |
3668 | char *kwnames[] = { | |
3669 | (char *) "self",(char *) "n", NULL | |
3670 | }; | |
3671 | ||
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3675 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3676 | if (PyErr_Occurred()) SWIG_fail; |
3677 | { | |
3678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3679 | (arg1)->SetSelection(arg2); | |
3680 | ||
3681 | wxPyEndAllowThreads(__tstate); | |
3682 | if (PyErr_Occurred()) SWIG_fail; | |
3683 | } | |
3684 | Py_INCREF(Py_None); resultobj = Py_None; | |
3685 | return resultobj; | |
3686 | fail: | |
3687 | return NULL; | |
3688 | } | |
3689 | ||
3690 | ||
c32bde28 | 3691 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3692 | PyObject *resultobj; |
3693 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3694 | long arg2 ; | |
3695 | long arg3 ; | |
3696 | PyObject * obj0 = 0 ; | |
3697 | PyObject * obj1 = 0 ; | |
3698 | PyObject * obj2 = 0 ; | |
3699 | char *kwnames[] = { | |
3700 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3701 | }; | |
3702 | ||
3703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3706 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3707 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3708 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3709 | if (PyErr_Occurred()) SWIG_fail; |
3710 | { | |
3711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3712 | (arg1)->SetSelection(arg2,arg3); | |
3713 | ||
3714 | wxPyEndAllowThreads(__tstate); | |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
3716 | } | |
3717 | Py_INCREF(Py_None); resultobj = Py_None; | |
3718 | return resultobj; | |
3719 | fail: | |
3720 | return NULL; | |
3721 | } | |
3722 | ||
3723 | ||
f78cc896 RD |
3724 | static PyObject *_wrap_ComboBox_GetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
3725 | PyObject *resultobj; | |
3726 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3727 | long *arg2 = (long *) 0 ; | |
3728 | long *arg3 = (long *) 0 ; | |
3729 | long temp2 ; | |
3730 | int res2 = 0 ; | |
3731 | long temp3 ; | |
3732 | int res3 = 0 ; | |
3733 | PyObject * obj0 = 0 ; | |
3734 | char *kwnames[] = { | |
3735 | (char *) "self", NULL | |
3736 | }; | |
3737 | ||
3738 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
3739 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetMark",kwnames,&obj0)) goto fail; | |
3741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3743 | { | |
3744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3745 | (arg1)->GetSelection(arg2,arg3); | |
3746 | ||
3747 | wxPyEndAllowThreads(__tstate); | |
3748 | if (PyErr_Occurred()) SWIG_fail; | |
3749 | } | |
3750 | Py_INCREF(Py_None); resultobj = Py_None; | |
3751 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
3752 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
3753 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
3754 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
3755 | return resultobj; | |
3756 | fail: | |
3757 | return NULL; | |
3758 | } | |
3759 | ||
3760 | ||
c32bde28 | 3761 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3762 | PyObject *resultobj; |
3763 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3764 | wxString *arg2 = 0 ; | |
3765 | bool result; | |
ae8162c8 | 3766 | bool temp2 = false ; |
121b9a67 RD |
3767 | PyObject * obj0 = 0 ; |
3768 | PyObject * obj1 = 0 ; | |
3769 | char *kwnames[] = { | |
3770 | (char *) "self",(char *) "string", NULL | |
3771 | }; | |
3772 | ||
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3776 | { | |
3777 | arg2 = wxString_in_helper(obj1); | |
3778 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3779 | temp2 = true; |
121b9a67 RD |
3780 | } |
3781 | { | |
3782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3783 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3784 | ||
3785 | wxPyEndAllowThreads(__tstate); | |
3786 | if (PyErr_Occurred()) SWIG_fail; | |
3787 | } | |
3788 | { | |
3789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3790 | } | |
3791 | { | |
3792 | if (temp2) | |
3793 | delete arg2; | |
3794 | } | |
3795 | return resultobj; | |
3796 | fail: | |
3797 | { | |
3798 | if (temp2) | |
3799 | delete arg2; | |
3800 | } | |
3801 | return NULL; | |
3802 | } | |
3803 | ||
3804 | ||
c32bde28 | 3805 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3806 | PyObject *resultobj; |
3807 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3808 | int arg2 ; | |
3809 | wxString *arg3 = 0 ; | |
ae8162c8 | 3810 | bool temp3 = false ; |
121b9a67 RD |
3811 | PyObject * obj0 = 0 ; |
3812 | PyObject * obj1 = 0 ; | |
3813 | PyObject * obj2 = 0 ; | |
3814 | char *kwnames[] = { | |
3815 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3816 | }; | |
3817 | ||
3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3821 | arg2 = (int)SWIG_As_int(obj1); |
121b9a67 RD |
3822 | if (PyErr_Occurred()) SWIG_fail; |
3823 | { | |
3824 | arg3 = wxString_in_helper(obj2); | |
3825 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3826 | temp3 = true; |
121b9a67 RD |
3827 | } |
3828 | { | |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
3835 | Py_INCREF(Py_None); resultobj = Py_None; | |
3836 | { | |
3837 | if (temp3) | |
3838 | delete arg3; | |
3839 | } | |
3840 | return resultobj; | |
3841 | fail: | |
3842 | { | |
3843 | if (temp3) | |
3844 | delete arg3; | |
3845 | } | |
3846 | return NULL; | |
3847 | } | |
3848 | ||
3849 | ||
c32bde28 | 3850 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3851 | PyObject *resultobj; |
3852 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3853 | bool arg2 ; | |
3854 | PyObject * obj0 = 0 ; | |
3855 | PyObject * obj1 = 0 ; | |
3856 | char *kwnames[] = { | |
3857 | (char *) "self",(char *) "editable", NULL | |
3858 | }; | |
3859 | ||
3860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3863 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
3864 | if (PyErr_Occurred()) SWIG_fail; |
3865 | { | |
3866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3867 | (arg1)->SetEditable(arg2); | |
3868 | ||
3869 | wxPyEndAllowThreads(__tstate); | |
3870 | if (PyErr_Occurred()) SWIG_fail; | |
3871 | } | |
3872 | Py_INCREF(Py_None); resultobj = Py_None; | |
3873 | return resultobj; | |
3874 | fail: | |
3875 | return NULL; | |
3876 | } | |
3877 | ||
3878 | ||
c32bde28 | 3879 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3880 | PyObject *resultobj; |
3881 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3882 | PyObject * obj0 = 0 ; | |
3883 | char *kwnames[] = { | |
3884 | (char *) "self", NULL | |
3885 | }; | |
3886 | ||
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3890 | { | |
3891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3892 | (arg1)->SetInsertionPointEnd(); | |
3893 | ||
3894 | wxPyEndAllowThreads(__tstate); | |
3895 | if (PyErr_Occurred()) SWIG_fail; | |
3896 | } | |
3897 | Py_INCREF(Py_None); resultobj = Py_None; | |
3898 | return resultobj; | |
3899 | fail: | |
3900 | return NULL; | |
3901 | } | |
3902 | ||
3903 | ||
c32bde28 | 3904 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3905 | PyObject *resultobj; |
3906 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3907 | long arg2 ; | |
3908 | long arg3 ; | |
3909 | PyObject * obj0 = 0 ; | |
3910 | PyObject * obj1 = 0 ; | |
3911 | PyObject * obj2 = 0 ; | |
3912 | char *kwnames[] = { | |
3913 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3914 | }; | |
3915 | ||
3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3919 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3920 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3921 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3922 | if (PyErr_Occurred()) SWIG_fail; |
3923 | { | |
3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3925 | (arg1)->Remove(arg2,arg3); | |
3926 | ||
3927 | wxPyEndAllowThreads(__tstate); | |
3928 | if (PyErr_Occurred()) SWIG_fail; | |
3929 | } | |
3930 | Py_INCREF(Py_None); resultobj = Py_None; | |
3931 | return resultobj; | |
3932 | fail: | |
3933 | return NULL; | |
3934 | } | |
3935 | ||
3936 | ||
b519803b RD |
3937 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
3938 | PyObject *resultobj; | |
3939 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3940 | bool result; | |
3941 | PyObject * obj0 = 0 ; | |
3942 | char *kwnames[] = { | |
3943 | (char *) "self", NULL | |
3944 | }; | |
3945 | ||
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
3947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3949 | { | |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
3952 | ||
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | { | |
3957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3958 | } | |
3959 | return resultobj; | |
3960 | fail: | |
3961 | return NULL; | |
3962 | } | |
3963 | ||
3964 | ||
3965 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
3966 | PyObject *resultobj; | |
3967 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3968 | PyObject * obj0 = 0 ; | |
3969 | char *kwnames[] = { | |
3970 | (char *) "self", NULL | |
3971 | }; | |
3972 | ||
3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
3974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3976 | { | |
3977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3978 | (arg1)->Undo(); | |
3979 | ||
3980 | wxPyEndAllowThreads(__tstate); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | Py_INCREF(Py_None); resultobj = Py_None; | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | return NULL; | |
3987 | } | |
3988 | ||
3989 | ||
3990 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
3991 | PyObject *resultobj; | |
3992 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3993 | PyObject * obj0 = 0 ; | |
3994 | char *kwnames[] = { | |
3995 | (char *) "self", NULL | |
3996 | }; | |
3997 | ||
3998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
3999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4001 | { | |
4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4003 | (arg1)->Redo(); | |
4004 | ||
4005 | wxPyEndAllowThreads(__tstate); | |
4006 | if (PyErr_Occurred()) SWIG_fail; | |
4007 | } | |
4008 | Py_INCREF(Py_None); resultobj = Py_None; | |
4009 | return resultobj; | |
4010 | fail: | |
4011 | return NULL; | |
4012 | } | |
4013 | ||
4014 | ||
4015 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
4016 | PyObject *resultobj; | |
4017 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4018 | PyObject * obj0 = 0 ; | |
4019 | char *kwnames[] = { | |
4020 | (char *) "self", NULL | |
4021 | }; | |
4022 | ||
4023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
4024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4026 | { | |
4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4028 | (arg1)->SelectAll(); | |
4029 | ||
4030 | wxPyEndAllowThreads(__tstate); | |
4031 | if (PyErr_Occurred()) SWIG_fail; | |
4032 | } | |
4033 | Py_INCREF(Py_None); resultobj = Py_None; | |
4034 | return resultobj; | |
4035 | fail: | |
4036 | return NULL; | |
4037 | } | |
4038 | ||
4039 | ||
4040 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
4041 | PyObject *resultobj; | |
4042 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4043 | bool result; | |
4044 | PyObject * obj0 = 0 ; | |
4045 | char *kwnames[] = { | |
4046 | (char *) "self", NULL | |
4047 | }; | |
4048 | ||
4049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
4050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4052 | { | |
4053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4054 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
4055 | ||
4056 | wxPyEndAllowThreads(__tstate); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
4059 | { | |
4060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4061 | } | |
4062 | return resultobj; | |
4063 | fail: | |
4064 | return NULL; | |
4065 | } | |
4066 | ||
4067 | ||
4068 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject *resultobj; | |
4070 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4071 | bool result; | |
4072 | PyObject * obj0 = 0 ; | |
4073 | char *kwnames[] = { | |
4074 | (char *) "self", NULL | |
4075 | }; | |
4076 | ||
4077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
4078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4080 | { | |
4081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4082 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
4083 | ||
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4087 | { | |
4088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4089 | } | |
4090 | return resultobj; | |
4091 | fail: | |
4092 | return NULL; | |
4093 | } | |
4094 | ||
4095 | ||
4096 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
4097 | PyObject *resultobj; | |
4098 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4099 | bool result; | |
4100 | PyObject * obj0 = 0 ; | |
4101 | char *kwnames[] = { | |
4102 | (char *) "self", NULL | |
4103 | }; | |
4104 | ||
4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
4106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4108 | { | |
4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4110 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
4111 | ||
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | { | |
4116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4117 | } | |
4118 | return resultobj; | |
4119 | fail: | |
4120 | return NULL; | |
4121 | } | |
4122 | ||
4123 | ||
4124 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject *resultobj; | |
4126 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4127 | bool result; | |
4128 | PyObject * obj0 = 0 ; | |
4129 | char *kwnames[] = { | |
4130 | (char *) "self", NULL | |
4131 | }; | |
4132 | ||
4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
4134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4136 | { | |
4137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4138 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
4139 | ||
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
4143 | { | |
4144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4145 | } | |
4146 | return resultobj; | |
4147 | fail: | |
4148 | return NULL; | |
4149 | } | |
4150 | ||
4151 | ||
4152 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
4153 | PyObject *resultobj; | |
4154 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4155 | bool result; | |
4156 | PyObject * obj0 = 0 ; | |
4157 | char *kwnames[] = { | |
4158 | (char *) "self", NULL | |
4159 | }; | |
4160 | ||
4161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
4162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4164 | { | |
4165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4166 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
4167 | ||
4168 | wxPyEndAllowThreads(__tstate); | |
4169 | if (PyErr_Occurred()) SWIG_fail; | |
4170 | } | |
4171 | { | |
4172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4173 | } | |
4174 | return resultobj; | |
4175 | fail: | |
4176 | return NULL; | |
4177 | } | |
4178 | ||
4179 | ||
c32bde28 | 4180 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
4181 | PyObject *resultobj; |
4182 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4183 | wxVisualAttributes result; | |
4184 | PyObject * obj0 = 0 ; | |
4185 | char *kwnames[] = { | |
4186 | (char *) "variant", NULL | |
4187 | }; | |
4188 | ||
4189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4190 | if (obj0) { | |
c32bde28 | 4191 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
4192 | if (PyErr_Occurred()) SWIG_fail; |
4193 | } | |
4194 | { | |
19272049 | 4195 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4197 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4198 | ||
4199 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4200 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4201 | } |
4202 | { | |
4203 | wxVisualAttributes * resultptr; | |
4204 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4206 | } | |
4207 | return resultobj; | |
4208 | fail: | |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
c32bde28 | 4213 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4214 | PyObject *obj; |
4215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4216 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
4217 | Py_INCREF(obj); | |
4218 | return Py_BuildValue((char *)""); | |
4219 | } | |
c32bde28 | 4220 | static int _wrap_GaugeNameStr_set(PyObject *) { |
d55e5bfc RD |
4221 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
4222 | return 1; | |
4223 | } | |
4224 | ||
4225 | ||
4226 | static PyObject *_wrap_GaugeNameStr_get() { | |
4227 | PyObject *pyobj; | |
4228 | ||
4229 | { | |
4230 | #if wxUSE_UNICODE | |
4231 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
4232 | #else | |
4233 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
4234 | #endif | |
4235 | } | |
4236 | return pyobj; | |
4237 | } | |
4238 | ||
4239 | ||
c32bde28 | 4240 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4241 | PyObject *resultobj; |
4242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4243 | int arg2 = (int) -1 ; |
4244 | int arg3 = (int) 100 ; | |
d55e5bfc RD |
4245 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4246 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4247 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4248 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4249 | long arg6 = (long) wxGA_HORIZONTAL ; | |
4250 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4251 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4252 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
4253 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4254 | wxGauge *result; | |
4255 | wxPoint temp4 ; | |
4256 | wxSize temp5 ; | |
ae8162c8 | 4257 | bool temp8 = false ; |
d55e5bfc RD |
4258 | PyObject * obj0 = 0 ; |
4259 | PyObject * obj1 = 0 ; | |
4260 | PyObject * obj2 = 0 ; | |
4261 | PyObject * obj3 = 0 ; | |
4262 | PyObject * obj4 = 0 ; | |
4263 | PyObject * obj5 = 0 ; | |
4264 | PyObject * obj6 = 0 ; | |
4265 | PyObject * obj7 = 0 ; | |
4266 | char *kwnames[] = { | |
4267 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4268 | }; | |
4269 | ||
248ed943 | 4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4273 | if (obj1) { |
c32bde28 | 4274 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4275 | if (PyErr_Occurred()) SWIG_fail; |
4276 | } | |
4277 | if (obj2) { | |
c32bde28 | 4278 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4279 | if (PyErr_Occurred()) SWIG_fail; |
4280 | } | |
d55e5bfc RD |
4281 | if (obj3) { |
4282 | { | |
4283 | arg4 = &temp4; | |
4284 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4285 | } | |
4286 | } | |
4287 | if (obj4) { | |
4288 | { | |
4289 | arg5 = &temp5; | |
4290 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4291 | } | |
4292 | } | |
4293 | if (obj5) { | |
c32bde28 | 4294 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4295 | if (PyErr_Occurred()) SWIG_fail; |
4296 | } | |
4297 | if (obj6) { | |
4298 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
4299 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4300 | SWIG_fail; | |
4301 | if (arg7 == NULL) { | |
4302 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4303 | SWIG_fail; | |
4304 | } | |
4305 | } | |
4306 | if (obj7) { | |
4307 | { | |
4308 | arg8 = wxString_in_helper(obj7); | |
4309 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4310 | temp8 = true; |
d55e5bfc RD |
4311 | } |
4312 | } | |
4313 | { | |
0439c23b | 4314 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4316 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4317 | ||
4318 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4319 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4320 | } |
4321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
4322 | { | |
4323 | if (temp8) | |
4324 | delete arg8; | |
4325 | } | |
4326 | return resultobj; | |
4327 | fail: | |
4328 | { | |
4329 | if (temp8) | |
4330 | delete arg8; | |
4331 | } | |
4332 | return NULL; | |
4333 | } | |
4334 | ||
4335 | ||
c32bde28 | 4336 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4337 | PyObject *resultobj; |
4338 | wxGauge *result; | |
4339 | char *kwnames[] = { | |
4340 | NULL | |
4341 | }; | |
4342 | ||
4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
4344 | { | |
0439c23b | 4345 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4347 | result = (wxGauge *)new wxGauge(); | |
4348 | ||
4349 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4350 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4351 | } |
4352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
4353 | return resultobj; | |
4354 | fail: | |
4355 | return NULL; | |
4356 | } | |
4357 | ||
4358 | ||
c32bde28 | 4359 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4360 | PyObject *resultobj; |
4361 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4362 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4363 | int arg3 = (int) -1 ; |
4364 | int arg4 = (int) 100 ; | |
d55e5bfc RD |
4365 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4366 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4367 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4368 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4369 | long arg7 = (long) wxGA_HORIZONTAL ; | |
4370 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4371 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4372 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
4373 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4374 | bool result; | |
4375 | wxPoint temp5 ; | |
4376 | wxSize temp6 ; | |
ae8162c8 | 4377 | bool temp9 = false ; |
d55e5bfc RD |
4378 | PyObject * obj0 = 0 ; |
4379 | PyObject * obj1 = 0 ; | |
4380 | PyObject * obj2 = 0 ; | |
4381 | PyObject * obj3 = 0 ; | |
4382 | PyObject * obj4 = 0 ; | |
4383 | PyObject * obj5 = 0 ; | |
4384 | PyObject * obj6 = 0 ; | |
4385 | PyObject * obj7 = 0 ; | |
4386 | PyObject * obj8 = 0 ; | |
4387 | char *kwnames[] = { | |
4388 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4389 | }; | |
4390 | ||
248ed943 | 4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
4392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4396 | if (obj2) { |
c32bde28 | 4397 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4398 | if (PyErr_Occurred()) SWIG_fail; |
4399 | } | |
4400 | if (obj3) { | |
c32bde28 | 4401 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
4402 | if (PyErr_Occurred()) SWIG_fail; |
4403 | } | |
d55e5bfc RD |
4404 | if (obj4) { |
4405 | { | |
4406 | arg5 = &temp5; | |
4407 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4408 | } | |
4409 | } | |
4410 | if (obj5) { | |
4411 | { | |
4412 | arg6 = &temp6; | |
4413 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4414 | } | |
4415 | } | |
4416 | if (obj6) { | |
c32bde28 | 4417 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
4418 | if (PyErr_Occurred()) SWIG_fail; |
4419 | } | |
4420 | if (obj7) { | |
4421 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
4422 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4423 | SWIG_fail; | |
4424 | if (arg8 == NULL) { | |
4425 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4426 | SWIG_fail; | |
4427 | } | |
4428 | } | |
4429 | if (obj8) { | |
4430 | { | |
4431 | arg9 = wxString_in_helper(obj8); | |
4432 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4433 | temp9 = true; |
d55e5bfc RD |
4434 | } |
4435 | } | |
4436 | { | |
4437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4438 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4439 | ||
4440 | wxPyEndAllowThreads(__tstate); | |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | { | |
4444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4445 | } | |
4446 | { | |
4447 | if (temp9) | |
4448 | delete arg9; | |
4449 | } | |
4450 | return resultobj; | |
4451 | fail: | |
4452 | { | |
4453 | if (temp9) | |
4454 | delete arg9; | |
4455 | } | |
4456 | return NULL; | |
4457 | } | |
4458 | ||
4459 | ||
c32bde28 | 4460 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4461 | PyObject *resultobj; |
4462 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4463 | int arg2 ; | |
4464 | PyObject * obj0 = 0 ; | |
4465 | PyObject * obj1 = 0 ; | |
4466 | char *kwnames[] = { | |
4467 | (char *) "self",(char *) "range", NULL | |
4468 | }; | |
4469 | ||
4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
4471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4473 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4474 | if (PyErr_Occurred()) SWIG_fail; |
4475 | { | |
4476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4477 | (arg1)->SetRange(arg2); | |
4478 | ||
4479 | wxPyEndAllowThreads(__tstate); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
4482 | Py_INCREF(Py_None); resultobj = Py_None; | |
4483 | return resultobj; | |
4484 | fail: | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
c32bde28 | 4489 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4490 | PyObject *resultobj; |
4491 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4492 | int result; | |
4493 | PyObject * obj0 = 0 ; | |
4494 | char *kwnames[] = { | |
4495 | (char *) "self", NULL | |
4496 | }; | |
4497 | ||
4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
4499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4501 | { | |
4502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4503 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4504 | ||
4505 | wxPyEndAllowThreads(__tstate); | |
4506 | if (PyErr_Occurred()) SWIG_fail; | |
4507 | } | |
c32bde28 | 4508 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4509 | return resultobj; |
4510 | fail: | |
4511 | return NULL; | |
4512 | } | |
4513 | ||
4514 | ||
c32bde28 | 4515 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4516 | PyObject *resultobj; |
4517 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4518 | int arg2 ; | |
4519 | PyObject * obj0 = 0 ; | |
4520 | PyObject * obj1 = 0 ; | |
4521 | char *kwnames[] = { | |
4522 | (char *) "self",(char *) "pos", NULL | |
4523 | }; | |
4524 | ||
4525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
4526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4528 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4529 | if (PyErr_Occurred()) SWIG_fail; |
4530 | { | |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | (arg1)->SetValue(arg2); | |
4533 | ||
4534 | wxPyEndAllowThreads(__tstate); | |
4535 | if (PyErr_Occurred()) SWIG_fail; | |
4536 | } | |
4537 | Py_INCREF(Py_None); resultobj = Py_None; | |
4538 | return resultobj; | |
4539 | fail: | |
4540 | return NULL; | |
4541 | } | |
4542 | ||
4543 | ||
c32bde28 | 4544 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4545 | PyObject *resultobj; |
4546 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4547 | int result; | |
4548 | PyObject * obj0 = 0 ; | |
4549 | char *kwnames[] = { | |
4550 | (char *) "self", NULL | |
4551 | }; | |
4552 | ||
4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
4554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4556 | { | |
4557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4558 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4559 | ||
4560 | wxPyEndAllowThreads(__tstate); | |
4561 | if (PyErr_Occurred()) SWIG_fail; | |
4562 | } | |
c32bde28 | 4563 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4564 | return resultobj; |
4565 | fail: | |
4566 | return NULL; | |
4567 | } | |
4568 | ||
4569 | ||
c32bde28 | 4570 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4571 | PyObject *resultobj; |
4572 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4573 | bool result; | |
4574 | PyObject * obj0 = 0 ; | |
4575 | char *kwnames[] = { | |
4576 | (char *) "self", NULL | |
4577 | }; | |
4578 | ||
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
4580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4582 | { | |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4584 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4585 | ||
4586 | wxPyEndAllowThreads(__tstate); | |
4587 | if (PyErr_Occurred()) SWIG_fail; | |
4588 | } | |
4589 | { | |
4590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4591 | } | |
4592 | return resultobj; | |
4593 | fail: | |
4594 | return NULL; | |
4595 | } | |
4596 | ||
4597 | ||
c32bde28 | 4598 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4599 | PyObject *resultobj; |
4600 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4601 | int arg2 ; | |
4602 | PyObject * obj0 = 0 ; | |
4603 | PyObject * obj1 = 0 ; | |
4604 | char *kwnames[] = { | |
4605 | (char *) "self",(char *) "w", NULL | |
4606 | }; | |
4607 | ||
4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
4609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4611 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4612 | if (PyErr_Occurred()) SWIG_fail; |
4613 | { | |
4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4615 | (arg1)->SetShadowWidth(arg2); | |
4616 | ||
4617 | wxPyEndAllowThreads(__tstate); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
4619 | } | |
4620 | Py_INCREF(Py_None); resultobj = Py_None; | |
4621 | return resultobj; | |
4622 | fail: | |
4623 | return NULL; | |
4624 | } | |
4625 | ||
4626 | ||
c32bde28 | 4627 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4628 | PyObject *resultobj; |
4629 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4630 | int result; | |
4631 | PyObject * obj0 = 0 ; | |
4632 | char *kwnames[] = { | |
4633 | (char *) "self", NULL | |
4634 | }; | |
4635 | ||
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
4637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4639 | { | |
4640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4641 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4642 | ||
4643 | wxPyEndAllowThreads(__tstate); | |
4644 | if (PyErr_Occurred()) SWIG_fail; | |
4645 | } | |
c32bde28 | 4646 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4647 | return resultobj; |
4648 | fail: | |
4649 | return NULL; | |
4650 | } | |
4651 | ||
4652 | ||
c32bde28 | 4653 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4654 | PyObject *resultobj; |
4655 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4656 | int arg2 ; | |
4657 | PyObject * obj0 = 0 ; | |
4658 | PyObject * obj1 = 0 ; | |
4659 | char *kwnames[] = { | |
4660 | (char *) "self",(char *) "w", NULL | |
4661 | }; | |
4662 | ||
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
4664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4666 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4667 | if (PyErr_Occurred()) SWIG_fail; |
4668 | { | |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | (arg1)->SetBezelFace(arg2); | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | } | |
4675 | Py_INCREF(Py_None); resultobj = Py_None; | |
4676 | return resultobj; | |
4677 | fail: | |
4678 | return NULL; | |
4679 | } | |
4680 | ||
4681 | ||
c32bde28 | 4682 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4683 | PyObject *resultobj; |
4684 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4685 | int result; | |
4686 | PyObject * obj0 = 0 ; | |
4687 | char *kwnames[] = { | |
4688 | (char *) "self", NULL | |
4689 | }; | |
4690 | ||
4691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
4692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4694 | { | |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
c32bde28 | 4701 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4702 | return resultobj; |
4703 | fail: | |
4704 | return NULL; | |
4705 | } | |
4706 | ||
4707 | ||
c32bde28 | 4708 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
4709 | PyObject *resultobj; |
4710 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4711 | wxVisualAttributes result; | |
4712 | PyObject * obj0 = 0 ; | |
4713 | char *kwnames[] = { | |
4714 | (char *) "variant", NULL | |
4715 | }; | |
4716 | ||
4717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4718 | if (obj0) { | |
c32bde28 | 4719 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
4720 | if (PyErr_Occurred()) SWIG_fail; |
4721 | } | |
4722 | { | |
19272049 | 4723 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4725 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4726 | ||
4727 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4728 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4729 | } |
4730 | { | |
4731 | wxVisualAttributes * resultptr; | |
4732 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4733 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4734 | } | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
c32bde28 | 4741 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4742 | PyObject *obj; |
4743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4744 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4745 | Py_INCREF(obj); | |
4746 | return Py_BuildValue((char *)""); | |
4747 | } | |
c32bde28 | 4748 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
d55e5bfc RD |
4749 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4750 | return 1; | |
4751 | } | |
4752 | ||
4753 | ||
4754 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4755 | PyObject *pyobj; | |
4756 | ||
4757 | { | |
4758 | #if wxUSE_UNICODE | |
4759 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4760 | #else | |
4761 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4762 | #endif | |
4763 | } | |
4764 | return pyobj; | |
4765 | } | |
4766 | ||
4767 | ||
c32bde28 | 4768 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
4769 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4770 | return 1; | |
4771 | } | |
4772 | ||
4773 | ||
4774 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4775 | PyObject *pyobj; | |
4776 | ||
4777 | { | |
4778 | #if wxUSE_UNICODE | |
4779 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4780 | #else | |
4781 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4782 | #endif | |
4783 | } | |
4784 | return pyobj; | |
4785 | } | |
4786 | ||
4787 | ||
c32bde28 | 4788 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
d55e5bfc RD |
4789 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4790 | return 1; | |
4791 | } | |
4792 | ||
4793 | ||
4794 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4795 | PyObject *pyobj; | |
4796 | ||
4797 | { | |
4798 | #if wxUSE_UNICODE | |
4799 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4800 | #else | |
4801 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4802 | #endif | |
4803 | } | |
4804 | return pyobj; | |
4805 | } | |
4806 | ||
4807 | ||
c32bde28 | 4808 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4809 | PyObject *resultobj; |
4810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4811 | int arg2 = (int) -1 ; |
4812 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4813 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4814 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4815 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4816 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4817 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4818 | long arg6 = (long) 0 ; | |
4819 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4820 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4821 | wxStaticBox *result; | |
ae8162c8 | 4822 | bool temp3 = false ; |
d55e5bfc RD |
4823 | wxPoint temp4 ; |
4824 | wxSize temp5 ; | |
ae8162c8 | 4825 | bool temp7 = false ; |
d55e5bfc RD |
4826 | PyObject * obj0 = 0 ; |
4827 | PyObject * obj1 = 0 ; | |
4828 | PyObject * obj2 = 0 ; | |
4829 | PyObject * obj3 = 0 ; | |
4830 | PyObject * obj4 = 0 ; | |
4831 | PyObject * obj5 = 0 ; | |
4832 | PyObject * obj6 = 0 ; | |
4833 | char *kwnames[] = { | |
4834 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4835 | }; | |
4836 | ||
248ed943 | 4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4840 | if (obj1) { |
c32bde28 | 4841 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4842 | if (PyErr_Occurred()) SWIG_fail; |
4843 | } | |
4844 | if (obj2) { | |
4845 | { | |
4846 | arg3 = wxString_in_helper(obj2); | |
4847 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4848 | temp3 = true; |
248ed943 | 4849 | } |
d55e5bfc RD |
4850 | } |
4851 | if (obj3) { | |
4852 | { | |
4853 | arg4 = &temp4; | |
4854 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4855 | } | |
4856 | } | |
4857 | if (obj4) { | |
4858 | { | |
4859 | arg5 = &temp5; | |
4860 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4861 | } | |
4862 | } | |
4863 | if (obj5) { | |
c32bde28 | 4864 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4865 | if (PyErr_Occurred()) SWIG_fail; |
4866 | } | |
4867 | if (obj6) { | |
4868 | { | |
4869 | arg7 = wxString_in_helper(obj6); | |
4870 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 4871 | temp7 = true; |
d55e5bfc RD |
4872 | } |
4873 | } | |
4874 | { | |
0439c23b | 4875 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4877 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4878 | ||
4879 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4880 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4881 | } |
b0f7404b | 4882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
4883 | { |
4884 | if (temp3) | |
4885 | delete arg3; | |
4886 | } | |
4887 | { | |
4888 | if (temp7) | |
4889 | delete arg7; | |
4890 | } | |
4891 | return resultobj; | |
4892 | fail: | |
4893 | { | |
4894 | if (temp3) | |
4895 | delete arg3; | |
4896 | } | |
4897 | { | |
4898 | if (temp7) | |
4899 | delete arg7; | |
4900 | } | |
4901 | return NULL; | |
4902 | } | |
4903 | ||
4904 | ||
c32bde28 | 4905 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4906 | PyObject *resultobj; |
4907 | wxStaticBox *result; | |
4908 | char *kwnames[] = { | |
4909 | NULL | |
4910 | }; | |
4911 | ||
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4913 | { | |
0439c23b | 4914 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4916 | result = (wxStaticBox *)new wxStaticBox(); | |
4917 | ||
4918 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4919 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4920 | } |
b0f7404b | 4921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
4922 | return resultobj; |
4923 | fail: | |
4924 | return NULL; | |
4925 | } | |
4926 | ||
4927 | ||
c32bde28 | 4928 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4929 | PyObject *resultobj; |
4930 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4931 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4932 | int arg3 = (int) -1 ; |
4933 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4934 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4935 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4936 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4937 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4938 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4939 | long arg7 = (long) 0 ; | |
4940 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4941 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4942 | bool result; | |
ae8162c8 | 4943 | bool temp4 = false ; |
d55e5bfc RD |
4944 | wxPoint temp5 ; |
4945 | wxSize temp6 ; | |
ae8162c8 | 4946 | bool temp8 = false ; |
d55e5bfc RD |
4947 | PyObject * obj0 = 0 ; |
4948 | PyObject * obj1 = 0 ; | |
4949 | PyObject * obj2 = 0 ; | |
4950 | PyObject * obj3 = 0 ; | |
4951 | PyObject * obj4 = 0 ; | |
4952 | PyObject * obj5 = 0 ; | |
4953 | PyObject * obj6 = 0 ; | |
4954 | PyObject * obj7 = 0 ; | |
4955 | char *kwnames[] = { | |
4956 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4957 | }; | |
4958 | ||
248ed943 | 4959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4964 | if (obj2) { |
c32bde28 | 4965 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4966 | if (PyErr_Occurred()) SWIG_fail; |
4967 | } | |
4968 | if (obj3) { | |
4969 | { | |
4970 | arg4 = wxString_in_helper(obj3); | |
4971 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4972 | temp4 = true; |
248ed943 | 4973 | } |
d55e5bfc RD |
4974 | } |
4975 | if (obj4) { | |
4976 | { | |
4977 | arg5 = &temp5; | |
4978 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4979 | } | |
4980 | } | |
4981 | if (obj5) { | |
4982 | { | |
4983 | arg6 = &temp6; | |
4984 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4985 | } | |
4986 | } | |
4987 | if (obj6) { | |
c32bde28 | 4988 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
4989 | if (PyErr_Occurred()) SWIG_fail; |
4990 | } | |
4991 | if (obj7) { | |
4992 | { | |
4993 | arg8 = wxString_in_helper(obj7); | |
4994 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4995 | temp8 = true; |
d55e5bfc RD |
4996 | } |
4997 | } | |
4998 | { | |
4999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5000 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5001 | ||
5002 | wxPyEndAllowThreads(__tstate); | |
5003 | if (PyErr_Occurred()) SWIG_fail; | |
5004 | } | |
5005 | { | |
5006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5007 | } | |
5008 | { | |
5009 | if (temp4) | |
5010 | delete arg4; | |
5011 | } | |
5012 | { | |
5013 | if (temp8) | |
5014 | delete arg8; | |
5015 | } | |
5016 | return resultobj; | |
5017 | fail: | |
5018 | { | |
5019 | if (temp4) | |
5020 | delete arg4; | |
5021 | } | |
5022 | { | |
5023 | if (temp8) | |
5024 | delete arg8; | |
5025 | } | |
5026 | return NULL; | |
5027 | } | |
5028 | ||
5029 | ||
c32bde28 | 5030 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
5031 | PyObject *resultobj; |
5032 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5033 | wxVisualAttributes result; | |
5034 | PyObject * obj0 = 0 ; | |
5035 | char *kwnames[] = { | |
5036 | (char *) "variant", NULL | |
5037 | }; | |
5038 | ||
5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5040 | if (obj0) { | |
c32bde28 | 5041 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
5042 | if (PyErr_Occurred()) SWIG_fail; |
5043 | } | |
5044 | { | |
19272049 | 5045 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5047 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5048 | ||
5049 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5050 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5051 | } |
5052 | { | |
5053 | wxVisualAttributes * resultptr; | |
5054 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5055 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5056 | } | |
5057 | return resultobj; | |
5058 | fail: | |
5059 | return NULL; | |
5060 | } | |
5061 | ||
5062 | ||
c32bde28 | 5063 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5064 | PyObject *obj; |
5065 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5066 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
5067 | Py_INCREF(obj); | |
5068 | return Py_BuildValue((char *)""); | |
5069 | } | |
c32bde28 | 5070 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5071 | PyObject *resultobj; |
5072 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5073 | int arg2 = (int) -1 ; |
d55e5bfc RD |
5074 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5075 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5076 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5077 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5078 | long arg5 = (long) wxLI_HORIZONTAL ; | |
5079 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
5080 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5081 | wxStaticLine *result; | |
5082 | wxPoint temp3 ; | |
5083 | wxSize temp4 ; | |
ae8162c8 | 5084 | bool temp6 = false ; |
d55e5bfc RD |
5085 | PyObject * obj0 = 0 ; |
5086 | PyObject * obj1 = 0 ; | |
5087 | PyObject * obj2 = 0 ; | |
5088 | PyObject * obj3 = 0 ; | |
5089 | PyObject * obj4 = 0 ; | |
5090 | PyObject * obj5 = 0 ; | |
5091 | char *kwnames[] = { | |
5092 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5093 | }; | |
5094 | ||
248ed943 | 5095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
5096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5098 | if (obj1) { |
c32bde28 | 5099 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5100 | if (PyErr_Occurred()) SWIG_fail; |
5101 | } | |
d55e5bfc RD |
5102 | if (obj2) { |
5103 | { | |
5104 | arg3 = &temp3; | |
5105 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5106 | } | |
5107 | } | |
5108 | if (obj3) { | |
5109 | { | |
5110 | arg4 = &temp4; | |
5111 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5112 | } | |
5113 | } | |
5114 | if (obj4) { | |
c32bde28 | 5115 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
5116 | if (PyErr_Occurred()) SWIG_fail; |
5117 | } | |
5118 | if (obj5) { | |
5119 | { | |
5120 | arg6 = wxString_in_helper(obj5); | |
5121 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 5122 | temp6 = true; |
d55e5bfc RD |
5123 | } |
5124 | } | |
5125 | { | |
0439c23b | 5126 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5128 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5129 | ||
5130 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5131 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5132 | } |
5133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
5134 | { | |
5135 | if (temp6) | |
5136 | delete arg6; | |
5137 | } | |
5138 | return resultobj; | |
5139 | fail: | |
5140 | { | |
5141 | if (temp6) | |
5142 | delete arg6; | |
5143 | } | |
5144 | return NULL; | |
5145 | } | |
5146 | ||
5147 | ||
c32bde28 | 5148 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5149 | PyObject *resultobj; |
5150 | wxStaticLine *result; | |
5151 | char *kwnames[] = { | |
5152 | NULL | |
5153 | }; | |
5154 | ||
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
5156 | { | |
0439c23b | 5157 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5159 | result = (wxStaticLine *)new wxStaticLine(); | |
5160 | ||
5161 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5162 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5163 | } |
5164 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
5165 | return resultobj; | |
5166 | fail: | |
5167 | return NULL; | |
5168 | } | |
5169 | ||
5170 | ||
c32bde28 | 5171 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5172 | PyObject *resultobj; |
5173 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
5174 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5175 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5176 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5177 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5178 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5179 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5180 | long arg6 = (long) wxLI_HORIZONTAL ; | |
5181 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
5182 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5183 | bool result; | |
5184 | wxPoint temp4 ; | |
5185 | wxSize temp5 ; | |
ae8162c8 | 5186 | bool temp7 = false ; |
d55e5bfc RD |
5187 | PyObject * obj0 = 0 ; |
5188 | PyObject * obj1 = 0 ; | |
5189 | PyObject * obj2 = 0 ; | |
5190 | PyObject * obj3 = 0 ; | |
5191 | PyObject * obj4 = 0 ; | |
5192 | PyObject * obj5 = 0 ; | |
5193 | PyObject * obj6 = 0 ; | |
5194 | char *kwnames[] = { | |
5195 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5196 | }; | |
5197 | ||
248ed943 | 5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
5200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5201 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5203 | if (obj2) { |
c32bde28 | 5204 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5205 | if (PyErr_Occurred()) SWIG_fail; |
5206 | } | |
d55e5bfc RD |
5207 | if (obj3) { |
5208 | { | |
5209 | arg4 = &temp4; | |
5210 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5211 | } | |
5212 | } | |
5213 | if (obj4) { | |
5214 | { | |
5215 | arg5 = &temp5; | |
5216 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5217 | } | |
5218 | } | |
5219 | if (obj5) { | |
c32bde28 | 5220 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
5221 | if (PyErr_Occurred()) SWIG_fail; |
5222 | } | |
5223 | if (obj6) { | |
5224 | { | |
5225 | arg7 = wxString_in_helper(obj6); | |
5226 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5227 | temp7 = true; |
d55e5bfc RD |
5228 | } |
5229 | } | |
5230 | { | |
5231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5232 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5233 | ||
5234 | wxPyEndAllowThreads(__tstate); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
5237 | { | |
5238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5239 | } | |
5240 | { | |
5241 | if (temp7) | |
5242 | delete arg7; | |
5243 | } | |
5244 | return resultobj; | |
5245 | fail: | |
5246 | { | |
5247 | if (temp7) | |
5248 | delete arg7; | |
5249 | } | |
5250 | return NULL; | |
5251 | } | |
5252 | ||
5253 | ||
c32bde28 | 5254 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5255 | PyObject *resultobj; |
5256 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
5257 | bool result; | |
5258 | PyObject * obj0 = 0 ; | |
5259 | char *kwnames[] = { | |
5260 | (char *) "self", NULL | |
5261 | }; | |
5262 | ||
5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
5264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
5265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5266 | { | |
5267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5268 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
5269 | ||
5270 | wxPyEndAllowThreads(__tstate); | |
5271 | if (PyErr_Occurred()) SWIG_fail; | |
5272 | } | |
5273 | { | |
5274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5275 | } | |
5276 | return resultobj; | |
5277 | fail: | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
c32bde28 | 5282 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5283 | PyObject *resultobj; |
5284 | int result; | |
5285 | char *kwnames[] = { | |
5286 | NULL | |
5287 | }; | |
5288 | ||
5289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | result = (int)wxStaticLine::GetDefaultSize(); | |
5293 | ||
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
c32bde28 | 5297 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5298 | return resultobj; |
5299 | fail: | |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
c32bde28 | 5304 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
5305 | PyObject *resultobj; |
5306 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5307 | wxVisualAttributes result; | |
5308 | PyObject * obj0 = 0 ; | |
5309 | char *kwnames[] = { | |
5310 | (char *) "variant", NULL | |
5311 | }; | |
5312 | ||
5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5314 | if (obj0) { | |
c32bde28 | 5315 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
5316 | if (PyErr_Occurred()) SWIG_fail; |
5317 | } | |
5318 | { | |
19272049 | 5319 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5321 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5322 | ||
5323 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5324 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5325 | } |
5326 | { | |
5327 | wxVisualAttributes * resultptr; | |
5328 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5329 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5330 | } | |
5331 | return resultobj; | |
5332 | fail: | |
5333 | return NULL; | |
5334 | } | |
5335 | ||
5336 | ||
c32bde28 | 5337 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5338 | PyObject *obj; |
5339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5340 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
5341 | Py_INCREF(obj); | |
5342 | return Py_BuildValue((char *)""); | |
5343 | } | |
c32bde28 | 5344 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5345 | PyObject *resultobj; |
5346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5347 | int arg2 = (int) -1 ; |
5348 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5349 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
5350 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5351 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5352 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5353 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5354 | long arg6 = (long) 0 ; | |
5355 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
5356 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5357 | wxStaticText *result; | |
ae8162c8 | 5358 | bool temp3 = false ; |
d55e5bfc RD |
5359 | wxPoint temp4 ; |
5360 | wxSize temp5 ; | |
ae8162c8 | 5361 | bool temp7 = false ; |
d55e5bfc RD |
5362 | PyObject * obj0 = 0 ; |
5363 | PyObject * obj1 = 0 ; | |
5364 | PyObject * obj2 = 0 ; | |
5365 | PyObject * obj3 = 0 ; | |
5366 | PyObject * obj4 = 0 ; | |
5367 | PyObject * obj5 = 0 ; | |
5368 | PyObject * obj6 = 0 ; | |
5369 | char *kwnames[] = { | |
5370 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5371 | }; | |
5372 | ||
248ed943 | 5373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5376 | if (obj1) { |
c32bde28 | 5377 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5378 | if (PyErr_Occurred()) SWIG_fail; |
5379 | } | |
5380 | if (obj2) { | |
5381 | { | |
5382 | arg3 = wxString_in_helper(obj2); | |
5383 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 5384 | temp3 = true; |
248ed943 | 5385 | } |
d55e5bfc RD |
5386 | } |
5387 | if (obj3) { | |
5388 | { | |
5389 | arg4 = &temp4; | |
5390 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5391 | } | |
5392 | } | |
5393 | if (obj4) { | |
5394 | { | |
5395 | arg5 = &temp5; | |
5396 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5397 | } | |
5398 | } | |
5399 | if (obj5) { | |
c32bde28 | 5400 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
5401 | if (PyErr_Occurred()) SWIG_fail; |
5402 | } | |
5403 | if (obj6) { | |
5404 | { | |
5405 | arg7 = wxString_in_helper(obj6); | |
5406 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5407 | temp7 = true; |
d55e5bfc RD |
5408 | } |
5409 | } | |
5410 | { | |
0439c23b | 5411 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5413 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5414 | ||
5415 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5416 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5417 | } |
5418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5419 | { | |
5420 | if (temp3) | |
5421 | delete arg3; | |
5422 | } | |
5423 | { | |
5424 | if (temp7) | |
5425 | delete arg7; | |
5426 | } | |
5427 | return resultobj; | |
5428 | fail: | |
5429 | { | |
5430 | if (temp3) | |
5431 | delete arg3; | |
5432 | } | |
5433 | { | |
5434 | if (temp7) | |
5435 | delete arg7; | |
5436 | } | |
5437 | return NULL; | |
5438 | } | |
5439 | ||
5440 | ||
c32bde28 | 5441 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5442 | PyObject *resultobj; |
5443 | wxStaticText *result; | |
5444 | char *kwnames[] = { | |
5445 | NULL | |
5446 | }; | |
5447 | ||
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5449 | { | |
0439c23b | 5450 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5452 | result = (wxStaticText *)new wxStaticText(); | |
5453 | ||
5454 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5455 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5456 | } |
5457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5458 | return resultobj; | |
5459 | fail: | |
5460 | return NULL; | |
5461 | } | |
5462 | ||
5463 | ||
c32bde28 | 5464 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5465 | PyObject *resultobj; |
5466 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5467 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5468 | int arg3 = (int) -1 ; |
5469 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5470 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
5471 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5472 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5473 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5474 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5475 | long arg7 = (long) 0 ; | |
5476 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5477 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5478 | bool result; | |
ae8162c8 | 5479 | bool temp4 = false ; |
d55e5bfc RD |
5480 | wxPoint temp5 ; |
5481 | wxSize temp6 ; | |
ae8162c8 | 5482 | bool temp8 = false ; |
d55e5bfc RD |
5483 | PyObject * obj0 = 0 ; |
5484 | PyObject * obj1 = 0 ; | |
5485 | PyObject * obj2 = 0 ; | |
5486 | PyObject * obj3 = 0 ; | |
5487 | PyObject * obj4 = 0 ; | |
5488 | PyObject * obj5 = 0 ; | |
5489 | PyObject * obj6 = 0 ; | |
5490 | PyObject * obj7 = 0 ; | |
5491 | char *kwnames[] = { | |
5492 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5493 | }; | |
5494 | ||
248ed943 | 5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5500 | if (obj2) { |
c32bde28 | 5501 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5502 | if (PyErr_Occurred()) SWIG_fail; |
5503 | } | |
5504 | if (obj3) { | |
5505 | { | |
5506 | arg4 = wxString_in_helper(obj3); | |
5507 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 5508 | temp4 = true; |
248ed943 | 5509 | } |
d55e5bfc RD |
5510 | } |
5511 | if (obj4) { | |
5512 | { | |
5513 | arg5 = &temp5; | |
5514 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5515 | } | |
5516 | } | |
5517 | if (obj5) { | |
5518 | { | |
5519 | arg6 = &temp6; | |
5520 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5521 | } | |
5522 | } | |
5523 | if (obj6) { | |
c32bde28 | 5524 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
5525 | if (PyErr_Occurred()) SWIG_fail; |
5526 | } | |
5527 | if (obj7) { | |
5528 | { | |
5529 | arg8 = wxString_in_helper(obj7); | |
5530 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5531 | temp8 = true; |
d55e5bfc RD |
5532 | } |
5533 | } | |
5534 | { | |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5536 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5537 | ||
5538 | wxPyEndAllowThreads(__tstate); | |
5539 | if (PyErr_Occurred()) SWIG_fail; | |
5540 | } | |
5541 | { | |
5542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5543 | } | |
5544 | { | |
5545 | if (temp4) | |
5546 | delete arg4; | |
5547 | } | |
5548 | { | |
5549 | if (temp8) | |
5550 | delete arg8; | |
5551 | } | |
5552 | return resultobj; | |
5553 | fail: | |
5554 | { | |
5555 | if (temp4) | |
5556 | delete arg4; | |
5557 | } | |
5558 | { | |
5559 | if (temp8) | |
5560 | delete arg8; | |
5561 | } | |
5562 | return NULL; | |
5563 | } | |
5564 | ||
5565 | ||
c32bde28 | 5566 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
5567 | PyObject *resultobj; |
5568 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5569 | wxVisualAttributes result; | |
5570 | PyObject * obj0 = 0 ; | |
5571 | char *kwnames[] = { | |
5572 | (char *) "variant", NULL | |
5573 | }; | |
5574 | ||
5575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5576 | if (obj0) { | |
c32bde28 | 5577 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
5578 | if (PyErr_Occurred()) SWIG_fail; |
5579 | } | |
5580 | { | |
19272049 | 5581 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5583 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5584 | ||
5585 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5586 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5587 | } |
5588 | { | |
5589 | wxVisualAttributes * resultptr; | |
5590 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5591 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5592 | } | |
5593 | return resultobj; | |
5594 | fail: | |
5595 | return NULL; | |
5596 | } | |
5597 | ||
5598 | ||
c32bde28 | 5599 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5600 | PyObject *obj; |
5601 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5602 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5603 | Py_INCREF(obj); | |
5604 | return Py_BuildValue((char *)""); | |
5605 | } | |
c32bde28 | 5606 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5607 | PyObject *resultobj; |
5608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5609 | int arg2 = (int) -1 ; |
5610 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5611 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
5612 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5613 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5614 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5615 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5616 | long arg6 = (long) 0 ; | |
5617 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5618 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5619 | wxStaticBitmap *result; | |
5620 | wxPoint temp4 ; | |
5621 | wxSize temp5 ; | |
ae8162c8 | 5622 | bool temp7 = false ; |
d55e5bfc RD |
5623 | PyObject * obj0 = 0 ; |
5624 | PyObject * obj1 = 0 ; | |
5625 | PyObject * obj2 = 0 ; | |
5626 | PyObject * obj3 = 0 ; | |
5627 | PyObject * obj4 = 0 ; | |
5628 | PyObject * obj5 = 0 ; | |
5629 | PyObject * obj6 = 0 ; | |
5630 | char *kwnames[] = { | |
5631 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5632 | }; | |
5633 | ||
248ed943 | 5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5637 | if (obj1) { |
c32bde28 | 5638 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5639 | if (PyErr_Occurred()) SWIG_fail; |
5640 | } | |
5641 | if (obj2) { | |
5642 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5643 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5644 | SWIG_fail; |
248ed943 RD |
5645 | if (arg3 == NULL) { |
5646 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5647 | SWIG_fail; | |
5648 | } | |
d55e5bfc RD |
5649 | } |
5650 | if (obj3) { | |
5651 | { | |
5652 | arg4 = &temp4; | |
5653 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5654 | } | |
5655 | } | |
5656 | if (obj4) { | |
5657 | { | |
5658 | arg5 = &temp5; | |
5659 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5660 | } | |
5661 | } | |
5662 | if (obj5) { | |
c32bde28 | 5663 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
5664 | if (PyErr_Occurred()) SWIG_fail; |
5665 | } | |
5666 | if (obj6) { | |
5667 | { | |
5668 | arg7 = wxString_in_helper(obj6); | |
5669 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5670 | temp7 = true; |
d55e5bfc RD |
5671 | } |
5672 | } | |
5673 | { | |
0439c23b | 5674 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5676 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5677 | ||
5678 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5679 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5680 | } |
5681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5682 | { | |
5683 | if (temp7) | |
5684 | delete arg7; | |
5685 | } | |
5686 | return resultobj; | |
5687 | fail: | |
5688 | { | |
5689 | if (temp7) | |
5690 | delete arg7; | |
5691 | } | |
5692 | return NULL; | |
5693 | } | |
5694 | ||
5695 | ||
c32bde28 | 5696 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5697 | PyObject *resultobj; |
5698 | wxStaticBitmap *result; | |
5699 | char *kwnames[] = { | |
5700 | NULL | |
5701 | }; | |
5702 | ||
5703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5704 | { | |
0439c23b | 5705 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5707 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5708 | ||
5709 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5710 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5711 | } |
5712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5713 | return resultobj; | |
5714 | fail: | |
5715 | return NULL; | |
5716 | } | |
5717 | ||
5718 | ||
c32bde28 | 5719 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5720 | PyObject *resultobj; |
5721 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5722 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5723 | int arg3 = (int) -1 ; |
5724 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5725 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
5726 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5727 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5728 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5729 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5730 | long arg7 = (long) 0 ; | |
5731 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5732 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5733 | bool result; | |
5734 | wxPoint temp5 ; | |
5735 | wxSize temp6 ; | |
ae8162c8 | 5736 | bool temp8 = false ; |
d55e5bfc RD |
5737 | PyObject * obj0 = 0 ; |
5738 | PyObject * obj1 = 0 ; | |
5739 | PyObject * obj2 = 0 ; | |
5740 | PyObject * obj3 = 0 ; | |
5741 | PyObject * obj4 = 0 ; | |
5742 | PyObject * obj5 = 0 ; | |
5743 | PyObject * obj6 = 0 ; | |
5744 | PyObject * obj7 = 0 ; | |
5745 | char *kwnames[] = { | |
5746 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5747 | }; | |
5748 | ||
248ed943 | 5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5752 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5754 | if (obj2) { |
c32bde28 | 5755 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5756 | if (PyErr_Occurred()) SWIG_fail; |
5757 | } | |
5758 | if (obj3) { | |
5759 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5760 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5761 | SWIG_fail; |
248ed943 RD |
5762 | if (arg4 == NULL) { |
5763 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5764 | SWIG_fail; | |
5765 | } | |
d55e5bfc RD |
5766 | } |
5767 | if (obj4) { | |
5768 | { | |
5769 | arg5 = &temp5; | |
5770 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5771 | } | |
5772 | } | |
5773 | if (obj5) { | |
5774 | { | |
5775 | arg6 = &temp6; | |
5776 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5777 | } | |
5778 | } | |
5779 | if (obj6) { | |
c32bde28 | 5780 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
5781 | if (PyErr_Occurred()) SWIG_fail; |
5782 | } | |
5783 | if (obj7) { | |
5784 | { | |
5785 | arg8 = wxString_in_helper(obj7); | |
5786 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5787 | temp8 = true; |
d55e5bfc RD |
5788 | } |
5789 | } | |
5790 | { | |
5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5792 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5793 | ||
5794 | wxPyEndAllowThreads(__tstate); | |
5795 | if (PyErr_Occurred()) SWIG_fail; | |
5796 | } | |
5797 | { | |
5798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5799 | } | |
5800 | { | |
5801 | if (temp8) | |
5802 | delete arg8; | |
5803 | } | |
5804 | return resultobj; | |
5805 | fail: | |
5806 | { | |
5807 | if (temp8) | |
5808 | delete arg8; | |
5809 | } | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
c32bde28 | 5814 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5815 | PyObject *resultobj; |
5816 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5817 | wxBitmap result; | |
5818 | PyObject * obj0 = 0 ; | |
5819 | char *kwnames[] = { | |
5820 | (char *) "self", NULL | |
5821 | }; | |
5822 | ||
5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
5824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5826 | { | |
5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5828 | result = (arg1)->GetBitmap(); | |
5829 | ||
5830 | wxPyEndAllowThreads(__tstate); | |
5831 | if (PyErr_Occurred()) SWIG_fail; | |
5832 | } | |
5833 | { | |
5834 | wxBitmap * resultptr; | |
5835 | resultptr = new wxBitmap((wxBitmap &) result); | |
5836 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5837 | } | |
5838 | return resultobj; | |
5839 | fail: | |
5840 | return NULL; | |
5841 | } | |
5842 | ||
5843 | ||
c32bde28 | 5844 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5845 | PyObject *resultobj; |
5846 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5847 | wxBitmap *arg2 = 0 ; | |
5848 | PyObject * obj0 = 0 ; | |
5849 | PyObject * obj1 = 0 ; | |
5850 | char *kwnames[] = { | |
5851 | (char *) "self",(char *) "bitmap", NULL | |
5852 | }; | |
5853 | ||
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5859 | SWIG_fail; | |
5860 | if (arg2 == NULL) { | |
5861 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5862 | SWIG_fail; | |
5863 | } | |
5864 | { | |
5865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5866 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5867 | ||
5868 | wxPyEndAllowThreads(__tstate); | |
5869 | if (PyErr_Occurred()) SWIG_fail; | |
5870 | } | |
5871 | Py_INCREF(Py_None); resultobj = Py_None; | |
5872 | return resultobj; | |
5873 | fail: | |
5874 | return NULL; | |
5875 | } | |
5876 | ||
5877 | ||
c32bde28 | 5878 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5879 | PyObject *resultobj; |
5880 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5881 | wxIcon *arg2 = 0 ; | |
5882 | PyObject * obj0 = 0 ; | |
5883 | PyObject * obj1 = 0 ; | |
5884 | char *kwnames[] = { | |
5885 | (char *) "self",(char *) "icon", NULL | |
5886 | }; | |
5887 | ||
5888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
5889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5892 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5893 | SWIG_fail; | |
5894 | if (arg2 == NULL) { | |
5895 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5896 | SWIG_fail; | |
5897 | } | |
5898 | { | |
5899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5900 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5901 | ||
5902 | wxPyEndAllowThreads(__tstate); | |
5903 | if (PyErr_Occurred()) SWIG_fail; | |
5904 | } | |
5905 | Py_INCREF(Py_None); resultobj = Py_None; | |
5906 | return resultobj; | |
5907 | fail: | |
5908 | return NULL; | |
5909 | } | |
5910 | ||
5911 | ||
c32bde28 | 5912 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
5913 | PyObject *resultobj; |
5914 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5915 | wxVisualAttributes result; | |
5916 | PyObject * obj0 = 0 ; | |
5917 | char *kwnames[] = { | |
5918 | (char *) "variant", NULL | |
5919 | }; | |
5920 | ||
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5922 | if (obj0) { | |
c32bde28 | 5923 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
5924 | if (PyErr_Occurred()) SWIG_fail; |
5925 | } | |
5926 | { | |
19272049 | 5927 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5929 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5930 | ||
5931 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5932 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5933 | } |
5934 | { | |
5935 | wxVisualAttributes * resultptr; | |
5936 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5938 | } | |
5939 | return resultobj; | |
5940 | fail: | |
5941 | return NULL; | |
5942 | } | |
5943 | ||
5944 | ||
c32bde28 | 5945 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5946 | PyObject *obj; |
5947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5948 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5949 | Py_INCREF(obj); | |
5950 | return Py_BuildValue((char *)""); | |
5951 | } | |
c32bde28 | 5952 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
5953 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5954 | return 1; | |
5955 | } | |
5956 | ||
5957 | ||
5958 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5959 | PyObject *pyobj; | |
5960 | ||
5961 | { | |
5962 | #if wxUSE_UNICODE | |
5963 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5964 | #else | |
5965 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5966 | #endif | |
5967 | } | |
5968 | return pyobj; | |
5969 | } | |
5970 | ||
5971 | ||
c32bde28 | 5972 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5973 | PyObject *resultobj; |
5974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5975 | int arg2 = (int) -1 ; |
d55e5bfc RD |
5976 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5977 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5978 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5979 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5980 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5981 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5982 | long arg6 = (long) 0 ; | |
5983 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5984 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5985 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5986 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5987 | wxListBox *result; | |
5988 | wxPoint temp3 ; | |
5989 | wxSize temp4 ; | |
ae8162c8 RD |
5990 | bool temp5 = false ; |
5991 | bool temp8 = false ; | |
d55e5bfc RD |
5992 | PyObject * obj0 = 0 ; |
5993 | PyObject * obj1 = 0 ; | |
5994 | PyObject * obj2 = 0 ; | |
5995 | PyObject * obj3 = 0 ; | |
5996 | PyObject * obj4 = 0 ; | |
5997 | PyObject * obj5 = 0 ; | |
5998 | PyObject * obj6 = 0 ; | |
5999 | PyObject * obj7 = 0 ; | |
6000 | char *kwnames[] = { | |
6001 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6002 | }; | |
6003 | ||
248ed943 | 6004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
6005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6007 | if (obj1) { |
c32bde28 | 6008 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
6009 | if (PyErr_Occurred()) SWIG_fail; |
6010 | } | |
d55e5bfc RD |
6011 | if (obj2) { |
6012 | { | |
6013 | arg3 = &temp3; | |
6014 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6015 | } | |
6016 | } | |
6017 | if (obj3) { | |
6018 | { | |
6019 | arg4 = &temp4; | |
6020 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6021 | } | |
6022 | } | |
6023 | if (obj4) { | |
6024 | { | |
6025 | if (! PySequence_Check(obj4)) { | |
6026 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6027 | SWIG_fail; | |
6028 | } | |
6029 | arg5 = new wxArrayString; | |
ae8162c8 | 6030 | temp5 = true; |
d55e5bfc RD |
6031 | int i, len=PySequence_Length(obj4); |
6032 | for (i=0; i<len; i++) { | |
6033 | PyObject* item = PySequence_GetItem(obj4, i); | |
6034 | #if wxUSE_UNICODE | |
6035 | PyObject* str = PyObject_Unicode(item); | |
6036 | #else | |
6037 | PyObject* str = PyObject_Str(item); | |
6038 | #endif | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | arg5->Add(Py2wxString(str)); | |
6041 | Py_DECREF(item); | |
6042 | Py_DECREF(str); | |
6043 | } | |
6044 | } | |
6045 | } | |
6046 | if (obj5) { | |
c32bde28 | 6047 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
6048 | if (PyErr_Occurred()) SWIG_fail; |
6049 | } | |
6050 | if (obj6) { | |
6051 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
6052 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6053 | SWIG_fail; | |
6054 | if (arg7 == NULL) { | |
6055 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6056 | SWIG_fail; | |
6057 | } | |
6058 | } | |
6059 | if (obj7) { | |
6060 | { | |
6061 | arg8 = wxString_in_helper(obj7); | |
6062 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6063 | temp8 = true; |
d55e5bfc RD |
6064 | } |
6065 | } | |
6066 | { | |
0439c23b | 6067 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6069 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6070 | ||
6071 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6072 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6073 | } |
6074 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
6075 | { | |
6076 | if (temp5) delete arg5; | |
6077 | } | |
6078 | { | |
6079 | if (temp8) | |
6080 | delete arg8; | |
6081 | } | |
6082 | return resultobj; | |
6083 | fail: | |
6084 | { | |
6085 | if (temp5) delete arg5; | |
6086 | } | |
6087 | { | |
6088 | if (temp8) | |
6089 | delete arg8; | |
6090 | } | |
6091 | return NULL; | |
6092 | } | |
6093 | ||
6094 | ||
c32bde28 | 6095 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6096 | PyObject *resultobj; |
6097 | wxListBox *result; | |
6098 | char *kwnames[] = { | |
6099 | NULL | |
6100 | }; | |
6101 | ||
6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
6103 | { | |
0439c23b | 6104 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6106 | result = (wxListBox *)new wxListBox(); | |
6107 | ||
6108 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6109 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6110 | } |
6111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
6112 | return resultobj; | |
6113 | fail: | |
6114 | return NULL; | |
6115 | } | |
6116 | ||
6117 | ||
c32bde28 | 6118 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6119 | PyObject *resultobj; |
6120 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6121 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6122 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6123 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6124 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6125 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6126 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6127 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
6128 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6129 | long arg7 = (long) 0 ; | |
6130 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6131 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6132 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6133 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6134 | bool result; | |
6135 | wxPoint temp4 ; | |
6136 | wxSize temp5 ; | |
ae8162c8 RD |
6137 | bool temp6 = false ; |
6138 | bool temp9 = false ; | |
d55e5bfc RD |
6139 | PyObject * obj0 = 0 ; |
6140 | PyObject * obj1 = 0 ; | |
6141 | PyObject * obj2 = 0 ; | |
6142 | PyObject * obj3 = 0 ; | |
6143 | PyObject * obj4 = 0 ; | |
6144 | PyObject * obj5 = 0 ; | |
6145 | PyObject * obj6 = 0 ; | |
6146 | PyObject * obj7 = 0 ; | |
6147 | PyObject * obj8 = 0 ; | |
6148 | char *kwnames[] = { | |
6149 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6150 | }; | |
6151 | ||
248ed943 | 6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
6153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6157 | if (obj2) { |
c32bde28 | 6158 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
6159 | if (PyErr_Occurred()) SWIG_fail; |
6160 | } | |
d55e5bfc RD |
6161 | if (obj3) { |
6162 | { | |
6163 | arg4 = &temp4; | |
6164 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6165 | } | |
6166 | } | |
6167 | if (obj4) { | |
6168 | { | |
6169 | arg5 = &temp5; | |
6170 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6171 | } | |
6172 | } | |
6173 | if (obj5) { | |
6174 | { | |
6175 | if (! PySequence_Check(obj5)) { | |
6176 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6177 | SWIG_fail; | |
6178 | } | |
6179 | arg6 = new wxArrayString; | |
ae8162c8 | 6180 | temp6 = true; |
d55e5bfc RD |
6181 | int i, len=PySequence_Length(obj5); |
6182 | for (i=0; i<len; i++) { | |
6183 | PyObject* item = PySequence_GetItem(obj5, i); | |
6184 | #if wxUSE_UNICODE | |
6185 | PyObject* str = PyObject_Unicode(item); | |
6186 | #else | |
6187 | PyObject* str = PyObject_Str(item); | |
6188 | #endif | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | arg6->Add(Py2wxString(str)); | |
6191 | Py_DECREF(item); | |
6192 | Py_DECREF(str); | |
6193 | } | |
6194 | } | |
6195 | } | |
6196 | if (obj6) { | |
c32bde28 | 6197 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
6198 | if (PyErr_Occurred()) SWIG_fail; |
6199 | } | |
6200 | if (obj7) { | |
6201 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
6202 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6203 | SWIG_fail; | |
6204 | if (arg8 == NULL) { | |
6205 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6206 | SWIG_fail; | |
6207 | } | |
6208 | } | |
6209 | if (obj8) { | |
6210 | { | |
6211 | arg9 = wxString_in_helper(obj8); | |
6212 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 6213 | temp9 = true; |
d55e5bfc RD |
6214 | } |
6215 | } | |
6216 | { | |
6217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6218 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6219 | ||
6220 | wxPyEndAllowThreads(__tstate); | |
6221 | if (PyErr_Occurred()) SWIG_fail; | |
6222 | } | |
6223 | { | |
6224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6225 | } | |
6226 | { | |
6227 | if (temp6) delete arg6; | |
6228 | } | |
6229 | { | |
6230 | if (temp9) | |
6231 | delete arg9; | |
6232 | } | |
6233 | return resultobj; | |
6234 | fail: | |
6235 | { | |
6236 | if (temp6) delete arg6; | |
6237 | } | |
6238 | { | |
6239 | if (temp9) | |
6240 | delete arg9; | |
6241 | } | |
6242 | return NULL; | |
6243 | } | |
6244 | ||
6245 | ||
c32bde28 | 6246 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6247 | PyObject *resultobj; |
6248 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6249 | wxString *arg2 = 0 ; | |
6250 | int arg3 ; | |
6251 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 6252 | bool temp2 = false ; |
d55e5bfc RD |
6253 | PyObject * obj0 = 0 ; |
6254 | PyObject * obj1 = 0 ; | |
6255 | PyObject * obj2 = 0 ; | |
6256 | PyObject * obj3 = 0 ; | |
6257 | char *kwnames[] = { | |
6258 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
6259 | }; | |
6260 | ||
6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6264 | { | |
6265 | arg2 = wxString_in_helper(obj1); | |
6266 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6267 | temp2 = true; |
d55e5bfc | 6268 | } |
c32bde28 | 6269 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6270 | if (PyErr_Occurred()) SWIG_fail; |
6271 | if (obj3) { | |
6272 | arg4 = obj3; | |
6273 | } | |
6274 | { | |
6275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6276 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
6277 | ||
6278 | wxPyEndAllowThreads(__tstate); | |
6279 | if (PyErr_Occurred()) SWIG_fail; | |
6280 | } | |
6281 | Py_INCREF(Py_None); resultobj = Py_None; | |
6282 | { | |
6283 | if (temp2) | |
6284 | delete arg2; | |
6285 | } | |
6286 | return resultobj; | |
6287 | fail: | |
6288 | { | |
6289 | if (temp2) | |
6290 | delete arg2; | |
6291 | } | |
6292 | return NULL; | |
6293 | } | |
6294 | ||
6295 | ||
c32bde28 | 6296 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6297 | PyObject *resultobj; |
6298 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6299 | wxArrayString *arg2 = 0 ; | |
6300 | int arg3 ; | |
ae8162c8 | 6301 | bool temp2 = false ; |
d55e5bfc RD |
6302 | PyObject * obj0 = 0 ; |
6303 | PyObject * obj1 = 0 ; | |
6304 | PyObject * obj2 = 0 ; | |
6305 | char *kwnames[] = { | |
6306 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
6307 | }; | |
6308 | ||
6309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6312 | { | |
6313 | if (! PySequence_Check(obj1)) { | |
6314 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6315 | SWIG_fail; | |
6316 | } | |
6317 | arg2 = new wxArrayString; | |
ae8162c8 | 6318 | temp2 = true; |
d55e5bfc RD |
6319 | int i, len=PySequence_Length(obj1); |
6320 | for (i=0; i<len; i++) { | |
6321 | PyObject* item = PySequence_GetItem(obj1, i); | |
6322 | #if wxUSE_UNICODE | |
6323 | PyObject* str = PyObject_Unicode(item); | |
6324 | #else | |
6325 | PyObject* str = PyObject_Str(item); | |
6326 | #endif | |
6327 | if (PyErr_Occurred()) SWIG_fail; | |
6328 | arg2->Add(Py2wxString(str)); | |
6329 | Py_DECREF(item); | |
6330 | Py_DECREF(str); | |
6331 | } | |
6332 | } | |
c32bde28 | 6333 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6334 | if (PyErr_Occurred()) SWIG_fail; |
6335 | { | |
6336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6337 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
6338 | ||
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
6342 | Py_INCREF(Py_None); resultobj = Py_None; | |
6343 | { | |
6344 | if (temp2) delete arg2; | |
6345 | } | |
6346 | return resultobj; | |
6347 | fail: | |
6348 | { | |
6349 | if (temp2) delete arg2; | |
6350 | } | |
6351 | return NULL; | |
6352 | } | |
6353 | ||
6354 | ||
c32bde28 | 6355 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6356 | PyObject *resultobj; |
6357 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6358 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 6359 | bool temp2 = false ; |
d55e5bfc RD |
6360 | PyObject * obj0 = 0 ; |
6361 | PyObject * obj1 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "self",(char *) "items", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
6367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6369 | { | |
6370 | if (! PySequence_Check(obj1)) { | |
6371 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6372 | SWIG_fail; | |
6373 | } | |
6374 | arg2 = new wxArrayString; | |
ae8162c8 | 6375 | temp2 = true; |
d55e5bfc RD |
6376 | int i, len=PySequence_Length(obj1); |
6377 | for (i=0; i<len; i++) { | |
6378 | PyObject* item = PySequence_GetItem(obj1, i); | |
6379 | #if wxUSE_UNICODE | |
6380 | PyObject* str = PyObject_Unicode(item); | |
6381 | #else | |
6382 | PyObject* str = PyObject_Str(item); | |
6383 | #endif | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | arg2->Add(Py2wxString(str)); | |
6386 | Py_DECREF(item); | |
6387 | Py_DECREF(str); | |
6388 | } | |
6389 | } | |
6390 | { | |
6391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6392 | (arg1)->Set((wxArrayString const &)*arg2); | |
6393 | ||
6394 | wxPyEndAllowThreads(__tstate); | |
6395 | if (PyErr_Occurred()) SWIG_fail; | |
6396 | } | |
6397 | Py_INCREF(Py_None); resultobj = Py_None; | |
6398 | { | |
6399 | if (temp2) delete arg2; | |
6400 | } | |
6401 | return resultobj; | |
6402 | fail: | |
6403 | { | |
6404 | if (temp2) delete arg2; | |
6405 | } | |
6406 | return NULL; | |
6407 | } | |
6408 | ||
6409 | ||
c32bde28 | 6410 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6411 | PyObject *resultobj; |
6412 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6413 | int arg2 ; | |
6414 | bool result; | |
6415 | PyObject * obj0 = 0 ; | |
6416 | PyObject * obj1 = 0 ; | |
6417 | char *kwnames[] = { | |
6418 | (char *) "self",(char *) "n", NULL | |
6419 | }; | |
6420 | ||
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
6422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6424 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6425 | if (PyErr_Occurred()) SWIG_fail; |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | { | |
6434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6435 | } | |
6436 | return resultobj; | |
6437 | fail: | |
6438 | return NULL; | |
6439 | } | |
6440 | ||
6441 | ||
c32bde28 | 6442 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6443 | PyObject *resultobj; |
6444 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6445 | int arg2 ; | |
ae8162c8 | 6446 | bool arg3 = (bool) true ; |
d55e5bfc RD |
6447 | PyObject * obj0 = 0 ; |
6448 | PyObject * obj1 = 0 ; | |
6449 | PyObject * obj2 = 0 ; | |
6450 | char *kwnames[] = { | |
6451 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6452 | }; | |
6453 | ||
6454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6457 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6458 | if (PyErr_Occurred()) SWIG_fail; |
6459 | if (obj2) { | |
c32bde28 | 6460 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6461 | if (PyErr_Occurred()) SWIG_fail; |
6462 | } | |
6463 | { | |
6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6465 | (arg1)->SetSelection(arg2,arg3); | |
6466 | ||
6467 | wxPyEndAllowThreads(__tstate); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | } | |
6470 | Py_INCREF(Py_None); resultobj = Py_None; | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | return NULL; | |
6474 | } | |
6475 | ||
6476 | ||
c32bde28 | 6477 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6478 | PyObject *resultobj; |
6479 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6480 | int arg2 ; | |
6481 | PyObject * obj0 = 0 ; | |
6482 | PyObject * obj1 = 0 ; | |
6483 | char *kwnames[] = { | |
6484 | (char *) "self",(char *) "n", NULL | |
6485 | }; | |
6486 | ||
6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
6488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6490 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6491 | if (PyErr_Occurred()) SWIG_fail; |
6492 | { | |
6493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6494 | (arg1)->Select(arg2); | |
6495 | ||
6496 | wxPyEndAllowThreads(__tstate); | |
6497 | if (PyErr_Occurred()) SWIG_fail; | |
6498 | } | |
6499 | Py_INCREF(Py_None); resultobj = Py_None; | |
6500 | return resultobj; | |
6501 | fail: | |
6502 | return NULL; | |
6503 | } | |
6504 | ||
6505 | ||
c32bde28 | 6506 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6507 | PyObject *resultobj; |
6508 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6509 | int arg2 ; | |
6510 | PyObject * obj0 = 0 ; | |
6511 | PyObject * obj1 = 0 ; | |
6512 | char *kwnames[] = { | |
6513 | (char *) "self",(char *) "n", NULL | |
6514 | }; | |
6515 | ||
6516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
6517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6519 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6520 | if (PyErr_Occurred()) SWIG_fail; |
6521 | { | |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6523 | (arg1)->Deselect(arg2); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | Py_INCREF(Py_None); resultobj = Py_None; | |
6529 | return resultobj; | |
6530 | fail: | |
6531 | return NULL; | |
6532 | } | |
6533 | ||
6534 | ||
c32bde28 | 6535 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6536 | PyObject *resultobj; |
6537 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6538 | int arg2 = (int) -1 ; | |
6539 | PyObject * obj0 = 0 ; | |
6540 | PyObject * obj1 = 0 ; | |
6541 | char *kwnames[] = { | |
6542 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6543 | }; | |
6544 | ||
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
6546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6548 | if (obj1) { | |
c32bde28 | 6549 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6550 | if (PyErr_Occurred()) SWIG_fail; |
6551 | } | |
6552 | { | |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | (arg1)->DeselectAll(arg2); | |
6555 | ||
6556 | wxPyEndAllowThreads(__tstate); | |
6557 | if (PyErr_Occurred()) SWIG_fail; | |
6558 | } | |
6559 | Py_INCREF(Py_None); resultobj = Py_None; | |
6560 | return resultobj; | |
6561 | fail: | |
6562 | return NULL; | |
6563 | } | |
6564 | ||
6565 | ||
c32bde28 | 6566 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6567 | PyObject *resultobj; |
6568 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6569 | wxString *arg2 = 0 ; | |
ae8162c8 | 6570 | bool arg3 = (bool) true ; |
d55e5bfc | 6571 | bool result; |
ae8162c8 | 6572 | bool temp2 = false ; |
d55e5bfc RD |
6573 | PyObject * obj0 = 0 ; |
6574 | PyObject * obj1 = 0 ; | |
6575 | PyObject * obj2 = 0 ; | |
6576 | char *kwnames[] = { | |
6577 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6578 | }; | |
6579 | ||
6580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6583 | { | |
6584 | arg2 = wxString_in_helper(obj1); | |
6585 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6586 | temp2 = true; |
d55e5bfc RD |
6587 | } |
6588 | if (obj2) { | |
c32bde28 | 6589 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6590 | if (PyErr_Occurred()) SWIG_fail; |
6591 | } | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | { | |
6600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6601 | } | |
6602 | { | |
6603 | if (temp2) | |
6604 | delete arg2; | |
6605 | } | |
6606 | return resultobj; | |
6607 | fail: | |
6608 | { | |
6609 | if (temp2) | |
6610 | delete arg2; | |
6611 | } | |
6612 | return NULL; | |
6613 | } | |
6614 | ||
6615 | ||
c32bde28 | 6616 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6617 | PyObject *resultobj; |
6618 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6619 | PyObject *result; | |
6620 | PyObject * obj0 = 0 ; | |
6621 | char *kwnames[] = { | |
6622 | (char *) "self", NULL | |
6623 | }; | |
6624 | ||
6625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
6626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6628 | { | |
6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6630 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6631 | ||
6632 | wxPyEndAllowThreads(__tstate); | |
6633 | if (PyErr_Occurred()) SWIG_fail; | |
6634 | } | |
6635 | resultobj = result; | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | return NULL; | |
6639 | } | |
6640 | ||
6641 | ||
c32bde28 | 6642 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6643 | PyObject *resultobj; |
6644 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6645 | int arg2 ; | |
6646 | PyObject * obj0 = 0 ; | |
6647 | PyObject * obj1 = 0 ; | |
6648 | char *kwnames[] = { | |
6649 | (char *) "self",(char *) "n", NULL | |
6650 | }; | |
6651 | ||
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
6653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6655 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6656 | if (PyErr_Occurred()) SWIG_fail; |
6657 | { | |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | (arg1)->SetFirstItem(arg2); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | Py_INCREF(Py_None); resultobj = Py_None; | |
6665 | return resultobj; | |
6666 | fail: | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
c32bde28 | 6671 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6672 | PyObject *resultobj; |
6673 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6674 | wxString *arg2 = 0 ; | |
ae8162c8 | 6675 | bool temp2 = false ; |
d55e5bfc RD |
6676 | PyObject * obj0 = 0 ; |
6677 | PyObject * obj1 = 0 ; | |
6678 | char *kwnames[] = { | |
6679 | (char *) "self",(char *) "s", NULL | |
6680 | }; | |
6681 | ||
6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
6683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6685 | { | |
6686 | arg2 = wxString_in_helper(obj1); | |
6687 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6688 | temp2 = true; |
d55e5bfc RD |
6689 | } |
6690 | { | |
6691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6692 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6693 | ||
6694 | wxPyEndAllowThreads(__tstate); | |
6695 | if (PyErr_Occurred()) SWIG_fail; | |
6696 | } | |
6697 | Py_INCREF(Py_None); resultobj = Py_None; | |
6698 | { | |
6699 | if (temp2) | |
6700 | delete arg2; | |
6701 | } | |
6702 | return resultobj; | |
6703 | fail: | |
6704 | { | |
6705 | if (temp2) | |
6706 | delete arg2; | |
6707 | } | |
6708 | return NULL; | |
6709 | } | |
6710 | ||
6711 | ||
c32bde28 | 6712 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6713 | PyObject *resultobj; |
6714 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6715 | int arg2 ; | |
6716 | PyObject * obj0 = 0 ; | |
6717 | PyObject * obj1 = 0 ; | |
6718 | char *kwnames[] = { | |
6719 | (char *) "self",(char *) "n", NULL | |
6720 | }; | |
6721 | ||
6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6725 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6726 | if (PyErr_Occurred()) SWIG_fail; |
6727 | { | |
6728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6729 | (arg1)->EnsureVisible(arg2); | |
6730 | ||
6731 | wxPyEndAllowThreads(__tstate); | |
6732 | if (PyErr_Occurred()) SWIG_fail; | |
6733 | } | |
6734 | Py_INCREF(Py_None); resultobj = Py_None; | |
6735 | return resultobj; | |
6736 | fail: | |
6737 | return NULL; | |
6738 | } | |
6739 | ||
6740 | ||
c32bde28 | 6741 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6742 | PyObject *resultobj; |
6743 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6744 | wxString *arg2 = 0 ; | |
ae8162c8 | 6745 | bool temp2 = false ; |
d55e5bfc RD |
6746 | PyObject * obj0 = 0 ; |
6747 | PyObject * obj1 = 0 ; | |
6748 | char *kwnames[] = { | |
6749 | (char *) "self",(char *) "s", NULL | |
6750 | }; | |
6751 | ||
6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6755 | { | |
6756 | arg2 = wxString_in_helper(obj1); | |
6757 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6758 | temp2 = true; |
d55e5bfc RD |
6759 | } |
6760 | { | |
6761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6762 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6763 | ||
6764 | wxPyEndAllowThreads(__tstate); | |
6765 | if (PyErr_Occurred()) SWIG_fail; | |
6766 | } | |
6767 | Py_INCREF(Py_None); resultobj = Py_None; | |
6768 | { | |
6769 | if (temp2) | |
6770 | delete arg2; | |
6771 | } | |
6772 | return resultobj; | |
6773 | fail: | |
6774 | { | |
6775 | if (temp2) | |
6776 | delete arg2; | |
6777 | } | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
c32bde28 | 6782 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6783 | PyObject *resultobj; |
6784 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6785 | bool result; | |
6786 | PyObject * obj0 = 0 ; | |
6787 | char *kwnames[] = { | |
6788 | (char *) "self", NULL | |
6789 | }; | |
6790 | ||
6791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
6792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6794 | { | |
6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6796 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6797 | ||
6798 | wxPyEndAllowThreads(__tstate); | |
6799 | if (PyErr_Occurred()) SWIG_fail; | |
6800 | } | |
6801 | { | |
6802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6803 | } | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
c32bde28 | 6810 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6811 | PyObject *resultobj; |
6812 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6813 | int arg2 ; | |
6814 | wxColour *arg3 = 0 ; | |
6815 | wxColour temp3 ; | |
6816 | PyObject * obj0 = 0 ; | |
6817 | PyObject * obj1 = 0 ; | |
6818 | PyObject * obj2 = 0 ; | |
6819 | char *kwnames[] = { | |
6820 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6821 | }; | |
6822 | ||
6823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6826 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6827 | if (PyErr_Occurred()) SWIG_fail; |
6828 | { | |
6829 | arg3 = &temp3; | |
6830 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6831 | } | |
6832 | { | |
6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6834 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6835 | ||
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
6839 | Py_INCREF(Py_None); resultobj = Py_None; | |
6840 | return resultobj; | |
6841 | fail: | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
c32bde28 | 6846 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6847 | PyObject *resultobj; |
6848 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6849 | int arg2 ; | |
6850 | wxColour *arg3 = 0 ; | |
6851 | wxColour temp3 ; | |
6852 | PyObject * obj0 = 0 ; | |
6853 | PyObject * obj1 = 0 ; | |
6854 | PyObject * obj2 = 0 ; | |
6855 | char *kwnames[] = { | |
6856 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6857 | }; | |
6858 | ||
6859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6862 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6863 | if (PyErr_Occurred()) SWIG_fail; |
6864 | { | |
6865 | arg3 = &temp3; | |
6866 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6867 | } | |
6868 | { | |
6869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6870 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6871 | ||
6872 | wxPyEndAllowThreads(__tstate); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
6875 | Py_INCREF(Py_None); resultobj = Py_None; | |
6876 | return resultobj; | |
6877 | fail: | |
6878 | return NULL; | |
6879 | } | |
6880 | ||
6881 | ||
c32bde28 | 6882 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6883 | PyObject *resultobj; |
6884 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6885 | int arg2 ; | |
6886 | wxFont *arg3 = 0 ; | |
6887 | PyObject * obj0 = 0 ; | |
6888 | PyObject * obj1 = 0 ; | |
6889 | PyObject * obj2 = 0 ; | |
6890 | char *kwnames[] = { | |
6891 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6892 | }; | |
6893 | ||
6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6897 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6898 | if (PyErr_Occurred()) SWIG_fail; |
6899 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6901 | SWIG_fail; | |
6902 | if (arg3 == NULL) { | |
6903 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6904 | SWIG_fail; | |
6905 | } | |
6906 | { | |
6907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6908 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6909 | ||
6910 | wxPyEndAllowThreads(__tstate); | |
6911 | if (PyErr_Occurred()) SWIG_fail; | |
6912 | } | |
6913 | Py_INCREF(Py_None); resultobj = Py_None; | |
6914 | return resultobj; | |
6915 | fail: | |
6916 | return NULL; | |
6917 | } | |
6918 | ||
6919 | ||
c32bde28 | 6920 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6921 | PyObject *resultobj; |
6922 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6923 | wxVisualAttributes result; | |
6924 | PyObject * obj0 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "variant", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6930 | if (obj0) { | |
c32bde28 | 6931 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
6932 | if (PyErr_Occurred()) SWIG_fail; |
6933 | } | |
6934 | { | |
19272049 | 6935 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6937 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6938 | ||
6939 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6940 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6941 | } |
6942 | { | |
6943 | wxVisualAttributes * resultptr; | |
6944 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6945 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6946 | } | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
c32bde28 | 6953 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6954 | PyObject *obj; |
6955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6956 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6957 | Py_INCREF(obj); | |
6958 | return Py_BuildValue((char *)""); | |
6959 | } | |
c32bde28 | 6960 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6961 | PyObject *resultobj; |
6962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6963 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6964 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6965 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6966 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6967 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6968 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
6969 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6970 | long arg6 = (long) 0 ; | |
6971 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6972 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6973 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6974 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6975 | wxCheckListBox *result; | |
6976 | wxPoint temp3 ; | |
6977 | wxSize temp4 ; | |
ae8162c8 RD |
6978 | bool temp5 = false ; |
6979 | bool temp8 = false ; | |
d55e5bfc RD |
6980 | PyObject * obj0 = 0 ; |
6981 | PyObject * obj1 = 0 ; | |
6982 | PyObject * obj2 = 0 ; | |
6983 | PyObject * obj3 = 0 ; | |
6984 | PyObject * obj4 = 0 ; | |
6985 | PyObject * obj5 = 0 ; | |
6986 | PyObject * obj6 = 0 ; | |
6987 | PyObject * obj7 = 0 ; | |
6988 | char *kwnames[] = { | |
6989 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6990 | }; | |
6991 | ||
248ed943 | 6992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
6993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6995 | if (obj1) { |
c32bde28 | 6996 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
6997 | if (PyErr_Occurred()) SWIG_fail; |
6998 | } | |
d55e5bfc RD |
6999 | if (obj2) { |
7000 | { | |
7001 | arg3 = &temp3; | |
7002 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7003 | } | |
7004 | } | |
7005 | if (obj3) { | |
7006 | { | |
7007 | arg4 = &temp4; | |
7008 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7009 | } | |
7010 | } | |
7011 | if (obj4) { | |
7012 | { | |
7013 | if (! PySequence_Check(obj4)) { | |
7014 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7015 | SWIG_fail; | |
7016 | } | |
7017 | arg5 = new wxArrayString; | |
ae8162c8 | 7018 | temp5 = true; |
d55e5bfc RD |
7019 | int i, len=PySequence_Length(obj4); |
7020 | for (i=0; i<len; i++) { | |
7021 | PyObject* item = PySequence_GetItem(obj4, i); | |
7022 | #if wxUSE_UNICODE | |
7023 | PyObject* str = PyObject_Unicode(item); | |
7024 | #else | |
7025 | PyObject* str = PyObject_Str(item); | |
7026 | #endif | |
7027 | if (PyErr_Occurred()) SWIG_fail; | |
7028 | arg5->Add(Py2wxString(str)); | |
7029 | Py_DECREF(item); | |
7030 | Py_DECREF(str); | |
7031 | } | |
7032 | } | |
7033 | } | |
7034 | if (obj5) { | |
c32bde28 | 7035 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
7036 | if (PyErr_Occurred()) SWIG_fail; |
7037 | } | |
7038 | if (obj6) { | |
7039 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
7040 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7041 | SWIG_fail; | |
7042 | if (arg7 == NULL) { | |
7043 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7044 | SWIG_fail; | |
7045 | } | |
7046 | } | |
7047 | if (obj7) { | |
7048 | { | |
7049 | arg8 = wxString_in_helper(obj7); | |
7050 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7051 | temp8 = true; |
d55e5bfc RD |
7052 | } |
7053 | } | |
7054 | { | |
0439c23b | 7055 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7057 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7058 | ||
7059 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7060 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7061 | } |
7062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
7063 | { | |
7064 | if (temp5) delete arg5; | |
7065 | } | |
7066 | { | |
7067 | if (temp8) | |
7068 | delete arg8; | |
7069 | } | |
7070 | return resultobj; | |
7071 | fail: | |
7072 | { | |
7073 | if (temp5) delete arg5; | |
7074 | } | |
7075 | { | |
7076 | if (temp8) | |
7077 | delete arg8; | |
7078 | } | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
c32bde28 | 7083 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7084 | PyObject *resultobj; |
7085 | wxCheckListBox *result; | |
7086 | char *kwnames[] = { | |
7087 | NULL | |
7088 | }; | |
7089 | ||
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
7091 | { | |
0439c23b | 7092 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7094 | result = (wxCheckListBox *)new wxCheckListBox(); | |
7095 | ||
7096 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7097 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7098 | } |
7099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
c32bde28 | 7106 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7107 | PyObject *resultobj; |
7108 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7109 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 7110 | int arg3 = (int) -1 ; |
d55e5bfc RD |
7111 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7112 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7113 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7114 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7115 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
7116 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7117 | long arg7 = (long) 0 ; | |
7118 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7119 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7120 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7121 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7122 | bool result; | |
7123 | wxPoint temp4 ; | |
7124 | wxSize temp5 ; | |
ae8162c8 RD |
7125 | bool temp6 = false ; |
7126 | bool temp9 = false ; | |
d55e5bfc RD |
7127 | PyObject * obj0 = 0 ; |
7128 | PyObject * obj1 = 0 ; | |
7129 | PyObject * obj2 = 0 ; | |
7130 | PyObject * obj3 = 0 ; | |
7131 | PyObject * obj4 = 0 ; | |
7132 | PyObject * obj5 = 0 ; | |
7133 | PyObject * obj6 = 0 ; | |
7134 | PyObject * obj7 = 0 ; | |
7135 | PyObject * obj8 = 0 ; | |
7136 | char *kwnames[] = { | |
7137 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7138 | }; | |
7139 | ||
248ed943 | 7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
7141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 7145 | if (obj2) { |
c32bde28 | 7146 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
7147 | if (PyErr_Occurred()) SWIG_fail; |
7148 | } | |
d55e5bfc RD |
7149 | if (obj3) { |
7150 | { | |
7151 | arg4 = &temp4; | |
7152 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7153 | } | |
7154 | } | |
7155 | if (obj4) { | |
7156 | { | |
7157 | arg5 = &temp5; | |
7158 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7159 | } | |
7160 | } | |
7161 | if (obj5) { | |
7162 | { | |
7163 | if (! PySequence_Check(obj5)) { | |
7164 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7165 | SWIG_fail; | |
7166 | } | |
7167 | arg6 = new wxArrayString; | |
ae8162c8 | 7168 | temp6 = true; |
d55e5bfc RD |
7169 | int i, len=PySequence_Length(obj5); |
7170 | for (i=0; i<len; i++) { | |
7171 | PyObject* item = PySequence_GetItem(obj5, i); | |
7172 | #if wxUSE_UNICODE | |
7173 | PyObject* str = PyObject_Unicode(item); | |
7174 | #else | |
7175 | PyObject* str = PyObject_Str(item); | |
7176 | #endif | |
7177 | if (PyErr_Occurred()) SWIG_fail; | |
7178 | arg6->Add(Py2wxString(str)); | |
7179 | Py_DECREF(item); | |
7180 | Py_DECREF(str); | |
7181 | } | |
7182 | } | |
7183 | } | |
7184 | if (obj6) { | |
c32bde28 | 7185 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
7186 | if (PyErr_Occurred()) SWIG_fail; |
7187 | } | |
7188 | if (obj7) { | |
7189 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
7190 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7191 | SWIG_fail; | |
7192 | if (arg8 == NULL) { | |
7193 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7194 | SWIG_fail; | |
7195 | } | |
7196 | } | |
7197 | if (obj8) { | |
7198 | { | |
7199 | arg9 = wxString_in_helper(obj8); | |
7200 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 7201 | temp9 = true; |
d55e5bfc RD |
7202 | } |
7203 | } | |
7204 | { | |
7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7206 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7207 | ||
7208 | wxPyEndAllowThreads(__tstate); | |
7209 | if (PyErr_Occurred()) SWIG_fail; | |
7210 | } | |
7211 | { | |
7212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7213 | } | |
7214 | { | |
7215 | if (temp6) delete arg6; | |
7216 | } | |
7217 | { | |
7218 | if (temp9) | |
7219 | delete arg9; | |
7220 | } | |
7221 | return resultobj; | |
7222 | fail: | |
7223 | { | |
7224 | if (temp6) delete arg6; | |
7225 | } | |
7226 | { | |
7227 | if (temp9) | |
7228 | delete arg9; | |
7229 | } | |
7230 | return NULL; | |
7231 | } | |
7232 | ||
7233 | ||
c32bde28 | 7234 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7235 | PyObject *resultobj; |
7236 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7237 | int arg2 ; | |
7238 | bool result; | |
7239 | PyObject * obj0 = 0 ; | |
7240 | PyObject * obj1 = 0 ; | |
7241 | char *kwnames[] = { | |
7242 | (char *) "self",(char *) "index", NULL | |
7243 | }; | |
7244 | ||
7245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
7246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
7247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7248 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7249 | if (PyErr_Occurred()) SWIG_fail; |
7250 | { | |
7251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7252 | result = (bool)(arg1)->IsChecked(arg2); | |
7253 | ||
7254 | wxPyEndAllowThreads(__tstate); | |
7255 | if (PyErr_Occurred()) SWIG_fail; | |
7256 | } | |
7257 | { | |
7258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7259 | } | |
7260 | return resultobj; | |
7261 | fail: | |
7262 | return NULL; | |
7263 | } | |
7264 | ||
7265 | ||
c32bde28 | 7266 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7267 | PyObject *resultobj; |
7268 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7269 | int arg2 ; | |
ae8162c8 | 7270 | int arg3 = (int) true ; |
d55e5bfc RD |
7271 | PyObject * obj0 = 0 ; |
7272 | PyObject * obj1 = 0 ; | |
7273 | PyObject * obj2 = 0 ; | |
7274 | char *kwnames[] = { | |
7275 | (char *) "self",(char *) "index",(char *) "check", NULL | |
7276 | }; | |
7277 | ||
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
7280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7281 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7282 | if (PyErr_Occurred()) SWIG_fail; |
7283 | if (obj2) { | |
c32bde28 | 7284 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7285 | if (PyErr_Occurred()) SWIG_fail; |
7286 | } | |
7287 | { | |
7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7289 | (arg1)->Check(arg2,arg3); | |
7290 | ||
7291 | wxPyEndAllowThreads(__tstate); | |
7292 | if (PyErr_Occurred()) SWIG_fail; | |
7293 | } | |
7294 | Py_INCREF(Py_None); resultobj = Py_None; | |
7295 | return resultobj; | |
7296 | fail: | |
7297 | return NULL; | |
7298 | } | |
7299 | ||
7300 | ||
c32bde28 | 7301 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7302 | PyObject *resultobj; |
7303 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7304 | int result; | |
7305 | PyObject * obj0 = 0 ; | |
7306 | char *kwnames[] = { | |
7307 | (char *) "self", NULL | |
7308 | }; | |
7309 | ||
7310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
7311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
7312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7313 | { | |
7314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7315 | result = (int)(arg1)->GetItemHeight(); | |
7316 | ||
7317 | wxPyEndAllowThreads(__tstate); | |
7318 | if (PyErr_Occurred()) SWIG_fail; | |
7319 | } | |
c32bde28 | 7320 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7321 | return resultobj; |
7322 | fail: | |
7323 | return NULL; | |
7324 | } | |
7325 | ||
7326 | ||
c32bde28 | 7327 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7328 | PyObject *resultobj; |
7329 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7330 | wxPoint *arg2 = 0 ; | |
7331 | int result; | |
7332 | wxPoint temp2 ; | |
7333 | PyObject * obj0 = 0 ; | |
7334 | PyObject * obj1 = 0 ; | |
7335 | char *kwnames[] = { | |
7336 | (char *) "self",(char *) "pt", NULL | |
7337 | }; | |
7338 | ||
7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
7340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
7341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7342 | { | |
7343 | arg2 = &temp2; | |
7344 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7345 | } | |
7346 | { | |
7347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7348 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
7349 | ||
7350 | wxPyEndAllowThreads(__tstate); | |
7351 | if (PyErr_Occurred()) SWIG_fail; | |
7352 | } | |
c32bde28 | 7353 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7354 | return resultobj; |
7355 | fail: | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
c32bde28 | 7360 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7361 | PyObject *resultobj; |
7362 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7363 | int arg2 ; | |
7364 | int arg3 ; | |
7365 | int result; | |
7366 | PyObject * obj0 = 0 ; | |
7367 | PyObject * obj1 = 0 ; | |
7368 | PyObject * obj2 = 0 ; | |
7369 | char *kwnames[] = { | |
7370 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7371 | }; | |
7372 | ||
7373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
7375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7376 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 7377 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7378 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7379 | if (PyErr_Occurred()) SWIG_fail; |
7380 | { | |
7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7382 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
7383 | ||
7384 | wxPyEndAllowThreads(__tstate); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | } | |
c32bde28 | 7387 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7388 | return resultobj; |
7389 | fail: | |
7390 | return NULL; | |
7391 | } | |
7392 | ||
7393 | ||
c32bde28 | 7394 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7395 | PyObject *obj; |
7396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7397 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
7398 | Py_INCREF(obj); | |
7399 | return Py_BuildValue((char *)""); | |
7400 | } | |
c32bde28 | 7401 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
7402 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
7403 | return 1; | |
7404 | } | |
7405 | ||
7406 | ||
7407 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
7408 | PyObject *pyobj; | |
7409 | ||
7410 | { | |
7411 | #if wxUSE_UNICODE | |
7412 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7413 | #else | |
7414 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7415 | #endif | |
7416 | } | |
7417 | return pyobj; | |
7418 | } | |
7419 | ||
7420 | ||
c32bde28 | 7421 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7422 | PyObject *resultobj; |
908b74cd RD |
7423 | wxColour const &arg1_defvalue = wxNullColour ; |
7424 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d55e5bfc RD |
7425 | wxColour const &arg2_defvalue = wxNullColour ; |
7426 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7427 | wxFont const &arg3_defvalue = wxNullFont ; | |
7428 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7429 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7430 | wxTextAttr *result; | |
7431 | wxColour temp1 ; | |
7432 | wxColour temp2 ; | |
7433 | PyObject * obj0 = 0 ; | |
7434 | PyObject * obj1 = 0 ; | |
7435 | PyObject * obj2 = 0 ; | |
7436 | PyObject * obj3 = 0 ; | |
908b74cd RD |
7437 | char *kwnames[] = { |
7438 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7439 | }; | |
d55e5bfc | 7440 | |
908b74cd RD |
7441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7442 | if (obj0) { | |
7443 | { | |
7444 | arg1 = &temp1; | |
7445 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7446 | } | |
d55e5bfc RD |
7447 | } |
7448 | if (obj1) { | |
7449 | { | |
7450 | arg2 = &temp2; | |
7451 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7452 | } | |
7453 | } | |
7454 | if (obj2) { | |
7455 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
7456 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7457 | SWIG_fail; | |
7458 | if (arg3 == NULL) { | |
7459 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7460 | SWIG_fail; | |
7461 | } | |
7462 | } | |
7463 | if (obj3) { | |
c32bde28 | 7464 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
7465 | if (PyErr_Occurred()) SWIG_fail; |
7466 | } | |
7467 | { | |
7468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7469 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7470 | ||
7471 | wxPyEndAllowThreads(__tstate); | |
7472 | if (PyErr_Occurred()) SWIG_fail; | |
7473 | } | |
7474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
7475 | return resultobj; | |
7476 | fail: | |
7477 | return NULL; | |
7478 | } | |
7479 | ||
7480 | ||
c32bde28 | 7481 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7482 | PyObject *resultobj; |
7483 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7484 | PyObject * obj0 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "self", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
7490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7492 | { | |
7493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7494 | delete arg1; | |
7495 | ||
7496 | wxPyEndAllowThreads(__tstate); | |
7497 | if (PyErr_Occurred()) SWIG_fail; | |
7498 | } | |
7499 | Py_INCREF(Py_None); resultobj = Py_None; | |
7500 | return resultobj; | |
7501 | fail: | |
7502 | return NULL; | |
7503 | } | |
7504 | ||
7505 | ||
c32bde28 | 7506 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7507 | PyObject *resultobj; |
7508 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7509 | PyObject * obj0 = 0 ; | |
7510 | char *kwnames[] = { | |
7511 | (char *) "self", NULL | |
7512 | }; | |
7513 | ||
7514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
7515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7517 | { | |
7518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7519 | (arg1)->Init(); | |
7520 | ||
7521 | wxPyEndAllowThreads(__tstate); | |
7522 | if (PyErr_Occurred()) SWIG_fail; | |
7523 | } | |
7524 | Py_INCREF(Py_None); resultobj = Py_None; | |
7525 | return resultobj; | |
7526 | fail: | |
7527 | return NULL; | |
7528 | } | |
7529 | ||
7530 | ||
c32bde28 | 7531 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7532 | PyObject *resultobj; |
7533 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7534 | wxColour *arg2 = 0 ; | |
7535 | wxColour temp2 ; | |
7536 | PyObject * obj0 = 0 ; | |
7537 | PyObject * obj1 = 0 ; | |
7538 | char *kwnames[] = { | |
7539 | (char *) "self",(char *) "colText", NULL | |
7540 | }; | |
7541 | ||
7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
7543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7545 | { | |
7546 | arg2 = &temp2; | |
7547 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7548 | } | |
7549 | { | |
7550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7551 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7552 | ||
7553 | wxPyEndAllowThreads(__tstate); | |
7554 | if (PyErr_Occurred()) SWIG_fail; | |
7555 | } | |
7556 | Py_INCREF(Py_None); resultobj = Py_None; | |
7557 | return resultobj; | |
7558 | fail: | |
7559 | return NULL; | |
7560 | } | |
7561 | ||
7562 | ||
c32bde28 | 7563 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7564 | PyObject *resultobj; |
7565 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7566 | wxColour *arg2 = 0 ; | |
7567 | wxColour temp2 ; | |
7568 | PyObject * obj0 = 0 ; | |
7569 | PyObject * obj1 = 0 ; | |
7570 | char *kwnames[] = { | |
7571 | (char *) "self",(char *) "colBack", NULL | |
7572 | }; | |
7573 | ||
7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
7575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7577 | { | |
7578 | arg2 = &temp2; | |
7579 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7580 | } | |
7581 | { | |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | Py_INCREF(Py_None); resultobj = Py_None; | |
7589 | return resultobj; | |
7590 | fail: | |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
c32bde28 | 7595 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7596 | PyObject *resultobj; |
7597 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7598 | wxFont *arg2 = 0 ; | |
7599 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7600 | PyObject * obj0 = 0 ; | |
7601 | PyObject * obj1 = 0 ; | |
7602 | PyObject * obj2 = 0 ; | |
7603 | char *kwnames[] = { | |
7604 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7605 | }; | |
7606 | ||
7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7612 | SWIG_fail; | |
7613 | if (arg2 == NULL) { | |
7614 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7615 | SWIG_fail; | |
7616 | } | |
7617 | if (obj2) { | |
c32bde28 | 7618 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
7619 | if (PyErr_Occurred()) SWIG_fail; |
7620 | } | |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | Py_INCREF(Py_None); resultobj = Py_None; | |
7629 | return resultobj; | |
7630 | fail: | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
c32bde28 | 7635 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7636 | PyObject *resultobj; |
7637 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7638 | int arg2 ; | |
7639 | PyObject * obj0 = 0 ; | |
7640 | PyObject * obj1 = 0 ; | |
7641 | char *kwnames[] = { | |
7642 | (char *) "self",(char *) "alignment", NULL | |
7643 | }; | |
7644 | ||
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7648 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7649 | if (PyErr_Occurred()) SWIG_fail; |
7650 | { | |
7651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7652 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7653 | ||
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | Py_INCREF(Py_None); resultobj = Py_None; | |
7658 | return resultobj; | |
7659 | fail: | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
c32bde28 | 7664 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7665 | PyObject *resultobj; |
7666 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7667 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 7668 | bool temp2 = false ; |
d55e5bfc RD |
7669 | PyObject * obj0 = 0 ; |
7670 | PyObject * obj1 = 0 ; | |
7671 | char *kwnames[] = { | |
7672 | (char *) "self",(char *) "tabs", NULL | |
7673 | }; | |
7674 | ||
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
7676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7678 | { | |
7679 | if (! PySequence_Check(obj1)) { | |
7680 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7681 | SWIG_fail; | |
7682 | } | |
7683 | arg2 = new wxArrayInt; | |
ae8162c8 | 7684 | temp2 = true; |
d55e5bfc RD |
7685 | int i, len=PySequence_Length(obj1); |
7686 | for (i=0; i<len; i++) { | |
7687 | PyObject* item = PySequence_GetItem(obj1, i); | |
7688 | PyObject* number = PyNumber_Int(item); | |
7689 | arg2->Add(PyInt_AS_LONG(number)); | |
7690 | Py_DECREF(item); | |
7691 | Py_DECREF(number); | |
7692 | } | |
7693 | } | |
7694 | { | |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7696 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7697 | ||
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | Py_INCREF(Py_None); resultobj = Py_None; | |
7702 | { | |
7703 | if (temp2) delete arg2; | |
7704 | } | |
7705 | return resultobj; | |
7706 | fail: | |
7707 | { | |
7708 | if (temp2) delete arg2; | |
7709 | } | |
7710 | return NULL; | |
7711 | } | |
7712 | ||
7713 | ||
c32bde28 | 7714 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7715 | PyObject *resultobj; |
7716 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7717 | int arg2 ; | |
a07a67e6 | 7718 | int arg3 = (int) 0 ; |
d55e5bfc RD |
7719 | PyObject * obj0 = 0 ; |
7720 | PyObject * obj1 = 0 ; | |
a07a67e6 | 7721 | PyObject * obj2 = 0 ; |
d55e5bfc | 7722 | char *kwnames[] = { |
a07a67e6 | 7723 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d55e5bfc RD |
7724 | }; |
7725 | ||
a07a67e6 | 7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
7727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7729 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 7730 | if (PyErr_Occurred()) SWIG_fail; |
a07a67e6 | 7731 | if (obj2) { |
c32bde28 | 7732 | arg3 = (int)SWIG_As_int(obj2); |
a07a67e6 RD |
7733 | if (PyErr_Occurred()) SWIG_fail; |
7734 | } | |
d55e5bfc RD |
7735 | { |
7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 7737 | (arg1)->SetLeftIndent(arg2,arg3); |
d55e5bfc RD |
7738 | |
7739 | wxPyEndAllowThreads(__tstate); | |
7740 | if (PyErr_Occurred()) SWIG_fail; | |
7741 | } | |
7742 | Py_INCREF(Py_None); resultobj = Py_None; | |
7743 | return resultobj; | |
7744 | fail: | |
7745 | return NULL; | |
7746 | } | |
7747 | ||
7748 | ||
c32bde28 | 7749 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7750 | PyObject *resultobj; |
7751 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7752 | int arg2 ; | |
7753 | PyObject * obj0 = 0 ; | |
7754 | PyObject * obj1 = 0 ; | |
7755 | char *kwnames[] = { | |
7756 | (char *) "self",(char *) "indent", NULL | |
7757 | }; | |
7758 | ||
7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
7760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7762 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7763 | if (PyErr_Occurred()) SWIG_fail; |
7764 | { | |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | (arg1)->SetRightIndent(arg2); | |
7767 | ||
7768 | wxPyEndAllowThreads(__tstate); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | Py_INCREF(Py_None); resultobj = Py_None; | |
7772 | return resultobj; | |
7773 | fail: | |
7774 | return NULL; | |
7775 | } | |
7776 | ||
7777 | ||
c32bde28 | 7778 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7779 | PyObject *resultobj; |
7780 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7781 | long arg2 ; | |
7782 | PyObject * obj0 = 0 ; | |
7783 | PyObject * obj1 = 0 ; | |
7784 | char *kwnames[] = { | |
7785 | (char *) "self",(char *) "flags", NULL | |
7786 | }; | |
7787 | ||
7788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7791 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
7792 | if (PyErr_Occurred()) SWIG_fail; |
7793 | { | |
7794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7795 | (arg1)->SetFlags(arg2); | |
7796 | ||
7797 | wxPyEndAllowThreads(__tstate); | |
7798 | if (PyErr_Occurred()) SWIG_fail; | |
7799 | } | |
7800 | Py_INCREF(Py_None); resultobj = Py_None; | |
7801 | return resultobj; | |
7802 | fail: | |
7803 | return NULL; | |
7804 | } | |
7805 | ||
7806 | ||
c32bde28 | 7807 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7808 | PyObject *resultobj; |
7809 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7810 | bool result; | |
7811 | PyObject * obj0 = 0 ; | |
7812 | char *kwnames[] = { | |
7813 | (char *) "self", NULL | |
7814 | }; | |
7815 | ||
7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
7817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7819 | { | |
7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7821 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7822 | ||
7823 | wxPyEndAllowThreads(__tstate); | |
7824 | if (PyErr_Occurred()) SWIG_fail; | |
7825 | } | |
7826 | { | |
7827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7828 | } | |
7829 | return resultobj; | |
7830 | fail: | |
7831 | return NULL; | |
7832 | } | |
7833 | ||
7834 | ||
c32bde28 | 7835 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7836 | PyObject *resultobj; |
7837 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7838 | bool result; | |
7839 | PyObject * obj0 = 0 ; | |
7840 | char *kwnames[] = { | |
7841 | (char *) "self", NULL | |
7842 | }; | |
7843 | ||
7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
7845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7847 | { | |
7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7849 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7850 | ||
7851 | wxPyEndAllowThreads(__tstate); | |
7852 | if (PyErr_Occurred()) SWIG_fail; | |
7853 | } | |
7854 | { | |
7855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7856 | } | |
7857 | return resultobj; | |
7858 | fail: | |
7859 | return NULL; | |
7860 | } | |
7861 | ||
7862 | ||
c32bde28 | 7863 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7864 | PyObject *resultobj; |
7865 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7866 | bool result; | |
7867 | PyObject * obj0 = 0 ; | |
7868 | char *kwnames[] = { | |
7869 | (char *) "self", NULL | |
7870 | }; | |
7871 | ||
7872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
7873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7875 | { | |
7876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7877 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7878 | ||
7879 | wxPyEndAllowThreads(__tstate); | |
7880 | if (PyErr_Occurred()) SWIG_fail; | |
7881 | } | |
7882 | { | |
7883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7884 | } | |
7885 | return resultobj; | |
7886 | fail: | |
7887 | return NULL; | |
7888 | } | |
7889 | ||
7890 | ||
c32bde28 | 7891 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7892 | PyObject *resultobj; |
7893 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7894 | bool result; | |
7895 | PyObject * obj0 = 0 ; | |
7896 | char *kwnames[] = { | |
7897 | (char *) "self", NULL | |
7898 | }; | |
7899 | ||
7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
7901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7903 | { | |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7906 | ||
7907 | wxPyEndAllowThreads(__tstate); | |
7908 | if (PyErr_Occurred()) SWIG_fail; | |
7909 | } | |
7910 | { | |
7911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7912 | } | |
7913 | return resultobj; | |
7914 | fail: | |
7915 | return NULL; | |
7916 | } | |
7917 | ||
7918 | ||
c32bde28 | 7919 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7920 | PyObject *resultobj; |
7921 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7922 | bool result; | |
7923 | PyObject * obj0 = 0 ; | |
7924 | char *kwnames[] = { | |
7925 | (char *) "self", NULL | |
7926 | }; | |
7927 | ||
7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
7929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7931 | { | |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7934 | ||
7935 | wxPyEndAllowThreads(__tstate); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | { | |
7939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7940 | } | |
7941 | return resultobj; | |
7942 | fail: | |
7943 | return NULL; | |
7944 | } | |
7945 | ||
7946 | ||
c32bde28 | 7947 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7948 | PyObject *resultobj; |
7949 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7950 | bool result; | |
7951 | PyObject * obj0 = 0 ; | |
7952 | char *kwnames[] = { | |
7953 | (char *) "self", NULL | |
7954 | }; | |
7955 | ||
7956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
7957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7959 | { | |
7960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7961 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7962 | ||
7963 | wxPyEndAllowThreads(__tstate); | |
7964 | if (PyErr_Occurred()) SWIG_fail; | |
7965 | } | |
7966 | { | |
7967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7968 | } | |
7969 | return resultobj; | |
7970 | fail: | |
7971 | return NULL; | |
7972 | } | |
7973 | ||
7974 | ||
c32bde28 | 7975 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7976 | PyObject *resultobj; |
7977 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7978 | bool result; | |
7979 | PyObject * obj0 = 0 ; | |
7980 | char *kwnames[] = { | |
7981 | (char *) "self", NULL | |
7982 | }; | |
7983 | ||
7984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7987 | { | |
7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7989 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7990 | ||
7991 | wxPyEndAllowThreads(__tstate); | |
7992 | if (PyErr_Occurred()) SWIG_fail; | |
7993 | } | |
7994 | { | |
7995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7996 | } | |
7997 | return resultobj; | |
7998 | fail: | |
7999 | return NULL; | |
8000 | } | |
8001 | ||
8002 | ||
c32bde28 | 8003 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8004 | PyObject *resultobj; |
8005 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8006 | long arg2 ; | |
8007 | bool result; | |
8008 | PyObject * obj0 = 0 ; | |
8009 | PyObject * obj1 = 0 ; | |
8010 | char *kwnames[] = { | |
8011 | (char *) "self",(char *) "flag", NULL | |
8012 | }; | |
8013 | ||
8014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
8015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8017 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8018 | if (PyErr_Occurred()) SWIG_fail; |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | { | |
8027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8028 | } | |
8029 | return resultobj; | |
8030 | fail: | |
8031 | return NULL; | |
8032 | } | |
8033 | ||
8034 | ||
c32bde28 | 8035 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8036 | PyObject *resultobj; |
8037 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8038 | wxColour *result; | |
8039 | PyObject * obj0 = 0 ; | |
8040 | char *kwnames[] = { | |
8041 | (char *) "self", NULL | |
8042 | }; | |
8043 | ||
8044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
8045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8047 | { | |
8048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8049 | { | |
8050 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
8051 | result = (wxColour *) &_result_ref; | |
8052 | } | |
8053 | ||
8054 | wxPyEndAllowThreads(__tstate); | |
8055 | if (PyErr_Occurred()) SWIG_fail; | |
8056 | } | |
8057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
8058 | return resultobj; | |
8059 | fail: | |
8060 | return NULL; | |
8061 | } | |
8062 | ||
8063 | ||
c32bde28 | 8064 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8065 | PyObject *resultobj; |
8066 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8067 | wxColour *result; | |
8068 | PyObject * obj0 = 0 ; | |
8069 | char *kwnames[] = { | |
8070 | (char *) "self", NULL | |
8071 | }; | |
8072 | ||
8073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
8074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8076 | { | |
8077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8078 | { | |
8079 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
8080 | result = (wxColour *) &_result_ref; | |
8081 | } | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | } | |
8086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
8087 | return resultobj; | |
8088 | fail: | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
c32bde28 | 8093 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8094 | PyObject *resultobj; |
8095 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8096 | wxFont *result; | |
8097 | PyObject * obj0 = 0 ; | |
8098 | char *kwnames[] = { | |
8099 | (char *) "self", NULL | |
8100 | }; | |
8101 | ||
8102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
8103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8105 | { | |
8106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8107 | { | |
8108 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
8109 | result = (wxFont *) &_result_ref; | |
8110 | } | |
8111 | ||
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
8115 | { | |
8116 | wxFont* resultptr = new wxFont(*result); | |
8117 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
8118 | } | |
8119 | return resultobj; | |
8120 | fail: | |
8121 | return NULL; | |
8122 | } | |
8123 | ||
8124 | ||
c32bde28 | 8125 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8126 | PyObject *resultobj; |
8127 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8128 | int result; | |
8129 | PyObject * obj0 = 0 ; | |
8130 | char *kwnames[] = { | |
8131 | (char *) "self", NULL | |
8132 | }; | |
8133 | ||
8134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
8135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8137 | { | |
8138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8139 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
8140 | ||
8141 | wxPyEndAllowThreads(__tstate); | |
8142 | if (PyErr_Occurred()) SWIG_fail; | |
8143 | } | |
c32bde28 | 8144 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8145 | return resultobj; |
8146 | fail: | |
8147 | return NULL; | |
8148 | } | |
8149 | ||
8150 | ||
c32bde28 | 8151 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8152 | PyObject *resultobj; |
8153 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8154 | wxArrayInt *result; | |
8155 | PyObject * obj0 = 0 ; | |
8156 | char *kwnames[] = { | |
8157 | (char *) "self", NULL | |
8158 | }; | |
8159 | ||
8160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
8161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8163 | { | |
8164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8165 | { | |
8166 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
8167 | result = (wxArrayInt *) &_result_ref; | |
8168 | } | |
8169 | ||
8170 | wxPyEndAllowThreads(__tstate); | |
8171 | if (PyErr_Occurred()) SWIG_fail; | |
8172 | } | |
8173 | { | |
8174 | resultobj = PyList_New(0); | |
8175 | size_t idx; | |
8176 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
8177 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
8178 | PyList_Append(resultobj, val); | |
8179 | Py_DECREF(val); | |
8180 | } | |
8181 | } | |
8182 | return resultobj; | |
8183 | fail: | |
8184 | return NULL; | |
8185 | } | |
8186 | ||
8187 | ||
c32bde28 | 8188 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8189 | PyObject *resultobj; |
8190 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8191 | long result; | |
8192 | PyObject * obj0 = 0 ; | |
8193 | char *kwnames[] = { | |
8194 | (char *) "self", NULL | |
8195 | }; | |
8196 | ||
8197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
8198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8200 | { | |
8201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8202 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
8203 | ||
8204 | wxPyEndAllowThreads(__tstate); | |
8205 | if (PyErr_Occurred()) SWIG_fail; | |
8206 | } | |
c32bde28 | 8207 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8208 | return resultobj; |
8209 | fail: | |
8210 | return NULL; | |
8211 | } | |
8212 | ||
8213 | ||
c32bde28 | 8214 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
8215 | PyObject *resultobj; |
8216 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8217 | long result; | |
8218 | PyObject * obj0 = 0 ; | |
8219 | char *kwnames[] = { | |
8220 | (char *) "self", NULL | |
8221 | }; | |
8222 | ||
8223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
8224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8226 | { | |
8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8228 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
8229 | ||
8230 | wxPyEndAllowThreads(__tstate); | |
8231 | if (PyErr_Occurred()) SWIG_fail; | |
8232 | } | |
c32bde28 | 8233 | resultobj = SWIG_From_long((long)result); |
a07a67e6 RD |
8234 | return resultobj; |
8235 | fail: | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
c32bde28 | 8240 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8241 | PyObject *resultobj; |
8242 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8243 | long result; | |
8244 | PyObject * obj0 = 0 ; | |
8245 | char *kwnames[] = { | |
8246 | (char *) "self", NULL | |
8247 | }; | |
8248 | ||
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
8250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8252 | { | |
8253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8254 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
8255 | ||
8256 | wxPyEndAllowThreads(__tstate); | |
8257 | if (PyErr_Occurred()) SWIG_fail; | |
8258 | } | |
c32bde28 | 8259 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8260 | return resultobj; |
8261 | fail: | |
8262 | return NULL; | |
8263 | } | |
8264 | ||
8265 | ||
c32bde28 | 8266 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8267 | PyObject *resultobj; |
8268 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8269 | long result; | |
8270 | PyObject * obj0 = 0 ; | |
8271 | char *kwnames[] = { | |
8272 | (char *) "self", NULL | |
8273 | }; | |
8274 | ||
8275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
8276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
c32bde28 | 8285 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8286 | return resultobj; |
8287 | fail: | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
c32bde28 | 8292 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8293 | PyObject *resultobj; |
8294 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8295 | bool result; | |
8296 | PyObject * obj0 = 0 ; | |
8297 | char *kwnames[] = { | |
8298 | (char *) "self", NULL | |
8299 | }; | |
8300 | ||
8301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
8302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8304 | { | |
8305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8306 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
8307 | ||
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
8311 | { | |
8312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8313 | } | |
8314 | return resultobj; | |
8315 | fail: | |
8316 | return NULL; | |
8317 | } | |
8318 | ||
8319 | ||
c32bde28 | 8320 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8321 | PyObject *resultobj; |
8322 | wxTextAttr *arg1 = 0 ; | |
8323 | wxTextAttr *arg2 = 0 ; | |
8324 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
8325 | wxTextAttr result; | |
8326 | PyObject * obj0 = 0 ; | |
8327 | PyObject * obj1 = 0 ; | |
8328 | PyObject * obj2 = 0 ; | |
8329 | char *kwnames[] = { | |
8330 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
8331 | }; | |
8332 | ||
8333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8335 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8336 | SWIG_fail; | |
8337 | if (arg1 == NULL) { | |
8338 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8339 | SWIG_fail; | |
8340 | } | |
8341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
8342 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8343 | SWIG_fail; | |
8344 | if (arg2 == NULL) { | |
8345 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8346 | SWIG_fail; | |
8347 | } | |
8348 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, | |
8349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8350 | { | |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8352 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
8353 | ||
8354 | wxPyEndAllowThreads(__tstate); | |
8355 | if (PyErr_Occurred()) SWIG_fail; | |
8356 | } | |
8357 | { | |
8358 | wxTextAttr * resultptr; | |
8359 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
8360 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
8361 | } | |
8362 | return resultobj; | |
8363 | fail: | |
8364 | return NULL; | |
8365 | } | |
8366 | ||
8367 | ||
c32bde28 | 8368 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8369 | PyObject *obj; |
8370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8371 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
8372 | Py_INCREF(obj); | |
8373 | return Py_BuildValue((char *)""); | |
8374 | } | |
c32bde28 | 8375 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8376 | PyObject *resultobj; |
8377 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8378 | int arg2 = (int) -1 ; |
d55e5bfc RD |
8379 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8380 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8381 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8382 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8383 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8384 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8385 | long arg6 = (long) 0 ; | |
8386 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8387 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8388 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
8389 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8390 | wxTextCtrl *result; | |
ae8162c8 | 8391 | bool temp3 = false ; |
d55e5bfc RD |
8392 | wxPoint temp4 ; |
8393 | wxSize temp5 ; | |
ae8162c8 | 8394 | bool temp8 = false ; |
d55e5bfc RD |
8395 | PyObject * obj0 = 0 ; |
8396 | PyObject * obj1 = 0 ; | |
8397 | PyObject * obj2 = 0 ; | |
8398 | PyObject * obj3 = 0 ; | |
8399 | PyObject * obj4 = 0 ; | |
8400 | PyObject * obj5 = 0 ; | |
8401 | PyObject * obj6 = 0 ; | |
8402 | PyObject * obj7 = 0 ; | |
8403 | char *kwnames[] = { | |
8404 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8405 | }; | |
8406 | ||
248ed943 | 8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
8408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8410 | if (obj1) { |
c32bde28 | 8411 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
8412 | if (PyErr_Occurred()) SWIG_fail; |
8413 | } | |
d55e5bfc RD |
8414 | if (obj2) { |
8415 | { | |
8416 | arg3 = wxString_in_helper(obj2); | |
8417 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8418 | temp3 = true; |
d55e5bfc RD |
8419 | } |
8420 | } | |
8421 | if (obj3) { | |
8422 | { | |
8423 | arg4 = &temp4; | |
8424 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8425 | } | |
8426 | } | |
8427 | if (obj4) { | |
8428 | { | |
8429 | arg5 = &temp5; | |
8430 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8431 | } | |
8432 | } | |
8433 | if (obj5) { | |
c32bde28 | 8434 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
8435 | if (PyErr_Occurred()) SWIG_fail; |
8436 | } | |
8437 | if (obj6) { | |
8438 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
8439 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8440 | SWIG_fail; | |
8441 | if (arg7 == NULL) { | |
8442 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8443 | SWIG_fail; | |
8444 | } | |
8445 | } | |
8446 | if (obj7) { | |
8447 | { | |
8448 | arg8 = wxString_in_helper(obj7); | |
8449 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8450 | temp8 = true; |
d55e5bfc RD |
8451 | } |
8452 | } | |
8453 | { | |
0439c23b | 8454 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8456 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8457 | ||
8458 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8459 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8460 | } |
b0f7404b | 8461 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
8462 | { |
8463 | if (temp3) | |
8464 | delete arg3; | |
8465 | } | |
8466 | { | |
8467 | if (temp8) | |
8468 | delete arg8; | |
8469 | } | |
8470 | return resultobj; | |
8471 | fail: | |
8472 | { | |
8473 | if (temp3) | |
8474 | delete arg3; | |
8475 | } | |
8476 | { | |
8477 | if (temp8) | |
8478 | delete arg8; | |
8479 | } | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
c32bde28 | 8484 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8485 | PyObject *resultobj; |
8486 | wxTextCtrl *result; | |
8487 | char *kwnames[] = { | |
8488 | NULL | |
8489 | }; | |
8490 | ||
8491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8492 | { | |
0439c23b | 8493 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8495 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8496 | ||
8497 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8498 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8499 | } |
b0f7404b | 8500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
8501 | return resultobj; |
8502 | fail: | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
c32bde28 | 8507 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8508 | PyObject *resultobj; |
8509 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8510 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8511 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8512 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8513 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8514 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8515 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8516 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8517 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8518 | long arg7 = (long) 0 ; | |
8519 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8520 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8521 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8522 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8523 | bool result; | |
ae8162c8 | 8524 | bool temp4 = false ; |
d55e5bfc RD |
8525 | wxPoint temp5 ; |
8526 | wxSize temp6 ; | |
ae8162c8 | 8527 | bool temp9 = false ; |
d55e5bfc RD |
8528 | PyObject * obj0 = 0 ; |
8529 | PyObject * obj1 = 0 ; | |
8530 | PyObject * obj2 = 0 ; | |
8531 | PyObject * obj3 = 0 ; | |
8532 | PyObject * obj4 = 0 ; | |
8533 | PyObject * obj5 = 0 ; | |
8534 | PyObject * obj6 = 0 ; | |
8535 | PyObject * obj7 = 0 ; | |
8536 | PyObject * obj8 = 0 ; | |
8537 | char *kwnames[] = { | |
8538 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8539 | }; | |
8540 | ||
248ed943 | 8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
8542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8546 | if (obj2) { |
c32bde28 | 8547 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
8548 | if (PyErr_Occurred()) SWIG_fail; |
8549 | } | |
d55e5bfc RD |
8550 | if (obj3) { |
8551 | { | |
8552 | arg4 = wxString_in_helper(obj3); | |
8553 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 8554 | temp4 = true; |
d55e5bfc RD |
8555 | } |
8556 | } | |
8557 | if (obj4) { | |
8558 | { | |
8559 | arg5 = &temp5; | |
8560 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8561 | } | |
8562 | } | |
8563 | if (obj5) { | |
8564 | { | |
8565 | arg6 = &temp6; | |
8566 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8567 | } | |
8568 | } | |
8569 | if (obj6) { | |
c32bde28 | 8570 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
8571 | if (PyErr_Occurred()) SWIG_fail; |
8572 | } | |
8573 | if (obj7) { | |
8574 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
8575 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8576 | SWIG_fail; | |
8577 | if (arg8 == NULL) { | |
8578 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8579 | SWIG_fail; | |
8580 | } | |
8581 | } | |
8582 | if (obj8) { | |
8583 | { | |
8584 | arg9 = wxString_in_helper(obj8); | |
8585 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8586 | temp9 = true; |
d55e5bfc RD |
8587 | } |
8588 | } | |
8589 | { | |
8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8591 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8592 | ||
8593 | wxPyEndAllowThreads(__tstate); | |
8594 | if (PyErr_Occurred()) SWIG_fail; | |
8595 | } | |
8596 | { | |
8597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8598 | } | |
8599 | { | |
8600 | if (temp4) | |
8601 | delete arg4; | |
8602 | } | |
8603 | { | |
8604 | if (temp9) | |
8605 | delete arg9; | |
8606 | } | |
8607 | return resultobj; | |
8608 | fail: | |
8609 | { | |
8610 | if (temp4) | |
8611 | delete arg4; | |
8612 | } | |
8613 | { | |
8614 | if (temp9) | |
8615 | delete arg9; | |
8616 | } | |
8617 | return NULL; | |
8618 | } | |
8619 | ||
8620 | ||
c32bde28 | 8621 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8622 | PyObject *resultobj; |
8623 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8624 | wxString result; | |
8625 | PyObject * obj0 = 0 ; | |
8626 | char *kwnames[] = { | |
8627 | (char *) "self", NULL | |
8628 | }; | |
8629 | ||
8630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
8631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8633 | { | |
8634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8635 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8636 | ||
8637 | wxPyEndAllowThreads(__tstate); | |
8638 | if (PyErr_Occurred()) SWIG_fail; | |
8639 | } | |
8640 | { | |
8641 | #if wxUSE_UNICODE | |
8642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8643 | #else | |
8644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8645 | #endif | |
8646 | } | |
8647 | return resultobj; | |
8648 | fail: | |
8649 | return NULL; | |
8650 | } | |
8651 | ||
8652 | ||
c32bde28 | 8653 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8654 | PyObject *resultobj; |
8655 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8656 | wxString *arg2 = 0 ; | |
ae8162c8 | 8657 | bool temp2 = false ; |
d55e5bfc RD |
8658 | PyObject * obj0 = 0 ; |
8659 | PyObject * obj1 = 0 ; | |
8660 | char *kwnames[] = { | |
8661 | (char *) "self",(char *) "value", NULL | |
8662 | }; | |
8663 | ||
8664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
8665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8667 | { | |
8668 | arg2 = wxString_in_helper(obj1); | |
8669 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8670 | temp2 = true; |
d55e5bfc RD |
8671 | } |
8672 | { | |
8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8674 | (arg1)->SetValue((wxString const &)*arg2); | |
8675 | ||
8676 | wxPyEndAllowThreads(__tstate); | |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
8678 | } | |
8679 | Py_INCREF(Py_None); resultobj = Py_None; | |
8680 | { | |
8681 | if (temp2) | |
8682 | delete arg2; | |
8683 | } | |
8684 | return resultobj; | |
8685 | fail: | |
8686 | { | |
8687 | if (temp2) | |
8688 | delete arg2; | |
8689 | } | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
c32bde28 | 8694 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8695 | PyObject *resultobj; |
8696 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8697 | long arg2 ; | |
8698 | long arg3 ; | |
8699 | wxString result; | |
8700 | PyObject * obj0 = 0 ; | |
8701 | PyObject * obj1 = 0 ; | |
8702 | PyObject * obj2 = 0 ; | |
8703 | char *kwnames[] = { | |
8704 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8705 | }; | |
8706 | ||
8707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8710 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 8711 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8712 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8713 | if (PyErr_Occurred()) SWIG_fail; |
8714 | { | |
8715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8716 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8717 | ||
8718 | wxPyEndAllowThreads(__tstate); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
8720 | } | |
8721 | { | |
8722 | #if wxUSE_UNICODE | |
8723 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8724 | #else | |
8725 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8726 | #endif | |
8727 | } | |
8728 | return resultobj; | |
8729 | fail: | |
8730 | return NULL; | |
8731 | } | |
8732 | ||
8733 | ||
c32bde28 | 8734 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8735 | PyObject *resultobj; |
8736 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8737 | long arg2 ; | |
8738 | int result; | |
8739 | PyObject * obj0 = 0 ; | |
8740 | PyObject * obj1 = 0 ; | |
8741 | char *kwnames[] = { | |
8742 | (char *) "self",(char *) "lineNo", NULL | |
8743 | }; | |
8744 | ||
8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
8746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8748 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8749 | if (PyErr_Occurred()) SWIG_fail; |
8750 | { | |
8751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8752 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8753 | ||
8754 | wxPyEndAllowThreads(__tstate); | |
8755 | if (PyErr_Occurred()) SWIG_fail; | |
8756 | } | |
c32bde28 | 8757 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8758 | return resultobj; |
8759 | fail: | |
8760 | return NULL; | |
8761 | } | |
8762 | ||
8763 | ||
c32bde28 | 8764 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8765 | PyObject *resultobj; |
8766 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8767 | long arg2 ; | |
8768 | wxString result; | |
8769 | PyObject * obj0 = 0 ; | |
8770 | PyObject * obj1 = 0 ; | |
8771 | char *kwnames[] = { | |
8772 | (char *) "self",(char *) "lineNo", NULL | |
8773 | }; | |
8774 | ||
8775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
8776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8778 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8779 | if (PyErr_Occurred()) SWIG_fail; |
8780 | { | |
8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8782 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8783 | ||
8784 | wxPyEndAllowThreads(__tstate); | |
8785 | if (PyErr_Occurred()) SWIG_fail; | |
8786 | } | |
8787 | { | |
8788 | #if wxUSE_UNICODE | |
8789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8790 | #else | |
8791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8792 | #endif | |
8793 | } | |
8794 | return resultobj; | |
8795 | fail: | |
8796 | return NULL; | |
8797 | } | |
8798 | ||
8799 | ||
c32bde28 | 8800 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8801 | PyObject *resultobj; |
8802 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8803 | int result; | |
8804 | PyObject * obj0 = 0 ; | |
8805 | char *kwnames[] = { | |
8806 | (char *) "self", NULL | |
8807 | }; | |
8808 | ||
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
8810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8812 | { | |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
c32bde28 | 8819 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8820 | return resultobj; |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
c32bde28 | 8826 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8827 | PyObject *resultobj; |
8828 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8829 | bool result; | |
8830 | PyObject * obj0 = 0 ; | |
8831 | char *kwnames[] = { | |
8832 | (char *) "self", NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
8836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8838 | { | |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8841 | ||
8842 | wxPyEndAllowThreads(__tstate); | |
8843 | if (PyErr_Occurred()) SWIG_fail; | |
8844 | } | |
8845 | { | |
8846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8847 | } | |
8848 | return resultobj; | |
8849 | fail: | |
8850 | return NULL; | |
8851 | } | |
8852 | ||
8853 | ||
c32bde28 | 8854 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8855 | PyObject *resultobj; |
8856 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8857 | bool result; | |
8858 | PyObject * obj0 = 0 ; | |
8859 | char *kwnames[] = { | |
8860 | (char *) "self", NULL | |
8861 | }; | |
8862 | ||
8863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
8864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8866 | { | |
8867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8868 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8869 | ||
8870 | wxPyEndAllowThreads(__tstate); | |
8871 | if (PyErr_Occurred()) SWIG_fail; | |
8872 | } | |
8873 | { | |
8874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8875 | } | |
8876 | return resultobj; | |
8877 | fail: | |
8878 | return NULL; | |
8879 | } | |
8880 | ||
8881 | ||
c32bde28 | 8882 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8883 | PyObject *resultobj; |
8884 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8885 | bool result; | |
8886 | PyObject * obj0 = 0 ; | |
8887 | char *kwnames[] = { | |
8888 | (char *) "self", NULL | |
8889 | }; | |
8890 | ||
8891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
8892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8894 | { | |
8895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8896 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8897 | ||
8898 | wxPyEndAllowThreads(__tstate); | |
8899 | if (PyErr_Occurred()) SWIG_fail; | |
8900 | } | |
8901 | { | |
8902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8903 | } | |
8904 | return resultobj; | |
8905 | fail: | |
8906 | return NULL; | |
8907 | } | |
8908 | ||
8909 | ||
c32bde28 | 8910 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8911 | PyObject *resultobj; |
8912 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8913 | bool result; | |
8914 | PyObject * obj0 = 0 ; | |
8915 | char *kwnames[] = { | |
8916 | (char *) "self", NULL | |
8917 | }; | |
8918 | ||
8919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
8920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8922 | { | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8925 | ||
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8929 | { | |
8930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8931 | } | |
8932 | return resultobj; | |
8933 | fail: | |
8934 | return NULL; | |
8935 | } | |
8936 | ||
8937 | ||
c32bde28 | 8938 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8939 | PyObject *resultobj; |
8940 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8941 | long *arg2 = (long *) 0 ; | |
8942 | long *arg3 = (long *) 0 ; | |
8943 | long temp2 ; | |
c32bde28 | 8944 | int res2 = 0 ; |
d55e5bfc | 8945 | long temp3 ; |
c32bde28 | 8946 | int res3 = 0 ; |
d55e5bfc RD |
8947 | PyObject * obj0 = 0 ; |
8948 | char *kwnames[] = { | |
8949 | (char *) "self", NULL | |
8950 | }; | |
8951 | ||
c32bde28 RD |
8952 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8953 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
8955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8957 | { | |
8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8959 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8960 | ||
8961 | wxPyEndAllowThreads(__tstate); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
8965 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8966 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
8967 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8968 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
8969 | return resultobj; |
8970 | fail: | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
c32bde28 | 8975 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8976 | PyObject *resultobj; |
8977 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8978 | wxString result; | |
8979 | PyObject * obj0 = 0 ; | |
8980 | char *kwnames[] = { | |
8981 | (char *) "self", NULL | |
8982 | }; | |
8983 | ||
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
8985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8987 | { | |
8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8989 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8990 | ||
8991 | wxPyEndAllowThreads(__tstate); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | } | |
8994 | { | |
8995 | #if wxUSE_UNICODE | |
8996 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8997 | #else | |
8998 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8999 | #endif | |
9000 | } | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
c32bde28 | 9007 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9008 | PyObject *resultobj; |
9009 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9010 | PyObject * obj0 = 0 ; | |
9011 | char *kwnames[] = { | |
9012 | (char *) "self", NULL | |
9013 | }; | |
9014 | ||
9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
9016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9018 | { | |
9019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9020 | (arg1)->Clear(); | |
9021 | ||
9022 | wxPyEndAllowThreads(__tstate); | |
9023 | if (PyErr_Occurred()) SWIG_fail; | |
9024 | } | |
9025 | Py_INCREF(Py_None); resultobj = Py_None; | |
9026 | return resultobj; | |
9027 | fail: | |
9028 | return NULL; | |
9029 | } | |
9030 | ||
9031 | ||
c32bde28 | 9032 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9033 | PyObject *resultobj; |
9034 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9035 | long arg2 ; | |
9036 | long arg3 ; | |
9037 | wxString *arg4 = 0 ; | |
ae8162c8 | 9038 | bool temp4 = false ; |
d55e5bfc RD |
9039 | PyObject * obj0 = 0 ; |
9040 | PyObject * obj1 = 0 ; | |
9041 | PyObject * obj2 = 0 ; | |
9042 | PyObject * obj3 = 0 ; | |
9043 | char *kwnames[] = { | |
9044 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
9045 | }; | |
9046 | ||
9047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9050 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9051 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9052 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9053 | if (PyErr_Occurred()) SWIG_fail; |
9054 | { | |
9055 | arg4 = wxString_in_helper(obj3); | |
9056 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 9057 | temp4 = true; |
d55e5bfc RD |
9058 | } |
9059 | { | |
9060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9061 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
9062 | ||
9063 | wxPyEndAllowThreads(__tstate); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
9065 | } | |
9066 | Py_INCREF(Py_None); resultobj = Py_None; | |
9067 | { | |
9068 | if (temp4) | |
9069 | delete arg4; | |
9070 | } | |
9071 | return resultobj; | |
9072 | fail: | |
9073 | { | |
9074 | if (temp4) | |
9075 | delete arg4; | |
9076 | } | |
9077 | return NULL; | |
9078 | } | |
9079 | ||
9080 | ||
c32bde28 | 9081 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9082 | PyObject *resultobj; |
9083 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9084 | long arg2 ; | |
9085 | long arg3 ; | |
9086 | PyObject * obj0 = 0 ; | |
9087 | PyObject * obj1 = 0 ; | |
9088 | PyObject * obj2 = 0 ; | |
9089 | char *kwnames[] = { | |
9090 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9091 | }; | |
9092 | ||
9093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9096 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9097 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9098 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9099 | if (PyErr_Occurred()) SWIG_fail; |
9100 | { | |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | (arg1)->Remove(arg2,arg3); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | Py_INCREF(Py_None); resultobj = Py_None; | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
c32bde28 | 9114 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9115 | PyObject *resultobj; |
9116 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9117 | wxString *arg2 = 0 ; | |
9118 | bool result; | |
ae8162c8 | 9119 | bool temp2 = false ; |
d55e5bfc RD |
9120 | PyObject * obj0 = 0 ; |
9121 | PyObject * obj1 = 0 ; | |
9122 | char *kwnames[] = { | |
9123 | (char *) "self",(char *) "file", NULL | |
9124 | }; | |
9125 | ||
9126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
9127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9129 | { | |
9130 | arg2 = wxString_in_helper(obj1); | |
9131 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9132 | temp2 = true; |
d55e5bfc RD |
9133 | } |
9134 | { | |
9135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9136 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
9137 | ||
9138 | wxPyEndAllowThreads(__tstate); | |
9139 | if (PyErr_Occurred()) SWIG_fail; | |
9140 | } | |
9141 | { | |
9142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9143 | } | |
9144 | { | |
9145 | if (temp2) | |
9146 | delete arg2; | |
9147 | } | |
9148 | return resultobj; | |
9149 | fail: | |
9150 | { | |
9151 | if (temp2) | |
9152 | delete arg2; | |
9153 | } | |
9154 | return NULL; | |
9155 | } | |
9156 | ||
9157 | ||
c32bde28 | 9158 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9159 | PyObject *resultobj; |
9160 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9161 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9162 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9163 | bool result; | |
ae8162c8 | 9164 | bool temp2 = false ; |
d55e5bfc RD |
9165 | PyObject * obj0 = 0 ; |
9166 | PyObject * obj1 = 0 ; | |
9167 | char *kwnames[] = { | |
9168 | (char *) "self",(char *) "file", NULL | |
9169 | }; | |
9170 | ||
9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
9172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9174 | if (obj1) { | |
9175 | { | |
9176 | arg2 = wxString_in_helper(obj1); | |
9177 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9178 | temp2 = true; |
d55e5bfc RD |
9179 | } |
9180 | } | |
9181 | { | |
9182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9183 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
9184 | ||
9185 | wxPyEndAllowThreads(__tstate); | |
9186 | if (PyErr_Occurred()) SWIG_fail; | |
9187 | } | |
9188 | { | |
9189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9190 | } | |
9191 | { | |
9192 | if (temp2) | |
9193 | delete arg2; | |
9194 | } | |
9195 | return resultobj; | |
9196 | fail: | |
9197 | { | |
9198 | if (temp2) | |
9199 | delete arg2; | |
9200 | } | |
9201 | return NULL; | |
9202 | } | |
9203 | ||
9204 | ||
c32bde28 | 9205 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9206 | PyObject *resultobj; |
9207 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9208 | PyObject * obj0 = 0 ; | |
9209 | char *kwnames[] = { | |
9210 | (char *) "self", NULL | |
9211 | }; | |
9212 | ||
9213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
9214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9216 | { | |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | (arg1)->MarkDirty(); | |
9219 | ||
9220 | wxPyEndAllowThreads(__tstate); | |
9221 | if (PyErr_Occurred()) SWIG_fail; | |
9222 | } | |
9223 | Py_INCREF(Py_None); resultobj = Py_None; | |
9224 | return resultobj; | |
9225 | fail: | |
9226 | return NULL; | |
9227 | } | |
9228 | ||
9229 | ||
c32bde28 | 9230 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9231 | PyObject *resultobj; |
9232 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9233 | PyObject * obj0 = 0 ; | |
9234 | char *kwnames[] = { | |
9235 | (char *) "self", NULL | |
9236 | }; | |
9237 | ||
9238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
9239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9241 | { | |
9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9243 | (arg1)->DiscardEdits(); | |
9244 | ||
9245 | wxPyEndAllowThreads(__tstate); | |
9246 | if (PyErr_Occurred()) SWIG_fail; | |
9247 | } | |
9248 | Py_INCREF(Py_None); resultobj = Py_None; | |
9249 | return resultobj; | |
9250 | fail: | |
9251 | return NULL; | |
9252 | } | |
9253 | ||
9254 | ||
c32bde28 | 9255 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9256 | PyObject *resultobj; |
9257 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9258 | unsigned long arg2 ; | |
9259 | PyObject * obj0 = 0 ; | |
9260 | PyObject * obj1 = 0 ; | |
9261 | char *kwnames[] = { | |
9262 | (char *) "self",(char *) "len", NULL | |
9263 | }; | |
9264 | ||
9265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
9266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9268 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
9269 | if (PyErr_Occurred()) SWIG_fail; |
9270 | { | |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | (arg1)->SetMaxLength(arg2); | |
9273 | ||
9274 | wxPyEndAllowThreads(__tstate); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | } | |
9277 | Py_INCREF(Py_None); resultobj = Py_None; | |
9278 | return resultobj; | |
9279 | fail: | |
9280 | return NULL; | |
9281 | } | |
9282 | ||
9283 | ||
c32bde28 | 9284 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9285 | PyObject *resultobj; |
9286 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9287 | wxString *arg2 = 0 ; | |
ae8162c8 | 9288 | bool temp2 = false ; |
d55e5bfc RD |
9289 | PyObject * obj0 = 0 ; |
9290 | PyObject * obj1 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self",(char *) "text", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9298 | { | |
9299 | arg2 = wxString_in_helper(obj1); | |
9300 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9301 | temp2 = true; |
d55e5bfc RD |
9302 | } |
9303 | { | |
9304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9305 | (arg1)->WriteText((wxString const &)*arg2); | |
9306 | ||
9307 | wxPyEndAllowThreads(__tstate); | |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
9309 | } | |
9310 | Py_INCREF(Py_None); resultobj = Py_None; | |
9311 | { | |
9312 | if (temp2) | |
9313 | delete arg2; | |
9314 | } | |
9315 | return resultobj; | |
9316 | fail: | |
9317 | { | |
9318 | if (temp2) | |
9319 | delete arg2; | |
9320 | } | |
9321 | return NULL; | |
9322 | } | |
9323 | ||
9324 | ||
c32bde28 | 9325 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9326 | PyObject *resultobj; |
9327 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9328 | wxString *arg2 = 0 ; | |
ae8162c8 | 9329 | bool temp2 = false ; |
d55e5bfc RD |
9330 | PyObject * obj0 = 0 ; |
9331 | PyObject * obj1 = 0 ; | |
9332 | char *kwnames[] = { | |
9333 | (char *) "self",(char *) "text", NULL | |
9334 | }; | |
9335 | ||
9336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
9337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9339 | { | |
9340 | arg2 = wxString_in_helper(obj1); | |
9341 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9342 | temp2 = true; |
d55e5bfc RD |
9343 | } |
9344 | { | |
9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9346 | (arg1)->AppendText((wxString const &)*arg2); | |
9347 | ||
9348 | wxPyEndAllowThreads(__tstate); | |
9349 | if (PyErr_Occurred()) SWIG_fail; | |
9350 | } | |
9351 | Py_INCREF(Py_None); resultobj = Py_None; | |
9352 | { | |
9353 | if (temp2) | |
9354 | delete arg2; | |
9355 | } | |
9356 | return resultobj; | |
9357 | fail: | |
9358 | { | |
9359 | if (temp2) | |
9360 | delete arg2; | |
9361 | } | |
9362 | return NULL; | |
9363 | } | |
9364 | ||
9365 | ||
c32bde28 | 9366 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9367 | PyObject *resultobj; |
9368 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9369 | wxKeyEvent *arg2 = 0 ; | |
9370 | bool result; | |
9371 | PyObject * obj0 = 0 ; | |
9372 | PyObject * obj1 = 0 ; | |
9373 | char *kwnames[] = { | |
9374 | (char *) "self",(char *) "event", NULL | |
9375 | }; | |
9376 | ||
9377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
9378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9380 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
9381 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9382 | SWIG_fail; | |
9383 | if (arg2 == NULL) { | |
9384 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9385 | SWIG_fail; | |
9386 | } | |
9387 | { | |
9388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9389 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
9390 | ||
9391 | wxPyEndAllowThreads(__tstate); | |
9392 | if (PyErr_Occurred()) SWIG_fail; | |
9393 | } | |
9394 | { | |
9395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9396 | } | |
9397 | return resultobj; | |
9398 | fail: | |
9399 | return NULL; | |
9400 | } | |
9401 | ||
9402 | ||
c32bde28 | 9403 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9404 | PyObject *resultobj; |
9405 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9406 | long arg2 ; | |
9407 | long arg3 ; | |
9408 | wxTextAttr *arg4 = 0 ; | |
9409 | bool result; | |
9410 | PyObject * obj0 = 0 ; | |
9411 | PyObject * obj1 = 0 ; | |
9412 | PyObject * obj2 = 0 ; | |
9413 | PyObject * obj3 = 0 ; | |
9414 | char *kwnames[] = { | |
9415 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9416 | }; | |
9417 | ||
9418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9421 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9422 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9423 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9424 | if (PyErr_Occurred()) SWIG_fail; |
9425 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9426 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9427 | SWIG_fail; | |
9428 | if (arg4 == NULL) { | |
9429 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9430 | SWIG_fail; | |
9431 | } | |
9432 | { | |
9433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9434 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9435 | ||
9436 | wxPyEndAllowThreads(__tstate); | |
9437 | if (PyErr_Occurred()) SWIG_fail; | |
9438 | } | |
9439 | { | |
9440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9441 | } | |
9442 | return resultobj; | |
9443 | fail: | |
9444 | return NULL; | |
9445 | } | |
9446 | ||
9447 | ||
c32bde28 | 9448 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9449 | PyObject *resultobj; |
9450 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9451 | long arg2 ; | |
9452 | wxTextAttr *arg3 = 0 ; | |
9453 | bool result; | |
9454 | PyObject * obj0 = 0 ; | |
9455 | PyObject * obj1 = 0 ; | |
9456 | PyObject * obj2 = 0 ; | |
9457 | char *kwnames[] = { | |
9458 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9459 | }; | |
9460 | ||
9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9464 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9465 | if (PyErr_Occurred()) SWIG_fail; |
9466 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9468 | SWIG_fail; | |
9469 | if (arg3 == NULL) { | |
9470 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9471 | SWIG_fail; | |
9472 | } | |
9473 | { | |
9474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9475 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9476 | ||
9477 | wxPyEndAllowThreads(__tstate); | |
9478 | if (PyErr_Occurred()) SWIG_fail; | |
9479 | } | |
9480 | { | |
9481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9482 | } | |
9483 | return resultobj; | |
9484 | fail: | |
9485 | return NULL; | |
9486 | } | |
9487 | ||
9488 | ||
c32bde28 | 9489 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9490 | PyObject *resultobj; |
9491 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9492 | wxTextAttr *arg2 = 0 ; | |
9493 | bool result; | |
9494 | PyObject * obj0 = 0 ; | |
9495 | PyObject * obj1 = 0 ; | |
9496 | char *kwnames[] = { | |
9497 | (char *) "self",(char *) "style", NULL | |
9498 | }; | |
9499 | ||
9500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
9501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9505 | SWIG_fail; | |
9506 | if (arg2 == NULL) { | |
9507 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9508 | SWIG_fail; | |
9509 | } | |
9510 | { | |
9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9512 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9513 | ||
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
9517 | { | |
9518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9519 | } | |
9520 | return resultobj; | |
9521 | fail: | |
9522 | return NULL; | |
9523 | } | |
9524 | ||
9525 | ||
c32bde28 | 9526 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9527 | PyObject *resultobj; |
9528 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9529 | wxTextAttr *result; | |
9530 | PyObject * obj0 = 0 ; | |
9531 | char *kwnames[] = { | |
9532 | (char *) "self", NULL | |
9533 | }; | |
9534 | ||
9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
9536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9538 | { | |
9539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9540 | { | |
9541 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9542 | result = (wxTextAttr *) &_result_ref; | |
9543 | } | |
9544 | ||
9545 | wxPyEndAllowThreads(__tstate); | |
9546 | if (PyErr_Occurred()) SWIG_fail; | |
9547 | } | |
9548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
9549 | return resultobj; | |
9550 | fail: | |
9551 | return NULL; | |
9552 | } | |
9553 | ||
9554 | ||
c32bde28 | 9555 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9556 | PyObject *resultobj; |
9557 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9558 | long arg2 ; | |
9559 | long arg3 ; | |
9560 | long result; | |
9561 | PyObject * obj0 = 0 ; | |
9562 | PyObject * obj1 = 0 ; | |
9563 | PyObject * obj2 = 0 ; | |
9564 | char *kwnames[] = { | |
9565 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9566 | }; | |
9567 | ||
9568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9571 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 9572 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9573 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9574 | if (PyErr_Occurred()) SWIG_fail; |
9575 | { | |
9576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9577 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
c32bde28 | 9582 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
9583 | return resultobj; |
9584 | fail: | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
c32bde28 | 9589 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9590 | PyObject *resultobj; |
9591 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9592 | long arg2 ; | |
9593 | long *arg3 = (long *) 0 ; | |
9594 | long *arg4 = (long *) 0 ; | |
9595 | long temp3 ; | |
c32bde28 | 9596 | int res3 = 0 ; |
d55e5bfc | 9597 | long temp4 ; |
c32bde28 | 9598 | int res4 = 0 ; |
d55e5bfc RD |
9599 | PyObject * obj0 = 0 ; |
9600 | PyObject * obj1 = 0 ; | |
9601 | char *kwnames[] = { | |
9602 | (char *) "self",(char *) "pos", NULL | |
9603 | }; | |
9604 | ||
c32bde28 RD |
9605 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9606 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
9608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9610 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9611 | if (PyErr_Occurred()) SWIG_fail; |
9612 | { | |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9615 | ||
9616 | wxPyEndAllowThreads(__tstate); | |
9617 | if (PyErr_Occurred()) SWIG_fail; | |
9618 | } | |
9619 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
9620 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
9621 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9622 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9623 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
9624 | return resultobj; |
9625 | fail: | |
9626 | return NULL; | |
9627 | } | |
9628 | ||
9629 | ||
c32bde28 | 9630 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9631 | PyObject *resultobj; |
9632 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9633 | long arg2 ; | |
9634 | PyObject * obj0 = 0 ; | |
9635 | PyObject * obj1 = 0 ; | |
9636 | char *kwnames[] = { | |
9637 | (char *) "self",(char *) "pos", NULL | |
9638 | }; | |
9639 | ||
9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
9641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9643 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9644 | if (PyErr_Occurred()) SWIG_fail; |
9645 | { | |
9646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9647 | (arg1)->ShowPosition(arg2); | |
9648 | ||
9649 | wxPyEndAllowThreads(__tstate); | |
9650 | if (PyErr_Occurred()) SWIG_fail; | |
9651 | } | |
9652 | Py_INCREF(Py_None); resultobj = Py_None; | |
9653 | return resultobj; | |
9654 | fail: | |
9655 | return NULL; | |
9656 | } | |
9657 | ||
9658 | ||
c32bde28 | 9659 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9660 | PyObject *resultobj; |
9661 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9662 | wxPoint *arg2 = 0 ; | |
9663 | long *arg3 = (long *) 0 ; | |
9664 | long *arg4 = (long *) 0 ; | |
9665 | int result; | |
9666 | wxPoint temp2 ; | |
9667 | long temp3 ; | |
c32bde28 | 9668 | int res3 = 0 ; |
d55e5bfc | 9669 | long temp4 ; |
c32bde28 | 9670 | int res4 = 0 ; |
d55e5bfc RD |
9671 | PyObject * obj0 = 0 ; |
9672 | PyObject * obj1 = 0 ; | |
9673 | char *kwnames[] = { | |
9674 | (char *) "self",(char *) "pt", NULL | |
9675 | }; | |
9676 | ||
c32bde28 RD |
9677 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9678 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
9680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9682 | { | |
9683 | arg2 = &temp2; | |
9684 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9685 | } | |
9686 | { | |
9687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9688 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9689 | ||
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
c32bde28 RD |
9693 | resultobj = SWIG_From_int((int)result); |
9694 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9695 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9696 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9697 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
9698 | return resultobj; |
9699 | fail: | |
9700 | return NULL; | |
9701 | } | |
9702 | ||
9703 | ||
c32bde28 | 9704 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
9705 | PyObject *resultobj; |
9706 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9707 | wxPoint *arg2 = 0 ; | |
9708 | long *arg3 = (long *) 0 ; | |
9709 | int result; | |
9710 | wxPoint temp2 ; | |
9711 | long temp3 ; | |
c32bde28 | 9712 | int res3 = 0 ; |
4896ac9e RD |
9713 | PyObject * obj0 = 0 ; |
9714 | PyObject * obj1 = 0 ; | |
9715 | char *kwnames[] = { | |
9716 | (char *) "self",(char *) "pt", NULL | |
9717 | }; | |
9718 | ||
c32bde28 | 9719 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e RD |
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
9721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9723 | { | |
9724 | arg2 = &temp2; | |
9725 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9726 | } | |
9727 | { | |
9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9729 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
9730 | ||
9731 | wxPyEndAllowThreads(__tstate); | |
9732 | if (PyErr_Occurred()) SWIG_fail; | |
9733 | } | |
c32bde28 RD |
9734 | resultobj = SWIG_From_int((int)result); |
9735 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9736 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
9737 | return resultobj; |
9738 | fail: | |
9739 | return NULL; | |
9740 | } | |
9741 | ||
9742 | ||
c32bde28 | 9743 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9744 | PyObject *resultobj; |
9745 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | char *kwnames[] = { | |
9748 | (char *) "self", NULL | |
9749 | }; | |
9750 | ||
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
9752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9754 | { | |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | (arg1)->Copy(); | |
9757 | ||
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
9761 | Py_INCREF(Py_None); resultobj = Py_None; | |
9762 | return resultobj; | |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
c32bde28 | 9768 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9769 | PyObject *resultobj; |
9770 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "self", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
9777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9779 | { | |
9780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9781 | (arg1)->Cut(); | |
9782 | ||
9783 | wxPyEndAllowThreads(__tstate); | |
9784 | if (PyErr_Occurred()) SWIG_fail; | |
9785 | } | |
9786 | Py_INCREF(Py_None); resultobj = Py_None; | |
9787 | return resultobj; | |
9788 | fail: | |
9789 | return NULL; | |
9790 | } | |
9791 | ||
9792 | ||
c32bde28 | 9793 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9794 | PyObject *resultobj; |
9795 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9796 | PyObject * obj0 = 0 ; | |
9797 | char *kwnames[] = { | |
9798 | (char *) "self", NULL | |
9799 | }; | |
9800 | ||
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
9802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9804 | { | |
9805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9806 | (arg1)->Paste(); | |
9807 | ||
9808 | wxPyEndAllowThreads(__tstate); | |
9809 | if (PyErr_Occurred()) SWIG_fail; | |
9810 | } | |
9811 | Py_INCREF(Py_None); resultobj = Py_None; | |
9812 | return resultobj; | |
9813 | fail: | |
9814 | return NULL; | |
9815 | } | |
9816 | ||
9817 | ||
c32bde28 | 9818 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9819 | PyObject *resultobj; |
9820 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9821 | bool result; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | char *kwnames[] = { | |
9824 | (char *) "self", NULL | |
9825 | }; | |
9826 | ||
9827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
9828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9830 | { | |
9831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9832 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9833 | ||
9834 | wxPyEndAllowThreads(__tstate); | |
9835 | if (PyErr_Occurred()) SWIG_fail; | |
9836 | } | |
9837 | { | |
9838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9839 | } | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
c32bde28 | 9846 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9847 | PyObject *resultobj; |
9848 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9849 | bool result; | |
9850 | PyObject * obj0 = 0 ; | |
9851 | char *kwnames[] = { | |
9852 | (char *) "self", NULL | |
9853 | }; | |
9854 | ||
9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
9856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9858 | { | |
9859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9860 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9861 | ||
9862 | wxPyEndAllowThreads(__tstate); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
9864 | } | |
9865 | { | |
9866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9867 | } | |
9868 | return resultobj; | |
9869 | fail: | |
9870 | return NULL; | |
9871 | } | |
9872 | ||
9873 | ||
c32bde28 | 9874 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9875 | PyObject *resultobj; |
9876 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9877 | bool result; | |
9878 | PyObject * obj0 = 0 ; | |
9879 | char *kwnames[] = { | |
9880 | (char *) "self", NULL | |
9881 | }; | |
9882 | ||
9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
9884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9886 | { | |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
9891 | if (PyErr_Occurred()) SWIG_fail; | |
9892 | } | |
9893 | { | |
9894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9895 | } | |
9896 | return resultobj; | |
9897 | fail: | |
9898 | return NULL; | |
9899 | } | |
9900 | ||
9901 | ||
c32bde28 | 9902 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9903 | PyObject *resultobj; |
9904 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9905 | PyObject * obj0 = 0 ; | |
9906 | char *kwnames[] = { | |
9907 | (char *) "self", NULL | |
9908 | }; | |
9909 | ||
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
9911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9913 | { | |
9914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9915 | (arg1)->Undo(); | |
9916 | ||
9917 | wxPyEndAllowThreads(__tstate); | |
9918 | if (PyErr_Occurred()) SWIG_fail; | |
9919 | } | |
9920 | Py_INCREF(Py_None); resultobj = Py_None; | |
9921 | return resultobj; | |
9922 | fail: | |
9923 | return NULL; | |
9924 | } | |
9925 | ||
9926 | ||
c32bde28 | 9927 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9928 | PyObject *resultobj; |
9929 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9930 | PyObject * obj0 = 0 ; | |
9931 | char *kwnames[] = { | |
9932 | (char *) "self", NULL | |
9933 | }; | |
9934 | ||
9935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
9936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9938 | { | |
9939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9940 | (arg1)->Redo(); | |
9941 | ||
9942 | wxPyEndAllowThreads(__tstate); | |
9943 | if (PyErr_Occurred()) SWIG_fail; | |
9944 | } | |
9945 | Py_INCREF(Py_None); resultobj = Py_None; | |
9946 | return resultobj; | |
9947 | fail: | |
9948 | return NULL; | |
9949 | } | |
9950 | ||
9951 | ||
c32bde28 | 9952 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9953 | PyObject *resultobj; |
9954 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9955 | bool result; | |
9956 | PyObject * obj0 = 0 ; | |
9957 | char *kwnames[] = { | |
9958 | (char *) "self", NULL | |
9959 | }; | |
9960 | ||
9961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
9962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9964 | { | |
9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9966 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9967 | ||
9968 | wxPyEndAllowThreads(__tstate); | |
9969 | if (PyErr_Occurred()) SWIG_fail; | |
9970 | } | |
9971 | { | |
9972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9973 | } | |
9974 | return resultobj; | |
9975 | fail: | |
9976 | return NULL; | |
9977 | } | |
9978 | ||
9979 | ||
c32bde28 | 9980 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9981 | PyObject *resultobj; |
9982 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9983 | bool result; | |
9984 | PyObject * obj0 = 0 ; | |
9985 | char *kwnames[] = { | |
9986 | (char *) "self", NULL | |
9987 | }; | |
9988 | ||
9989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
9990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9992 | { | |
9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9994 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9995 | ||
9996 | wxPyEndAllowThreads(__tstate); | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | } | |
9999 | { | |
10000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10001 | } | |
10002 | return resultobj; | |
10003 | fail: | |
10004 | return NULL; | |
10005 | } | |
10006 | ||
10007 | ||
c32bde28 | 10008 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10009 | PyObject *resultobj; |
10010 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10011 | long arg2 ; | |
10012 | PyObject * obj0 = 0 ; | |
10013 | PyObject * obj1 = 0 ; | |
10014 | char *kwnames[] = { | |
10015 | (char *) "self",(char *) "pos", NULL | |
10016 | }; | |
10017 | ||
10018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
10019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10021 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
10022 | if (PyErr_Occurred()) SWIG_fail; |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | (arg1)->SetInsertionPoint(arg2); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | Py_INCREF(Py_None); resultobj = Py_None; | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
c32bde28 | 10037 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10038 | PyObject *resultobj; |
10039 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10040 | PyObject * obj0 = 0 ; | |
10041 | char *kwnames[] = { | |
10042 | (char *) "self", NULL | |
10043 | }; | |
10044 | ||
10045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
10046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10048 | { | |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | (arg1)->SetInsertionPointEnd(); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | Py_INCREF(Py_None); resultobj = Py_None; | |
10056 | return resultobj; | |
10057 | fail: | |
10058 | return NULL; | |
10059 | } | |
10060 | ||
10061 | ||
c32bde28 | 10062 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10063 | PyObject *resultobj; |
10064 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10065 | long result; | |
10066 | PyObject * obj0 = 0 ; | |
10067 | char *kwnames[] = { | |
10068 | (char *) "self", NULL | |
10069 | }; | |
10070 | ||
10071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
10072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10074 | { | |
10075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10076 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
10077 | ||
10078 | wxPyEndAllowThreads(__tstate); | |
10079 | if (PyErr_Occurred()) SWIG_fail; | |
10080 | } | |
c32bde28 | 10081 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10082 | return resultobj; |
10083 | fail: | |
10084 | return NULL; | |
10085 | } | |
10086 | ||
10087 | ||
c32bde28 | 10088 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10089 | PyObject *resultobj; |
10090 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10091 | long result; | |
10092 | PyObject * obj0 = 0 ; | |
10093 | char *kwnames[] = { | |
10094 | (char *) "self", NULL | |
10095 | }; | |
10096 | ||
10097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
10098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10102 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
10103 | ||
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
c32bde28 | 10107 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10108 | return resultobj; |
10109 | fail: | |
10110 | return NULL; | |
10111 | } | |
10112 | ||
10113 | ||
c32bde28 | 10114 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10115 | PyObject *resultobj; |
10116 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10117 | long arg2 ; | |
10118 | long arg3 ; | |
10119 | PyObject * obj0 = 0 ; | |
10120 | PyObject * obj1 = 0 ; | |
10121 | PyObject * obj2 = 0 ; | |
10122 | char *kwnames[] = { | |
10123 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10124 | }; | |
10125 | ||
10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10129 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 10130 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10131 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10132 | if (PyErr_Occurred()) SWIG_fail; |
10133 | { | |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10135 | (arg1)->SetSelection(arg2,arg3); | |
10136 | ||
10137 | wxPyEndAllowThreads(__tstate); | |
10138 | if (PyErr_Occurred()) SWIG_fail; | |
10139 | } | |
10140 | Py_INCREF(Py_None); resultobj = Py_None; | |
10141 | return resultobj; | |
10142 | fail: | |
10143 | return NULL; | |
10144 | } | |
10145 | ||
10146 | ||
c32bde28 | 10147 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10148 | PyObject *resultobj; |
10149 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10150 | PyObject * obj0 = 0 ; | |
10151 | char *kwnames[] = { | |
10152 | (char *) "self", NULL | |
10153 | }; | |
10154 | ||
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
10156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | (arg1)->SelectAll(); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | Py_INCREF(Py_None); resultobj = Py_None; | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | return NULL; | |
10169 | } | |
10170 | ||
10171 | ||
c32bde28 | 10172 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10173 | PyObject *resultobj; |
10174 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10175 | bool arg2 ; | |
10176 | PyObject * obj0 = 0 ; | |
10177 | PyObject * obj1 = 0 ; | |
10178 | char *kwnames[] = { | |
10179 | (char *) "self",(char *) "editable", NULL | |
10180 | }; | |
10181 | ||
10182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
10183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10185 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10186 | if (PyErr_Occurred()) SWIG_fail; |
10187 | { | |
10188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10189 | (arg1)->SetEditable(arg2); | |
10190 | ||
10191 | wxPyEndAllowThreads(__tstate); | |
10192 | if (PyErr_Occurred()) SWIG_fail; | |
10193 | } | |
10194 | Py_INCREF(Py_None); resultobj = Py_None; | |
10195 | return resultobj; | |
10196 | fail: | |
10197 | return NULL; | |
10198 | } | |
10199 | ||
10200 | ||
c32bde28 | 10201 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10202 | PyObject *resultobj; |
10203 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
ae8162c8 | 10204 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10205 | bool result; |
10206 | PyObject * obj0 = 0 ; | |
10207 | PyObject * obj1 = 0 ; | |
10208 | char *kwnames[] = { | |
10209 | (char *) "self",(char *) "show", NULL | |
10210 | }; | |
10211 | ||
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
10213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10215 | if (obj1) { | |
c32bde28 | 10216 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10217 | if (PyErr_Occurred()) SWIG_fail; |
10218 | } | |
10219 | { | |
10220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10221 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
10222 | ||
10223 | wxPyEndAllowThreads(__tstate); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
10225 | } | |
10226 | { | |
10227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10228 | } | |
10229 | return resultobj; | |
10230 | fail: | |
10231 | return NULL; | |
10232 | } | |
10233 | ||
10234 | ||
c32bde28 | 10235 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10236 | PyObject *resultobj; |
10237 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10238 | bool result; | |
10239 | PyObject * obj0 = 0 ; | |
10240 | char *kwnames[] = { | |
10241 | (char *) "self", NULL | |
10242 | }; | |
10243 | ||
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
10245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10247 | { | |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | result = (bool)(arg1)->HideNativeCaret(); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | { | |
10255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10256 | } | |
10257 | return resultobj; | |
10258 | fail: | |
10259 | return NULL; | |
10260 | } | |
10261 | ||
10262 | ||
c32bde28 | 10263 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10264 | PyObject *resultobj; |
10265 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10266 | wxString *arg2 = 0 ; | |
ae8162c8 | 10267 | bool temp2 = false ; |
d55e5bfc RD |
10268 | PyObject * obj0 = 0 ; |
10269 | PyObject * obj1 = 0 ; | |
10270 | char *kwnames[] = { | |
10271 | (char *) "self",(char *) "text", NULL | |
10272 | }; | |
10273 | ||
10274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
10275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10277 | { | |
10278 | arg2 = wxString_in_helper(obj1); | |
10279 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10280 | temp2 = true; |
d55e5bfc RD |
10281 | } |
10282 | { | |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
10289 | Py_INCREF(Py_None); resultobj = Py_None; | |
10290 | { | |
10291 | if (temp2) | |
10292 | delete arg2; | |
10293 | } | |
10294 | return resultobj; | |
10295 | fail: | |
10296 | { | |
10297 | if (temp2) | |
10298 | delete arg2; | |
10299 | } | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
c32bde28 | 10304 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10305 | PyObject *resultobj; |
10306 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10307 | long arg2 ; | |
10308 | long arg3 ; | |
10309 | wxString result; | |
10310 | PyObject * obj0 = 0 ; | |
10311 | PyObject * obj1 = 0 ; | |
10312 | PyObject * obj2 = 0 ; | |
10313 | char *kwnames[] = { | |
10314 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10315 | }; | |
10316 | ||
10317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
10319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10320 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 10321 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10322 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10323 | if (PyErr_Occurred()) SWIG_fail; |
10324 | { | |
10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10326 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
10327 | ||
10328 | wxPyEndAllowThreads(__tstate); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
10330 | } | |
10331 | { | |
10332 | #if wxUSE_UNICODE | |
10333 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10334 | #else | |
10335 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10336 | #endif | |
10337 | } | |
10338 | return resultobj; | |
10339 | fail: | |
10340 | return NULL; | |
10341 | } | |
10342 | ||
10343 | ||
c32bde28 | 10344 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
10345 | PyObject *resultobj; |
10346 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10347 | wxVisualAttributes result; | |
10348 | PyObject * obj0 = 0 ; | |
10349 | char *kwnames[] = { | |
10350 | (char *) "variant", NULL | |
10351 | }; | |
10352 | ||
10353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10354 | if (obj0) { | |
c32bde28 | 10355 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
10356 | if (PyErr_Occurred()) SWIG_fail; |
10357 | } | |
10358 | { | |
19272049 | 10359 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10361 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10362 | ||
10363 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10364 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
10365 | } |
10366 | { | |
10367 | wxVisualAttributes * resultptr; | |
10368 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10369 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10370 | } | |
10371 | return resultobj; | |
10372 | fail: | |
10373 | return NULL; | |
10374 | } | |
10375 | ||
10376 | ||
c32bde28 | 10377 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10378 | PyObject *obj; |
10379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10380 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
10381 | Py_INCREF(obj); | |
10382 | return Py_BuildValue((char *)""); | |
10383 | } | |
c32bde28 | 10384 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10385 | PyObject *resultobj; |
10386 | int arg1 ; | |
10387 | wxMouseEvent *arg2 = 0 ; | |
10388 | long arg3 ; | |
10389 | long arg4 ; | |
10390 | wxTextUrlEvent *result; | |
10391 | PyObject * obj0 = 0 ; | |
10392 | PyObject * obj1 = 0 ; | |
10393 | PyObject * obj2 = 0 ; | |
10394 | PyObject * obj3 = 0 ; | |
10395 | char *kwnames[] = { | |
10396 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
10397 | }; | |
10398 | ||
10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 10400 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10401 | if (PyErr_Occurred()) SWIG_fail; |
10402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
10403 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10404 | SWIG_fail; | |
10405 | if (arg2 == NULL) { | |
10406 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10407 | SWIG_fail; | |
10408 | } | |
c32bde28 | 10409 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc | 10410 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10411 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
10412 | if (PyErr_Occurred()) SWIG_fail; |
10413 | { | |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
10420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
10421 | return resultobj; | |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
c32bde28 | 10427 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10428 | PyObject *resultobj; |
10429 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10430 | wxMouseEvent *result; | |
10431 | PyObject * obj0 = 0 ; | |
10432 | char *kwnames[] = { | |
10433 | (char *) "self", NULL | |
10434 | }; | |
10435 | ||
10436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
10437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10439 | { | |
10440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10441 | { | |
10442 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
10443 | result = (wxMouseEvent *) &_result_ref; | |
10444 | } | |
10445 | ||
10446 | wxPyEndAllowThreads(__tstate); | |
10447 | if (PyErr_Occurred()) SWIG_fail; | |
10448 | } | |
10449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
10450 | return resultobj; | |
10451 | fail: | |
10452 | return NULL; | |
10453 | } | |
10454 | ||
10455 | ||
c32bde28 | 10456 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10457 | PyObject *resultobj; |
10458 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10459 | long result; | |
10460 | PyObject * obj0 = 0 ; | |
10461 | char *kwnames[] = { | |
10462 | (char *) "self", NULL | |
10463 | }; | |
10464 | ||
10465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
10466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10468 | { | |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10470 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
10471 | ||
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) SWIG_fail; | |
10474 | } | |
c32bde28 | 10475 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10476 | return resultobj; |
10477 | fail: | |
10478 | return NULL; | |
10479 | } | |
10480 | ||
10481 | ||
c32bde28 | 10482 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10483 | PyObject *resultobj; |
10484 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10485 | long result; | |
10486 | PyObject * obj0 = 0 ; | |
10487 | char *kwnames[] = { | |
10488 | (char *) "self", NULL | |
10489 | }; | |
10490 | ||
10491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
10492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10494 | { | |
10495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10496 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10497 | ||
10498 | wxPyEndAllowThreads(__tstate); | |
10499 | if (PyErr_Occurred()) SWIG_fail; | |
10500 | } | |
c32bde28 | 10501 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10502 | return resultobj; |
10503 | fail: | |
10504 | return NULL; | |
10505 | } | |
10506 | ||
10507 | ||
c32bde28 | 10508 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10509 | PyObject *obj; |
10510 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10511 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10512 | Py_INCREF(obj); | |
10513 | return Py_BuildValue((char *)""); | |
10514 | } | |
c32bde28 | 10515 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
d55e5bfc RD |
10516 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
10517 | return 1; | |
10518 | } | |
10519 | ||
10520 | ||
10521 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10522 | PyObject *pyobj; | |
10523 | ||
10524 | { | |
10525 | #if wxUSE_UNICODE | |
10526 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10527 | #else | |
10528 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10529 | #endif | |
10530 | } | |
10531 | return pyobj; | |
10532 | } | |
10533 | ||
10534 | ||
c32bde28 | 10535 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10536 | PyObject *resultobj; |
10537 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10538 | int arg2 = (int) -1 ; | |
10539 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10540 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10541 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10542 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10543 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10544 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10545 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10546 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10547 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10548 | wxScrollBar *result; | |
10549 | wxPoint temp3 ; | |
10550 | wxSize temp4 ; | |
ae8162c8 | 10551 | bool temp7 = false ; |
d55e5bfc RD |
10552 | PyObject * obj0 = 0 ; |
10553 | PyObject * obj1 = 0 ; | |
10554 | PyObject * obj2 = 0 ; | |
10555 | PyObject * obj3 = 0 ; | |
10556 | PyObject * obj4 = 0 ; | |
10557 | PyObject * obj5 = 0 ; | |
10558 | PyObject * obj6 = 0 ; | |
10559 | char *kwnames[] = { | |
10560 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10561 | }; | |
10562 | ||
10563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10566 | if (obj1) { | |
c32bde28 | 10567 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10568 | if (PyErr_Occurred()) SWIG_fail; |
10569 | } | |
10570 | if (obj2) { | |
10571 | { | |
10572 | arg3 = &temp3; | |
10573 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10574 | } | |
10575 | } | |
10576 | if (obj3) { | |
10577 | { | |
10578 | arg4 = &temp4; | |
10579 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10580 | } | |
10581 | } | |
10582 | if (obj4) { | |
c32bde28 | 10583 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
10584 | if (PyErr_Occurred()) SWIG_fail; |
10585 | } | |
10586 | if (obj5) { | |
10587 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
10588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10589 | SWIG_fail; | |
10590 | if (arg6 == NULL) { | |
10591 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10592 | SWIG_fail; | |
10593 | } | |
10594 | } | |
10595 | if (obj6) { | |
10596 | { | |
10597 | arg7 = wxString_in_helper(obj6); | |
10598 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 10599 | temp7 = true; |
d55e5bfc RD |
10600 | } |
10601 | } | |
10602 | { | |
0439c23b | 10603 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10605 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10606 | ||
10607 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10608 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10609 | } |
10610 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10611 | { | |
10612 | if (temp7) | |
10613 | delete arg7; | |
10614 | } | |
10615 | return resultobj; | |
10616 | fail: | |
10617 | { | |
10618 | if (temp7) | |
10619 | delete arg7; | |
10620 | } | |
10621 | return NULL; | |
10622 | } | |
10623 | ||
10624 | ||
c32bde28 | 10625 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10626 | PyObject *resultobj; |
10627 | wxScrollBar *result; | |
10628 | char *kwnames[] = { | |
10629 | NULL | |
10630 | }; | |
10631 | ||
10632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10633 | { | |
0439c23b | 10634 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10636 | result = (wxScrollBar *)new wxScrollBar(); | |
10637 | ||
10638 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10639 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10640 | } |
10641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10642 | return resultobj; | |
10643 | fail: | |
10644 | return NULL; | |
10645 | } | |
10646 | ||
10647 | ||
c32bde28 | 10648 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10649 | PyObject *resultobj; |
10650 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10651 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10652 | int arg3 = (int) -1 ; | |
10653 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10654 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10655 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10656 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10657 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10658 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10659 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10660 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10661 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10662 | bool result; | |
10663 | wxPoint temp4 ; | |
10664 | wxSize temp5 ; | |
ae8162c8 | 10665 | bool temp8 = false ; |
d55e5bfc RD |
10666 | PyObject * obj0 = 0 ; |
10667 | PyObject * obj1 = 0 ; | |
10668 | PyObject * obj2 = 0 ; | |
10669 | PyObject * obj3 = 0 ; | |
10670 | PyObject * obj4 = 0 ; | |
10671 | PyObject * obj5 = 0 ; | |
10672 | PyObject * obj6 = 0 ; | |
10673 | PyObject * obj7 = 0 ; | |
10674 | char *kwnames[] = { | |
10675 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10676 | }; | |
10677 | ||
10678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
10679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10683 | if (obj2) { | |
c32bde28 | 10684 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10685 | if (PyErr_Occurred()) SWIG_fail; |
10686 | } | |
10687 | if (obj3) { | |
10688 | { | |
10689 | arg4 = &temp4; | |
10690 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10691 | } | |
10692 | } | |
10693 | if (obj4) { | |
10694 | { | |
10695 | arg5 = &temp5; | |
10696 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10697 | } | |
10698 | } | |
10699 | if (obj5) { | |
c32bde28 | 10700 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
10701 | if (PyErr_Occurred()) SWIG_fail; |
10702 | } | |
10703 | if (obj6) { | |
10704 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
10705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10706 | SWIG_fail; | |
10707 | if (arg7 == NULL) { | |
10708 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10709 | SWIG_fail; | |
10710 | } | |
10711 | } | |
10712 | if (obj7) { | |
10713 | { | |
10714 | arg8 = wxString_in_helper(obj7); | |
10715 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 10716 | temp8 = true; |
d55e5bfc RD |
10717 | } |
10718 | } | |
10719 | { | |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10721 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10722 | ||
10723 | wxPyEndAllowThreads(__tstate); | |
10724 | if (PyErr_Occurred()) SWIG_fail; | |
10725 | } | |
10726 | { | |
10727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10728 | } | |
10729 | { | |
10730 | if (temp8) | |
10731 | delete arg8; | |
10732 | } | |
10733 | return resultobj; | |
10734 | fail: | |
10735 | { | |
10736 | if (temp8) | |
10737 | delete arg8; | |
10738 | } | |
10739 | return NULL; | |
10740 | } | |
10741 | ||
10742 | ||
c32bde28 | 10743 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10744 | PyObject *resultobj; |
10745 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10746 | int result; | |
10747 | PyObject * obj0 = 0 ; | |
10748 | char *kwnames[] = { | |
10749 | (char *) "self", NULL | |
10750 | }; | |
10751 | ||
10752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
10753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10755 | { | |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10758 | ||
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
c32bde28 | 10762 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10763 | return resultobj; |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
c32bde28 | 10769 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10770 | PyObject *resultobj; |
10771 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10772 | int result; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | char *kwnames[] = { | |
10775 | (char *) "self", NULL | |
10776 | }; | |
10777 | ||
10778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
10779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10781 | { | |
10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10783 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10784 | ||
10785 | wxPyEndAllowThreads(__tstate); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
c32bde28 | 10788 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10789 | return resultobj; |
10790 | fail: | |
10791 | return NULL; | |
10792 | } | |
10793 | ||
10794 | ||
c32bde28 | 10795 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10796 | PyObject *resultobj; |
10797 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10798 | int result; | |
10799 | PyObject * obj0 = 0 ; | |
10800 | char *kwnames[] = { | |
10801 | (char *) "self", NULL | |
10802 | }; | |
10803 | ||
10804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
10805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10807 | { | |
10808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10809 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10810 | ||
10811 | wxPyEndAllowThreads(__tstate); | |
10812 | if (PyErr_Occurred()) SWIG_fail; | |
10813 | } | |
c32bde28 | 10814 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10815 | return resultobj; |
10816 | fail: | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
c32bde28 | 10821 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10822 | PyObject *resultobj; |
10823 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10824 | int result; | |
10825 | PyObject * obj0 = 0 ; | |
10826 | char *kwnames[] = { | |
10827 | (char *) "self", NULL | |
10828 | }; | |
10829 | ||
10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
10831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
c32bde28 | 10840 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10841 | return resultobj; |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
c32bde28 | 10847 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10848 | PyObject *resultobj; |
10849 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10850 | bool result; | |
10851 | PyObject * obj0 = 0 ; | |
10852 | char *kwnames[] = { | |
10853 | (char *) "self", NULL | |
10854 | }; | |
10855 | ||
10856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
10857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10859 | { | |
10860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10861 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10862 | ||
10863 | wxPyEndAllowThreads(__tstate); | |
10864 | if (PyErr_Occurred()) SWIG_fail; | |
10865 | } | |
10866 | { | |
10867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10868 | } | |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
c32bde28 | 10875 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10876 | PyObject *resultobj; |
10877 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10878 | int arg2 ; | |
10879 | PyObject * obj0 = 0 ; | |
10880 | PyObject * obj1 = 0 ; | |
10881 | char *kwnames[] = { | |
10882 | (char *) "self",(char *) "viewStart", NULL | |
10883 | }; | |
10884 | ||
10885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
10886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10888 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10889 | if (PyErr_Occurred()) SWIG_fail; |
10890 | { | |
10891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10892 | (arg1)->SetThumbPosition(arg2); | |
10893 | ||
10894 | wxPyEndAllowThreads(__tstate); | |
10895 | if (PyErr_Occurred()) SWIG_fail; | |
10896 | } | |
10897 | Py_INCREF(Py_None); resultobj = Py_None; | |
10898 | return resultobj; | |
10899 | fail: | |
10900 | return NULL; | |
10901 | } | |
10902 | ||
10903 | ||
c32bde28 | 10904 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10905 | PyObject *resultobj; |
10906 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10907 | int arg2 ; | |
10908 | int arg3 ; | |
10909 | int arg4 ; | |
10910 | int arg5 ; | |
ae8162c8 | 10911 | bool arg6 = (bool) true ; |
d55e5bfc RD |
10912 | PyObject * obj0 = 0 ; |
10913 | PyObject * obj1 = 0 ; | |
10914 | PyObject * obj2 = 0 ; | |
10915 | PyObject * obj3 = 0 ; | |
10916 | PyObject * obj4 = 0 ; | |
10917 | PyObject * obj5 = 0 ; | |
10918 | char *kwnames[] = { | |
10919 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10920 | }; | |
10921 | ||
10922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10925 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 10926 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10927 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10928 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10929 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 10930 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10931 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
10932 | if (PyErr_Occurred()) SWIG_fail; |
10933 | if (obj5) { | |
c32bde28 | 10934 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
10935 | if (PyErr_Occurred()) SWIG_fail; |
10936 | } | |
10937 | { | |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10939 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10940 | ||
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | } | |
10944 | Py_INCREF(Py_None); resultobj = Py_None; | |
10945 | return resultobj; | |
10946 | fail: | |
10947 | return NULL; | |
10948 | } | |
10949 | ||
10950 | ||
c32bde28 | 10951 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
10952 | PyObject *resultobj; |
10953 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10954 | wxVisualAttributes result; | |
10955 | PyObject * obj0 = 0 ; | |
10956 | char *kwnames[] = { | |
10957 | (char *) "variant", NULL | |
10958 | }; | |
10959 | ||
10960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10961 | if (obj0) { | |
c32bde28 | 10962 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
10963 | if (PyErr_Occurred()) SWIG_fail; |
10964 | } | |
10965 | { | |
19272049 | 10966 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
10967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10968 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10969 | ||
10970 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10971 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
10972 | } |
10973 | { | |
10974 | wxVisualAttributes * resultptr; | |
10975 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10977 | } | |
10978 | return resultobj; | |
10979 | fail: | |
10980 | return NULL; | |
10981 | } | |
10982 | ||
10983 | ||
c32bde28 | 10984 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10985 | PyObject *obj; |
10986 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10987 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10988 | Py_INCREF(obj); | |
10989 | return Py_BuildValue((char *)""); | |
10990 | } | |
c32bde28 | 10991 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
d55e5bfc RD |
10992 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
10993 | return 1; | |
10994 | } | |
10995 | ||
10996 | ||
10997 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10998 | PyObject *pyobj; | |
10999 | ||
11000 | { | |
11001 | #if wxUSE_UNICODE | |
11002 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
11003 | #else | |
11004 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
11005 | #endif | |
11006 | } | |
11007 | return pyobj; | |
11008 | } | |
11009 | ||
11010 | ||
c32bde28 | 11011 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
11012 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
11013 | return 1; | |
11014 | } | |
11015 | ||
11016 | ||
11017 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
11018 | PyObject *pyobj; | |
11019 | ||
11020 | { | |
11021 | #if wxUSE_UNICODE | |
11022 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
11023 | #else | |
11024 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
11025 | #endif | |
11026 | } | |
11027 | return pyobj; | |
11028 | } | |
11029 | ||
11030 | ||
c32bde28 | 11031 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11032 | PyObject *resultobj; |
11033 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11034 | int arg2 = (int) -1 ; | |
11035 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
11036 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11037 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11038 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11039 | long arg5 = (long) wxSP_HORIZONTAL ; | |
11040 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
11041 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11042 | wxSpinButton *result; | |
11043 | wxPoint temp3 ; | |
11044 | wxSize temp4 ; | |
ae8162c8 | 11045 | bool temp6 = false ; |
d55e5bfc RD |
11046 | PyObject * obj0 = 0 ; |
11047 | PyObject * obj1 = 0 ; | |
11048 | PyObject * obj2 = 0 ; | |
11049 | PyObject * obj3 = 0 ; | |
11050 | PyObject * obj4 = 0 ; | |
11051 | PyObject * obj5 = 0 ; | |
11052 | char *kwnames[] = { | |
11053 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11054 | }; | |
11055 | ||
11056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11059 | if (obj1) { | |
c32bde28 | 11060 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11061 | if (PyErr_Occurred()) SWIG_fail; |
11062 | } | |
11063 | if (obj2) { | |
11064 | { | |
11065 | arg3 = &temp3; | |
11066 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11067 | } | |
11068 | } | |
11069 | if (obj3) { | |
11070 | { | |
11071 | arg4 = &temp4; | |
11072 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11073 | } | |
11074 | } | |
11075 | if (obj4) { | |
c32bde28 | 11076 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
11077 | if (PyErr_Occurred()) SWIG_fail; |
11078 | } | |
11079 | if (obj5) { | |
11080 | { | |
11081 | arg6 = wxString_in_helper(obj5); | |
11082 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 11083 | temp6 = true; |
d55e5bfc RD |
11084 | } |
11085 | } | |
11086 | { | |
0439c23b | 11087 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11089 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
11090 | ||
11091 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11092 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11093 | } |
11094 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
11095 | { | |
11096 | if (temp6) | |
11097 | delete arg6; | |
11098 | } | |
11099 | return resultobj; | |
11100 | fail: | |
11101 | { | |
11102 | if (temp6) | |
11103 | delete arg6; | |
11104 | } | |
11105 | return NULL; | |
11106 | } | |
11107 | ||
11108 | ||
c32bde28 | 11109 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11110 | PyObject *resultobj; |
11111 | wxSpinButton *result; | |
11112 | char *kwnames[] = { | |
11113 | NULL | |
11114 | }; | |
11115 | ||
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
11117 | { | |
0439c23b | 11118 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11120 | result = (wxSpinButton *)new wxSpinButton(); | |
11121 | ||
11122 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11123 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11124 | } |
11125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
11126 | return resultobj; | |
11127 | fail: | |
11128 | return NULL; | |
11129 | } | |
11130 | ||
11131 | ||
c32bde28 | 11132 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11133 | PyObject *resultobj; |
11134 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11135 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11136 | int arg3 = (int) -1 ; | |
11137 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11138 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11139 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11140 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11141 | long arg6 = (long) wxSP_HORIZONTAL ; | |
11142 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
11143 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11144 | bool result; | |
11145 | wxPoint temp4 ; | |
11146 | wxSize temp5 ; | |
ae8162c8 | 11147 | bool temp7 = false ; |
d55e5bfc RD |
11148 | PyObject * obj0 = 0 ; |
11149 | PyObject * obj1 = 0 ; | |
11150 | PyObject * obj2 = 0 ; | |
11151 | PyObject * obj3 = 0 ; | |
11152 | PyObject * obj4 = 0 ; | |
11153 | PyObject * obj5 = 0 ; | |
11154 | PyObject * obj6 = 0 ; | |
11155 | char *kwnames[] = { | |
11156 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11157 | }; | |
11158 | ||
11159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11162 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11164 | if (obj2) { | |
c32bde28 | 11165 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11166 | if (PyErr_Occurred()) SWIG_fail; |
11167 | } | |
11168 | if (obj3) { | |
11169 | { | |
11170 | arg4 = &temp4; | |
11171 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11172 | } | |
11173 | } | |
11174 | if (obj4) { | |
11175 | { | |
11176 | arg5 = &temp5; | |
11177 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11178 | } | |
11179 | } | |
11180 | if (obj5) { | |
c32bde28 | 11181 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
11182 | if (PyErr_Occurred()) SWIG_fail; |
11183 | } | |
11184 | if (obj6) { | |
11185 | { | |
11186 | arg7 = wxString_in_helper(obj6); | |
11187 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 11188 | temp7 = true; |
d55e5bfc RD |
11189 | } |
11190 | } | |
11191 | { | |
11192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11193 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
11194 | ||
11195 | wxPyEndAllowThreads(__tstate); | |
11196 | if (PyErr_Occurred()) SWIG_fail; | |
11197 | } | |
11198 | { | |
11199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11200 | } | |
11201 | { | |
11202 | if (temp7) | |
11203 | delete arg7; | |
11204 | } | |
11205 | return resultobj; | |
11206 | fail: | |
11207 | { | |
11208 | if (temp7) | |
11209 | delete arg7; | |
11210 | } | |
11211 | return NULL; | |
11212 | } | |
11213 | ||
11214 | ||
c32bde28 | 11215 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11216 | PyObject *resultobj; |
11217 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11218 | int result; | |
11219 | PyObject * obj0 = 0 ; | |
11220 | char *kwnames[] = { | |
11221 | (char *) "self", NULL | |
11222 | }; | |
11223 | ||
11224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
11225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11227 | { | |
11228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11229 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
11230 | ||
11231 | wxPyEndAllowThreads(__tstate); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
c32bde28 | 11234 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11235 | return resultobj; |
11236 | fail: | |
11237 | return NULL; | |
11238 | } | |
11239 | ||
11240 | ||
c32bde28 | 11241 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11242 | PyObject *resultobj; |
11243 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11244 | int result; | |
11245 | PyObject * obj0 = 0 ; | |
11246 | char *kwnames[] = { | |
11247 | (char *) "self", NULL | |
11248 | }; | |
11249 | ||
11250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
11251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11253 | { | |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
11256 | ||
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
c32bde28 | 11260 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11261 | return resultobj; |
11262 | fail: | |
11263 | return NULL; | |
11264 | } | |
11265 | ||
11266 | ||
c32bde28 | 11267 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11268 | PyObject *resultobj; |
11269 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11270 | int result; | |
11271 | PyObject * obj0 = 0 ; | |
11272 | char *kwnames[] = { | |
11273 | (char *) "self", NULL | |
11274 | }; | |
11275 | ||
11276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
11277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11279 | { | |
11280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11281 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
11282 | ||
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
c32bde28 | 11286 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11287 | return resultobj; |
11288 | fail: | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
c32bde28 | 11293 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11294 | PyObject *resultobj; |
11295 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11296 | int arg2 ; | |
11297 | PyObject * obj0 = 0 ; | |
11298 | PyObject * obj1 = 0 ; | |
11299 | char *kwnames[] = { | |
11300 | (char *) "self",(char *) "val", NULL | |
11301 | }; | |
11302 | ||
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11306 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11307 | if (PyErr_Occurred()) SWIG_fail; |
11308 | { | |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11310 | (arg1)->SetValue(arg2); | |
11311 | ||
11312 | wxPyEndAllowThreads(__tstate); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | } | |
11315 | Py_INCREF(Py_None); resultobj = Py_None; | |
11316 | return resultobj; | |
11317 | fail: | |
11318 | return NULL; | |
11319 | } | |
11320 | ||
11321 | ||
c32bde28 | 11322 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11323 | PyObject *resultobj; |
11324 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11325 | int arg2 ; | |
11326 | PyObject * obj0 = 0 ; | |
11327 | PyObject * obj1 = 0 ; | |
11328 | char *kwnames[] = { | |
11329 | (char *) "self",(char *) "minVal", NULL | |
11330 | }; | |
11331 | ||
11332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
11333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11335 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11336 | if (PyErr_Occurred()) SWIG_fail; |
11337 | { | |
11338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11339 | (arg1)->SetMin(arg2); | |
11340 | ||
11341 | wxPyEndAllowThreads(__tstate); | |
11342 | if (PyErr_Occurred()) SWIG_fail; | |
11343 | } | |
11344 | Py_INCREF(Py_None); resultobj = Py_None; | |
11345 | return resultobj; | |
11346 | fail: | |
11347 | return NULL; | |
11348 | } | |
11349 | ||
11350 | ||
c32bde28 | 11351 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11352 | PyObject *resultobj; |
11353 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11354 | int arg2 ; | |
11355 | PyObject * obj0 = 0 ; | |
11356 | PyObject * obj1 = 0 ; | |
11357 | char *kwnames[] = { | |
11358 | (char *) "self",(char *) "maxVal", NULL | |
11359 | }; | |
11360 | ||
11361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
11362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11364 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11365 | if (PyErr_Occurred()) SWIG_fail; |
11366 | { | |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | (arg1)->SetMax(arg2); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
11373 | Py_INCREF(Py_None); resultobj = Py_None; | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
c32bde28 | 11380 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11381 | PyObject *resultobj; |
11382 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11383 | int arg2 ; | |
11384 | int arg3 ; | |
11385 | PyObject * obj0 = 0 ; | |
11386 | PyObject * obj1 = 0 ; | |
11387 | PyObject * obj2 = 0 ; | |
11388 | char *kwnames[] = { | |
11389 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11390 | }; | |
11391 | ||
11392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11395 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11396 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11397 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11398 | if (PyErr_Occurred()) SWIG_fail; |
11399 | { | |
11400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11401 | (arg1)->SetRange(arg2,arg3); | |
11402 | ||
11403 | wxPyEndAllowThreads(__tstate); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
11405 | } | |
f20a2e1f RD |
11406 | Py_INCREF(Py_None); resultobj = Py_None; |
11407 | return resultobj; | |
11408 | fail: | |
11409 | return NULL; | |
11410 | } | |
11411 | ||
11412 | ||
c32bde28 | 11413 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
11414 | PyObject *resultobj; |
11415 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11416 | bool result; | |
11417 | PyObject * obj0 = 0 ; | |
11418 | char *kwnames[] = { | |
11419 | (char *) "self", NULL | |
11420 | }; | |
11421 | ||
11422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
11423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
11428 | ||
11429 | wxPyEndAllowThreads(__tstate); | |
11430 | if (PyErr_Occurred()) SWIG_fail; | |
11431 | } | |
11432 | { | |
11433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11434 | } | |
d55e5bfc RD |
11435 | return resultobj; |
11436 | fail: | |
11437 | return NULL; | |
11438 | } | |
11439 | ||
11440 | ||
c32bde28 | 11441 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11442 | PyObject *resultobj; |
f20a2e1f RD |
11443 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
11444 | wxVisualAttributes result; | |
d55e5bfc RD |
11445 | PyObject * obj0 = 0 ; |
11446 | char *kwnames[] = { | |
f20a2e1f | 11447 | (char *) "variant", NULL |
d55e5bfc RD |
11448 | }; |
11449 | ||
f20a2e1f RD |
11450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
11451 | if (obj0) { | |
c32bde28 | 11452 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
11453 | if (PyErr_Occurred()) SWIG_fail; |
11454 | } | |
d55e5bfc | 11455 | { |
19272049 | 11456 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f20a2e1f | 11458 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d55e5bfc RD |
11459 | |
11460 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11461 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11462 | } |
11463 | { | |
f20a2e1f RD |
11464 | wxVisualAttributes * resultptr; |
11465 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
d55e5bfc RD |
11467 | } |
11468 | return resultobj; | |
11469 | fail: | |
11470 | return NULL; | |
11471 | } | |
11472 | ||
11473 | ||
c32bde28 | 11474 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11475 | PyObject *obj; |
11476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11477 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11478 | Py_INCREF(obj); | |
11479 | return Py_BuildValue((char *)""); | |
11480 | } | |
c32bde28 | 11481 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11482 | PyObject *resultobj; |
11483 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11484 | int arg2 = (int) -1 ; | |
11485 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11486 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11487 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11488 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11489 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11490 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11491 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11492 | int arg7 = (int) 0 ; | |
11493 | int arg8 = (int) 100 ; | |
11494 | int arg9 = (int) 0 ; | |
11495 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11496 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11497 | wxSpinCtrl *result; | |
ae8162c8 | 11498 | bool temp3 = false ; |
d55e5bfc RD |
11499 | wxPoint temp4 ; |
11500 | wxSize temp5 ; | |
ae8162c8 | 11501 | bool temp10 = false ; |
d55e5bfc RD |
11502 | PyObject * obj0 = 0 ; |
11503 | PyObject * obj1 = 0 ; | |
11504 | PyObject * obj2 = 0 ; | |
11505 | PyObject * obj3 = 0 ; | |
11506 | PyObject * obj4 = 0 ; | |
11507 | PyObject * obj5 = 0 ; | |
11508 | PyObject * obj6 = 0 ; | |
11509 | PyObject * obj7 = 0 ; | |
11510 | PyObject * obj8 = 0 ; | |
11511 | PyObject * obj9 = 0 ; | |
11512 | char *kwnames[] = { | |
11513 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11514 | }; | |
11515 | ||
11516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
11517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11519 | if (obj1) { | |
c32bde28 | 11520 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11521 | if (PyErr_Occurred()) SWIG_fail; |
11522 | } | |
11523 | if (obj2) { | |
11524 | { | |
11525 | arg3 = wxString_in_helper(obj2); | |
11526 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11527 | temp3 = true; |
d55e5bfc RD |
11528 | } |
11529 | } | |
11530 | if (obj3) { | |
11531 | { | |
11532 | arg4 = &temp4; | |
11533 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11534 | } | |
11535 | } | |
11536 | if (obj4) { | |
11537 | { | |
11538 | arg5 = &temp5; | |
11539 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11540 | } | |
11541 | } | |
11542 | if (obj5) { | |
c32bde28 | 11543 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
11544 | if (PyErr_Occurred()) SWIG_fail; |
11545 | } | |
11546 | if (obj6) { | |
c32bde28 | 11547 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
11548 | if (PyErr_Occurred()) SWIG_fail; |
11549 | } | |
11550 | if (obj7) { | |
c32bde28 | 11551 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
11552 | if (PyErr_Occurred()) SWIG_fail; |
11553 | } | |
11554 | if (obj8) { | |
c32bde28 | 11555 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
11556 | if (PyErr_Occurred()) SWIG_fail; |
11557 | } | |
11558 | if (obj9) { | |
11559 | { | |
11560 | arg10 = wxString_in_helper(obj9); | |
11561 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 11562 | temp10 = true; |
d55e5bfc RD |
11563 | } |
11564 | } | |
11565 | { | |
0439c23b | 11566 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11568 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11571 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11572 | } |
11573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11574 | { | |
11575 | if (temp3) | |
11576 | delete arg3; | |
11577 | } | |
11578 | { | |
11579 | if (temp10) | |
11580 | delete arg10; | |
11581 | } | |
11582 | return resultobj; | |
11583 | fail: | |
11584 | { | |
11585 | if (temp3) | |
11586 | delete arg3; | |
11587 | } | |
11588 | { | |
11589 | if (temp10) | |
11590 | delete arg10; | |
11591 | } | |
11592 | return NULL; | |
11593 | } | |
11594 | ||
11595 | ||
c32bde28 | 11596 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11597 | PyObject *resultobj; |
11598 | wxSpinCtrl *result; | |
11599 | char *kwnames[] = { | |
11600 | NULL | |
11601 | }; | |
11602 | ||
11603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11604 | { | |
0439c23b | 11605 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11607 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11608 | ||
11609 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11610 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11611 | } |
11612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11613 | return resultobj; | |
11614 | fail: | |
11615 | return NULL; | |
11616 | } | |
11617 | ||
11618 | ||
c32bde28 | 11619 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11620 | PyObject *resultobj; |
11621 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11622 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11623 | int arg3 = (int) -1 ; | |
11624 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11625 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11626 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11627 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11628 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11629 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11630 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11631 | int arg8 = (int) 0 ; | |
11632 | int arg9 = (int) 100 ; | |
11633 | int arg10 = (int) 0 ; | |
11634 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11635 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11636 | bool result; | |
ae8162c8 | 11637 | bool temp4 = false ; |
d55e5bfc RD |
11638 | wxPoint temp5 ; |
11639 | wxSize temp6 ; | |
ae8162c8 | 11640 | bool temp11 = false ; |
d55e5bfc RD |
11641 | PyObject * obj0 = 0 ; |
11642 | PyObject * obj1 = 0 ; | |
11643 | PyObject * obj2 = 0 ; | |
11644 | PyObject * obj3 = 0 ; | |
11645 | PyObject * obj4 = 0 ; | |
11646 | PyObject * obj5 = 0 ; | |
11647 | PyObject * obj6 = 0 ; | |
11648 | PyObject * obj7 = 0 ; | |
11649 | PyObject * obj8 = 0 ; | |
11650 | PyObject * obj9 = 0 ; | |
11651 | PyObject * obj10 = 0 ; | |
11652 | char *kwnames[] = { | |
11653 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11654 | }; | |
11655 | ||
11656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11659 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11661 | if (obj2) { | |
c32bde28 | 11662 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11663 | if (PyErr_Occurred()) SWIG_fail; |
11664 | } | |
11665 | if (obj3) { | |
11666 | { | |
11667 | arg4 = wxString_in_helper(obj3); | |
11668 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 11669 | temp4 = true; |
d55e5bfc RD |
11670 | } |
11671 | } | |
11672 | if (obj4) { | |
11673 | { | |
11674 | arg5 = &temp5; | |
11675 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11676 | } | |
11677 | } | |
11678 | if (obj5) { | |
11679 | { | |
11680 | arg6 = &temp6; | |
11681 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11682 | } | |
11683 | } | |
11684 | if (obj6) { | |
c32bde28 | 11685 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
11686 | if (PyErr_Occurred()) SWIG_fail; |
11687 | } | |
11688 | if (obj7) { | |
c32bde28 | 11689 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
11690 | if (PyErr_Occurred()) SWIG_fail; |
11691 | } | |
11692 | if (obj8) { | |
c32bde28 | 11693 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
11694 | if (PyErr_Occurred()) SWIG_fail; |
11695 | } | |
11696 | if (obj9) { | |
c32bde28 | 11697 | arg10 = (int)SWIG_As_int(obj9); |
d55e5bfc RD |
11698 | if (PyErr_Occurred()) SWIG_fail; |
11699 | } | |
11700 | if (obj10) { | |
11701 | { | |
11702 | arg11 = wxString_in_helper(obj10); | |
11703 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 11704 | temp11 = true; |
d55e5bfc RD |
11705 | } |
11706 | } | |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | { | |
11715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11716 | } | |
11717 | { | |
11718 | if (temp4) | |
11719 | delete arg4; | |
11720 | } | |
11721 | { | |
11722 | if (temp11) | |
11723 | delete arg11; | |
11724 | } | |
11725 | return resultobj; | |
11726 | fail: | |
11727 | { | |
11728 | if (temp4) | |
11729 | delete arg4; | |
11730 | } | |
11731 | { | |
11732 | if (temp11) | |
11733 | delete arg11; | |
11734 | } | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
c32bde28 | 11739 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11740 | PyObject *resultobj; |
11741 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11742 | int result; | |
11743 | PyObject * obj0 = 0 ; | |
11744 | char *kwnames[] = { | |
11745 | (char *) "self", NULL | |
11746 | }; | |
11747 | ||
11748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
11749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11751 | { | |
11752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11753 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11754 | ||
11755 | wxPyEndAllowThreads(__tstate); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | } | |
c32bde28 | 11758 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11759 | return resultobj; |
11760 | fail: | |
11761 | return NULL; | |
11762 | } | |
11763 | ||
11764 | ||
c32bde28 | 11765 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11766 | PyObject *resultobj; |
11767 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11768 | int arg2 ; | |
11769 | PyObject * obj0 = 0 ; | |
11770 | PyObject * obj1 = 0 ; | |
11771 | char *kwnames[] = { | |
11772 | (char *) "self",(char *) "value", NULL | |
11773 | }; | |
11774 | ||
11775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11778 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11779 | if (PyErr_Occurred()) SWIG_fail; |
11780 | { | |
11781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11782 | (arg1)->SetValue(arg2); | |
11783 | ||
11784 | wxPyEndAllowThreads(__tstate); | |
11785 | if (PyErr_Occurred()) SWIG_fail; | |
11786 | } | |
11787 | Py_INCREF(Py_None); resultobj = Py_None; | |
11788 | return resultobj; | |
11789 | fail: | |
11790 | return NULL; | |
11791 | } | |
11792 | ||
11793 | ||
c32bde28 | 11794 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11795 | PyObject *resultobj; |
11796 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11797 | wxString *arg2 = 0 ; | |
ae8162c8 | 11798 | bool temp2 = false ; |
d55e5bfc RD |
11799 | PyObject * obj0 = 0 ; |
11800 | PyObject * obj1 = 0 ; | |
11801 | char *kwnames[] = { | |
11802 | (char *) "self",(char *) "text", NULL | |
11803 | }; | |
11804 | ||
11805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
11806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11808 | { | |
11809 | arg2 = wxString_in_helper(obj1); | |
11810 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11811 | temp2 = true; |
d55e5bfc RD |
11812 | } |
11813 | { | |
11814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11815 | (arg1)->SetValue((wxString const &)*arg2); | |
11816 | ||
11817 | wxPyEndAllowThreads(__tstate); | |
11818 | if (PyErr_Occurred()) SWIG_fail; | |
11819 | } | |
11820 | Py_INCREF(Py_None); resultobj = Py_None; | |
11821 | { | |
11822 | if (temp2) | |
11823 | delete arg2; | |
11824 | } | |
11825 | return resultobj; | |
11826 | fail: | |
11827 | { | |
11828 | if (temp2) | |
11829 | delete arg2; | |
11830 | } | |
11831 | return NULL; | |
11832 | } | |
11833 | ||
11834 | ||
c32bde28 | 11835 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11836 | PyObject *resultobj; |
11837 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11838 | int arg2 ; | |
11839 | int arg3 ; | |
11840 | PyObject * obj0 = 0 ; | |
11841 | PyObject * obj1 = 0 ; | |
11842 | PyObject * obj2 = 0 ; | |
11843 | char *kwnames[] = { | |
11844 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11845 | }; | |
11846 | ||
11847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11850 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11851 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11852 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11853 | if (PyErr_Occurred()) SWIG_fail; |
11854 | { | |
11855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11856 | (arg1)->SetRange(arg2,arg3); | |
11857 | ||
11858 | wxPyEndAllowThreads(__tstate); | |
11859 | if (PyErr_Occurred()) SWIG_fail; | |
11860 | } | |
11861 | Py_INCREF(Py_None); resultobj = Py_None; | |
11862 | return resultobj; | |
11863 | fail: | |
11864 | return NULL; | |
11865 | } | |
11866 | ||
11867 | ||
c32bde28 | 11868 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11869 | PyObject *resultobj; |
11870 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11871 | int result; | |
11872 | PyObject * obj0 = 0 ; | |
11873 | char *kwnames[] = { | |
11874 | (char *) "self", NULL | |
11875 | }; | |
11876 | ||
11877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
11878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11880 | { | |
11881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11882 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11883 | ||
11884 | wxPyEndAllowThreads(__tstate); | |
11885 | if (PyErr_Occurred()) SWIG_fail; | |
11886 | } | |
c32bde28 | 11887 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11888 | return resultobj; |
11889 | fail: | |
11890 | return NULL; | |
11891 | } | |
11892 | ||
11893 | ||
c32bde28 | 11894 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11895 | PyObject *resultobj; |
11896 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11897 | int result; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | char *kwnames[] = { | |
11900 | (char *) "self", NULL | |
11901 | }; | |
11902 | ||
11903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
11904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11906 | { | |
11907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11908 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11909 | ||
11910 | wxPyEndAllowThreads(__tstate); | |
11911 | if (PyErr_Occurred()) SWIG_fail; | |
11912 | } | |
c32bde28 | 11913 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11914 | return resultobj; |
11915 | fail: | |
11916 | return NULL; | |
11917 | } | |
11918 | ||
11919 | ||
c32bde28 | 11920 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11921 | PyObject *resultobj; |
11922 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11923 | long arg2 ; | |
11924 | long arg3 ; | |
11925 | PyObject * obj0 = 0 ; | |
11926 | PyObject * obj1 = 0 ; | |
11927 | PyObject * obj2 = 0 ; | |
11928 | char *kwnames[] = { | |
11929 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11930 | }; | |
11931 | ||
11932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11935 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 11936 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11937 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
11938 | if (PyErr_Occurred()) SWIG_fail; |
11939 | { | |
11940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11941 | (arg1)->SetSelection(arg2,arg3); | |
11942 | ||
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | Py_INCREF(Py_None); resultobj = Py_None; | |
11947 | return resultobj; | |
11948 | fail: | |
11949 | return NULL; | |
11950 | } | |
11951 | ||
11952 | ||
c32bde28 | 11953 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
11954 | PyObject *resultobj; |
11955 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11956 | wxVisualAttributes result; | |
11957 | PyObject * obj0 = 0 ; | |
11958 | char *kwnames[] = { | |
11959 | (char *) "variant", NULL | |
11960 | }; | |
11961 | ||
11962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11963 | if (obj0) { | |
c32bde28 | 11964 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
11965 | if (PyErr_Occurred()) SWIG_fail; |
11966 | } | |
11967 | { | |
19272049 | 11968 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
11969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11970 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11971 | ||
11972 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11973 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
11974 | } |
11975 | { | |
11976 | wxVisualAttributes * resultptr; | |
11977 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11979 | } | |
11980 | return resultobj; | |
11981 | fail: | |
11982 | return NULL; | |
11983 | } | |
11984 | ||
11985 | ||
c32bde28 | 11986 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11987 | PyObject *obj; |
11988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11989 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11990 | Py_INCREF(obj); | |
11991 | return Py_BuildValue((char *)""); | |
11992 | } | |
c32bde28 | 11993 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11994 | PyObject *resultobj; |
11995 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11996 | int arg2 = (int) 0 ; | |
11997 | wxSpinEvent *result; | |
11998 | PyObject * obj0 = 0 ; | |
11999 | PyObject * obj1 = 0 ; | |
12000 | char *kwnames[] = { | |
12001 | (char *) "commandType",(char *) "winid", NULL | |
12002 | }; | |
12003 | ||
12004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
12005 | if (obj0) { | |
c32bde28 | 12006 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
12007 | if (PyErr_Occurred()) SWIG_fail; |
12008 | } | |
12009 | if (obj1) { | |
c32bde28 | 12010 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12011 | if (PyErr_Occurred()) SWIG_fail; |
12012 | } | |
12013 | { | |
12014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12015 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
12016 | ||
12017 | wxPyEndAllowThreads(__tstate); | |
12018 | if (PyErr_Occurred()) SWIG_fail; | |
12019 | } | |
12020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
12021 | return resultobj; | |
12022 | fail: | |
12023 | return NULL; | |
12024 | } | |
12025 | ||
12026 | ||
c32bde28 | 12027 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12028 | PyObject *resultobj; |
12029 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
12030 | int result; | |
12031 | PyObject * obj0 = 0 ; | |
12032 | char *kwnames[] = { | |
12033 | (char *) "self", NULL | |
12034 | }; | |
12035 | ||
12036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
12038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12039 | { | |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
12042 | ||
12043 | wxPyEndAllowThreads(__tstate); | |
12044 | if (PyErr_Occurred()) SWIG_fail; | |
12045 | } | |
c32bde28 | 12046 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12047 | return resultobj; |
12048 | fail: | |
12049 | return NULL; | |
12050 | } | |
12051 | ||
12052 | ||
c32bde28 | 12053 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12054 | PyObject *resultobj; |
12055 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
12056 | int arg2 ; | |
12057 | PyObject * obj0 = 0 ; | |
12058 | PyObject * obj1 = 0 ; | |
12059 | char *kwnames[] = { | |
12060 | (char *) "self",(char *) "pos", NULL | |
12061 | }; | |
12062 | ||
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
12064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
12065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12066 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12067 | if (PyErr_Occurred()) SWIG_fail; |
12068 | { | |
12069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12070 | (arg1)->SetPosition(arg2); | |
12071 | ||
12072 | wxPyEndAllowThreads(__tstate); | |
12073 | if (PyErr_Occurred()) SWIG_fail; | |
12074 | } | |
12075 | Py_INCREF(Py_None); resultobj = Py_None; | |
12076 | return resultobj; | |
12077 | fail: | |
12078 | return NULL; | |
12079 | } | |
12080 | ||
12081 | ||
c32bde28 | 12082 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12083 | PyObject *obj; |
12084 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12085 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
12086 | Py_INCREF(obj); | |
12087 | return Py_BuildValue((char *)""); | |
12088 | } | |
c32bde28 | 12089 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
12090 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
12091 | return 1; | |
12092 | } | |
12093 | ||
12094 | ||
12095 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
12096 | PyObject *pyobj; | |
12097 | ||
12098 | { | |
12099 | #if wxUSE_UNICODE | |
12100 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
12101 | #else | |
12102 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
12103 | #endif | |
12104 | } | |
12105 | return pyobj; | |
12106 | } | |
12107 | ||
12108 | ||
c32bde28 | 12109 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
12110 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
12111 | return 1; | |
12112 | } | |
12113 | ||
12114 | ||
12115 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
12116 | PyObject *pyobj; | |
12117 | ||
12118 | { | |
12119 | #if wxUSE_UNICODE | |
12120 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
12121 | #else | |
12122 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
12123 | #endif | |
12124 | } | |
12125 | return pyobj; | |
12126 | } | |
12127 | ||
12128 | ||
c32bde28 | 12129 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12130 | PyObject *resultobj; |
12131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12132 | int arg2 = (int) -1 ; |
12133 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12134 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
12135 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12136 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12137 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12138 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12139 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
12140 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
12141 | int arg7 = (int) 0 ; | |
12142 | long arg8 = (long) wxRA_HORIZONTAL ; | |
12143 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12144 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12145 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
12146 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12147 | wxRadioBox *result; | |
ae8162c8 | 12148 | bool temp3 = false ; |
d55e5bfc RD |
12149 | wxPoint temp4 ; |
12150 | wxSize temp5 ; | |
ae8162c8 RD |
12151 | bool temp6 = false ; |
12152 | bool temp10 = false ; | |
d55e5bfc RD |
12153 | PyObject * obj0 = 0 ; |
12154 | PyObject * obj1 = 0 ; | |
12155 | PyObject * obj2 = 0 ; | |
12156 | PyObject * obj3 = 0 ; | |
12157 | PyObject * obj4 = 0 ; | |
12158 | PyObject * obj5 = 0 ; | |
12159 | PyObject * obj6 = 0 ; | |
12160 | PyObject * obj7 = 0 ; | |
12161 | PyObject * obj8 = 0 ; | |
12162 | PyObject * obj9 = 0 ; | |
12163 | char *kwnames[] = { | |
12164 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12165 | }; | |
12166 | ||
248ed943 | 12167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
12168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12170 | if (obj1) { |
c32bde28 | 12171 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12172 | if (PyErr_Occurred()) SWIG_fail; |
12173 | } | |
12174 | if (obj2) { | |
12175 | { | |
12176 | arg3 = wxString_in_helper(obj2); | |
12177 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12178 | temp3 = true; |
248ed943 | 12179 | } |
d55e5bfc RD |
12180 | } |
12181 | if (obj3) { | |
12182 | { | |
12183 | arg4 = &temp4; | |
12184 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12185 | } | |
12186 | } | |
12187 | if (obj4) { | |
12188 | { | |
12189 | arg5 = &temp5; | |
12190 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12191 | } | |
12192 | } | |
12193 | if (obj5) { | |
12194 | { | |
12195 | if (! PySequence_Check(obj5)) { | |
12196 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12197 | SWIG_fail; | |
12198 | } | |
12199 | arg6 = new wxArrayString; | |
ae8162c8 | 12200 | temp6 = true; |
d55e5bfc RD |
12201 | int i, len=PySequence_Length(obj5); |
12202 | for (i=0; i<len; i++) { | |
12203 | PyObject* item = PySequence_GetItem(obj5, i); | |
12204 | #if wxUSE_UNICODE | |
12205 | PyObject* str = PyObject_Unicode(item); | |
12206 | #else | |
12207 | PyObject* str = PyObject_Str(item); | |
12208 | #endif | |
12209 | if (PyErr_Occurred()) SWIG_fail; | |
12210 | arg6->Add(Py2wxString(str)); | |
12211 | Py_DECREF(item); | |
12212 | Py_DECREF(str); | |
12213 | } | |
12214 | } | |
12215 | } | |
12216 | if (obj6) { | |
c32bde28 | 12217 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
12218 | if (PyErr_Occurred()) SWIG_fail; |
12219 | } | |
12220 | if (obj7) { | |
c32bde28 | 12221 | arg8 = (long)SWIG_As_long(obj7); |
d55e5bfc RD |
12222 | if (PyErr_Occurred()) SWIG_fail; |
12223 | } | |
12224 | if (obj8) { | |
12225 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
12226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12227 | SWIG_fail; | |
12228 | if (arg9 == NULL) { | |
12229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12230 | SWIG_fail; | |
12231 | } | |
12232 | } | |
12233 | if (obj9) { | |
12234 | { | |
12235 | arg10 = wxString_in_helper(obj9); | |
12236 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 12237 | temp10 = true; |
d55e5bfc RD |
12238 | } |
12239 | } | |
12240 | { | |
0439c23b | 12241 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12243 | 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); | |
12244 | ||
12245 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12246 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12247 | } |
12248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
12249 | { | |
12250 | if (temp3) | |
12251 | delete arg3; | |
12252 | } | |
12253 | { | |
12254 | if (temp6) delete arg6; | |
12255 | } | |
12256 | { | |
12257 | if (temp10) | |
12258 | delete arg10; | |
12259 | } | |
12260 | return resultobj; | |
12261 | fail: | |
12262 | { | |
12263 | if (temp3) | |
12264 | delete arg3; | |
12265 | } | |
12266 | { | |
12267 | if (temp6) delete arg6; | |
12268 | } | |
12269 | { | |
12270 | if (temp10) | |
12271 | delete arg10; | |
12272 | } | |
12273 | return NULL; | |
12274 | } | |
12275 | ||
12276 | ||
c32bde28 | 12277 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12278 | PyObject *resultobj; |
12279 | wxRadioBox *result; | |
12280 | char *kwnames[] = { | |
12281 | NULL | |
12282 | }; | |
12283 | ||
12284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
12285 | { | |
0439c23b | 12286 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12288 | result = (wxRadioBox *)new wxRadioBox(); | |
12289 | ||
12290 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12291 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12292 | } |
12293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
12294 | return resultobj; | |
12295 | fail: | |
12296 | return NULL; | |
12297 | } | |
12298 | ||
12299 | ||
c32bde28 | 12300 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12301 | PyObject *resultobj; |
12302 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12303 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12304 | int arg3 = (int) -1 ; |
12305 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12306 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
12307 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12308 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12309 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12310 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12311 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
12312 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
12313 | int arg8 = (int) 0 ; | |
12314 | long arg9 = (long) wxRA_HORIZONTAL ; | |
12315 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12316 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12317 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
12318 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12319 | bool result; | |
ae8162c8 | 12320 | bool temp4 = false ; |
d55e5bfc RD |
12321 | wxPoint temp5 ; |
12322 | wxSize temp6 ; | |
ae8162c8 RD |
12323 | bool temp7 = false ; |
12324 | bool temp11 = false ; | |
d55e5bfc RD |
12325 | PyObject * obj0 = 0 ; |
12326 | PyObject * obj1 = 0 ; | |
12327 | PyObject * obj2 = 0 ; | |
12328 | PyObject * obj3 = 0 ; | |
12329 | PyObject * obj4 = 0 ; | |
12330 | PyObject * obj5 = 0 ; | |
12331 | PyObject * obj6 = 0 ; | |
12332 | PyObject * obj7 = 0 ; | |
12333 | PyObject * obj8 = 0 ; | |
12334 | PyObject * obj9 = 0 ; | |
12335 | PyObject * obj10 = 0 ; | |
12336 | char *kwnames[] = { | |
12337 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12338 | }; | |
12339 | ||
248ed943 | 12340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
12341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12345 | if (obj2) { |
c32bde28 | 12346 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12347 | if (PyErr_Occurred()) SWIG_fail; |
12348 | } | |
12349 | if (obj3) { | |
12350 | { | |
12351 | arg4 = wxString_in_helper(obj3); | |
12352 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 12353 | temp4 = true; |
248ed943 | 12354 | } |
d55e5bfc RD |
12355 | } |
12356 | if (obj4) { | |
12357 | { | |
12358 | arg5 = &temp5; | |
12359 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12360 | } | |
12361 | } | |
12362 | if (obj5) { | |
12363 | { | |
12364 | arg6 = &temp6; | |
12365 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12366 | } | |
12367 | } | |
12368 | if (obj6) { | |
12369 | { | |
12370 | if (! PySequence_Check(obj6)) { | |
12371 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12372 | SWIG_fail; | |
12373 | } | |
12374 | arg7 = new wxArrayString; | |
ae8162c8 | 12375 | temp7 = true; |
d55e5bfc RD |
12376 | int i, len=PySequence_Length(obj6); |
12377 | for (i=0; i<len; i++) { | |
12378 | PyObject* item = PySequence_GetItem(obj6, i); | |
12379 | #if wxUSE_UNICODE | |
12380 | PyObject* str = PyObject_Unicode(item); | |
12381 | #else | |
12382 | PyObject* str = PyObject_Str(item); | |
12383 | #endif | |
12384 | if (PyErr_Occurred()) SWIG_fail; | |
12385 | arg7->Add(Py2wxString(str)); | |
12386 | Py_DECREF(item); | |
12387 | Py_DECREF(str); | |
12388 | } | |
12389 | } | |
12390 | } | |
12391 | if (obj7) { | |
c32bde28 | 12392 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
12393 | if (PyErr_Occurred()) SWIG_fail; |
12394 | } | |
12395 | if (obj8) { | |
c32bde28 | 12396 | arg9 = (long)SWIG_As_long(obj8); |
d55e5bfc RD |
12397 | if (PyErr_Occurred()) SWIG_fail; |
12398 | } | |
12399 | if (obj9) { | |
12400 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
12401 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12402 | SWIG_fail; | |
12403 | if (arg10 == NULL) { | |
12404 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12405 | SWIG_fail; | |
12406 | } | |
12407 | } | |
12408 | if (obj10) { | |
12409 | { | |
12410 | arg11 = wxString_in_helper(obj10); | |
12411 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 12412 | temp11 = true; |
d55e5bfc RD |
12413 | } |
12414 | } | |
12415 | { | |
12416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12417 | 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); | |
12418 | ||
12419 | wxPyEndAllowThreads(__tstate); | |
12420 | if (PyErr_Occurred()) SWIG_fail; | |
12421 | } | |
12422 | { | |
12423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12424 | } | |
12425 | { | |
12426 | if (temp4) | |
12427 | delete arg4; | |
12428 | } | |
12429 | { | |
12430 | if (temp7) delete arg7; | |
12431 | } | |
12432 | { | |
12433 | if (temp11) | |
12434 | delete arg11; | |
12435 | } | |
12436 | return resultobj; | |
12437 | fail: | |
12438 | { | |
12439 | if (temp4) | |
12440 | delete arg4; | |
12441 | } | |
12442 | { | |
12443 | if (temp7) delete arg7; | |
12444 | } | |
12445 | { | |
12446 | if (temp11) | |
12447 | delete arg11; | |
12448 | } | |
12449 | return NULL; | |
12450 | } | |
12451 | ||
12452 | ||
c32bde28 | 12453 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12454 | PyObject *resultobj; |
12455 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12456 | int arg2 ; | |
12457 | PyObject * obj0 = 0 ; | |
12458 | PyObject * obj1 = 0 ; | |
12459 | char *kwnames[] = { | |
12460 | (char *) "self",(char *) "n", NULL | |
12461 | }; | |
12462 | ||
12463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12466 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12467 | if (PyErr_Occurred()) SWIG_fail; |
12468 | { | |
12469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12470 | (arg1)->SetSelection(arg2); | |
12471 | ||
12472 | wxPyEndAllowThreads(__tstate); | |
12473 | if (PyErr_Occurred()) SWIG_fail; | |
12474 | } | |
12475 | Py_INCREF(Py_None); resultobj = Py_None; | |
12476 | return resultobj; | |
12477 | fail: | |
12478 | return NULL; | |
12479 | } | |
12480 | ||
12481 | ||
c32bde28 | 12482 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12483 | PyObject *resultobj; |
12484 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12485 | int result; | |
12486 | PyObject * obj0 = 0 ; | |
12487 | char *kwnames[] = { | |
12488 | (char *) "self", NULL | |
12489 | }; | |
12490 | ||
12491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
12492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12494 | { | |
12495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12496 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12497 | ||
12498 | wxPyEndAllowThreads(__tstate); | |
12499 | if (PyErr_Occurred()) SWIG_fail; | |
12500 | } | |
c32bde28 | 12501 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12502 | return resultobj; |
12503 | fail: | |
12504 | return NULL; | |
12505 | } | |
12506 | ||
12507 | ||
c32bde28 | 12508 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12509 | PyObject *resultobj; |
12510 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12511 | wxString result; | |
12512 | PyObject * obj0 = 0 ; | |
12513 | char *kwnames[] = { | |
12514 | (char *) "self", NULL | |
12515 | }; | |
12516 | ||
12517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
12518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12520 | { | |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
12527 | { | |
12528 | #if wxUSE_UNICODE | |
12529 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12530 | #else | |
12531 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12532 | #endif | |
12533 | } | |
12534 | return resultobj; | |
12535 | fail: | |
12536 | return NULL; | |
12537 | } | |
12538 | ||
12539 | ||
c32bde28 | 12540 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12541 | PyObject *resultobj; |
12542 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12543 | wxString *arg2 = 0 ; | |
12544 | bool result; | |
ae8162c8 | 12545 | bool temp2 = false ; |
d55e5bfc RD |
12546 | PyObject * obj0 = 0 ; |
12547 | PyObject * obj1 = 0 ; | |
12548 | char *kwnames[] = { | |
12549 | (char *) "self",(char *) "s", NULL | |
12550 | }; | |
12551 | ||
12552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
12553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12555 | { | |
12556 | arg2 = wxString_in_helper(obj1); | |
12557 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12558 | temp2 = true; |
d55e5bfc RD |
12559 | } |
12560 | { | |
12561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12562 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12563 | ||
12564 | wxPyEndAllowThreads(__tstate); | |
12565 | if (PyErr_Occurred()) SWIG_fail; | |
12566 | } | |
12567 | { | |
12568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12569 | } | |
12570 | { | |
12571 | if (temp2) | |
12572 | delete arg2; | |
12573 | } | |
12574 | return resultobj; | |
12575 | fail: | |
12576 | { | |
12577 | if (temp2) | |
12578 | delete arg2; | |
12579 | } | |
12580 | return NULL; | |
12581 | } | |
12582 | ||
12583 | ||
c32bde28 | 12584 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12585 | PyObject *resultobj; |
12586 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12587 | int result; | |
12588 | PyObject * obj0 = 0 ; | |
12589 | char *kwnames[] = { | |
12590 | (char *) "self", NULL | |
12591 | }; | |
12592 | ||
12593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
12594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12596 | { | |
12597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12598 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12599 | ||
12600 | wxPyEndAllowThreads(__tstate); | |
12601 | if (PyErr_Occurred()) SWIG_fail; | |
12602 | } | |
c32bde28 | 12603 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12604 | return resultobj; |
12605 | fail: | |
12606 | return NULL; | |
12607 | } | |
12608 | ||
12609 | ||
c32bde28 | 12610 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12611 | PyObject *resultobj; |
12612 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12613 | wxString *arg2 = 0 ; | |
12614 | int result; | |
ae8162c8 | 12615 | bool temp2 = false ; |
d55e5bfc RD |
12616 | PyObject * obj0 = 0 ; |
12617 | PyObject * obj1 = 0 ; | |
12618 | char *kwnames[] = { | |
12619 | (char *) "self",(char *) "s", NULL | |
12620 | }; | |
12621 | ||
12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
12623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12625 | { | |
12626 | arg2 = wxString_in_helper(obj1); | |
12627 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12628 | temp2 = true; |
d55e5bfc RD |
12629 | } |
12630 | { | |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
c32bde28 | 12637 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12638 | { |
12639 | if (temp2) | |
12640 | delete arg2; | |
12641 | } | |
12642 | return resultobj; | |
12643 | fail: | |
12644 | { | |
12645 | if (temp2) | |
12646 | delete arg2; | |
12647 | } | |
12648 | return NULL; | |
12649 | } | |
12650 | ||
12651 | ||
c32bde28 | 12652 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12653 | PyObject *resultobj; |
12654 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12655 | int arg2 ; | |
12656 | wxString result; | |
12657 | PyObject * obj0 = 0 ; | |
12658 | PyObject * obj1 = 0 ; | |
12659 | char *kwnames[] = { | |
12660 | (char *) "self",(char *) "n", NULL | |
12661 | }; | |
12662 | ||
12663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
12664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12666 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12667 | if (PyErr_Occurred()) SWIG_fail; |
12668 | { | |
12669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12670 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12671 | ||
12672 | wxPyEndAllowThreads(__tstate); | |
12673 | if (PyErr_Occurred()) SWIG_fail; | |
12674 | } | |
12675 | { | |
12676 | #if wxUSE_UNICODE | |
12677 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12678 | #else | |
12679 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12680 | #endif | |
12681 | } | |
12682 | return resultobj; | |
12683 | fail: | |
12684 | return NULL; | |
12685 | } | |
12686 | ||
12687 | ||
c32bde28 | 12688 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12689 | PyObject *resultobj; |
12690 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12691 | int arg2 ; | |
12692 | wxString *arg3 = 0 ; | |
ae8162c8 | 12693 | bool temp3 = false ; |
d55e5bfc RD |
12694 | PyObject * obj0 = 0 ; |
12695 | PyObject * obj1 = 0 ; | |
12696 | PyObject * obj2 = 0 ; | |
12697 | char *kwnames[] = { | |
12698 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12699 | }; | |
12700 | ||
12701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12704 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12705 | if (PyErr_Occurred()) SWIG_fail; |
12706 | { | |
12707 | arg3 = wxString_in_helper(obj2); | |
12708 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12709 | temp3 = true; |
d55e5bfc RD |
12710 | } |
12711 | { | |
12712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12713 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12714 | ||
12715 | wxPyEndAllowThreads(__tstate); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
12717 | } | |
12718 | Py_INCREF(Py_None); resultobj = Py_None; | |
12719 | { | |
12720 | if (temp3) | |
12721 | delete arg3; | |
12722 | } | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | { | |
12726 | if (temp3) | |
12727 | delete arg3; | |
12728 | } | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
c32bde28 | 12733 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12734 | PyObject *resultobj; |
12735 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12736 | int arg2 ; | |
ae8162c8 | 12737 | bool arg3 = (bool) true ; |
d55e5bfc RD |
12738 | PyObject * obj0 = 0 ; |
12739 | PyObject * obj1 = 0 ; | |
12740 | PyObject * obj2 = 0 ; | |
12741 | char *kwnames[] = { | |
12742 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12743 | }; | |
12744 | ||
12745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12748 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12749 | if (PyErr_Occurred()) SWIG_fail; |
12750 | if (obj2) { | |
c32bde28 | 12751 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
12752 | if (PyErr_Occurred()) SWIG_fail; |
12753 | } | |
12754 | { | |
12755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12756 | (arg1)->Enable(arg2,arg3); | |
12757 | ||
12758 | wxPyEndAllowThreads(__tstate); | |
12759 | if (PyErr_Occurred()) SWIG_fail; | |
12760 | } | |
12761 | Py_INCREF(Py_None); resultobj = Py_None; | |
12762 | return resultobj; | |
12763 | fail: | |
12764 | return NULL; | |
12765 | } | |
12766 | ||
12767 | ||
c32bde28 | 12768 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12769 | PyObject *resultobj; |
12770 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12771 | int arg2 ; | |
ae8162c8 | 12772 | bool arg3 = (bool) true ; |
d55e5bfc RD |
12773 | PyObject * obj0 = 0 ; |
12774 | PyObject * obj1 = 0 ; | |
12775 | PyObject * obj2 = 0 ; | |
12776 | char *kwnames[] = { | |
12777 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12778 | }; | |
12779 | ||
12780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12783 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12784 | if (PyErr_Occurred()) SWIG_fail; |
12785 | if (obj2) { | |
c32bde28 | 12786 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
12787 | if (PyErr_Occurred()) SWIG_fail; |
12788 | } | |
12789 | { | |
12790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12791 | (arg1)->Show(arg2,arg3); | |
12792 | ||
12793 | wxPyEndAllowThreads(__tstate); | |
12794 | if (PyErr_Occurred()) SWIG_fail; | |
12795 | } | |
12796 | Py_INCREF(Py_None); resultobj = Py_None; | |
12797 | return resultobj; | |
12798 | fail: | |
12799 | return NULL; | |
12800 | } | |
12801 | ||
12802 | ||
c32bde28 | 12803 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12804 | PyObject *resultobj; |
12805 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12806 | int result; | |
12807 | PyObject * obj0 = 0 ; | |
12808 | char *kwnames[] = { | |
12809 | (char *) "self", NULL | |
12810 | }; | |
12811 | ||
12812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
12813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12815 | { | |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
12818 | ||
12819 | wxPyEndAllowThreads(__tstate); | |
12820 | if (PyErr_Occurred()) SWIG_fail; | |
12821 | } | |
c32bde28 | 12822 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12823 | return resultobj; |
12824 | fail: | |
12825 | return NULL; | |
12826 | } | |
12827 | ||
12828 | ||
c32bde28 | 12829 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12830 | PyObject *resultobj; |
12831 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12832 | int result; | |
12833 | PyObject * obj0 = 0 ; | |
12834 | char *kwnames[] = { | |
12835 | (char *) "self", NULL | |
12836 | }; | |
12837 | ||
12838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
12839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12841 | { | |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
c32bde28 | 12848 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12849 | return resultobj; |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
c32bde28 | 12855 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12856 | PyObject *resultobj; |
12857 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12858 | int arg2 ; | |
12859 | int arg3 ; | |
12860 | long arg4 ; | |
12861 | int result; | |
12862 | PyObject * obj0 = 0 ; | |
12863 | PyObject * obj1 = 0 ; | |
12864 | PyObject * obj2 = 0 ; | |
12865 | PyObject * obj3 = 0 ; | |
12866 | char *kwnames[] = { | |
12867 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12868 | }; | |
12869 | ||
12870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12873 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12874 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12875 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12876 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12877 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
12878 | if (PyErr_Occurred()) SWIG_fail; |
12879 | { | |
12880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12881 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
12882 | ||
12883 | wxPyEndAllowThreads(__tstate); | |
12884 | if (PyErr_Occurred()) SWIG_fail; | |
12885 | } | |
c32bde28 | 12886 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12887 | return resultobj; |
12888 | fail: | |
12889 | return NULL; | |
12890 | } | |
12891 | ||
12892 | ||
c32bde28 | 12893 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
12894 | PyObject *resultobj; |
12895 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12896 | wxVisualAttributes result; | |
12897 | PyObject * obj0 = 0 ; | |
12898 | char *kwnames[] = { | |
12899 | (char *) "variant", NULL | |
12900 | }; | |
12901 | ||
12902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12903 | if (obj0) { | |
c32bde28 | 12904 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
12905 | if (PyErr_Occurred()) SWIG_fail; |
12906 | } | |
12907 | { | |
19272049 | 12908 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12910 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12911 | ||
12912 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12913 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12914 | } |
12915 | { | |
12916 | wxVisualAttributes * resultptr; | |
12917 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12918 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12919 | } | |
12920 | return resultobj; | |
12921 | fail: | |
12922 | return NULL; | |
12923 | } | |
12924 | ||
12925 | ||
c32bde28 | 12926 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12927 | PyObject *obj; |
12928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12929 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12930 | Py_INCREF(obj); | |
12931 | return Py_BuildValue((char *)""); | |
12932 | } | |
c32bde28 | 12933 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12934 | PyObject *resultobj; |
12935 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12936 | int arg2 = (int) -1 ; |
12937 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12938 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
12939 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12940 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12941 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12942 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12943 | long arg6 = (long) 0 ; | |
12944 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12945 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12946 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12947 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12948 | wxRadioButton *result; | |
ae8162c8 | 12949 | bool temp3 = false ; |
d55e5bfc RD |
12950 | wxPoint temp4 ; |
12951 | wxSize temp5 ; | |
ae8162c8 | 12952 | bool temp8 = false ; |
d55e5bfc RD |
12953 | PyObject * obj0 = 0 ; |
12954 | PyObject * obj1 = 0 ; | |
12955 | PyObject * obj2 = 0 ; | |
12956 | PyObject * obj3 = 0 ; | |
12957 | PyObject * obj4 = 0 ; | |
12958 | PyObject * obj5 = 0 ; | |
12959 | PyObject * obj6 = 0 ; | |
12960 | PyObject * obj7 = 0 ; | |
12961 | char *kwnames[] = { | |
12962 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12963 | }; | |
12964 | ||
248ed943 | 12965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12968 | if (obj1) { |
c32bde28 | 12969 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12970 | if (PyErr_Occurred()) SWIG_fail; |
12971 | } | |
12972 | if (obj2) { | |
12973 | { | |
12974 | arg3 = wxString_in_helper(obj2); | |
12975 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12976 | temp3 = true; |
248ed943 | 12977 | } |
d55e5bfc RD |
12978 | } |
12979 | if (obj3) { | |
12980 | { | |
12981 | arg4 = &temp4; | |
12982 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12983 | } | |
12984 | } | |
12985 | if (obj4) { | |
12986 | { | |
12987 | arg5 = &temp5; | |
12988 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12989 | } | |
12990 | } | |
12991 | if (obj5) { | |
c32bde28 | 12992 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
12993 | if (PyErr_Occurred()) SWIG_fail; |
12994 | } | |
12995 | if (obj6) { | |
12996 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
12997 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12998 | SWIG_fail; | |
12999 | if (arg7 == NULL) { | |
13000 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13001 | SWIG_fail; | |
13002 | } | |
13003 | } | |
13004 | if (obj7) { | |
13005 | { | |
13006 | arg8 = wxString_in_helper(obj7); | |
13007 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 13008 | temp8 = true; |
d55e5bfc RD |
13009 | } |
13010 | } | |
13011 | { | |
0439c23b | 13012 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13014 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13015 | ||
13016 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13017 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13018 | } |
13019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
13020 | { | |
13021 | if (temp3) | |
13022 | delete arg3; | |
13023 | } | |
13024 | { | |
13025 | if (temp8) | |
13026 | delete arg8; | |
13027 | } | |
13028 | return resultobj; | |
13029 | fail: | |
13030 | { | |
13031 | if (temp3) | |
13032 | delete arg3; | |
13033 | } | |
13034 | { | |
13035 | if (temp8) | |
13036 | delete arg8; | |
13037 | } | |
13038 | return NULL; | |
13039 | } | |
13040 | ||
13041 | ||
c32bde28 | 13042 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13043 | PyObject *resultobj; |
13044 | wxRadioButton *result; | |
13045 | char *kwnames[] = { | |
13046 | NULL | |
13047 | }; | |
13048 | ||
13049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
13050 | { | |
0439c23b | 13051 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13053 | result = (wxRadioButton *)new wxRadioButton(); | |
13054 | ||
13055 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13056 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13057 | } |
13058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | return NULL; | |
13062 | } | |
13063 | ||
13064 | ||
c32bde28 | 13065 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13066 | PyObject *resultobj; |
13067 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
13068 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13069 | int arg3 = (int) -1 ; |
13070 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13071 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
13072 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13073 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13074 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13075 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13076 | long arg7 = (long) 0 ; | |
13077 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13078 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13079 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
13080 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13081 | bool result; | |
ae8162c8 | 13082 | bool temp4 = false ; |
d55e5bfc RD |
13083 | wxPoint temp5 ; |
13084 | wxSize temp6 ; | |
ae8162c8 | 13085 | bool temp9 = false ; |
d55e5bfc RD |
13086 | PyObject * obj0 = 0 ; |
13087 | PyObject * obj1 = 0 ; | |
13088 | PyObject * obj2 = 0 ; | |
13089 | PyObject * obj3 = 0 ; | |
13090 | PyObject * obj4 = 0 ; | |
13091 | PyObject * obj5 = 0 ; | |
13092 | PyObject * obj6 = 0 ; | |
13093 | PyObject * obj7 = 0 ; | |
13094 | PyObject * obj8 = 0 ; | |
13095 | char *kwnames[] = { | |
13096 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13097 | }; | |
13098 | ||
248ed943 | 13099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
13100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
13101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13102 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13104 | if (obj2) { |
c32bde28 | 13105 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13106 | if (PyErr_Occurred()) SWIG_fail; |
13107 | } | |
13108 | if (obj3) { | |
13109 | { | |
13110 | arg4 = wxString_in_helper(obj3); | |
13111 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13112 | temp4 = true; |
248ed943 | 13113 | } |
d55e5bfc RD |
13114 | } |
13115 | if (obj4) { | |
13116 | { | |
13117 | arg5 = &temp5; | |
13118 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13119 | } | |
13120 | } | |
13121 | if (obj5) { | |
13122 | { | |
13123 | arg6 = &temp6; | |
13124 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13125 | } | |
13126 | } | |
13127 | if (obj6) { | |
c32bde28 | 13128 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
13129 | if (PyErr_Occurred()) SWIG_fail; |
13130 | } | |
13131 | if (obj7) { | |
13132 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
13133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13134 | SWIG_fail; | |
13135 | if (arg8 == NULL) { | |
13136 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13137 | SWIG_fail; | |
13138 | } | |
13139 | } | |
13140 | if (obj8) { | |
13141 | { | |
13142 | arg9 = wxString_in_helper(obj8); | |
13143 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 13144 | temp9 = true; |
d55e5bfc RD |
13145 | } |
13146 | } | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13150 | ||
13151 | wxPyEndAllowThreads(__tstate); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
13154 | { | |
13155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13156 | } | |
13157 | { | |
13158 | if (temp4) | |
13159 | delete arg4; | |
13160 | } | |
13161 | { | |
13162 | if (temp9) | |
13163 | delete arg9; | |
13164 | } | |
13165 | return resultobj; | |
13166 | fail: | |
13167 | { | |
13168 | if (temp4) | |
13169 | delete arg4; | |
13170 | } | |
13171 | { | |
13172 | if (temp9) | |
13173 | delete arg9; | |
13174 | } | |
13175 | return NULL; | |
13176 | } | |
13177 | ||
13178 | ||
c32bde28 | 13179 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13180 | PyObject *resultobj; |
13181 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
13182 | bool result; | |
13183 | PyObject * obj0 = 0 ; | |
13184 | char *kwnames[] = { | |
13185 | (char *) "self", NULL | |
13186 | }; | |
13187 | ||
13188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
13189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
13190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13191 | { | |
13192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13193 | result = (bool)(arg1)->GetValue(); | |
13194 | ||
13195 | wxPyEndAllowThreads(__tstate); | |
13196 | if (PyErr_Occurred()) SWIG_fail; | |
13197 | } | |
13198 | { | |
13199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13200 | } | |
13201 | return resultobj; | |
13202 | fail: | |
13203 | return NULL; | |
13204 | } | |
13205 | ||
13206 | ||
c32bde28 | 13207 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13208 | PyObject *resultobj; |
13209 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
13210 | bool arg2 ; | |
13211 | PyObject * obj0 = 0 ; | |
13212 | PyObject * obj1 = 0 ; | |
13213 | char *kwnames[] = { | |
13214 | (char *) "self",(char *) "value", NULL | |
13215 | }; | |
13216 | ||
13217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
13219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13220 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
13221 | if (PyErr_Occurred()) SWIG_fail; |
13222 | { | |
13223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13224 | (arg1)->SetValue(arg2); | |
13225 | ||
13226 | wxPyEndAllowThreads(__tstate); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
13228 | } | |
13229 | Py_INCREF(Py_None); resultobj = Py_None; | |
13230 | return resultobj; | |
13231 | fail: | |
13232 | return NULL; | |
13233 | } | |
13234 | ||
13235 | ||
c32bde28 | 13236 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
13237 | PyObject *resultobj; |
13238 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13239 | wxVisualAttributes result; | |
13240 | PyObject * obj0 = 0 ; | |
13241 | char *kwnames[] = { | |
13242 | (char *) "variant", NULL | |
13243 | }; | |
13244 | ||
13245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13246 | if (obj0) { | |
c32bde28 | 13247 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
13248 | if (PyErr_Occurred()) SWIG_fail; |
13249 | } | |
13250 | { | |
19272049 | 13251 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13253 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13254 | ||
13255 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13256 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
13257 | } |
13258 | { | |
13259 | wxVisualAttributes * resultptr; | |
13260 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13262 | } | |
13263 | return resultobj; | |
13264 | fail: | |
13265 | return NULL; | |
13266 | } | |
13267 | ||
13268 | ||
c32bde28 | 13269 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13270 | PyObject *obj; |
13271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13272 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
13273 | Py_INCREF(obj); | |
13274 | return Py_BuildValue((char *)""); | |
13275 | } | |
c32bde28 | 13276 | static int _wrap_SliderNameStr_set(PyObject *) { |
d55e5bfc RD |
13277 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
13278 | return 1; | |
13279 | } | |
13280 | ||
13281 | ||
13282 | static PyObject *_wrap_SliderNameStr_get() { | |
13283 | PyObject *pyobj; | |
13284 | ||
13285 | { | |
13286 | #if wxUSE_UNICODE | |
13287 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
13288 | #else | |
13289 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
13290 | #endif | |
13291 | } | |
13292 | return pyobj; | |
13293 | } | |
13294 | ||
13295 | ||
c32bde28 | 13296 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13297 | PyObject *resultobj; |
13298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13299 | int arg2 = (int) -1 ; |
13300 | int arg3 = (int) 0 ; | |
13301 | int arg4 = (int) 0 ; | |
13302 | int arg5 = (int) 100 ; | |
d55e5bfc RD |
13303 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
13304 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
13305 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
13306 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
13307 | long arg8 = (long) wxSL_HORIZONTAL ; | |
13308 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13309 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13310 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
13311 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
13312 | wxSlider *result; | |
13313 | wxPoint temp6 ; | |
13314 | wxSize temp7 ; | |
ae8162c8 | 13315 | bool temp10 = false ; |
d55e5bfc RD |
13316 | PyObject * obj0 = 0 ; |
13317 | PyObject * obj1 = 0 ; | |
13318 | PyObject * obj2 = 0 ; | |
13319 | PyObject * obj3 = 0 ; | |
13320 | PyObject * obj4 = 0 ; | |
13321 | PyObject * obj5 = 0 ; | |
13322 | PyObject * obj6 = 0 ; | |
13323 | PyObject * obj7 = 0 ; | |
13324 | PyObject * obj8 = 0 ; | |
13325 | PyObject * obj9 = 0 ; | |
13326 | char *kwnames[] = { | |
13327 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13328 | }; | |
13329 | ||
248ed943 | 13330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
13331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13333 | if (obj1) { |
c32bde28 | 13334 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
13335 | if (PyErr_Occurred()) SWIG_fail; |
13336 | } | |
13337 | if (obj2) { | |
c32bde28 | 13338 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13339 | if (PyErr_Occurred()) SWIG_fail; |
13340 | } | |
13341 | if (obj3) { | |
c32bde28 | 13342 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
13343 | if (PyErr_Occurred()) SWIG_fail; |
13344 | } | |
13345 | if (obj4) { | |
c32bde28 | 13346 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13347 | if (PyErr_Occurred()) SWIG_fail; |
13348 | } | |
d55e5bfc RD |
13349 | if (obj5) { |
13350 | { | |
13351 | arg6 = &temp6; | |
13352 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
13353 | } | |
13354 | } | |
13355 | if (obj6) { | |
13356 | { | |
13357 | arg7 = &temp7; | |
13358 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
13359 | } | |
13360 | } | |
13361 | if (obj7) { | |
c32bde28 | 13362 | arg8 = (long)SWIG_As_long(obj7); |
d55e5bfc RD |
13363 | if (PyErr_Occurred()) SWIG_fail; |
13364 | } | |
13365 | if (obj8) { | |
13366 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
13367 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13368 | SWIG_fail; | |
13369 | if (arg9 == NULL) { | |
13370 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13371 | SWIG_fail; | |
13372 | } | |
13373 | } | |
13374 | if (obj9) { | |
13375 | { | |
13376 | arg10 = wxString_in_helper(obj9); | |
13377 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13378 | temp10 = true; |
d55e5bfc RD |
13379 | } |
13380 | } | |
13381 | { | |
0439c23b | 13382 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13384 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
13385 | ||
13386 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13387 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13388 | } |
13389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
13390 | { | |
13391 | if (temp10) | |
13392 | delete arg10; | |
13393 | } | |
13394 | return resultobj; | |
13395 | fail: | |
13396 | { | |
13397 | if (temp10) | |
13398 | delete arg10; | |
13399 | } | |
13400 | return NULL; | |
13401 | } | |
13402 | ||
13403 | ||
c32bde28 | 13404 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13405 | PyObject *resultobj; |
13406 | wxSlider *result; | |
13407 | char *kwnames[] = { | |
13408 | NULL | |
13409 | }; | |
13410 | ||
13411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
13412 | { | |
0439c23b | 13413 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13415 | result = (wxSlider *)new wxSlider(); | |
13416 | ||
13417 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13418 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13419 | } |
13420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
13421 | return resultobj; | |
13422 | fail: | |
13423 | return NULL; | |
13424 | } | |
13425 | ||
13426 | ||
c32bde28 | 13427 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13428 | PyObject *resultobj; |
13429 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13431 | int arg3 = (int) -1 ; |
13432 | int arg4 = (int) 0 ; | |
13433 | int arg5 = (int) 0 ; | |
13434 | int arg6 = (int) 100 ; | |
d55e5bfc RD |
13435 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
13436 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
13437 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
13438 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
13439 | long arg9 = (long) wxSL_HORIZONTAL ; | |
13440 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13441 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13442 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
13443 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13444 | bool result; | |
13445 | wxPoint temp7 ; | |
13446 | wxSize temp8 ; | |
ae8162c8 | 13447 | bool temp11 = false ; |
d55e5bfc RD |
13448 | PyObject * obj0 = 0 ; |
13449 | PyObject * obj1 = 0 ; | |
13450 | PyObject * obj2 = 0 ; | |
13451 | PyObject * obj3 = 0 ; | |
13452 | PyObject * obj4 = 0 ; | |
13453 | PyObject * obj5 = 0 ; | |
13454 | PyObject * obj6 = 0 ; | |
13455 | PyObject * obj7 = 0 ; | |
13456 | PyObject * obj8 = 0 ; | |
13457 | PyObject * obj9 = 0 ; | |
13458 | PyObject * obj10 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13461 | }; | |
13462 | ||
248ed943 | 13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
13464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13468 | if (obj2) { |
c32bde28 | 13469 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13470 | if (PyErr_Occurred()) SWIG_fail; |
13471 | } | |
13472 | if (obj3) { | |
c32bde28 | 13473 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
13474 | if (PyErr_Occurred()) SWIG_fail; |
13475 | } | |
13476 | if (obj4) { | |
c32bde28 | 13477 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13478 | if (PyErr_Occurred()) SWIG_fail; |
13479 | } | |
13480 | if (obj5) { | |
c32bde28 | 13481 | arg6 = (int)SWIG_As_int(obj5); |
248ed943 RD |
13482 | if (PyErr_Occurred()) SWIG_fail; |
13483 | } | |
d55e5bfc RD |
13484 | if (obj6) { |
13485 | { | |
13486 | arg7 = &temp7; | |
13487 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13488 | } | |
13489 | } | |
13490 | if (obj7) { | |
13491 | { | |
13492 | arg8 = &temp8; | |
13493 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13494 | } | |
13495 | } | |
13496 | if (obj8) { | |
c32bde28 | 13497 | arg9 = (long)SWIG_As_long(obj8); |
d55e5bfc RD |
13498 | if (PyErr_Occurred()) SWIG_fail; |
13499 | } | |
13500 | if (obj9) { | |
13501 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
13502 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13503 | SWIG_fail; | |
13504 | if (arg10 == NULL) { | |
13505 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13506 | SWIG_fail; | |
13507 | } | |
13508 | } | |
13509 | if (obj10) { | |
13510 | { | |
13511 | arg11 = wxString_in_helper(obj10); | |
13512 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13513 | temp11 = true; |
d55e5bfc RD |
13514 | } |
13515 | } | |
13516 | { | |
13517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13518 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13519 | ||
13520 | wxPyEndAllowThreads(__tstate); | |
13521 | if (PyErr_Occurred()) SWIG_fail; | |
13522 | } | |
13523 | { | |
13524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13525 | } | |
13526 | { | |
13527 | if (temp11) | |
13528 | delete arg11; | |
13529 | } | |
13530 | return resultobj; | |
13531 | fail: | |
13532 | { | |
13533 | if (temp11) | |
13534 | delete arg11; | |
13535 | } | |
13536 | return NULL; | |
13537 | } | |
13538 | ||
13539 | ||
c32bde28 | 13540 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13541 | PyObject *resultobj; |
13542 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13543 | int result; | |
13544 | PyObject * obj0 = 0 ; | |
13545 | char *kwnames[] = { | |
13546 | (char *) "self", NULL | |
13547 | }; | |
13548 | ||
13549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
13550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13552 | { | |
13553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13554 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13555 | ||
13556 | wxPyEndAllowThreads(__tstate); | |
13557 | if (PyErr_Occurred()) SWIG_fail; | |
13558 | } | |
c32bde28 | 13559 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13560 | return resultobj; |
13561 | fail: | |
13562 | return NULL; | |
13563 | } | |
13564 | ||
13565 | ||
c32bde28 | 13566 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13567 | PyObject *resultobj; |
13568 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13569 | int arg2 ; | |
13570 | PyObject * obj0 = 0 ; | |
13571 | PyObject * obj1 = 0 ; | |
13572 | char *kwnames[] = { | |
13573 | (char *) "self",(char *) "value", NULL | |
13574 | }; | |
13575 | ||
13576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13579 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13580 | if (PyErr_Occurred()) SWIG_fail; |
13581 | { | |
13582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13583 | (arg1)->SetValue(arg2); | |
13584 | ||
13585 | wxPyEndAllowThreads(__tstate); | |
13586 | if (PyErr_Occurred()) SWIG_fail; | |
13587 | } | |
13588 | Py_INCREF(Py_None); resultobj = Py_None; | |
13589 | return resultobj; | |
13590 | fail: | |
13591 | return NULL; | |
13592 | } | |
13593 | ||
13594 | ||
c32bde28 | 13595 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13596 | PyObject *resultobj; |
13597 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13598 | int arg2 ; | |
13599 | int arg3 ; | |
13600 | PyObject * obj0 = 0 ; | |
13601 | PyObject * obj1 = 0 ; | |
13602 | PyObject * obj2 = 0 ; | |
13603 | char *kwnames[] = { | |
13604 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13605 | }; | |
13606 | ||
13607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13610 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 13611 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13612 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13613 | if (PyErr_Occurred()) SWIG_fail; |
13614 | { | |
13615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13616 | (arg1)->SetRange(arg2,arg3); | |
13617 | ||
13618 | wxPyEndAllowThreads(__tstate); | |
13619 | if (PyErr_Occurred()) SWIG_fail; | |
13620 | } | |
13621 | Py_INCREF(Py_None); resultobj = Py_None; | |
13622 | return resultobj; | |
13623 | fail: | |
13624 | return NULL; | |
13625 | } | |
13626 | ||
13627 | ||
c32bde28 | 13628 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13629 | PyObject *resultobj; |
13630 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13631 | int result; | |
13632 | PyObject * obj0 = 0 ; | |
13633 | char *kwnames[] = { | |
13634 | (char *) "self", NULL | |
13635 | }; | |
13636 | ||
13637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
13638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13640 | { | |
13641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13642 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13643 | ||
13644 | wxPyEndAllowThreads(__tstate); | |
13645 | if (PyErr_Occurred()) SWIG_fail; | |
13646 | } | |
c32bde28 | 13647 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13648 | return resultobj; |
13649 | fail: | |
13650 | return NULL; | |
13651 | } | |
13652 | ||
13653 | ||
c32bde28 | 13654 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13655 | PyObject *resultobj; |
13656 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13657 | int result; | |
13658 | PyObject * obj0 = 0 ; | |
13659 | char *kwnames[] = { | |
13660 | (char *) "self", NULL | |
13661 | }; | |
13662 | ||
13663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
13664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13666 | { | |
13667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13668 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13669 | ||
13670 | wxPyEndAllowThreads(__tstate); | |
13671 | if (PyErr_Occurred()) SWIG_fail; | |
13672 | } | |
c32bde28 | 13673 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13674 | return resultobj; |
13675 | fail: | |
13676 | return NULL; | |
13677 | } | |
13678 | ||
13679 | ||
c32bde28 | 13680 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13681 | PyObject *resultobj; |
13682 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13683 | int arg2 ; | |
13684 | PyObject * obj0 = 0 ; | |
13685 | PyObject * obj1 = 0 ; | |
13686 | char *kwnames[] = { | |
13687 | (char *) "self",(char *) "minValue", NULL | |
13688 | }; | |
13689 | ||
13690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
13691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13693 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13694 | if (PyErr_Occurred()) SWIG_fail; |
13695 | { | |
13696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13697 | (arg1)->SetMin(arg2); | |
13698 | ||
13699 | wxPyEndAllowThreads(__tstate); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | } | |
13702 | Py_INCREF(Py_None); resultobj = Py_None; | |
13703 | return resultobj; | |
13704 | fail: | |
13705 | return NULL; | |
13706 | } | |
13707 | ||
13708 | ||
c32bde28 | 13709 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13710 | PyObject *resultobj; |
13711 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13712 | int arg2 ; | |
13713 | PyObject * obj0 = 0 ; | |
13714 | PyObject * obj1 = 0 ; | |
13715 | char *kwnames[] = { | |
13716 | (char *) "self",(char *) "maxValue", NULL | |
13717 | }; | |
13718 | ||
13719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
13720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13722 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13723 | if (PyErr_Occurred()) SWIG_fail; |
13724 | { | |
13725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13726 | (arg1)->SetMax(arg2); | |
13727 | ||
13728 | wxPyEndAllowThreads(__tstate); | |
13729 | if (PyErr_Occurred()) SWIG_fail; | |
13730 | } | |
13731 | Py_INCREF(Py_None); resultobj = Py_None; | |
13732 | return resultobj; | |
13733 | fail: | |
13734 | return NULL; | |
13735 | } | |
13736 | ||
13737 | ||
c32bde28 | 13738 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13739 | PyObject *resultobj; |
13740 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13741 | int arg2 ; | |
13742 | PyObject * obj0 = 0 ; | |
13743 | PyObject * obj1 = 0 ; | |
13744 | char *kwnames[] = { | |
13745 | (char *) "self",(char *) "lineSize", NULL | |
13746 | }; | |
13747 | ||
13748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
13749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13751 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13752 | if (PyErr_Occurred()) SWIG_fail; |
13753 | { | |
13754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13755 | (arg1)->SetLineSize(arg2); | |
13756 | ||
13757 | wxPyEndAllowThreads(__tstate); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
13759 | } | |
13760 | Py_INCREF(Py_None); resultobj = Py_None; | |
13761 | return resultobj; | |
13762 | fail: | |
13763 | return NULL; | |
13764 | } | |
13765 | ||
13766 | ||
c32bde28 | 13767 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13768 | PyObject *resultobj; |
13769 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13770 | int arg2 ; | |
13771 | PyObject * obj0 = 0 ; | |
13772 | PyObject * obj1 = 0 ; | |
13773 | char *kwnames[] = { | |
13774 | (char *) "self",(char *) "pageSize", NULL | |
13775 | }; | |
13776 | ||
13777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13780 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13781 | if (PyErr_Occurred()) SWIG_fail; |
13782 | { | |
13783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13784 | (arg1)->SetPageSize(arg2); | |
13785 | ||
13786 | wxPyEndAllowThreads(__tstate); | |
13787 | if (PyErr_Occurred()) SWIG_fail; | |
13788 | } | |
13789 | Py_INCREF(Py_None); resultobj = Py_None; | |
13790 | return resultobj; | |
13791 | fail: | |
13792 | return NULL; | |
13793 | } | |
13794 | ||
13795 | ||
c32bde28 | 13796 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13797 | PyObject *resultobj; |
13798 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13799 | int result; | |
13800 | PyObject * obj0 = 0 ; | |
13801 | char *kwnames[] = { | |
13802 | (char *) "self", NULL | |
13803 | }; | |
13804 | ||
13805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
13806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13808 | { | |
13809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13810 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13811 | ||
13812 | wxPyEndAllowThreads(__tstate); | |
13813 | if (PyErr_Occurred()) SWIG_fail; | |
13814 | } | |
c32bde28 | 13815 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13816 | return resultobj; |
13817 | fail: | |
13818 | return NULL; | |
13819 | } | |
13820 | ||
13821 | ||
c32bde28 | 13822 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13823 | PyObject *resultobj; |
13824 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13825 | int result; | |
13826 | PyObject * obj0 = 0 ; | |
13827 | char *kwnames[] = { | |
13828 | (char *) "self", NULL | |
13829 | }; | |
13830 | ||
13831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
13832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13834 | { | |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13836 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13837 | ||
13838 | wxPyEndAllowThreads(__tstate); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | } | |
c32bde28 | 13841 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13842 | return resultobj; |
13843 | fail: | |
13844 | return NULL; | |
13845 | } | |
13846 | ||
13847 | ||
c32bde28 | 13848 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13849 | PyObject *resultobj; |
13850 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13851 | int arg2 ; | |
13852 | PyObject * obj0 = 0 ; | |
13853 | PyObject * obj1 = 0 ; | |
13854 | char *kwnames[] = { | |
13855 | (char *) "self",(char *) "lenPixels", NULL | |
13856 | }; | |
13857 | ||
13858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
13859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13861 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13862 | if (PyErr_Occurred()) SWIG_fail; |
13863 | { | |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | (arg1)->SetThumbLength(arg2); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
13870 | Py_INCREF(Py_None); resultobj = Py_None; | |
13871 | return resultobj; | |
13872 | fail: | |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
c32bde28 | 13877 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13878 | PyObject *resultobj; |
13879 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13880 | int result; | |
13881 | PyObject * obj0 = 0 ; | |
13882 | char *kwnames[] = { | |
13883 | (char *) "self", NULL | |
13884 | }; | |
13885 | ||
13886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
13887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13889 | { | |
13890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13891 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13892 | ||
13893 | wxPyEndAllowThreads(__tstate); | |
13894 | if (PyErr_Occurred()) SWIG_fail; | |
13895 | } | |
c32bde28 | 13896 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13897 | return resultobj; |
13898 | fail: | |
13899 | return NULL; | |
13900 | } | |
13901 | ||
13902 | ||
c32bde28 | 13903 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13904 | PyObject *resultobj; |
13905 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13906 | int arg2 ; | |
13907 | int arg3 = (int) 1 ; | |
13908 | PyObject * obj0 = 0 ; | |
13909 | PyObject * obj1 = 0 ; | |
13910 | PyObject * obj2 = 0 ; | |
13911 | char *kwnames[] = { | |
13912 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13913 | }; | |
13914 | ||
13915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13918 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13919 | if (PyErr_Occurred()) SWIG_fail; |
13920 | if (obj2) { | |
c32bde28 | 13921 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13922 | if (PyErr_Occurred()) SWIG_fail; |
13923 | } | |
13924 | { | |
13925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13926 | (arg1)->SetTickFreq(arg2,arg3); | |
13927 | ||
13928 | wxPyEndAllowThreads(__tstate); | |
13929 | if (PyErr_Occurred()) SWIG_fail; | |
13930 | } | |
13931 | Py_INCREF(Py_None); resultobj = Py_None; | |
13932 | return resultobj; | |
13933 | fail: | |
13934 | return NULL; | |
13935 | } | |
13936 | ||
13937 | ||
c32bde28 | 13938 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13939 | PyObject *resultobj; |
13940 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13941 | int result; | |
13942 | PyObject * obj0 = 0 ; | |
13943 | char *kwnames[] = { | |
13944 | (char *) "self", NULL | |
13945 | }; | |
13946 | ||
13947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
13948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13950 | { | |
13951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13952 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13953 | ||
13954 | wxPyEndAllowThreads(__tstate); | |
13955 | if (PyErr_Occurred()) SWIG_fail; | |
13956 | } | |
c32bde28 | 13957 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13958 | return resultobj; |
13959 | fail: | |
13960 | return NULL; | |
13961 | } | |
13962 | ||
13963 | ||
c32bde28 | 13964 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13965 | PyObject *resultobj; |
13966 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13967 | PyObject * obj0 = 0 ; | |
13968 | char *kwnames[] = { | |
13969 | (char *) "self", NULL | |
13970 | }; | |
13971 | ||
13972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
13973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13975 | { | |
13976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13977 | (arg1)->ClearTicks(); | |
13978 | ||
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
13982 | Py_INCREF(Py_None); resultobj = Py_None; | |
13983 | return resultobj; | |
13984 | fail: | |
13985 | return NULL; | |
13986 | } | |
13987 | ||
13988 | ||
c32bde28 | 13989 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13990 | PyObject *resultobj; |
13991 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13992 | int arg2 ; | |
13993 | PyObject * obj0 = 0 ; | |
13994 | PyObject * obj1 = 0 ; | |
13995 | char *kwnames[] = { | |
13996 | (char *) "self",(char *) "tickPos", NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
14000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
14001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14002 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14003 | if (PyErr_Occurred()) SWIG_fail; |
14004 | { | |
14005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14006 | (arg1)->SetTick(arg2); | |
14007 | ||
14008 | wxPyEndAllowThreads(__tstate); | |
14009 | if (PyErr_Occurred()) SWIG_fail; | |
14010 | } | |
14011 | Py_INCREF(Py_None); resultobj = Py_None; | |
14012 | return resultobj; | |
14013 | fail: | |
14014 | return NULL; | |
14015 | } | |
14016 | ||
14017 | ||
c32bde28 | 14018 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14019 | PyObject *resultobj; |
14020 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14021 | PyObject * obj0 = 0 ; | |
14022 | char *kwnames[] = { | |
14023 | (char *) "self", NULL | |
14024 | }; | |
14025 | ||
14026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
14027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
14028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14029 | { | |
14030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14031 | (arg1)->ClearSel(); | |
14032 | ||
14033 | wxPyEndAllowThreads(__tstate); | |
14034 | if (PyErr_Occurred()) SWIG_fail; | |
14035 | } | |
14036 | Py_INCREF(Py_None); resultobj = Py_None; | |
14037 | return resultobj; | |
14038 | fail: | |
14039 | return NULL; | |
14040 | } | |
14041 | ||
14042 | ||
c32bde28 | 14043 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14044 | PyObject *resultobj; |
14045 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14046 | int result; | |
14047 | PyObject * obj0 = 0 ; | |
14048 | char *kwnames[] = { | |
14049 | (char *) "self", NULL | |
14050 | }; | |
14051 | ||
14052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
14053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
14054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14055 | { | |
14056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14057 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
14058 | ||
14059 | wxPyEndAllowThreads(__tstate); | |
14060 | if (PyErr_Occurred()) SWIG_fail; | |
14061 | } | |
c32bde28 | 14062 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14063 | return resultobj; |
14064 | fail: | |
14065 | return NULL; | |
14066 | } | |
14067 | ||
14068 | ||
c32bde28 | 14069 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14070 | PyObject *resultobj; |
14071 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14072 | int result; | |
14073 | PyObject * obj0 = 0 ; | |
14074 | char *kwnames[] = { | |
14075 | (char *) "self", NULL | |
14076 | }; | |
14077 | ||
14078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
14079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
14080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14081 | { | |
14082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14083 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
14084 | ||
14085 | wxPyEndAllowThreads(__tstate); | |
14086 | if (PyErr_Occurred()) SWIG_fail; | |
14087 | } | |
c32bde28 | 14088 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14089 | return resultobj; |
14090 | fail: | |
14091 | return NULL; | |
14092 | } | |
14093 | ||
14094 | ||
c32bde28 | 14095 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14096 | PyObject *resultobj; |
14097 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14098 | int arg2 ; | |
14099 | int arg3 ; | |
14100 | PyObject * obj0 = 0 ; | |
14101 | PyObject * obj1 = 0 ; | |
14102 | PyObject * obj2 = 0 ; | |
14103 | char *kwnames[] = { | |
14104 | (char *) "self",(char *) "min",(char *) "max", NULL | |
14105 | }; | |
14106 | ||
14107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
14109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14110 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 14111 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14112 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14113 | if (PyErr_Occurred()) SWIG_fail; |
14114 | { | |
14115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14116 | (arg1)->SetSelection(arg2,arg3); | |
14117 | ||
14118 | wxPyEndAllowThreads(__tstate); | |
14119 | if (PyErr_Occurred()) SWIG_fail; | |
14120 | } | |
14121 | Py_INCREF(Py_None); resultobj = Py_None; | |
14122 | return resultobj; | |
14123 | fail: | |
14124 | return NULL; | |
14125 | } | |
14126 | ||
14127 | ||
c32bde28 | 14128 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
14129 | PyObject *resultobj; |
14130 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14131 | wxVisualAttributes result; | |
14132 | PyObject * obj0 = 0 ; | |
14133 | char *kwnames[] = { | |
14134 | (char *) "variant", NULL | |
14135 | }; | |
14136 | ||
14137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14138 | if (obj0) { | |
c32bde28 | 14139 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
14140 | if (PyErr_Occurred()) SWIG_fail; |
14141 | } | |
14142 | { | |
19272049 | 14143 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14145 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14146 | ||
14147 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14148 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14149 | } |
14150 | { | |
14151 | wxVisualAttributes * resultptr; | |
14152 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14153 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14154 | } | |
14155 | return resultobj; | |
14156 | fail: | |
14157 | return NULL; | |
14158 | } | |
14159 | ||
14160 | ||
c32bde28 | 14161 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14162 | PyObject *obj; |
14163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14164 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
14165 | Py_INCREF(obj); | |
14166 | return Py_BuildValue((char *)""); | |
14167 | } | |
c32bde28 | 14168 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
14169 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
14170 | return 1; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
14175 | PyObject *pyobj; | |
14176 | ||
14177 | { | |
14178 | #if wxUSE_UNICODE | |
14179 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
14180 | #else | |
14181 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
14182 | #endif | |
14183 | } | |
14184 | return pyobj; | |
14185 | } | |
14186 | ||
14187 | ||
c32bde28 | 14188 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14189 | PyObject *resultobj; |
14190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14191 | int arg2 = (int) -1 ; |
14192 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14193 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
14194 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14195 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14196 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14197 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14198 | long arg6 = (long) 0 ; | |
14199 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14200 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14201 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
14202 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14203 | wxToggleButton *result; | |
ae8162c8 | 14204 | bool temp3 = false ; |
d55e5bfc RD |
14205 | wxPoint temp4 ; |
14206 | wxSize temp5 ; | |
ae8162c8 | 14207 | bool temp8 = false ; |
d55e5bfc RD |
14208 | PyObject * obj0 = 0 ; |
14209 | PyObject * obj1 = 0 ; | |
14210 | PyObject * obj2 = 0 ; | |
14211 | PyObject * obj3 = 0 ; | |
14212 | PyObject * obj4 = 0 ; | |
14213 | PyObject * obj5 = 0 ; | |
14214 | PyObject * obj6 = 0 ; | |
14215 | PyObject * obj7 = 0 ; | |
14216 | char *kwnames[] = { | |
14217 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14218 | }; | |
14219 | ||
248ed943 | 14220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
14221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 14223 | if (obj1) { |
c32bde28 | 14224 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
14225 | if (PyErr_Occurred()) SWIG_fail; |
14226 | } | |
14227 | if (obj2) { | |
14228 | { | |
14229 | arg3 = wxString_in_helper(obj2); | |
14230 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14231 | temp3 = true; |
248ed943 | 14232 | } |
d55e5bfc RD |
14233 | } |
14234 | if (obj3) { | |
14235 | { | |
14236 | arg4 = &temp4; | |
14237 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14238 | } | |
14239 | } | |
14240 | if (obj4) { | |
14241 | { | |
14242 | arg5 = &temp5; | |
14243 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14244 | } | |
14245 | } | |
14246 | if (obj5) { | |
c32bde28 | 14247 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
14248 | if (PyErr_Occurred()) SWIG_fail; |
14249 | } | |
14250 | if (obj6) { | |
14251 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
14252 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14253 | SWIG_fail; | |
14254 | if (arg7 == NULL) { | |
14255 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14256 | SWIG_fail; | |
14257 | } | |
14258 | } | |
14259 | if (obj7) { | |
14260 | { | |
14261 | arg8 = wxString_in_helper(obj7); | |
14262 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 14263 | temp8 = true; |
d55e5bfc RD |
14264 | } |
14265 | } | |
14266 | { | |
0439c23b | 14267 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14269 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14270 | ||
14271 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14272 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14273 | } |
14274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
14275 | { | |
14276 | if (temp3) | |
14277 | delete arg3; | |
14278 | } | |
14279 | { | |
14280 | if (temp8) | |
14281 | delete arg8; | |
14282 | } | |
14283 | return resultobj; | |
14284 | fail: | |
14285 | { | |
14286 | if (temp3) | |
14287 | delete arg3; | |
14288 | } | |
14289 | { | |
14290 | if (temp8) | |
14291 | delete arg8; | |
14292 | } | |
14293 | return NULL; | |
14294 | } | |
14295 | ||
14296 | ||
c32bde28 | 14297 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14298 | PyObject *resultobj; |
14299 | wxToggleButton *result; | |
14300 | char *kwnames[] = { | |
14301 | NULL | |
14302 | }; | |
14303 | ||
14304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
14305 | { | |
0439c23b | 14306 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14308 | result = (wxToggleButton *)new wxToggleButton(); | |
14309 | ||
14310 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14311 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14312 | } |
14313 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
14314 | return resultobj; | |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
c32bde28 | 14320 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14321 | PyObject *resultobj; |
14322 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14323 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14324 | int arg3 = (int) -1 ; |
14325 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14326 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
14327 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14328 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14329 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14330 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14331 | long arg7 = (long) 0 ; | |
14332 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14333 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14334 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
14335 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14336 | bool result; | |
ae8162c8 | 14337 | bool temp4 = false ; |
d55e5bfc RD |
14338 | wxPoint temp5 ; |
14339 | wxSize temp6 ; | |
ae8162c8 | 14340 | bool temp9 = false ; |
d55e5bfc RD |
14341 | PyObject * obj0 = 0 ; |
14342 | PyObject * obj1 = 0 ; | |
14343 | PyObject * obj2 = 0 ; | |
14344 | PyObject * obj3 = 0 ; | |
14345 | PyObject * obj4 = 0 ; | |
14346 | PyObject * obj5 = 0 ; | |
14347 | PyObject * obj6 = 0 ; | |
14348 | PyObject * obj7 = 0 ; | |
14349 | PyObject * obj8 = 0 ; | |
14350 | char *kwnames[] = { | |
14351 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14352 | }; | |
14353 | ||
248ed943 | 14354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
14355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 14359 | if (obj2) { |
c32bde28 | 14360 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
14361 | if (PyErr_Occurred()) SWIG_fail; |
14362 | } | |
14363 | if (obj3) { | |
14364 | { | |
14365 | arg4 = wxString_in_helper(obj3); | |
14366 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14367 | temp4 = true; |
248ed943 | 14368 | } |
d55e5bfc RD |
14369 | } |
14370 | if (obj4) { | |
14371 | { | |
14372 | arg5 = &temp5; | |
14373 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14374 | } | |
14375 | } | |
14376 | if (obj5) { | |
14377 | { | |
14378 | arg6 = &temp6; | |
14379 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14380 | } | |
14381 | } | |
14382 | if (obj6) { | |
c32bde28 | 14383 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
14384 | if (PyErr_Occurred()) SWIG_fail; |
14385 | } | |
14386 | if (obj7) { | |
14387 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
14388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14389 | SWIG_fail; | |
14390 | if (arg8 == NULL) { | |
14391 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14392 | SWIG_fail; | |
14393 | } | |
14394 | } | |
14395 | if (obj8) { | |
14396 | { | |
14397 | arg9 = wxString_in_helper(obj8); | |
14398 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14399 | temp9 = true; |
d55e5bfc RD |
14400 | } |
14401 | } | |
14402 | { | |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14405 | ||
14406 | wxPyEndAllowThreads(__tstate); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | } | |
14409 | { | |
14410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14411 | } | |
14412 | { | |
14413 | if (temp4) | |
14414 | delete arg4; | |
14415 | } | |
14416 | { | |
14417 | if (temp9) | |
14418 | delete arg9; | |
14419 | } | |
14420 | return resultobj; | |
14421 | fail: | |
14422 | { | |
14423 | if (temp4) | |
14424 | delete arg4; | |
14425 | } | |
14426 | { | |
14427 | if (temp9) | |
14428 | delete arg9; | |
14429 | } | |
14430 | return NULL; | |
14431 | } | |
14432 | ||
14433 | ||
c32bde28 | 14434 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14435 | PyObject *resultobj; |
14436 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14437 | bool arg2 ; | |
14438 | PyObject * obj0 = 0 ; | |
14439 | PyObject * obj1 = 0 ; | |
14440 | char *kwnames[] = { | |
14441 | (char *) "self",(char *) "value", NULL | |
14442 | }; | |
14443 | ||
14444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
14445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14447 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
14448 | if (PyErr_Occurred()) SWIG_fail; |
14449 | { | |
14450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14451 | (arg1)->SetValue(arg2); | |
14452 | ||
14453 | wxPyEndAllowThreads(__tstate); | |
14454 | if (PyErr_Occurred()) SWIG_fail; | |
14455 | } | |
14456 | Py_INCREF(Py_None); resultobj = Py_None; | |
14457 | return resultobj; | |
14458 | fail: | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
c32bde28 | 14463 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14464 | PyObject *resultobj; |
14465 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14466 | bool result; | |
14467 | PyObject * obj0 = 0 ; | |
14468 | char *kwnames[] = { | |
14469 | (char *) "self", NULL | |
14470 | }; | |
14471 | ||
14472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
14473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14475 | { | |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14477 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14478 | ||
14479 | wxPyEndAllowThreads(__tstate); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | { | |
14483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14484 | } | |
14485 | return resultobj; | |
14486 | fail: | |
14487 | return NULL; | |
14488 | } | |
14489 | ||
14490 | ||
c32bde28 | 14491 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14492 | PyObject *resultobj; |
14493 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14494 | wxString *arg2 = 0 ; | |
ae8162c8 | 14495 | bool temp2 = false ; |
d55e5bfc RD |
14496 | PyObject * obj0 = 0 ; |
14497 | PyObject * obj1 = 0 ; | |
14498 | char *kwnames[] = { | |
14499 | (char *) "self",(char *) "label", NULL | |
14500 | }; | |
14501 | ||
14502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
14503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14505 | { | |
14506 | arg2 = wxString_in_helper(obj1); | |
14507 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14508 | temp2 = true; |
d55e5bfc RD |
14509 | } |
14510 | { | |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14512 | (arg1)->SetLabel((wxString const &)*arg2); | |
14513 | ||
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
14517 | Py_INCREF(Py_None); resultobj = Py_None; | |
14518 | { | |
14519 | if (temp2) | |
14520 | delete arg2; | |
14521 | } | |
14522 | return resultobj; | |
14523 | fail: | |
14524 | { | |
14525 | if (temp2) | |
14526 | delete arg2; | |
14527 | } | |
14528 | return NULL; | |
14529 | } | |
14530 | ||
14531 | ||
c32bde28 | 14532 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
14533 | PyObject *resultobj; |
14534 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14535 | wxVisualAttributes result; | |
14536 | PyObject * obj0 = 0 ; | |
14537 | char *kwnames[] = { | |
14538 | (char *) "variant", NULL | |
14539 | }; | |
14540 | ||
14541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14542 | if (obj0) { | |
c32bde28 | 14543 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
14544 | if (PyErr_Occurred()) SWIG_fail; |
14545 | } | |
14546 | { | |
19272049 | 14547 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14549 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14550 | ||
14551 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14552 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14553 | } |
14554 | { | |
14555 | wxVisualAttributes * resultptr; | |
14556 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14557 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14558 | } | |
14559 | return resultobj; | |
14560 | fail: | |
14561 | return NULL; | |
14562 | } | |
14563 | ||
14564 | ||
c32bde28 | 14565 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14566 | PyObject *obj; |
14567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14568 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14569 | Py_INCREF(obj); | |
14570 | return Py_BuildValue((char *)""); | |
14571 | } | |
c32bde28 | 14572 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
d55e5bfc RD |
14573 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
14574 | return 1; | |
14575 | } | |
14576 | ||
14577 | ||
14578 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14579 | PyObject *pyobj; | |
14580 | ||
14581 | { | |
14582 | #if wxUSE_UNICODE | |
14583 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14584 | #else | |
14585 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14586 | #endif | |
14587 | } | |
14588 | return pyobj; | |
14589 | } | |
14590 | ||
14591 | ||
8ac8dba0 | 14592 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14593 | PyObject *resultobj; |
8ac8dba0 | 14594 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14595 | size_t result; |
14596 | PyObject * obj0 = 0 ; | |
14597 | char *kwnames[] = { | |
14598 | (char *) "self", NULL | |
14599 | }; | |
14600 | ||
8ac8dba0 RD |
14601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
14602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
14603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14604 | { | |
14605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14606 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d55e5bfc RD |
14607 | |
14608 | wxPyEndAllowThreads(__tstate); | |
14609 | if (PyErr_Occurred()) SWIG_fail; | |
14610 | } | |
c32bde28 | 14611 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
14612 | return resultobj; |
14613 | fail: | |
14614 | return NULL; | |
14615 | } | |
14616 | ||
14617 | ||
8ac8dba0 | 14618 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14619 | PyObject *resultobj; |
8ac8dba0 | 14620 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14621 | size_t arg2 ; |
14622 | wxWindow *result; | |
14623 | PyObject * obj0 = 0 ; | |
14624 | PyObject * obj1 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "self",(char *) "n", NULL | |
14627 | }; | |
14628 | ||
8ac8dba0 RD |
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
14630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 14631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14632 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14633 | if (PyErr_Occurred()) SWIG_fail; |
14634 | { | |
14635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14636 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14637 | ||
14638 | wxPyEndAllowThreads(__tstate); | |
14639 | if (PyErr_Occurred()) SWIG_fail; | |
14640 | } | |
14641 | { | |
412d302d | 14642 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14643 | } |
14644 | return resultobj; | |
14645 | fail: | |
14646 | return NULL; | |
14647 | } | |
14648 | ||
14649 | ||
8ac8dba0 | 14650 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
8fb0e70a | 14651 | PyObject *resultobj; |
8ac8dba0 | 14652 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
14653 | wxWindow *result; |
14654 | PyObject * obj0 = 0 ; | |
14655 | char *kwnames[] = { | |
14656 | (char *) "self", NULL | |
14657 | }; | |
14658 | ||
8ac8dba0 RD |
14659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
14660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
8fb0e70a RD |
14661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14662 | { | |
14663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14664 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
14665 | |
14666 | wxPyEndAllowThreads(__tstate); | |
14667 | if (PyErr_Occurred()) SWIG_fail; | |
14668 | } | |
14669 | { | |
14670 | resultobj = wxPyMake_wxObject(result, 0); | |
14671 | } | |
14672 | return resultobj; | |
14673 | fail: | |
14674 | return NULL; | |
14675 | } | |
14676 | ||
14677 | ||
8ac8dba0 | 14678 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14679 | PyObject *resultobj; |
8ac8dba0 | 14680 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14681 | int result; |
14682 | PyObject * obj0 = 0 ; | |
14683 | char *kwnames[] = { | |
14684 | (char *) "self", NULL | |
14685 | }; | |
14686 | ||
8ac8dba0 RD |
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
14688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
14689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14690 | { | |
14691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14692 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d55e5bfc RD |
14693 | |
14694 | wxPyEndAllowThreads(__tstate); | |
14695 | if (PyErr_Occurred()) SWIG_fail; | |
14696 | } | |
c32bde28 | 14697 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14698 | return resultobj; |
14699 | fail: | |
14700 | return NULL; | |
14701 | } | |
14702 | ||
14703 | ||
8ac8dba0 | 14704 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14705 | PyObject *resultobj; |
8ac8dba0 | 14706 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14707 | size_t arg2 ; |
14708 | wxString *arg3 = 0 ; | |
14709 | bool result; | |
ae8162c8 | 14710 | bool temp3 = false ; |
d55e5bfc RD |
14711 | PyObject * obj0 = 0 ; |
14712 | PyObject * obj1 = 0 ; | |
14713 | PyObject * obj2 = 0 ; | |
14714 | char *kwnames[] = { | |
14715 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14716 | }; | |
14717 | ||
8ac8dba0 RD |
14718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 14720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14721 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14722 | if (PyErr_Occurred()) SWIG_fail; |
14723 | { | |
14724 | arg3 = wxString_in_helper(obj2); | |
14725 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14726 | temp3 = true; |
d55e5bfc RD |
14727 | } |
14728 | { | |
14729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14730 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14731 | ||
14732 | wxPyEndAllowThreads(__tstate); | |
14733 | if (PyErr_Occurred()) SWIG_fail; | |
14734 | } | |
14735 | { | |
14736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14737 | } | |
14738 | { | |
14739 | if (temp3) | |
14740 | delete arg3; | |
14741 | } | |
14742 | return resultobj; | |
14743 | fail: | |
14744 | { | |
14745 | if (temp3) | |
14746 | delete arg3; | |
14747 | } | |
14748 | return NULL; | |
14749 | } | |
14750 | ||
14751 | ||
8ac8dba0 | 14752 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14753 | PyObject *resultobj; |
8ac8dba0 | 14754 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14755 | size_t arg2 ; |
14756 | wxString result; | |
14757 | PyObject * obj0 = 0 ; | |
14758 | PyObject * obj1 = 0 ; | |
14759 | char *kwnames[] = { | |
14760 | (char *) "self",(char *) "n", NULL | |
14761 | }; | |
14762 | ||
8ac8dba0 RD |
14763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
14764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 14765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14766 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14767 | if (PyErr_Occurred()) SWIG_fail; |
14768 | { | |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14770 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d55e5bfc RD |
14771 | |
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | { | |
14776 | #if wxUSE_UNICODE | |
14777 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14778 | #else | |
14779 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14780 | #endif | |
14781 | } | |
14782 | return resultobj; | |
14783 | fail: | |
14784 | return NULL; | |
14785 | } | |
14786 | ||
14787 | ||
8ac8dba0 | 14788 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14789 | PyObject *resultobj; |
8ac8dba0 | 14790 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14791 | wxImageList *arg2 = (wxImageList *) 0 ; |
14792 | PyObject * obj0 = 0 ; | |
14793 | PyObject * obj1 = 0 ; | |
14794 | char *kwnames[] = { | |
14795 | (char *) "self",(char *) "imageList", NULL | |
14796 | }; | |
14797 | ||
8ac8dba0 RD |
14798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
14799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
14800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14803 | { | |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | (arg1)->SetImageList(arg2); | |
14806 | ||
14807 | wxPyEndAllowThreads(__tstate); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
14810 | Py_INCREF(Py_None); resultobj = Py_None; | |
14811 | return resultobj; | |
14812 | fail: | |
14813 | return NULL; | |
14814 | } | |
14815 | ||
14816 | ||
8ac8dba0 | 14817 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14818 | PyObject *resultobj; |
8ac8dba0 | 14819 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14820 | wxImageList *arg2 = (wxImageList *) 0 ; |
14821 | PyObject * obj0 = 0 ; | |
14822 | PyObject * obj1 = 0 ; | |
14823 | char *kwnames[] = { | |
14824 | (char *) "self",(char *) "imageList", NULL | |
14825 | }; | |
14826 | ||
8ac8dba0 RD |
14827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
14828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
14829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14831 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
14832 | { | |
14833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14834 | (arg1)->AssignImageList(arg2); | |
14835 | ||
14836 | wxPyEndAllowThreads(__tstate); | |
14837 | if (PyErr_Occurred()) SWIG_fail; | |
14838 | } | |
14839 | Py_INCREF(Py_None); resultobj = Py_None; | |
14840 | return resultobj; | |
14841 | fail: | |
14842 | return NULL; | |
14843 | } | |
14844 | ||
14845 | ||
8ac8dba0 | 14846 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14847 | PyObject *resultobj; |
8ac8dba0 | 14848 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14849 | wxImageList *result; |
14850 | PyObject * obj0 = 0 ; | |
14851 | char *kwnames[] = { | |
14852 | (char *) "self", NULL | |
14853 | }; | |
14854 | ||
8ac8dba0 RD |
14855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
14856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
14857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14858 | { | |
14859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14860 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d55e5bfc RD |
14861 | |
14862 | wxPyEndAllowThreads(__tstate); | |
14863 | if (PyErr_Occurred()) SWIG_fail; | |
14864 | } | |
14865 | { | |
412d302d | 14866 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14867 | } |
14868 | return resultobj; | |
14869 | fail: | |
14870 | return NULL; | |
14871 | } | |
14872 | ||
14873 | ||
8ac8dba0 | 14874 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14875 | PyObject *resultobj; |
8ac8dba0 | 14876 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14877 | size_t arg2 ; |
14878 | int result; | |
14879 | PyObject * obj0 = 0 ; | |
14880 | PyObject * obj1 = 0 ; | |
14881 | char *kwnames[] = { | |
14882 | (char *) "self",(char *) "n", NULL | |
14883 | }; | |
14884 | ||
8ac8dba0 RD |
14885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
14886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 14887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14888 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
14889 | if (PyErr_Occurred()) SWIG_fail; |
14890 | { | |
14891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14892 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d55e5bfc RD |
14893 | |
14894 | wxPyEndAllowThreads(__tstate); | |
14895 | if (PyErr_Occurred()) SWIG_fail; | |
14896 | } | |
c32bde28 | 14897 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14898 | return resultobj; |
14899 | fail: | |
14900 | return NULL; | |
14901 | } | |
14902 | ||
14903 | ||
8ac8dba0 | 14904 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14905 | PyObject *resultobj; |
8ac8dba0 | 14906 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14907 | size_t arg2 ; |
14908 | int arg3 ; | |
14909 | bool result; | |
14910 | PyObject * obj0 = 0 ; | |
14911 | PyObject * obj1 = 0 ; | |
14912 | PyObject * obj2 = 0 ; | |
14913 | char *kwnames[] = { | |
14914 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14915 | }; | |
14916 | ||
8ac8dba0 RD |
14917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 14919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14920 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 14921 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14922 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14923 | if (PyErr_Occurred()) SWIG_fail; |
14924 | { | |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14927 | ||
14928 | wxPyEndAllowThreads(__tstate); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
14931 | { | |
14932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14933 | } | |
14934 | return resultobj; | |
14935 | fail: | |
14936 | return NULL; | |
14937 | } | |
14938 | ||
14939 | ||
8ac8dba0 | 14940 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14941 | PyObject *resultobj; |
8ac8dba0 | 14942 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14943 | wxSize *arg2 = 0 ; |
14944 | wxSize temp2 ; | |
14945 | PyObject * obj0 = 0 ; | |
14946 | PyObject * obj1 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self",(char *) "size", NULL | |
14949 | }; | |
14950 | ||
8ac8dba0 RD |
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
14952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
14953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14954 | { | |
14955 | arg2 = &temp2; | |
14956 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14957 | } | |
14958 | { | |
14959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14960 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14961 | ||
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | Py_INCREF(Py_None); resultobj = Py_None; | |
14966 | return resultobj; | |
14967 | fail: | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
8ac8dba0 | 14972 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 14973 | PyObject *resultobj; |
8ac8dba0 | 14974 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
14975 | wxSize *arg2 = 0 ; |
14976 | wxSize result; | |
14977 | wxSize temp2 ; | |
14978 | PyObject * obj0 = 0 ; | |
14979 | PyObject * obj1 = 0 ; | |
14980 | char *kwnames[] = { | |
14981 | (char *) "self",(char *) "sizePage", NULL | |
14982 | }; | |
14983 | ||
8ac8dba0 RD |
14984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
14985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
14986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14987 | { | |
14988 | arg2 = &temp2; | |
14989 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14990 | } | |
14991 | { | |
14992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14993 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d55e5bfc RD |
14994 | |
14995 | wxPyEndAllowThreads(__tstate); | |
14996 | if (PyErr_Occurred()) SWIG_fail; | |
14997 | } | |
14998 | { | |
14999 | wxSize * resultptr; | |
15000 | resultptr = new wxSize((wxSize &) result); | |
15001 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15002 | } | |
15003 | return resultobj; | |
15004 | fail: | |
15005 | return NULL; | |
15006 | } | |
15007 | ||
15008 | ||
8ac8dba0 | 15009 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15010 | PyObject *resultobj; |
8ac8dba0 | 15011 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
15012 | size_t arg2 ; |
15013 | bool result; | |
15014 | PyObject * obj0 = 0 ; | |
15015 | PyObject * obj1 = 0 ; | |
15016 | char *kwnames[] = { | |
15017 | (char *) "self",(char *) "n", NULL | |
15018 | }; | |
15019 | ||
8ac8dba0 RD |
15020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
15021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 15022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15023 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
15024 | if (PyErr_Occurred()) SWIG_fail; |
15025 | { | |
15026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15027 | result = (bool)(arg1)->DeletePage(arg2); | |
15028 | ||
15029 | wxPyEndAllowThreads(__tstate); | |
15030 | if (PyErr_Occurred()) SWIG_fail; | |
15031 | } | |
15032 | { | |
15033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15034 | } | |
15035 | return resultobj; | |
15036 | fail: | |
15037 | return NULL; | |
15038 | } | |
15039 | ||
15040 | ||
8ac8dba0 | 15041 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15042 | PyObject *resultobj; |
8ac8dba0 | 15043 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
15044 | size_t arg2 ; |
15045 | bool result; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | PyObject * obj1 = 0 ; | |
15048 | char *kwnames[] = { | |
15049 | (char *) "self",(char *) "n", NULL | |
15050 | }; | |
15051 | ||
8ac8dba0 RD |
15052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
15053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 15054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15055 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
15056 | if (PyErr_Occurred()) SWIG_fail; |
15057 | { | |
15058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15059 | result = (bool)(arg1)->RemovePage(arg2); | |
15060 | ||
15061 | wxPyEndAllowThreads(__tstate); | |
15062 | if (PyErr_Occurred()) SWIG_fail; | |
15063 | } | |
15064 | { | |
15065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15066 | } | |
15067 | return resultobj; | |
15068 | fail: | |
15069 | return NULL; | |
15070 | } | |
15071 | ||
15072 | ||
8ac8dba0 | 15073 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15074 | PyObject *resultobj; |
8ac8dba0 | 15075 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
15076 | bool result; |
15077 | PyObject * obj0 = 0 ; | |
15078 | char *kwnames[] = { | |
15079 | (char *) "self", NULL | |
15080 | }; | |
15081 | ||
8ac8dba0 RD |
15082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
15083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
15084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
15085 | { | |
15086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15087 | result = (bool)(arg1)->DeleteAllPages(); | |
15088 | ||
15089 | wxPyEndAllowThreads(__tstate); | |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
15091 | } | |
15092 | { | |
15093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15094 | } | |
15095 | return resultobj; | |
15096 | fail: | |
15097 | return NULL; | |
15098 | } | |
15099 | ||
15100 | ||
8ac8dba0 | 15101 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15102 | PyObject *resultobj; |
8ac8dba0 | 15103 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
15104 | wxWindow *arg2 = (wxWindow *) 0 ; |
15105 | wxString *arg3 = 0 ; | |
ae8162c8 | 15106 | bool arg4 = (bool) false ; |
d55e5bfc RD |
15107 | int arg5 = (int) -1 ; |
15108 | bool result; | |
ae8162c8 | 15109 | bool temp3 = false ; |
d55e5bfc RD |
15110 | PyObject * obj0 = 0 ; |
15111 | PyObject * obj1 = 0 ; | |
15112 | PyObject * obj2 = 0 ; | |
15113 | PyObject * obj3 = 0 ; | |
15114 | PyObject * obj4 = 0 ; | |
15115 | char *kwnames[] = { | |
15116 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
15117 | }; | |
15118 | ||
8ac8dba0 RD |
15119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
15121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
15122 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15124 | { | |
15125 | arg3 = wxString_in_helper(obj2); | |
15126 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15127 | temp3 = true; |
d55e5bfc RD |
15128 | } |
15129 | if (obj3) { | |
c32bde28 | 15130 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
15131 | if (PyErr_Occurred()) SWIG_fail; |
15132 | } | |
15133 | if (obj4) { | |
c32bde28 | 15134 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
15135 | if (PyErr_Occurred()) SWIG_fail; |
15136 | } | |
15137 | { | |
15138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15139 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
15140 | ||
15141 | wxPyEndAllowThreads(__tstate); | |
15142 | if (PyErr_Occurred()) SWIG_fail; | |
15143 | } | |
15144 | { | |
15145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15146 | } | |
15147 | { | |
15148 | if (temp3) | |
15149 | delete arg3; | |
15150 | } | |
15151 | return resultobj; | |
15152 | fail: | |
15153 | { | |
15154 | if (temp3) | |
15155 | delete arg3; | |
15156 | } | |
15157 | return NULL; | |
15158 | } | |
15159 | ||
15160 | ||
8ac8dba0 | 15161 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15162 | PyObject *resultobj; |
8ac8dba0 | 15163 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
15164 | size_t arg2 ; |
15165 | wxWindow *arg3 = (wxWindow *) 0 ; | |
15166 | wxString *arg4 = 0 ; | |
ae8162c8 | 15167 | bool arg5 = (bool) false ; |
d55e5bfc RD |
15168 | int arg6 = (int) -1 ; |
15169 | bool result; | |
ae8162c8 | 15170 | bool temp4 = false ; |
d55e5bfc RD |
15171 | PyObject * obj0 = 0 ; |
15172 | PyObject * obj1 = 0 ; | |
15173 | PyObject * obj2 = 0 ; | |
15174 | PyObject * obj3 = 0 ; | |
15175 | PyObject * obj4 = 0 ; | |
15176 | PyObject * obj5 = 0 ; | |
15177 | char *kwnames[] = { | |
15178 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
15179 | }; | |
15180 | ||
8ac8dba0 RD |
15181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 15183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15184 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
15185 | if (PyErr_Occurred()) SWIG_fail; |
15186 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
15187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15188 | { | |
15189 | arg4 = wxString_in_helper(obj3); | |
15190 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 15191 | temp4 = true; |
d55e5bfc RD |
15192 | } |
15193 | if (obj4) { | |
c32bde28 | 15194 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
15195 | if (PyErr_Occurred()) SWIG_fail; |
15196 | } | |
15197 | if (obj5) { | |
c32bde28 | 15198 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
15199 | if (PyErr_Occurred()) SWIG_fail; |
15200 | } | |
15201 | { | |
15202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15203 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
15204 | ||
15205 | wxPyEndAllowThreads(__tstate); | |
15206 | if (PyErr_Occurred()) SWIG_fail; | |
15207 | } | |
15208 | { | |
15209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15210 | } | |
15211 | { | |
15212 | if (temp4) | |
15213 | delete arg4; | |
15214 | } | |
15215 | return resultobj; | |
15216 | fail: | |
15217 | { | |
15218 | if (temp4) | |
15219 | delete arg4; | |
15220 | } | |
15221 | return NULL; | |
15222 | } | |
15223 | ||
15224 | ||
8ac8dba0 | 15225 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15226 | PyObject *resultobj; |
8ac8dba0 | 15227 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
15228 | size_t arg2 ; |
15229 | int result; | |
15230 | PyObject * obj0 = 0 ; | |
15231 | PyObject * obj1 = 0 ; | |
15232 | char *kwnames[] = { | |
15233 | (char *) "self",(char *) "n", NULL | |
15234 | }; | |
15235 | ||
8ac8dba0 RD |
15236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc | 15238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15239 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
15240 | if (PyErr_Occurred()) SWIG_fail; |
15241 | { | |
15242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15243 | result = (int)(arg1)->SetSelection(arg2); | |
15244 | ||
15245 | wxPyEndAllowThreads(__tstate); | |
15246 | if (PyErr_Occurred()) SWIG_fail; | |
15247 | } | |
c32bde28 | 15248 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15249 | return resultobj; |
15250 | fail: | |
15251 | return NULL; | |
15252 | } | |
15253 | ||
15254 | ||
8ac8dba0 | 15255 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15256 | PyObject *resultobj; |
8ac8dba0 | 15257 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
ae8162c8 | 15258 | bool arg2 = (bool) true ; |
d55e5bfc RD |
15259 | PyObject * obj0 = 0 ; |
15260 | PyObject * obj1 = 0 ; | |
15261 | char *kwnames[] = { | |
15262 | (char *) "self",(char *) "forward", NULL | |
15263 | }; | |
15264 | ||
8ac8dba0 RD |
15265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
15266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
d55e5bfc RD |
15267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
15268 | if (obj1) { | |
c32bde28 | 15269 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15270 | if (PyErr_Occurred()) SWIG_fail; |
15271 | } | |
15272 | { | |
15273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15274 | (arg1)->AdvanceSelection(arg2); | |
15275 | ||
15276 | wxPyEndAllowThreads(__tstate); | |
15277 | if (PyErr_Occurred()) SWIG_fail; | |
15278 | } | |
15279 | Py_INCREF(Py_None); resultobj = Py_None; | |
15280 | return resultobj; | |
15281 | fail: | |
15282 | return NULL; | |
15283 | } | |
15284 | ||
15285 | ||
8ac8dba0 | 15286 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
15287 | PyObject *resultobj; |
15288 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15289 | wxVisualAttributes result; | |
15290 | PyObject * obj0 = 0 ; | |
15291 | char *kwnames[] = { | |
15292 | (char *) "variant", NULL | |
15293 | }; | |
15294 | ||
8ac8dba0 | 15295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
f20a2e1f | 15296 | if (obj0) { |
c32bde28 | 15297 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
15298 | if (PyErr_Occurred()) SWIG_fail; |
15299 | } | |
15300 | { | |
19272049 | 15301 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f | 15302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8ac8dba0 | 15303 | result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1); |
f20a2e1f RD |
15304 | |
15305 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15306 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15307 | } |
15308 | { | |
15309 | wxVisualAttributes * resultptr; | |
15310 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15311 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15312 | } | |
15313 | return resultobj; | |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
8ac8dba0 | 15319 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15320 | PyObject *obj; |
15321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 15322 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d55e5bfc RD |
15323 | Py_INCREF(obj); |
15324 | return Py_BuildValue((char *)""); | |
15325 | } | |
8ac8dba0 | 15326 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15327 | PyObject *resultobj; |
15328 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15329 | int arg2 = (int) 0 ; | |
15330 | int arg3 = (int) -1 ; | |
15331 | int arg4 = (int) -1 ; | |
8ac8dba0 | 15332 | wxBookCtrlBaseEvent *result; |
d55e5bfc RD |
15333 | PyObject * obj0 = 0 ; |
15334 | PyObject * obj1 = 0 ; | |
15335 | PyObject * obj2 = 0 ; | |
15336 | PyObject * obj3 = 0 ; | |
15337 | char *kwnames[] = { | |
15338 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15339 | }; | |
15340 | ||
8ac8dba0 | 15341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc | 15342 | if (obj0) { |
c32bde28 | 15343 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15344 | if (PyErr_Occurred()) SWIG_fail; |
15345 | } | |
15346 | if (obj1) { | |
c32bde28 | 15347 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15348 | if (PyErr_Occurred()) SWIG_fail; |
15349 | } | |
15350 | if (obj2) { | |
c32bde28 | 15351 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15352 | if (PyErr_Occurred()) SWIG_fail; |
15353 | } | |
15354 | if (obj3) { | |
c32bde28 | 15355 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
15356 | if (PyErr_Occurred()) SWIG_fail; |
15357 | } | |
15358 | { | |
15359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 15360 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
15361 | |
15362 | wxPyEndAllowThreads(__tstate); | |
15363 | if (PyErr_Occurred()) SWIG_fail; | |
15364 | } | |
8ac8dba0 | 15365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d55e5bfc RD |
15366 | return resultobj; |
15367 | fail: | |
15368 | return NULL; | |
15369 | } | |
15370 | ||
15371 | ||
8ac8dba0 | 15372 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15373 | PyObject *resultobj; |
8ac8dba0 | 15374 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
15375 | int result; |
15376 | PyObject * obj0 = 0 ; | |
15377 | char *kwnames[] = { | |
15378 | (char *) "self", NULL | |
15379 | }; | |
15380 | ||
8ac8dba0 RD |
15381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
15382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
d55e5bfc RD |
15383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
15384 | { | |
15385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 15386 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d55e5bfc RD |
15387 | |
15388 | wxPyEndAllowThreads(__tstate); | |
15389 | if (PyErr_Occurred()) SWIG_fail; | |
15390 | } | |
c32bde28 | 15391 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15392 | return resultobj; |
15393 | fail: | |
15394 | return NULL; | |
15395 | } | |
15396 | ||
15397 | ||
8ac8dba0 | 15398 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15399 | PyObject *resultobj; |
8ac8dba0 | 15400 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
15401 | int arg2 ; |
15402 | PyObject * obj0 = 0 ; | |
15403 | PyObject * obj1 = 0 ; | |
15404 | char *kwnames[] = { | |
15405 | (char *) "self",(char *) "nSel", NULL | |
15406 | }; | |
15407 | ||
8ac8dba0 RD |
15408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
d55e5bfc | 15410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15411 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15412 | if (PyErr_Occurred()) SWIG_fail; |
15413 | { | |
15414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15415 | (arg1)->SetSelection(arg2); | |
15416 | ||
15417 | wxPyEndAllowThreads(__tstate); | |
15418 | if (PyErr_Occurred()) SWIG_fail; | |
15419 | } | |
15420 | Py_INCREF(Py_None); resultobj = Py_None; | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
8ac8dba0 | 15427 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15428 | PyObject *resultobj; |
8ac8dba0 | 15429 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
15430 | int result; |
15431 | PyObject * obj0 = 0 ; | |
15432 | char *kwnames[] = { | |
15433 | (char *) "self", NULL | |
15434 | }; | |
15435 | ||
8ac8dba0 RD |
15436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
15437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
d55e5bfc RD |
15438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
15439 | { | |
15440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 15441 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d55e5bfc RD |
15442 | |
15443 | wxPyEndAllowThreads(__tstate); | |
15444 | if (PyErr_Occurred()) SWIG_fail; | |
15445 | } | |
c32bde28 | 15446 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15447 | return resultobj; |
15448 | fail: | |
15449 | return NULL; | |
15450 | } | |
15451 | ||
15452 | ||
8ac8dba0 | 15453 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15454 | PyObject *resultobj; |
8ac8dba0 | 15455 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
15456 | int arg2 ; |
15457 | PyObject * obj0 = 0 ; | |
15458 | PyObject * obj1 = 0 ; | |
15459 | char *kwnames[] = { | |
15460 | (char *) "self",(char *) "nOldSel", NULL | |
15461 | }; | |
15462 | ||
8ac8dba0 RD |
15463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
d55e5bfc | 15465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15466 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15467 | if (PyErr_Occurred()) SWIG_fail; |
15468 | { | |
15469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15470 | (arg1)->SetOldSelection(arg2); | |
15471 | ||
15472 | wxPyEndAllowThreads(__tstate); | |
15473 | if (PyErr_Occurred()) SWIG_fail; | |
15474 | } | |
15475 | Py_INCREF(Py_None); resultobj = Py_None; | |
15476 | return resultobj; | |
15477 | fail: | |
15478 | return NULL; | |
15479 | } | |
15480 | ||
15481 | ||
8ac8dba0 | 15482 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15483 | PyObject *obj; |
15484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 15485 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d55e5bfc RD |
15486 | Py_INCREF(obj); |
15487 | return Py_BuildValue((char *)""); | |
15488 | } | |
c32bde28 | 15489 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15490 | PyObject *resultobj; |
15491 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15492 | int arg2 = (int) -1 ; | |
15493 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15494 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15495 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15496 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15497 | long arg5 = (long) 0 ; | |
15498 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
15499 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15500 | wxNotebook *result; | |
15501 | wxPoint temp3 ; | |
15502 | wxSize temp4 ; | |
ae8162c8 | 15503 | bool temp6 = false ; |
d55e5bfc RD |
15504 | PyObject * obj0 = 0 ; |
15505 | PyObject * obj1 = 0 ; | |
15506 | PyObject * obj2 = 0 ; | |
15507 | PyObject * obj3 = 0 ; | |
15508 | PyObject * obj4 = 0 ; | |
15509 | PyObject * obj5 = 0 ; | |
15510 | char *kwnames[] = { | |
15511 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15512 | }; | |
15513 | ||
15514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15517 | if (obj1) { | |
c32bde28 | 15518 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15519 | if (PyErr_Occurred()) SWIG_fail; |
15520 | } | |
15521 | if (obj2) { | |
15522 | { | |
15523 | arg3 = &temp3; | |
15524 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15525 | } | |
15526 | } | |
15527 | if (obj3) { | |
15528 | { | |
15529 | arg4 = &temp4; | |
15530 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15531 | } | |
15532 | } | |
15533 | if (obj4) { | |
c32bde28 | 15534 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
15535 | if (PyErr_Occurred()) SWIG_fail; |
15536 | } | |
15537 | if (obj5) { | |
15538 | { | |
15539 | arg6 = wxString_in_helper(obj5); | |
15540 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 15541 | temp6 = true; |
d55e5bfc RD |
15542 | } |
15543 | } | |
15544 | { | |
0439c23b | 15545 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15547 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15548 | ||
15549 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15550 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15551 | } |
b0f7404b | 15552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
15553 | { |
15554 | if (temp6) | |
15555 | delete arg6; | |
15556 | } | |
15557 | return resultobj; | |
15558 | fail: | |
15559 | { | |
15560 | if (temp6) | |
15561 | delete arg6; | |
15562 | } | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
c32bde28 | 15567 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15568 | PyObject *resultobj; |
15569 | wxNotebook *result; | |
15570 | char *kwnames[] = { | |
15571 | NULL | |
15572 | }; | |
15573 | ||
15574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15575 | { | |
0439c23b | 15576 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15578 | result = (wxNotebook *)new wxNotebook(); | |
15579 | ||
15580 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15581 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15582 | } |
b0f7404b | 15583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
15584 | return resultobj; |
15585 | fail: | |
15586 | return NULL; | |
15587 | } | |
15588 | ||
15589 | ||
c32bde28 | 15590 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15591 | PyObject *resultobj; |
15592 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15593 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15594 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15595 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15596 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15597 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15598 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15599 | long arg6 = (long) 0 ; | |
15600 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15601 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15602 | bool result; | |
15603 | wxPoint temp4 ; | |
15604 | wxSize temp5 ; | |
ae8162c8 | 15605 | bool temp7 = false ; |
d55e5bfc RD |
15606 | PyObject * obj0 = 0 ; |
15607 | PyObject * obj1 = 0 ; | |
15608 | PyObject * obj2 = 0 ; | |
15609 | PyObject * obj3 = 0 ; | |
15610 | PyObject * obj4 = 0 ; | |
15611 | PyObject * obj5 = 0 ; | |
15612 | PyObject * obj6 = 0 ; | |
15613 | char *kwnames[] = { | |
15614 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15615 | }; | |
15616 | ||
248ed943 | 15617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 15622 | if (obj2) { |
c32bde28 | 15623 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
15624 | if (PyErr_Occurred()) SWIG_fail; |
15625 | } | |
d55e5bfc RD |
15626 | if (obj3) { |
15627 | { | |
15628 | arg4 = &temp4; | |
15629 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15630 | } | |
15631 | } | |
15632 | if (obj4) { | |
15633 | { | |
15634 | arg5 = &temp5; | |
15635 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15636 | } | |
15637 | } | |
15638 | if (obj5) { | |
c32bde28 | 15639 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
15640 | if (PyErr_Occurred()) SWIG_fail; |
15641 | } | |
15642 | if (obj6) { | |
15643 | { | |
15644 | arg7 = wxString_in_helper(obj6); | |
15645 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 15646 | temp7 = true; |
d55e5bfc RD |
15647 | } |
15648 | } | |
15649 | { | |
15650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15651 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15652 | ||
15653 | wxPyEndAllowThreads(__tstate); | |
15654 | if (PyErr_Occurred()) SWIG_fail; | |
15655 | } | |
15656 | { | |
15657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15658 | } | |
15659 | { | |
15660 | if (temp7) | |
15661 | delete arg7; | |
15662 | } | |
15663 | return resultobj; | |
15664 | fail: | |
15665 | { | |
15666 | if (temp7) | |
15667 | delete arg7; | |
15668 | } | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
c32bde28 | 15673 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15674 | PyObject *resultobj; |
15675 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15676 | int result; | |
15677 | PyObject * obj0 = 0 ; | |
15678 | char *kwnames[] = { | |
15679 | (char *) "self", NULL | |
15680 | }; | |
15681 | ||
15682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15685 | { | |
15686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15687 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15688 | ||
15689 | wxPyEndAllowThreads(__tstate); | |
15690 | if (PyErr_Occurred()) SWIG_fail; | |
15691 | } | |
c32bde28 | 15692 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15693 | return resultobj; |
15694 | fail: | |
15695 | return NULL; | |
15696 | } | |
15697 | ||
15698 | ||
c32bde28 | 15699 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15700 | PyObject *resultobj; |
15701 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15702 | wxSize *arg2 = 0 ; | |
15703 | wxSize temp2 ; | |
15704 | PyObject * obj0 = 0 ; | |
15705 | PyObject * obj1 = 0 ; | |
15706 | char *kwnames[] = { | |
15707 | (char *) "self",(char *) "padding", NULL | |
15708 | }; | |
15709 | ||
15710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15713 | { | |
15714 | arg2 = &temp2; | |
15715 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15716 | } | |
15717 | { | |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15719 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15720 | ||
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | Py_INCREF(Py_None); resultobj = Py_None; | |
15725 | return resultobj; | |
15726 | fail: | |
15727 | return NULL; | |
15728 | } | |
15729 | ||
15730 | ||
c32bde28 | 15731 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15732 | PyObject *resultobj; |
15733 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15734 | wxSize *arg2 = 0 ; | |
15735 | wxSize temp2 ; | |
15736 | PyObject * obj0 = 0 ; | |
15737 | PyObject * obj1 = 0 ; | |
15738 | char *kwnames[] = { | |
15739 | (char *) "self",(char *) "sz", NULL | |
15740 | }; | |
15741 | ||
15742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15745 | { | |
15746 | arg2 = &temp2; | |
15747 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15748 | } | |
15749 | { | |
15750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15751 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15752 | ||
15753 | wxPyEndAllowThreads(__tstate); | |
15754 | if (PyErr_Occurred()) SWIG_fail; | |
15755 | } | |
15756 | Py_INCREF(Py_None); resultobj = Py_None; | |
15757 | return resultobj; | |
15758 | fail: | |
15759 | return NULL; | |
15760 | } | |
15761 | ||
15762 | ||
c32bde28 | 15763 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15764 | PyObject *resultobj; |
15765 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15766 | wxPoint *arg2 = 0 ; | |
15767 | long *arg3 = (long *) 0 ; | |
15768 | int result; | |
15769 | wxPoint temp2 ; | |
15770 | long temp3 ; | |
c32bde28 | 15771 | int res3 = 0 ; |
d55e5bfc RD |
15772 | PyObject * obj0 = 0 ; |
15773 | PyObject * obj1 = 0 ; | |
15774 | char *kwnames[] = { | |
15775 | (char *) "self",(char *) "pt", NULL | |
15776 | }; | |
15777 | ||
c32bde28 | 15778 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
15779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15782 | { | |
15783 | arg2 = &temp2; | |
15784 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15785 | } | |
15786 | { | |
15787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15788 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15789 | ||
15790 | wxPyEndAllowThreads(__tstate); | |
15791 | if (PyErr_Occurred()) SWIG_fail; | |
15792 | } | |
c32bde28 RD |
15793 | resultobj = SWIG_From_int((int)result); |
15794 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15795 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
15796 | return resultobj; |
15797 | fail: | |
15798 | return NULL; | |
15799 | } | |
15800 | ||
15801 | ||
c32bde28 | 15802 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15803 | PyObject *resultobj; |
15804 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15805 | wxSize *arg2 = 0 ; | |
15806 | wxSize result; | |
15807 | wxSize temp2 ; | |
15808 | PyObject * obj0 = 0 ; | |
15809 | PyObject * obj1 = 0 ; | |
15810 | char *kwnames[] = { | |
15811 | (char *) "self",(char *) "sizePage", NULL | |
15812 | }; | |
15813 | ||
15814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15817 | { | |
15818 | arg2 = &temp2; | |
15819 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15820 | } | |
15821 | { | |
15822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15823 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15824 | ||
15825 | wxPyEndAllowThreads(__tstate); | |
15826 | if (PyErr_Occurred()) SWIG_fail; | |
15827 | } | |
15828 | { | |
15829 | wxSize * resultptr; | |
15830 | resultptr = new wxSize((wxSize &) result); | |
15831 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15832 | } | |
15833 | return resultobj; | |
15834 | fail: | |
15835 | return NULL; | |
15836 | } | |
15837 | ||
15838 | ||
c32bde28 | 15839 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
15840 | PyObject *resultobj; |
15841 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15842 | wxVisualAttributes result; | |
15843 | PyObject * obj0 = 0 ; | |
15844 | char *kwnames[] = { | |
15845 | (char *) "variant", NULL | |
15846 | }; | |
15847 | ||
15848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15849 | if (obj0) { | |
c32bde28 | 15850 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
15851 | if (PyErr_Occurred()) SWIG_fail; |
15852 | } | |
15853 | { | |
19272049 | 15854 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
15855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15856 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15857 | ||
15858 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15859 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15860 | } |
15861 | { | |
15862 | wxVisualAttributes * resultptr; | |
15863 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15864 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15865 | } | |
15866 | return resultobj; | |
15867 | fail: | |
15868 | return NULL; | |
15869 | } | |
15870 | ||
15871 | ||
c32bde28 | 15872 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15873 | PyObject *obj; |
15874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15875 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15876 | Py_INCREF(obj); | |
15877 | return Py_BuildValue((char *)""); | |
15878 | } | |
c32bde28 | 15879 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15880 | PyObject *resultobj; |
15881 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15882 | int arg2 = (int) 0 ; | |
15883 | int arg3 = (int) -1 ; | |
15884 | int arg4 = (int) -1 ; | |
15885 | wxNotebookEvent *result; | |
15886 | PyObject * obj0 = 0 ; | |
15887 | PyObject * obj1 = 0 ; | |
15888 | PyObject * obj2 = 0 ; | |
15889 | PyObject * obj3 = 0 ; | |
15890 | char *kwnames[] = { | |
15891 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15892 | }; | |
15893 | ||
15894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15895 | if (obj0) { | |
c32bde28 | 15896 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15897 | if (PyErr_Occurred()) SWIG_fail; |
15898 | } | |
15899 | if (obj1) { | |
c32bde28 | 15900 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15901 | if (PyErr_Occurred()) SWIG_fail; |
15902 | } | |
15903 | if (obj2) { | |
c32bde28 | 15904 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
15905 | if (PyErr_Occurred()) SWIG_fail; |
15906 | } | |
15907 | if (obj3) { | |
c32bde28 | 15908 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
15909 | if (PyErr_Occurred()) SWIG_fail; |
15910 | } | |
15911 | { | |
15912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15913 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15914 | ||
15915 | wxPyEndAllowThreads(__tstate); | |
15916 | if (PyErr_Occurred()) SWIG_fail; | |
15917 | } | |
15918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
15919 | return resultobj; | |
15920 | fail: | |
15921 | return NULL; | |
15922 | } | |
15923 | ||
15924 | ||
c32bde28 | 15925 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15926 | PyObject *obj; |
15927 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15928 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15929 | Py_INCREF(obj); | |
15930 | return Py_BuildValue((char *)""); | |
15931 | } | |
c32bde28 | 15932 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15933 | PyObject *resultobj; |
15934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15935 | int arg2 = (int) -1 ; | |
15936 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15937 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15938 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15939 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15940 | long arg5 = (long) 0 ; | |
15941 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15942 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15943 | wxListbook *result; | |
15944 | wxPoint temp3 ; | |
15945 | wxSize temp4 ; | |
ae8162c8 | 15946 | bool temp6 = false ; |
d55e5bfc RD |
15947 | PyObject * obj0 = 0 ; |
15948 | PyObject * obj1 = 0 ; | |
15949 | PyObject * obj2 = 0 ; | |
15950 | PyObject * obj3 = 0 ; | |
15951 | PyObject * obj4 = 0 ; | |
15952 | PyObject * obj5 = 0 ; | |
15953 | char *kwnames[] = { | |
15954 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15955 | }; | |
15956 | ||
15957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15960 | if (obj1) { | |
c32bde28 | 15961 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15962 | if (PyErr_Occurred()) SWIG_fail; |
15963 | } | |
15964 | if (obj2) { | |
15965 | { | |
15966 | arg3 = &temp3; | |
15967 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15968 | } | |
15969 | } | |
15970 | if (obj3) { | |
15971 | { | |
15972 | arg4 = &temp4; | |
15973 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15974 | } | |
15975 | } | |
15976 | if (obj4) { | |
c32bde28 | 15977 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
15978 | if (PyErr_Occurred()) SWIG_fail; |
15979 | } | |
15980 | if (obj5) { | |
15981 | { | |
15982 | arg6 = wxString_in_helper(obj5); | |
15983 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 15984 | temp6 = true; |
d55e5bfc RD |
15985 | } |
15986 | } | |
15987 | { | |
0439c23b | 15988 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15990 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15991 | ||
15992 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15993 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15994 | } |
15995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15996 | { | |
15997 | if (temp6) | |
15998 | delete arg6; | |
15999 | } | |
16000 | return resultobj; | |
16001 | fail: | |
16002 | { | |
16003 | if (temp6) | |
16004 | delete arg6; | |
16005 | } | |
16006 | return NULL; | |
16007 | } | |
16008 | ||
16009 | ||
c32bde28 | 16010 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16011 | PyObject *resultobj; |
16012 | wxListbook *result; | |
16013 | char *kwnames[] = { | |
16014 | NULL | |
16015 | }; | |
16016 | ||
16017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
16018 | { | |
0439c23b | 16019 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16021 | result = (wxListbook *)new wxListbook(); | |
16022 | ||
16023 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16024 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16025 | } |
16026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
16027 | return resultobj; | |
16028 | fail: | |
16029 | return NULL; | |
16030 | } | |
16031 | ||
16032 | ||
c32bde28 | 16033 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16034 | PyObject *resultobj; |
16035 | wxListbook *arg1 = (wxListbook *) 0 ; | |
16036 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 16037 | int arg3 = (int) -1 ; |
d55e5bfc RD |
16038 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
16039 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16040 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16041 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16042 | long arg6 = (long) 0 ; | |
16043 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16044 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16045 | bool result; | |
16046 | wxPoint temp4 ; | |
16047 | wxSize temp5 ; | |
ae8162c8 | 16048 | bool temp7 = false ; |
d55e5bfc RD |
16049 | PyObject * obj0 = 0 ; |
16050 | PyObject * obj1 = 0 ; | |
16051 | PyObject * obj2 = 0 ; | |
16052 | PyObject * obj3 = 0 ; | |
16053 | PyObject * obj4 = 0 ; | |
16054 | PyObject * obj5 = 0 ; | |
16055 | PyObject * obj6 = 0 ; | |
16056 | char *kwnames[] = { | |
16057 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16058 | }; | |
16059 | ||
248ed943 | 16060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
16061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
16062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 16065 | if (obj2) { |
c32bde28 | 16066 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
16067 | if (PyErr_Occurred()) SWIG_fail; |
16068 | } | |
d55e5bfc RD |
16069 | if (obj3) { |
16070 | { | |
16071 | arg4 = &temp4; | |
16072 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
16073 | } | |
16074 | } | |
16075 | if (obj4) { | |
16076 | { | |
16077 | arg5 = &temp5; | |
16078 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16079 | } | |
16080 | } | |
16081 | if (obj5) { | |
c32bde28 | 16082 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
16083 | if (PyErr_Occurred()) SWIG_fail; |
16084 | } | |
16085 | if (obj6) { | |
16086 | { | |
16087 | arg7 = wxString_in_helper(obj6); | |
16088 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 16089 | temp7 = true; |
d55e5bfc RD |
16090 | } |
16091 | } | |
16092 | { | |
16093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16094 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
16095 | ||
16096 | wxPyEndAllowThreads(__tstate); | |
16097 | if (PyErr_Occurred()) SWIG_fail; | |
16098 | } | |
16099 | { | |
16100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16101 | } | |
16102 | { | |
16103 | if (temp7) | |
16104 | delete arg7; | |
16105 | } | |
16106 | return resultobj; | |
16107 | fail: | |
16108 | { | |
16109 | if (temp7) | |
16110 | delete arg7; | |
16111 | } | |
16112 | return NULL; | |
16113 | } | |
16114 | ||
16115 | ||
c32bde28 | 16116 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16117 | PyObject *resultobj; |
16118 | wxListbook *arg1 = (wxListbook *) 0 ; | |
16119 | bool result; | |
16120 | PyObject * obj0 = 0 ; | |
16121 | char *kwnames[] = { | |
16122 | (char *) "self", NULL | |
16123 | }; | |
16124 | ||
16125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
16126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
16127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16128 | { | |
16129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16130 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
16131 | ||
16132 | wxPyEndAllowThreads(__tstate); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | } | |
16135 | { | |
16136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16137 | } | |
16138 | return resultobj; | |
16139 | fail: | |
16140 | return NULL; | |
16141 | } | |
16142 | ||
16143 | ||
1fbf26be RD |
16144 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
16145 | PyObject *resultobj; | |
16146 | wxListbook *arg1 = (wxListbook *) 0 ; | |
16147 | wxListView *result; | |
16148 | PyObject * obj0 = 0 ; | |
16149 | char *kwnames[] = { | |
16150 | (char *) "self", NULL | |
16151 | }; | |
16152 | ||
16153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
16154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
16155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16156 | { | |
16157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16158 | result = (wxListView *)(arg1)->GetListView(); | |
16159 | ||
16160 | wxPyEndAllowThreads(__tstate); | |
16161 | if (PyErr_Occurred()) SWIG_fail; | |
16162 | } | |
16163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
16164 | return resultobj; | |
16165 | fail: | |
16166 | return NULL; | |
16167 | } | |
16168 | ||
16169 | ||
c32bde28 | 16170 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16171 | PyObject *obj; |
16172 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16173 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
16174 | Py_INCREF(obj); | |
16175 | return Py_BuildValue((char *)""); | |
16176 | } | |
c32bde28 | 16177 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16178 | PyObject *resultobj; |
16179 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16180 | int arg2 = (int) 0 ; | |
16181 | int arg3 = (int) -1 ; | |
16182 | int arg4 = (int) -1 ; | |
16183 | wxListbookEvent *result; | |
16184 | PyObject * obj0 = 0 ; | |
16185 | PyObject * obj1 = 0 ; | |
16186 | PyObject * obj2 = 0 ; | |
16187 | PyObject * obj3 = 0 ; | |
16188 | char *kwnames[] = { | |
16189 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16190 | }; | |
16191 | ||
16192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16193 | if (obj0) { | |
c32bde28 | 16194 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
16195 | if (PyErr_Occurred()) SWIG_fail; |
16196 | } | |
16197 | if (obj1) { | |
c32bde28 | 16198 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16199 | if (PyErr_Occurred()) SWIG_fail; |
16200 | } | |
16201 | if (obj2) { | |
c32bde28 | 16202 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16203 | if (PyErr_Occurred()) SWIG_fail; |
16204 | } | |
16205 | if (obj3) { | |
c32bde28 | 16206 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
16207 | if (PyErr_Occurred()) SWIG_fail; |
16208 | } | |
16209 | { | |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16211 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
16212 | ||
16213 | wxPyEndAllowThreads(__tstate); | |
16214 | if (PyErr_Occurred()) SWIG_fail; | |
16215 | } | |
16216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
16217 | return resultobj; | |
16218 | fail: | |
16219 | return NULL; | |
16220 | } | |
16221 | ||
16222 | ||
c32bde28 | 16223 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16224 | PyObject *obj; |
16225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16226 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
16227 | Py_INCREF(obj); | |
16228 | return Py_BuildValue((char *)""); | |
16229 | } | |
ae8162c8 RD |
16230 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
16231 | PyObject *resultobj; | |
16232 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16233 | int arg2 ; | |
16234 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16235 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16236 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16237 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16238 | long arg5 = (long) 0 ; | |
16239 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
16240 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16241 | wxChoicebook *result; | |
16242 | wxPoint temp3 ; | |
16243 | wxSize temp4 ; | |
16244 | bool temp6 = false ; | |
16245 | PyObject * obj0 = 0 ; | |
16246 | PyObject * obj1 = 0 ; | |
16247 | PyObject * obj2 = 0 ; | |
16248 | PyObject * obj3 = 0 ; | |
16249 | PyObject * obj4 = 0 ; | |
16250 | PyObject * obj5 = 0 ; | |
16251 | char *kwnames[] = { | |
16252 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16253 | }; | |
16254 | ||
16255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16258 | arg2 = (int)SWIG_As_int(obj1); | |
16259 | if (PyErr_Occurred()) SWIG_fail; | |
16260 | if (obj2) { | |
16261 | { | |
16262 | arg3 = &temp3; | |
16263 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16264 | } | |
16265 | } | |
16266 | if (obj3) { | |
16267 | { | |
16268 | arg4 = &temp4; | |
16269 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16270 | } | |
16271 | } | |
16272 | if (obj4) { | |
16273 | arg5 = (long)SWIG_As_long(obj4); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
16276 | if (obj5) { | |
16277 | { | |
16278 | arg6 = wxString_in_helper(obj5); | |
16279 | if (arg6 == NULL) SWIG_fail; | |
16280 | temp6 = true; | |
16281 | } | |
16282 | } | |
16283 | { | |
16284 | if (!wxPyCheckForApp()) SWIG_fail; | |
16285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16286 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16287 | ||
16288 | wxPyEndAllowThreads(__tstate); | |
16289 | if (PyErr_Occurred()) SWIG_fail; | |
16290 | } | |
16291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
16292 | { | |
16293 | if (temp6) | |
16294 | delete arg6; | |
16295 | } | |
16296 | return resultobj; | |
16297 | fail: | |
16298 | { | |
16299 | if (temp6) | |
16300 | delete arg6; | |
16301 | } | |
16302 | return NULL; | |
16303 | } | |
16304 | ||
16305 | ||
16306 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
16307 | PyObject *resultobj; | |
16308 | wxChoicebook *result; | |
16309 | char *kwnames[] = { | |
16310 | NULL | |
16311 | }; | |
16312 | ||
16313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
16314 | { | |
16315 | if (!wxPyCheckForApp()) SWIG_fail; | |
16316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16317 | result = (wxChoicebook *)new wxChoicebook(); | |
16318 | ||
16319 | wxPyEndAllowThreads(__tstate); | |
16320 | if (PyErr_Occurred()) SWIG_fail; | |
16321 | } | |
16322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
16323 | return resultobj; | |
16324 | fail: | |
16325 | return NULL; | |
16326 | } | |
16327 | ||
16328 | ||
16329 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
16330 | PyObject *resultobj; | |
16331 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16332 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16333 | int arg3 ; | |
16334 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16335 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16336 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16337 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16338 | long arg6 = (long) 0 ; | |
16339 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16340 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16341 | bool result; | |
16342 | wxPoint temp4 ; | |
16343 | wxSize temp5 ; | |
16344 | bool temp7 = false ; | |
16345 | PyObject * obj0 = 0 ; | |
16346 | PyObject * obj1 = 0 ; | |
16347 | PyObject * obj2 = 0 ; | |
16348 | PyObject * obj3 = 0 ; | |
16349 | PyObject * obj4 = 0 ; | |
16350 | PyObject * obj5 = 0 ; | |
16351 | PyObject * obj6 = 0 ; | |
16352 | char *kwnames[] = { | |
16353 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16354 | }; | |
16355 | ||
16356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16361 | arg3 = (int)SWIG_As_int(obj2); | |
16362 | if (PyErr_Occurred()) SWIG_fail; | |
16363 | if (obj3) { | |
16364 | { | |
16365 | arg4 = &temp4; | |
16366 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
16367 | } | |
16368 | } | |
16369 | if (obj4) { | |
16370 | { | |
16371 | arg5 = &temp5; | |
16372 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16373 | } | |
16374 | } | |
16375 | if (obj5) { | |
16376 | arg6 = (long)SWIG_As_long(obj5); | |
16377 | if (PyErr_Occurred()) SWIG_fail; | |
16378 | } | |
16379 | if (obj6) { | |
16380 | { | |
16381 | arg7 = wxString_in_helper(obj6); | |
16382 | if (arg7 == NULL) SWIG_fail; | |
16383 | temp7 = true; | |
16384 | } | |
16385 | } | |
16386 | { | |
16387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16388 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
16389 | ||
16390 | wxPyEndAllowThreads(__tstate); | |
16391 | if (PyErr_Occurred()) SWIG_fail; | |
16392 | } | |
16393 | { | |
16394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16395 | } | |
16396 | { | |
16397 | if (temp7) | |
16398 | delete arg7; | |
16399 | } | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | { | |
16403 | if (temp7) | |
16404 | delete arg7; | |
16405 | } | |
16406 | return NULL; | |
16407 | } | |
16408 | ||
16409 | ||
16410 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
16411 | PyObject *resultobj; | |
16412 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16413 | bool result; | |
16414 | PyObject * obj0 = 0 ; | |
16415 | char *kwnames[] = { | |
16416 | (char *) "self", NULL | |
16417 | }; | |
16418 | ||
16419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
16420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16422 | { | |
16423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16424 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
16425 | ||
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
16429 | { | |
16430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16431 | } | |
16432 | return resultobj; | |
16433 | fail: | |
16434 | return NULL; | |
16435 | } | |
16436 | ||
16437 | ||
16438 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
16439 | PyObject *resultobj; | |
16440 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16441 | bool result; | |
16442 | PyObject * obj0 = 0 ; | |
16443 | char *kwnames[] = { | |
16444 | (char *) "self", NULL | |
16445 | }; | |
16446 | ||
16447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
16448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16450 | { | |
16451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16452 | result = (bool)(arg1)->DeleteAllPages(); | |
16453 | ||
16454 | wxPyEndAllowThreads(__tstate); | |
16455 | if (PyErr_Occurred()) SWIG_fail; | |
16456 | } | |
16457 | { | |
16458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16459 | } | |
16460 | return resultobj; | |
16461 | fail: | |
16462 | return NULL; | |
16463 | } | |
16464 | ||
16465 | ||
16466 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
16467 | PyObject *obj; | |
16468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16469 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
16470 | Py_INCREF(obj); | |
16471 | return Py_BuildValue((char *)""); | |
16472 | } | |
16473 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
16474 | PyObject *resultobj; | |
16475 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16476 | int arg2 = (int) 0 ; | |
16477 | int arg3 = (int) -1 ; | |
16478 | int arg4 = (int) -1 ; | |
16479 | wxChoicebookEvent *result; | |
16480 | PyObject * obj0 = 0 ; | |
16481 | PyObject * obj1 = 0 ; | |
16482 | PyObject * obj2 = 0 ; | |
16483 | PyObject * obj3 = 0 ; | |
16484 | char *kwnames[] = { | |
16485 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16486 | }; | |
16487 | ||
16488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16489 | if (obj0) { | |
16490 | arg1 = (wxEventType)SWIG_As_int(obj0); | |
16491 | if (PyErr_Occurred()) SWIG_fail; | |
16492 | } | |
16493 | if (obj1) { | |
16494 | arg2 = (int)SWIG_As_int(obj1); | |
16495 | if (PyErr_Occurred()) SWIG_fail; | |
16496 | } | |
16497 | if (obj2) { | |
16498 | arg3 = (int)SWIG_As_int(obj2); | |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | } | |
16501 | if (obj3) { | |
16502 | arg4 = (int)SWIG_As_int(obj3); | |
16503 | if (PyErr_Occurred()) SWIG_fail; | |
16504 | } | |
16505 | { | |
16506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16507 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
16508 | ||
16509 | wxPyEndAllowThreads(__tstate); | |
16510 | if (PyErr_Occurred()) SWIG_fail; | |
16511 | } | |
16512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
16513 | return resultobj; | |
16514 | fail: | |
16515 | return NULL; | |
16516 | } | |
16517 | ||
16518 | ||
16519 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
16520 | PyObject *obj; | |
16521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16522 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
16523 | Py_INCREF(obj); | |
16524 | return Py_BuildValue((char *)""); | |
16525 | } | |
c32bde28 | 16526 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16527 | PyObject *resultobj; |
8ac8dba0 | 16528 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16529 | wxBookCtrlSizer *result; |
16530 | PyObject * obj0 = 0 ; | |
16531 | char *kwnames[] = { | |
16532 | (char *) "nb", NULL | |
16533 | }; | |
16534 | ||
16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
8ac8dba0 | 16536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, |
d55e5bfc RD |
16537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
16538 | { | |
16539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16540 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
16541 | ||
16542 | wxPyEndAllowThreads(__tstate); | |
16543 | if (PyErr_Occurred()) SWIG_fail; | |
16544 | } | |
16545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
16546 | return resultobj; | |
16547 | fail: | |
16548 | return NULL; | |
16549 | } | |
16550 | ||
16551 | ||
c32bde28 | 16552 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16553 | PyObject *resultobj; |
16554 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
16555 | PyObject * obj0 = 0 ; | |
16556 | char *kwnames[] = { | |
16557 | (char *) "self", NULL | |
16558 | }; | |
16559 | ||
16560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
16561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
16562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16563 | { | |
16564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16565 | (arg1)->RecalcSizes(); | |
16566 | ||
16567 | wxPyEndAllowThreads(__tstate); | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | } | |
16570 | Py_INCREF(Py_None); resultobj = Py_None; | |
16571 | return resultobj; | |
16572 | fail: | |
16573 | return NULL; | |
16574 | } | |
16575 | ||
16576 | ||
c32bde28 | 16577 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16578 | PyObject *resultobj; |
16579 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
16580 | wxSize result; | |
16581 | PyObject * obj0 = 0 ; | |
16582 | char *kwnames[] = { | |
16583 | (char *) "self", NULL | |
16584 | }; | |
16585 | ||
16586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
16587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
16588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16589 | { | |
16590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16591 | result = (arg1)->CalcMin(); | |
16592 | ||
16593 | wxPyEndAllowThreads(__tstate); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | } | |
16596 | { | |
16597 | wxSize * resultptr; | |
16598 | resultptr = new wxSize((wxSize &) result); | |
16599 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16600 | } | |
16601 | return resultobj; | |
16602 | fail: | |
16603 | return NULL; | |
16604 | } | |
16605 | ||
16606 | ||
c32bde28 | 16607 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16608 | PyObject *resultobj; |
16609 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
8ac8dba0 | 16610 | wxBookCtrlBase *result; |
d55e5bfc RD |
16611 | PyObject * obj0 = 0 ; |
16612 | char *kwnames[] = { | |
16613 | (char *) "self", NULL | |
16614 | }; | |
16615 | ||
16616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
16617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
16618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16619 | { | |
16620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16621 | result = (wxBookCtrlBase *)(arg1)->GetControl(); |
d55e5bfc RD |
16622 | |
16623 | wxPyEndAllowThreads(__tstate); | |
16624 | if (PyErr_Occurred()) SWIG_fail; | |
16625 | } | |
8ac8dba0 | 16626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0); |
d55e5bfc RD |
16627 | return resultobj; |
16628 | fail: | |
16629 | return NULL; | |
16630 | } | |
16631 | ||
16632 | ||
c32bde28 | 16633 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16634 | PyObject *obj; |
16635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16636 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
16637 | Py_INCREF(obj); | |
16638 | return Py_BuildValue((char *)""); | |
16639 | } | |
c32bde28 | 16640 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16641 | PyObject *resultobj; |
16642 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
16643 | wxNotebookSizer *result; | |
16644 | PyObject * obj0 = 0 ; | |
16645 | char *kwnames[] = { | |
16646 | (char *) "nb", NULL | |
16647 | }; | |
16648 | ||
16649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
16650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
16651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16652 | { | |
16653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16654 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
16655 | ||
16656 | wxPyEndAllowThreads(__tstate); | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
16660 | return resultobj; | |
16661 | fail: | |
16662 | return NULL; | |
16663 | } | |
16664 | ||
16665 | ||
c32bde28 | 16666 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16667 | PyObject *resultobj; |
16668 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16669 | PyObject * obj0 = 0 ; | |
16670 | char *kwnames[] = { | |
16671 | (char *) "self", NULL | |
16672 | }; | |
16673 | ||
16674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
16675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
16676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16677 | { | |
16678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16679 | (arg1)->RecalcSizes(); | |
16680 | ||
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | Py_INCREF(Py_None); resultobj = Py_None; | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
c32bde28 | 16691 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16692 | PyObject *resultobj; |
16693 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16694 | wxSize result; | |
16695 | PyObject * obj0 = 0 ; | |
16696 | char *kwnames[] = { | |
16697 | (char *) "self", NULL | |
16698 | }; | |
16699 | ||
16700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
16701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
16702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16703 | { | |
16704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16705 | result = (arg1)->CalcMin(); | |
16706 | ||
16707 | wxPyEndAllowThreads(__tstate); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | { | |
16711 | wxSize * resultptr; | |
16712 | resultptr = new wxSize((wxSize &) result); | |
16713 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16714 | } | |
16715 | return resultobj; | |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
c32bde28 | 16721 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16722 | PyObject *resultobj; |
16723 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16724 | wxNotebook *result; | |
16725 | PyObject * obj0 = 0 ; | |
16726 | char *kwnames[] = { | |
16727 | (char *) "self", NULL | |
16728 | }; | |
16729 | ||
16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
16731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
16732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16733 | { | |
16734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16735 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
16736 | ||
16737 | wxPyEndAllowThreads(__tstate); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | } | |
16740 | { | |
412d302d | 16741 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16742 | } |
16743 | return resultobj; | |
16744 | fail: | |
16745 | return NULL; | |
16746 | } | |
16747 | ||
16748 | ||
c32bde28 | 16749 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16750 | PyObject *obj; |
16751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16752 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
16753 | Py_INCREF(obj); | |
16754 | return Py_BuildValue((char *)""); | |
16755 | } | |
c32bde28 | 16756 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16757 | PyObject *resultobj; |
16758 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16759 | int result; | |
16760 | PyObject * obj0 = 0 ; | |
16761 | char *kwnames[] = { | |
16762 | (char *) "self", NULL | |
16763 | }; | |
16764 | ||
16765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
16766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16768 | { | |
16769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16770 | result = (int)(arg1)->GetId(); | |
16771 | ||
16772 | wxPyEndAllowThreads(__tstate); | |
16773 | if (PyErr_Occurred()) SWIG_fail; | |
16774 | } | |
c32bde28 | 16775 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16776 | return resultobj; |
16777 | fail: | |
16778 | return NULL; | |
16779 | } | |
16780 | ||
16781 | ||
c32bde28 | 16782 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16783 | PyObject *resultobj; |
16784 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16785 | wxControl *result; | |
16786 | PyObject * obj0 = 0 ; | |
16787 | char *kwnames[] = { | |
16788 | (char *) "self", NULL | |
16789 | }; | |
16790 | ||
16791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
16792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16794 | { | |
16795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16796 | result = (wxControl *)(arg1)->GetControl(); | |
16797 | ||
16798 | wxPyEndAllowThreads(__tstate); | |
16799 | if (PyErr_Occurred()) SWIG_fail; | |
16800 | } | |
16801 | { | |
412d302d | 16802 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16803 | } |
16804 | return resultobj; | |
16805 | fail: | |
16806 | return NULL; | |
16807 | } | |
16808 | ||
16809 | ||
c32bde28 | 16810 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16811 | PyObject *resultobj; |
16812 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16813 | wxToolBarBase *result; | |
16814 | PyObject * obj0 = 0 ; | |
16815 | char *kwnames[] = { | |
16816 | (char *) "self", NULL | |
16817 | }; | |
16818 | ||
16819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
16820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16822 | { | |
16823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16824 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16825 | ||
16826 | wxPyEndAllowThreads(__tstate); | |
16827 | if (PyErr_Occurred()) SWIG_fail; | |
16828 | } | |
16829 | { | |
412d302d | 16830 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16831 | } |
16832 | return resultobj; | |
16833 | fail: | |
16834 | return NULL; | |
16835 | } | |
16836 | ||
16837 | ||
c32bde28 | 16838 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16839 | PyObject *resultobj; |
16840 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16841 | int result; | |
16842 | PyObject * obj0 = 0 ; | |
16843 | char *kwnames[] = { | |
16844 | (char *) "self", NULL | |
16845 | }; | |
16846 | ||
16847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
16848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16850 | { | |
16851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16852 | result = (int)(arg1)->IsButton(); | |
16853 | ||
16854 | wxPyEndAllowThreads(__tstate); | |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
16856 | } | |
c32bde28 | 16857 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16858 | return resultobj; |
16859 | fail: | |
16860 | return NULL; | |
16861 | } | |
16862 | ||
16863 | ||
c32bde28 | 16864 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16865 | PyObject *resultobj; |
16866 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16867 | int result; | |
16868 | PyObject * obj0 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "self", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
16874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16876 | { | |
16877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16878 | result = (int)(arg1)->IsControl(); | |
16879 | ||
16880 | wxPyEndAllowThreads(__tstate); | |
16881 | if (PyErr_Occurred()) SWIG_fail; | |
16882 | } | |
c32bde28 | 16883 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16884 | return resultobj; |
16885 | fail: | |
16886 | return NULL; | |
16887 | } | |
16888 | ||
16889 | ||
c32bde28 | 16890 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16891 | PyObject *resultobj; |
16892 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16893 | int result; | |
16894 | PyObject * obj0 = 0 ; | |
16895 | char *kwnames[] = { | |
16896 | (char *) "self", NULL | |
16897 | }; | |
16898 | ||
16899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
16900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16902 | { | |
16903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16904 | result = (int)(arg1)->IsSeparator(); | |
16905 | ||
16906 | wxPyEndAllowThreads(__tstate); | |
16907 | if (PyErr_Occurred()) SWIG_fail; | |
16908 | } | |
c32bde28 | 16909 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16910 | return resultobj; |
16911 | fail: | |
16912 | return NULL; | |
16913 | } | |
16914 | ||
16915 | ||
c32bde28 | 16916 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16917 | PyObject *resultobj; |
16918 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16919 | int result; | |
16920 | PyObject * obj0 = 0 ; | |
16921 | char *kwnames[] = { | |
16922 | (char *) "self", NULL | |
16923 | }; | |
16924 | ||
16925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
16926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16928 | { | |
16929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16930 | result = (int)(arg1)->GetStyle(); | |
16931 | ||
16932 | wxPyEndAllowThreads(__tstate); | |
16933 | if (PyErr_Occurred()) SWIG_fail; | |
16934 | } | |
c32bde28 | 16935 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16936 | return resultobj; |
16937 | fail: | |
16938 | return NULL; | |
16939 | } | |
16940 | ||
16941 | ||
c32bde28 | 16942 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16943 | PyObject *resultobj; |
16944 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16945 | int result; | |
16946 | PyObject * obj0 = 0 ; | |
16947 | char *kwnames[] = { | |
16948 | (char *) "self", NULL | |
16949 | }; | |
16950 | ||
16951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
16952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16954 | { | |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | result = (int)(arg1)->GetKind(); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
c32bde28 | 16961 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16962 | return resultobj; |
16963 | fail: | |
16964 | return NULL; | |
16965 | } | |
16966 | ||
16967 | ||
c32bde28 | 16968 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16969 | PyObject *resultobj; |
16970 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16971 | bool result; | |
16972 | PyObject * obj0 = 0 ; | |
16973 | char *kwnames[] = { | |
16974 | (char *) "self", NULL | |
16975 | }; | |
16976 | ||
16977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
16978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16980 | { | |
16981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16982 | result = (bool)(arg1)->IsEnabled(); | |
16983 | ||
16984 | wxPyEndAllowThreads(__tstate); | |
16985 | if (PyErr_Occurred()) SWIG_fail; | |
16986 | } | |
16987 | { | |
16988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16989 | } | |
16990 | return resultobj; | |
16991 | fail: | |
16992 | return NULL; | |
16993 | } | |
16994 | ||
16995 | ||
c32bde28 | 16996 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16997 | PyObject *resultobj; |
16998 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16999 | bool result; | |
17000 | PyObject * obj0 = 0 ; | |
17001 | char *kwnames[] = { | |
17002 | (char *) "self", NULL | |
17003 | }; | |
17004 | ||
17005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
17006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17008 | { | |
17009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17010 | result = (bool)(arg1)->IsToggled(); | |
17011 | ||
17012 | wxPyEndAllowThreads(__tstate); | |
17013 | if (PyErr_Occurred()) SWIG_fail; | |
17014 | } | |
17015 | { | |
17016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17017 | } | |
17018 | return resultobj; | |
17019 | fail: | |
17020 | return NULL; | |
17021 | } | |
17022 | ||
17023 | ||
c32bde28 | 17024 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17025 | PyObject *resultobj; |
17026 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17027 | bool result; | |
17028 | PyObject * obj0 = 0 ; | |
17029 | char *kwnames[] = { | |
17030 | (char *) "self", NULL | |
17031 | }; | |
17032 | ||
17033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
17034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17036 | { | |
17037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17038 | result = (bool)(arg1)->CanBeToggled(); | |
17039 | ||
17040 | wxPyEndAllowThreads(__tstate); | |
17041 | if (PyErr_Occurred()) SWIG_fail; | |
17042 | } | |
17043 | { | |
17044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17045 | } | |
17046 | return resultobj; | |
17047 | fail: | |
17048 | return NULL; | |
17049 | } | |
17050 | ||
17051 | ||
c32bde28 | 17052 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17053 | PyObject *resultobj; |
17054 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17055 | wxBitmap *result; | |
17056 | PyObject * obj0 = 0 ; | |
17057 | char *kwnames[] = { | |
17058 | (char *) "self", NULL | |
17059 | }; | |
17060 | ||
17061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
17062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17064 | { | |
17065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17066 | { | |
17067 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
17068 | result = (wxBitmap *) &_result_ref; | |
17069 | } | |
17070 | ||
17071 | wxPyEndAllowThreads(__tstate); | |
17072 | if (PyErr_Occurred()) SWIG_fail; | |
17073 | } | |
17074 | { | |
17075 | wxBitmap* resultptr = new wxBitmap(*result); | |
17076 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
17077 | } | |
17078 | return resultobj; | |
17079 | fail: | |
17080 | return NULL; | |
17081 | } | |
17082 | ||
17083 | ||
c32bde28 | 17084 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17085 | PyObject *resultobj; |
17086 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17087 | wxBitmap *result; | |
17088 | PyObject * obj0 = 0 ; | |
17089 | char *kwnames[] = { | |
17090 | (char *) "self", NULL | |
17091 | }; | |
17092 | ||
17093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
17094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17096 | { | |
17097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17098 | { | |
17099 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
17100 | result = (wxBitmap *) &_result_ref; | |
17101 | } | |
17102 | ||
17103 | wxPyEndAllowThreads(__tstate); | |
17104 | if (PyErr_Occurred()) SWIG_fail; | |
17105 | } | |
17106 | { | |
17107 | wxBitmap* resultptr = new wxBitmap(*result); | |
17108 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
17109 | } | |
17110 | return resultobj; | |
17111 | fail: | |
17112 | return NULL; | |
17113 | } | |
17114 | ||
17115 | ||
c32bde28 | 17116 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17117 | PyObject *resultobj; |
17118 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17119 | wxBitmap result; | |
17120 | PyObject * obj0 = 0 ; | |
17121 | char *kwnames[] = { | |
17122 | (char *) "self", NULL | |
17123 | }; | |
17124 | ||
17125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
17126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17128 | { | |
17129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17130 | result = (arg1)->GetBitmap(); | |
17131 | ||
17132 | wxPyEndAllowThreads(__tstate); | |
17133 | if (PyErr_Occurred()) SWIG_fail; | |
17134 | } | |
17135 | { | |
17136 | wxBitmap * resultptr; | |
17137 | resultptr = new wxBitmap((wxBitmap &) result); | |
17138 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
17139 | } | |
17140 | return resultobj; | |
17141 | fail: | |
17142 | return NULL; | |
17143 | } | |
17144 | ||
17145 | ||
c32bde28 | 17146 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17147 | PyObject *resultobj; |
17148 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17149 | wxString result; | |
17150 | PyObject * obj0 = 0 ; | |
17151 | char *kwnames[] = { | |
17152 | (char *) "self", NULL | |
17153 | }; | |
17154 | ||
17155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
17156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17158 | { | |
17159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17160 | result = (arg1)->GetLabel(); | |
17161 | ||
17162 | wxPyEndAllowThreads(__tstate); | |
17163 | if (PyErr_Occurred()) SWIG_fail; | |
17164 | } | |
17165 | { | |
17166 | #if wxUSE_UNICODE | |
17167 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17168 | #else | |
17169 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17170 | #endif | |
17171 | } | |
17172 | return resultobj; | |
17173 | fail: | |
17174 | return NULL; | |
17175 | } | |
17176 | ||
17177 | ||
c32bde28 | 17178 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17179 | PyObject *resultobj; |
17180 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17181 | wxString result; | |
17182 | PyObject * obj0 = 0 ; | |
17183 | char *kwnames[] = { | |
17184 | (char *) "self", NULL | |
17185 | }; | |
17186 | ||
17187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
17188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17190 | { | |
17191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17192 | result = (arg1)->GetShortHelp(); | |
17193 | ||
17194 | wxPyEndAllowThreads(__tstate); | |
17195 | if (PyErr_Occurred()) SWIG_fail; | |
17196 | } | |
17197 | { | |
17198 | #if wxUSE_UNICODE | |
17199 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17200 | #else | |
17201 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17202 | #endif | |
17203 | } | |
17204 | return resultobj; | |
17205 | fail: | |
17206 | return NULL; | |
17207 | } | |
17208 | ||
17209 | ||
c32bde28 | 17210 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17211 | PyObject *resultobj; |
17212 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17213 | wxString result; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | char *kwnames[] = { | |
17216 | (char *) "self", NULL | |
17217 | }; | |
17218 | ||
17219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
17220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17222 | { | |
17223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17224 | result = (arg1)->GetLongHelp(); | |
17225 | ||
17226 | wxPyEndAllowThreads(__tstate); | |
17227 | if (PyErr_Occurred()) SWIG_fail; | |
17228 | } | |
17229 | { | |
17230 | #if wxUSE_UNICODE | |
17231 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17232 | #else | |
17233 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17234 | #endif | |
17235 | } | |
17236 | return resultobj; | |
17237 | fail: | |
17238 | return NULL; | |
17239 | } | |
17240 | ||
17241 | ||
c32bde28 | 17242 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17243 | PyObject *resultobj; |
17244 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17245 | bool arg2 ; | |
17246 | bool result; | |
17247 | PyObject * obj0 = 0 ; | |
17248 | PyObject * obj1 = 0 ; | |
17249 | char *kwnames[] = { | |
17250 | (char *) "self",(char *) "enable", NULL | |
17251 | }; | |
17252 | ||
17253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
17254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17256 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17257 | if (PyErr_Occurred()) SWIG_fail; |
17258 | { | |
17259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17260 | result = (bool)(arg1)->Enable(arg2); | |
17261 | ||
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
17265 | { | |
17266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17267 | } | |
17268 | return resultobj; | |
17269 | fail: | |
17270 | return NULL; | |
17271 | } | |
17272 | ||
17273 | ||
c32bde28 | 17274 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17275 | PyObject *resultobj; |
17276 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17277 | PyObject * obj0 = 0 ; | |
17278 | char *kwnames[] = { | |
17279 | (char *) "self", NULL | |
17280 | }; | |
17281 | ||
17282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
17283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17285 | { | |
17286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17287 | (arg1)->Toggle(); | |
17288 | ||
17289 | wxPyEndAllowThreads(__tstate); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
17292 | Py_INCREF(Py_None); resultobj = Py_None; | |
17293 | return resultobj; | |
17294 | fail: | |
17295 | return NULL; | |
17296 | } | |
17297 | ||
17298 | ||
c32bde28 | 17299 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17300 | PyObject *resultobj; |
17301 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17302 | bool arg2 ; | |
17303 | bool result; | |
17304 | PyObject * obj0 = 0 ; | |
17305 | PyObject * obj1 = 0 ; | |
17306 | char *kwnames[] = { | |
17307 | (char *) "self",(char *) "toggle", NULL | |
17308 | }; | |
17309 | ||
17310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
17311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17313 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17314 | if (PyErr_Occurred()) SWIG_fail; |
17315 | { | |
17316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17317 | result = (bool)(arg1)->SetToggle(arg2); | |
17318 | ||
17319 | wxPyEndAllowThreads(__tstate); | |
17320 | if (PyErr_Occurred()) SWIG_fail; | |
17321 | } | |
17322 | { | |
17323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17324 | } | |
17325 | return resultobj; | |
17326 | fail: | |
17327 | return NULL; | |
17328 | } | |
17329 | ||
17330 | ||
c32bde28 | 17331 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17332 | PyObject *resultobj; |
17333 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17334 | wxString *arg2 = 0 ; | |
17335 | bool result; | |
ae8162c8 | 17336 | bool temp2 = false ; |
d55e5bfc RD |
17337 | PyObject * obj0 = 0 ; |
17338 | PyObject * obj1 = 0 ; | |
17339 | char *kwnames[] = { | |
17340 | (char *) "self",(char *) "help", NULL | |
17341 | }; | |
17342 | ||
17343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
17344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17346 | { | |
17347 | arg2 = wxString_in_helper(obj1); | |
17348 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17349 | temp2 = true; |
d55e5bfc RD |
17350 | } |
17351 | { | |
17352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17353 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
17354 | ||
17355 | wxPyEndAllowThreads(__tstate); | |
17356 | if (PyErr_Occurred()) SWIG_fail; | |
17357 | } | |
17358 | { | |
17359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17360 | } | |
17361 | { | |
17362 | if (temp2) | |
17363 | delete arg2; | |
17364 | } | |
17365 | return resultobj; | |
17366 | fail: | |
17367 | { | |
17368 | if (temp2) | |
17369 | delete arg2; | |
17370 | } | |
17371 | return NULL; | |
17372 | } | |
17373 | ||
17374 | ||
c32bde28 | 17375 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17376 | PyObject *resultobj; |
17377 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17378 | wxString *arg2 = 0 ; | |
17379 | bool result; | |
ae8162c8 | 17380 | bool temp2 = false ; |
d55e5bfc RD |
17381 | PyObject * obj0 = 0 ; |
17382 | PyObject * obj1 = 0 ; | |
17383 | char *kwnames[] = { | |
17384 | (char *) "self",(char *) "help", NULL | |
17385 | }; | |
17386 | ||
17387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
17388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17390 | { | |
17391 | arg2 = wxString_in_helper(obj1); | |
17392 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17393 | temp2 = true; |
d55e5bfc RD |
17394 | } |
17395 | { | |
17396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17397 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
17398 | ||
17399 | wxPyEndAllowThreads(__tstate); | |
17400 | if (PyErr_Occurred()) SWIG_fail; | |
17401 | } | |
17402 | { | |
17403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17404 | } | |
17405 | { | |
17406 | if (temp2) | |
17407 | delete arg2; | |
17408 | } | |
17409 | return resultobj; | |
17410 | fail: | |
17411 | { | |
17412 | if (temp2) | |
17413 | delete arg2; | |
17414 | } | |
17415 | return NULL; | |
17416 | } | |
17417 | ||
17418 | ||
c32bde28 | 17419 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17420 | PyObject *resultobj; |
17421 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17422 | wxBitmap *arg2 = 0 ; | |
17423 | PyObject * obj0 = 0 ; | |
17424 | PyObject * obj1 = 0 ; | |
17425 | char *kwnames[] = { | |
17426 | (char *) "self",(char *) "bmp", NULL | |
17427 | }; | |
17428 | ||
17429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
17430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17434 | SWIG_fail; | |
17435 | if (arg2 == NULL) { | |
17436 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17437 | SWIG_fail; | |
17438 | } | |
17439 | { | |
17440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17441 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
17442 | ||
17443 | wxPyEndAllowThreads(__tstate); | |
17444 | if (PyErr_Occurred()) SWIG_fail; | |
17445 | } | |
17446 | Py_INCREF(Py_None); resultobj = Py_None; | |
17447 | return resultobj; | |
17448 | fail: | |
17449 | return NULL; | |
17450 | } | |
17451 | ||
17452 | ||
c32bde28 | 17453 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17454 | PyObject *resultobj; |
17455 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17456 | wxBitmap *arg2 = 0 ; | |
17457 | PyObject * obj0 = 0 ; | |
17458 | PyObject * obj1 = 0 ; | |
17459 | char *kwnames[] = { | |
17460 | (char *) "self",(char *) "bmp", NULL | |
17461 | }; | |
17462 | ||
17463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
17464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17468 | SWIG_fail; | |
17469 | if (arg2 == NULL) { | |
17470 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17471 | SWIG_fail; | |
17472 | } | |
17473 | { | |
17474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17475 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
17476 | ||
17477 | wxPyEndAllowThreads(__tstate); | |
17478 | if (PyErr_Occurred()) SWIG_fail; | |
17479 | } | |
17480 | Py_INCREF(Py_None); resultobj = Py_None; | |
17481 | return resultobj; | |
17482 | fail: | |
17483 | return NULL; | |
17484 | } | |
17485 | ||
17486 | ||
c32bde28 | 17487 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17488 | PyObject *resultobj; |
17489 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17490 | wxString *arg2 = 0 ; | |
ae8162c8 | 17491 | bool temp2 = false ; |
d55e5bfc RD |
17492 | PyObject * obj0 = 0 ; |
17493 | PyObject * obj1 = 0 ; | |
17494 | char *kwnames[] = { | |
17495 | (char *) "self",(char *) "label", NULL | |
17496 | }; | |
17497 | ||
17498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
17499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17501 | { | |
17502 | arg2 = wxString_in_helper(obj1); | |
17503 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17504 | temp2 = true; |
d55e5bfc RD |
17505 | } |
17506 | { | |
17507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17508 | (arg1)->SetLabel((wxString const &)*arg2); | |
17509 | ||
17510 | wxPyEndAllowThreads(__tstate); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | } | |
17513 | Py_INCREF(Py_None); resultobj = Py_None; | |
17514 | { | |
17515 | if (temp2) | |
17516 | delete arg2; | |
17517 | } | |
17518 | return resultobj; | |
17519 | fail: | |
17520 | { | |
17521 | if (temp2) | |
17522 | delete arg2; | |
17523 | } | |
17524 | return NULL; | |
17525 | } | |
17526 | ||
17527 | ||
c32bde28 | 17528 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17529 | PyObject *resultobj; |
17530 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17531 | PyObject * obj0 = 0 ; | |
17532 | char *kwnames[] = { | |
17533 | (char *) "self", NULL | |
17534 | }; | |
17535 | ||
17536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
17537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17539 | { | |
17540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17541 | (arg1)->Detach(); | |
17542 | ||
17543 | wxPyEndAllowThreads(__tstate); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | } | |
17546 | Py_INCREF(Py_None); resultobj = Py_None; | |
17547 | return resultobj; | |
17548 | fail: | |
17549 | return NULL; | |
17550 | } | |
17551 | ||
17552 | ||
c32bde28 | 17553 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17554 | PyObject *resultobj; |
17555 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17556 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
17557 | PyObject * obj0 = 0 ; | |
17558 | PyObject * obj1 = 0 ; | |
17559 | char *kwnames[] = { | |
17560 | (char *) "self",(char *) "tbar", NULL | |
17561 | }; | |
17562 | ||
17563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
17564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
17567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17568 | { | |
17569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17570 | (arg1)->Attach(arg2); | |
17571 | ||
17572 | wxPyEndAllowThreads(__tstate); | |
17573 | if (PyErr_Occurred()) SWIG_fail; | |
17574 | } | |
17575 | Py_INCREF(Py_None); resultobj = Py_None; | |
17576 | return resultobj; | |
17577 | fail: | |
17578 | return NULL; | |
17579 | } | |
17580 | ||
17581 | ||
c32bde28 | 17582 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17583 | PyObject *resultobj; |
17584 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17585 | PyObject *result; | |
17586 | PyObject * obj0 = 0 ; | |
17587 | char *kwnames[] = { | |
17588 | (char *) "self", NULL | |
17589 | }; | |
17590 | ||
17591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
17592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17594 | { | |
17595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17596 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
17597 | ||
17598 | wxPyEndAllowThreads(__tstate); | |
17599 | if (PyErr_Occurred()) SWIG_fail; | |
17600 | } | |
17601 | resultobj = result; | |
17602 | return resultobj; | |
17603 | fail: | |
17604 | return NULL; | |
17605 | } | |
17606 | ||
17607 | ||
c32bde28 | 17608 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17609 | PyObject *resultobj; |
17610 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17611 | PyObject *arg2 = (PyObject *) 0 ; | |
17612 | PyObject * obj0 = 0 ; | |
17613 | PyObject * obj1 = 0 ; | |
17614 | char *kwnames[] = { | |
17615 | (char *) "self",(char *) "clientData", NULL | |
17616 | }; | |
17617 | ||
17618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
17619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
17620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17621 | arg2 = obj1; | |
17622 | { | |
17623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17624 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
17625 | ||
17626 | wxPyEndAllowThreads(__tstate); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | } | |
17629 | Py_INCREF(Py_None); resultobj = Py_None; | |
17630 | return resultobj; | |
17631 | fail: | |
17632 | return NULL; | |
17633 | } | |
17634 | ||
17635 | ||
c32bde28 | 17636 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17637 | PyObject *obj; |
17638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17639 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
17640 | Py_INCREF(obj); | |
17641 | return Py_BuildValue((char *)""); | |
17642 | } | |
c32bde28 | 17643 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17644 | PyObject *resultobj; |
17645 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17646 | int arg2 ; | |
17647 | wxString *arg3 = 0 ; | |
17648 | wxBitmap *arg4 = 0 ; | |
17649 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
17650 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
17651 | int arg6 = (int) wxITEM_NORMAL ; | |
17652 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17653 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17654 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17655 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17656 | PyObject *arg9 = (PyObject *) NULL ; | |
17657 | wxToolBarToolBase *result; | |
ae8162c8 RD |
17658 | bool temp3 = false ; |
17659 | bool temp7 = false ; | |
17660 | bool temp8 = false ; | |
d55e5bfc RD |
17661 | PyObject * obj0 = 0 ; |
17662 | PyObject * obj1 = 0 ; | |
17663 | PyObject * obj2 = 0 ; | |
17664 | PyObject * obj3 = 0 ; | |
17665 | PyObject * obj4 = 0 ; | |
17666 | PyObject * obj5 = 0 ; | |
17667 | PyObject * obj6 = 0 ; | |
17668 | PyObject * obj7 = 0 ; | |
17669 | PyObject * obj8 = 0 ; | |
17670 | char *kwnames[] = { | |
17671 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17672 | }; | |
17673 | ||
17674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
17675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17677 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17678 | if (PyErr_Occurred()) SWIG_fail; |
17679 | { | |
17680 | arg3 = wxString_in_helper(obj2); | |
17681 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17682 | temp3 = true; |
d55e5bfc RD |
17683 | } |
17684 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
17685 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17686 | SWIG_fail; | |
17687 | if (arg4 == NULL) { | |
17688 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17689 | SWIG_fail; | |
17690 | } | |
17691 | if (obj4) { | |
17692 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
17693 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17694 | SWIG_fail; | |
17695 | if (arg5 == NULL) { | |
17696 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17697 | SWIG_fail; | |
17698 | } | |
17699 | } | |
17700 | if (obj5) { | |
c32bde28 | 17701 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
17702 | if (PyErr_Occurred()) SWIG_fail; |
17703 | } | |
17704 | if (obj6) { | |
17705 | { | |
17706 | arg7 = wxString_in_helper(obj6); | |
17707 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17708 | temp7 = true; |
d55e5bfc RD |
17709 | } |
17710 | } | |
17711 | if (obj7) { | |
17712 | { | |
17713 | arg8 = wxString_in_helper(obj7); | |
17714 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 17715 | temp8 = true; |
d55e5bfc RD |
17716 | } |
17717 | } | |
17718 | if (obj8) { | |
17719 | arg9 = obj8; | |
17720 | } | |
17721 | { | |
17722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17723 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
17724 | ||
17725 | wxPyEndAllowThreads(__tstate); | |
17726 | if (PyErr_Occurred()) SWIG_fail; | |
17727 | } | |
17728 | { | |
412d302d | 17729 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17730 | } |
17731 | { | |
17732 | if (temp3) | |
17733 | delete arg3; | |
17734 | } | |
17735 | { | |
17736 | if (temp7) | |
17737 | delete arg7; | |
17738 | } | |
17739 | { | |
17740 | if (temp8) | |
17741 | delete arg8; | |
17742 | } | |
17743 | return resultobj; | |
17744 | fail: | |
17745 | { | |
17746 | if (temp3) | |
17747 | delete arg3; | |
17748 | } | |
17749 | { | |
17750 | if (temp7) | |
17751 | delete arg7; | |
17752 | } | |
17753 | { | |
17754 | if (temp8) | |
17755 | delete arg8; | |
17756 | } | |
17757 | return NULL; | |
17758 | } | |
17759 | ||
17760 | ||
c32bde28 | 17761 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17762 | PyObject *resultobj; |
17763 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17764 | size_t arg2 ; | |
17765 | int arg3 ; | |
17766 | wxString *arg4 = 0 ; | |
17767 | wxBitmap *arg5 = 0 ; | |
17768 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
17769 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
17770 | int arg7 = (int) wxITEM_NORMAL ; | |
17771 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17772 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17773 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
17774 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17775 | PyObject *arg10 = (PyObject *) NULL ; | |
17776 | wxToolBarToolBase *result; | |
ae8162c8 RD |
17777 | bool temp4 = false ; |
17778 | bool temp8 = false ; | |
17779 | bool temp9 = false ; | |
d55e5bfc RD |
17780 | PyObject * obj0 = 0 ; |
17781 | PyObject * obj1 = 0 ; | |
17782 | PyObject * obj2 = 0 ; | |
17783 | PyObject * obj3 = 0 ; | |
17784 | PyObject * obj4 = 0 ; | |
17785 | PyObject * obj5 = 0 ; | |
17786 | PyObject * obj6 = 0 ; | |
17787 | PyObject * obj7 = 0 ; | |
17788 | PyObject * obj8 = 0 ; | |
17789 | PyObject * obj9 = 0 ; | |
17790 | char *kwnames[] = { | |
17791 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17792 | }; | |
17793 | ||
17794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
17795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17797 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 17798 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17799 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17800 | if (PyErr_Occurred()) SWIG_fail; |
17801 | { | |
17802 | arg4 = wxString_in_helper(obj3); | |
17803 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 17804 | temp4 = true; |
d55e5bfc RD |
17805 | } |
17806 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
17807 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17808 | SWIG_fail; | |
17809 | if (arg5 == NULL) { | |
17810 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17811 | SWIG_fail; | |
17812 | } | |
17813 | if (obj5) { | |
17814 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, | |
17815 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17816 | SWIG_fail; | |
17817 | if (arg6 == NULL) { | |
17818 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17819 | SWIG_fail; | |
17820 | } | |
17821 | } | |
17822 | if (obj6) { | |
c32bde28 | 17823 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
17824 | if (PyErr_Occurred()) SWIG_fail; |
17825 | } | |
17826 | if (obj7) { | |
17827 | { | |
17828 | arg8 = wxString_in_helper(obj7); | |
17829 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 17830 | temp8 = true; |
d55e5bfc RD |
17831 | } |
17832 | } | |
17833 | if (obj8) { | |
17834 | { | |
17835 | arg9 = wxString_in_helper(obj8); | |
17836 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 17837 | temp9 = true; |
d55e5bfc RD |
17838 | } |
17839 | } | |
17840 | if (obj9) { | |
17841 | arg10 = obj9; | |
17842 | } | |
17843 | { | |
17844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17845 | 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); | |
17846 | ||
17847 | wxPyEndAllowThreads(__tstate); | |
17848 | if (PyErr_Occurred()) SWIG_fail; | |
17849 | } | |
17850 | { | |
412d302d | 17851 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17852 | } |
17853 | { | |
17854 | if (temp4) | |
17855 | delete arg4; | |
17856 | } | |
17857 | { | |
17858 | if (temp8) | |
17859 | delete arg8; | |
17860 | } | |
17861 | { | |
17862 | if (temp9) | |
17863 | delete arg9; | |
17864 | } | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | { | |
17868 | if (temp4) | |
17869 | delete arg4; | |
17870 | } | |
17871 | { | |
17872 | if (temp8) | |
17873 | delete arg8; | |
17874 | } | |
17875 | { | |
17876 | if (temp9) | |
17877 | delete arg9; | |
17878 | } | |
17879 | return NULL; | |
17880 | } | |
17881 | ||
17882 | ||
c32bde28 | 17883 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17884 | PyObject *resultobj; |
17885 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17886 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17887 | wxToolBarToolBase *result; | |
17888 | PyObject * obj0 = 0 ; | |
17889 | PyObject * obj1 = 0 ; | |
17890 | char *kwnames[] = { | |
17891 | (char *) "self",(char *) "tool", NULL | |
17892 | }; | |
17893 | ||
17894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
17895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17897 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17899 | { | |
17900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17901 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17902 | ||
17903 | wxPyEndAllowThreads(__tstate); | |
17904 | if (PyErr_Occurred()) SWIG_fail; | |
17905 | } | |
17906 | { | |
412d302d | 17907 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17908 | } |
17909 | return resultobj; | |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
c32bde28 | 17915 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17916 | PyObject *resultobj; |
17917 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17918 | size_t arg2 ; | |
17919 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17920 | wxToolBarToolBase *result; | |
17921 | PyObject * obj0 = 0 ; | |
17922 | PyObject * obj1 = 0 ; | |
17923 | PyObject * obj2 = 0 ; | |
17924 | char *kwnames[] = { | |
17925 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17926 | }; | |
17927 | ||
17928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17931 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
17932 | if (PyErr_Occurred()) SWIG_fail; |
17933 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17935 | { | |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17938 | ||
17939 | wxPyEndAllowThreads(__tstate); | |
17940 | if (PyErr_Occurred()) SWIG_fail; | |
17941 | } | |
17942 | { | |
412d302d | 17943 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17944 | } |
17945 | return resultobj; | |
17946 | fail: | |
17947 | return NULL; | |
17948 | } | |
17949 | ||
17950 | ||
c32bde28 | 17951 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17952 | PyObject *resultobj; |
17953 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17954 | wxControl *arg2 = (wxControl *) 0 ; | |
17955 | wxToolBarToolBase *result; | |
17956 | PyObject * obj0 = 0 ; | |
17957 | PyObject * obj1 = 0 ; | |
17958 | char *kwnames[] = { | |
17959 | (char *) "self",(char *) "control", NULL | |
17960 | }; | |
17961 | ||
17962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
17963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17967 | { | |
17968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17969 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17970 | ||
17971 | wxPyEndAllowThreads(__tstate); | |
17972 | if (PyErr_Occurred()) SWIG_fail; | |
17973 | } | |
17974 | { | |
412d302d | 17975 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17976 | } |
17977 | return resultobj; | |
17978 | fail: | |
17979 | return NULL; | |
17980 | } | |
17981 | ||
17982 | ||
c32bde28 | 17983 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17984 | PyObject *resultobj; |
17985 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17986 | size_t arg2 ; | |
17987 | wxControl *arg3 = (wxControl *) 0 ; | |
17988 | wxToolBarToolBase *result; | |
17989 | PyObject * obj0 = 0 ; | |
17990 | PyObject * obj1 = 0 ; | |
17991 | PyObject * obj2 = 0 ; | |
17992 | char *kwnames[] = { | |
17993 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17994 | }; | |
17995 | ||
17996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17999 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
18000 | if (PyErr_Occurred()) SWIG_fail; |
18001 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
18002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18003 | { | |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
18006 | ||
18007 | wxPyEndAllowThreads(__tstate); | |
18008 | if (PyErr_Occurred()) SWIG_fail; | |
18009 | } | |
18010 | { | |
412d302d | 18011 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18012 | } |
18013 | return resultobj; | |
18014 | fail: | |
18015 | return NULL; | |
18016 | } | |
18017 | ||
18018 | ||
c32bde28 | 18019 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18020 | PyObject *resultobj; |
18021 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18022 | int arg2 ; | |
18023 | wxControl *result; | |
18024 | PyObject * obj0 = 0 ; | |
18025 | PyObject * obj1 = 0 ; | |
18026 | char *kwnames[] = { | |
18027 | (char *) "self",(char *) "id", NULL | |
18028 | }; | |
18029 | ||
18030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
18031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18033 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18034 | if (PyErr_Occurred()) SWIG_fail; |
18035 | { | |
18036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18037 | result = (wxControl *)(arg1)->FindControl(arg2); | |
18038 | ||
18039 | wxPyEndAllowThreads(__tstate); | |
18040 | if (PyErr_Occurred()) SWIG_fail; | |
18041 | } | |
18042 | { | |
412d302d | 18043 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18044 | } |
18045 | return resultobj; | |
18046 | fail: | |
18047 | return NULL; | |
18048 | } | |
18049 | ||
18050 | ||
c32bde28 | 18051 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18052 | PyObject *resultobj; |
18053 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18054 | wxToolBarToolBase *result; | |
18055 | PyObject * obj0 = 0 ; | |
18056 | char *kwnames[] = { | |
18057 | (char *) "self", NULL | |
18058 | }; | |
18059 | ||
18060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
18061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18063 | { | |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
18066 | ||
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | { | |
412d302d | 18071 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18072 | } |
18073 | return resultobj; | |
18074 | fail: | |
18075 | return NULL; | |
18076 | } | |
18077 | ||
18078 | ||
c32bde28 | 18079 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18080 | PyObject *resultobj; |
18081 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18082 | size_t arg2 ; | |
18083 | wxToolBarToolBase *result; | |
18084 | PyObject * obj0 = 0 ; | |
18085 | PyObject * obj1 = 0 ; | |
18086 | char *kwnames[] = { | |
18087 | (char *) "self",(char *) "pos", NULL | |
18088 | }; | |
18089 | ||
18090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
18091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18093 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
18094 | if (PyErr_Occurred()) SWIG_fail; |
18095 | { | |
18096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18097 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
18098 | ||
18099 | wxPyEndAllowThreads(__tstate); | |
18100 | if (PyErr_Occurred()) SWIG_fail; | |
18101 | } | |
18102 | { | |
412d302d | 18103 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18104 | } |
18105 | return resultobj; | |
18106 | fail: | |
18107 | return NULL; | |
18108 | } | |
18109 | ||
18110 | ||
c32bde28 | 18111 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18112 | PyObject *resultobj; |
18113 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18114 | int arg2 ; | |
18115 | wxToolBarToolBase *result; | |
18116 | PyObject * obj0 = 0 ; | |
18117 | PyObject * obj1 = 0 ; | |
18118 | char *kwnames[] = { | |
18119 | (char *) "self",(char *) "id", NULL | |
18120 | }; | |
18121 | ||
18122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
18123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18125 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18126 | if (PyErr_Occurred()) SWIG_fail; |
18127 | { | |
18128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18129 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
18130 | ||
18131 | wxPyEndAllowThreads(__tstate); | |
18132 | if (PyErr_Occurred()) SWIG_fail; | |
18133 | } | |
18134 | { | |
412d302d | 18135 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18136 | } |
18137 | return resultobj; | |
18138 | fail: | |
18139 | return NULL; | |
18140 | } | |
18141 | ||
18142 | ||
c32bde28 | 18143 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18144 | PyObject *resultobj; |
18145 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18146 | size_t arg2 ; | |
18147 | bool result; | |
18148 | PyObject * obj0 = 0 ; | |
18149 | PyObject * obj1 = 0 ; | |
18150 | char *kwnames[] = { | |
18151 | (char *) "self",(char *) "pos", NULL | |
18152 | }; | |
18153 | ||
18154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
18155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18157 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
18158 | if (PyErr_Occurred()) SWIG_fail; |
18159 | { | |
18160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18161 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
18162 | ||
18163 | wxPyEndAllowThreads(__tstate); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | } | |
18166 | { | |
18167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18168 | } | |
18169 | return resultobj; | |
18170 | fail: | |
18171 | return NULL; | |
18172 | } | |
18173 | ||
18174 | ||
c32bde28 | 18175 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18176 | PyObject *resultobj; |
18177 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18178 | int arg2 ; | |
18179 | bool result; | |
18180 | PyObject * obj0 = 0 ; | |
18181 | PyObject * obj1 = 0 ; | |
18182 | char *kwnames[] = { | |
18183 | (char *) "self",(char *) "id", NULL | |
18184 | }; | |
18185 | ||
18186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
18187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18189 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18190 | if (PyErr_Occurred()) SWIG_fail; |
18191 | { | |
18192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18193 | result = (bool)(arg1)->DeleteTool(arg2); | |
18194 | ||
18195 | wxPyEndAllowThreads(__tstate); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | } | |
18198 | { | |
18199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18200 | } | |
18201 | return resultobj; | |
18202 | fail: | |
18203 | return NULL; | |
18204 | } | |
18205 | ||
18206 | ||
c32bde28 | 18207 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18208 | PyObject *resultobj; |
18209 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18210 | PyObject * obj0 = 0 ; | |
18211 | char *kwnames[] = { | |
18212 | (char *) "self", NULL | |
18213 | }; | |
18214 | ||
18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
18216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18218 | { | |
18219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18220 | (arg1)->ClearTools(); | |
18221 | ||
18222 | wxPyEndAllowThreads(__tstate); | |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
18224 | } | |
18225 | Py_INCREF(Py_None); resultobj = Py_None; | |
18226 | return resultobj; | |
18227 | fail: | |
18228 | return NULL; | |
18229 | } | |
18230 | ||
18231 | ||
c32bde28 | 18232 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18233 | PyObject *resultobj; |
18234 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18235 | bool result; | |
18236 | PyObject * obj0 = 0 ; | |
18237 | char *kwnames[] = { | |
18238 | (char *) "self", NULL | |
18239 | }; | |
18240 | ||
18241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
18242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18244 | { | |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | result = (bool)(arg1)->Realize(); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | { | |
18252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18253 | } | |
18254 | return resultobj; | |
18255 | fail: | |
18256 | return NULL; | |
18257 | } | |
18258 | ||
18259 | ||
c32bde28 | 18260 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18261 | PyObject *resultobj; |
18262 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18263 | int arg2 ; | |
18264 | bool arg3 ; | |
18265 | PyObject * obj0 = 0 ; | |
18266 | PyObject * obj1 = 0 ; | |
18267 | PyObject * obj2 = 0 ; | |
18268 | char *kwnames[] = { | |
18269 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
18270 | }; | |
18271 | ||
18272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18275 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18276 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18277 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
18278 | if (PyErr_Occurred()) SWIG_fail; |
18279 | { | |
18280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18281 | (arg1)->EnableTool(arg2,arg3); | |
18282 | ||
18283 | wxPyEndAllowThreads(__tstate); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | } | |
18286 | Py_INCREF(Py_None); resultobj = Py_None; | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
c32bde28 | 18293 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18294 | PyObject *resultobj; |
18295 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18296 | int arg2 ; | |
18297 | bool arg3 ; | |
18298 | PyObject * obj0 = 0 ; | |
18299 | PyObject * obj1 = 0 ; | |
18300 | PyObject * obj2 = 0 ; | |
18301 | char *kwnames[] = { | |
18302 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
18303 | }; | |
18304 | ||
18305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18308 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18309 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18310 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
18311 | if (PyErr_Occurred()) SWIG_fail; |
18312 | { | |
18313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18314 | (arg1)->ToggleTool(arg2,arg3); | |
18315 | ||
18316 | wxPyEndAllowThreads(__tstate); | |
18317 | if (PyErr_Occurred()) SWIG_fail; | |
18318 | } | |
18319 | Py_INCREF(Py_None); resultobj = Py_None; | |
18320 | return resultobj; | |
18321 | fail: | |
18322 | return NULL; | |
18323 | } | |
18324 | ||
18325 | ||
c32bde28 | 18326 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18327 | PyObject *resultobj; |
18328 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18329 | int arg2 ; | |
18330 | bool arg3 ; | |
18331 | PyObject * obj0 = 0 ; | |
18332 | PyObject * obj1 = 0 ; | |
18333 | PyObject * obj2 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18341 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18342 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18343 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
18344 | if (PyErr_Occurred()) SWIG_fail; |
18345 | { | |
18346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18347 | (arg1)->SetToggle(arg2,arg3); | |
18348 | ||
18349 | wxPyEndAllowThreads(__tstate); | |
18350 | if (PyErr_Occurred()) SWIG_fail; | |
18351 | } | |
18352 | Py_INCREF(Py_None); resultobj = Py_None; | |
18353 | return resultobj; | |
18354 | fail: | |
18355 | return NULL; | |
18356 | } | |
18357 | ||
18358 | ||
c32bde28 | 18359 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18360 | PyObject *resultobj; |
18361 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18362 | int arg2 ; | |
18363 | PyObject *result; | |
18364 | PyObject * obj0 = 0 ; | |
18365 | PyObject * obj1 = 0 ; | |
18366 | char *kwnames[] = { | |
18367 | (char *) "self",(char *) "id", NULL | |
18368 | }; | |
18369 | ||
18370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
18371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18373 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18374 | if (PyErr_Occurred()) SWIG_fail; |
18375 | { | |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | resultobj = result; | |
18383 | return resultobj; | |
18384 | fail: | |
18385 | return NULL; | |
18386 | } | |
18387 | ||
18388 | ||
c32bde28 | 18389 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18390 | PyObject *resultobj; |
18391 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18392 | int arg2 ; | |
18393 | PyObject *arg3 = (PyObject *) 0 ; | |
18394 | PyObject * obj0 = 0 ; | |
18395 | PyObject * obj1 = 0 ; | |
18396 | PyObject * obj2 = 0 ; | |
18397 | char *kwnames[] = { | |
18398 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
18399 | }; | |
18400 | ||
18401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18404 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18405 | if (PyErr_Occurred()) SWIG_fail; |
18406 | arg3 = obj2; | |
18407 | { | |
18408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18409 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
18410 | ||
18411 | wxPyEndAllowThreads(__tstate); | |
18412 | if (PyErr_Occurred()) SWIG_fail; | |
18413 | } | |
18414 | Py_INCREF(Py_None); resultobj = Py_None; | |
18415 | return resultobj; | |
18416 | fail: | |
18417 | return NULL; | |
18418 | } | |
18419 | ||
18420 | ||
c32bde28 | 18421 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18422 | PyObject *resultobj; |
18423 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18424 | int arg2 ; | |
18425 | int result; | |
18426 | PyObject * obj0 = 0 ; | |
18427 | PyObject * obj1 = 0 ; | |
18428 | char *kwnames[] = { | |
18429 | (char *) "self",(char *) "id", NULL | |
18430 | }; | |
18431 | ||
18432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
18433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18435 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18436 | if (PyErr_Occurred()) SWIG_fail; |
18437 | { | |
18438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18439 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
18440 | ||
18441 | wxPyEndAllowThreads(__tstate); | |
18442 | if (PyErr_Occurred()) SWIG_fail; | |
18443 | } | |
c32bde28 | 18444 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18445 | return resultobj; |
18446 | fail: | |
18447 | return NULL; | |
18448 | } | |
18449 | ||
18450 | ||
c32bde28 | 18451 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18452 | PyObject *resultobj; |
18453 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18454 | int arg2 ; | |
18455 | bool result; | |
18456 | PyObject * obj0 = 0 ; | |
18457 | PyObject * obj1 = 0 ; | |
18458 | char *kwnames[] = { | |
18459 | (char *) "self",(char *) "id", NULL | |
18460 | }; | |
18461 | ||
18462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
18463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18465 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18466 | if (PyErr_Occurred()) SWIG_fail; |
18467 | { | |
18468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18469 | result = (bool)(arg1)->GetToolState(arg2); | |
18470 | ||
18471 | wxPyEndAllowThreads(__tstate); | |
18472 | if (PyErr_Occurred()) SWIG_fail; | |
18473 | } | |
18474 | { | |
18475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18476 | } | |
18477 | return resultobj; | |
18478 | fail: | |
18479 | return NULL; | |
18480 | } | |
18481 | ||
18482 | ||
c32bde28 | 18483 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18484 | PyObject *resultobj; |
18485 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18486 | int arg2 ; | |
18487 | bool result; | |
18488 | PyObject * obj0 = 0 ; | |
18489 | PyObject * obj1 = 0 ; | |
18490 | char *kwnames[] = { | |
18491 | (char *) "self",(char *) "id", NULL | |
18492 | }; | |
18493 | ||
18494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
18495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18497 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18498 | if (PyErr_Occurred()) SWIG_fail; |
18499 | { | |
18500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18501 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
18502 | ||
18503 | wxPyEndAllowThreads(__tstate); | |
18504 | if (PyErr_Occurred()) SWIG_fail; | |
18505 | } | |
18506 | { | |
18507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18508 | } | |
18509 | return resultobj; | |
18510 | fail: | |
18511 | return NULL; | |
18512 | } | |
18513 | ||
18514 | ||
c32bde28 | 18515 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18516 | PyObject *resultobj; |
18517 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18518 | int arg2 ; | |
18519 | wxString *arg3 = 0 ; | |
ae8162c8 | 18520 | bool temp3 = false ; |
d55e5bfc RD |
18521 | PyObject * obj0 = 0 ; |
18522 | PyObject * obj1 = 0 ; | |
18523 | PyObject * obj2 = 0 ; | |
18524 | char *kwnames[] = { | |
18525 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
18526 | }; | |
18527 | ||
18528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18531 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18532 | if (PyErr_Occurred()) SWIG_fail; |
18533 | { | |
18534 | arg3 = wxString_in_helper(obj2); | |
18535 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18536 | temp3 = true; |
d55e5bfc RD |
18537 | } |
18538 | { | |
18539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18540 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
18541 | ||
18542 | wxPyEndAllowThreads(__tstate); | |
18543 | if (PyErr_Occurred()) SWIG_fail; | |
18544 | } | |
18545 | Py_INCREF(Py_None); resultobj = Py_None; | |
18546 | { | |
18547 | if (temp3) | |
18548 | delete arg3; | |
18549 | } | |
18550 | return resultobj; | |
18551 | fail: | |
18552 | { | |
18553 | if (temp3) | |
18554 | delete arg3; | |
18555 | } | |
18556 | return NULL; | |
18557 | } | |
18558 | ||
18559 | ||
c32bde28 | 18560 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18561 | PyObject *resultobj; |
18562 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18563 | int arg2 ; | |
18564 | wxString result; | |
18565 | PyObject * obj0 = 0 ; | |
18566 | PyObject * obj1 = 0 ; | |
18567 | char *kwnames[] = { | |
18568 | (char *) "self",(char *) "id", NULL | |
18569 | }; | |
18570 | ||
18571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
18572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18574 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18575 | if (PyErr_Occurred()) SWIG_fail; |
18576 | { | |
18577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18578 | result = (arg1)->GetToolShortHelp(arg2); | |
18579 | ||
18580 | wxPyEndAllowThreads(__tstate); | |
18581 | if (PyErr_Occurred()) SWIG_fail; | |
18582 | } | |
18583 | { | |
18584 | #if wxUSE_UNICODE | |
18585 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18586 | #else | |
18587 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18588 | #endif | |
18589 | } | |
18590 | return resultobj; | |
18591 | fail: | |
18592 | return NULL; | |
18593 | } | |
18594 | ||
18595 | ||
c32bde28 | 18596 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18597 | PyObject *resultobj; |
18598 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18599 | int arg2 ; | |
18600 | wxString *arg3 = 0 ; | |
ae8162c8 | 18601 | bool temp3 = false ; |
d55e5bfc RD |
18602 | PyObject * obj0 = 0 ; |
18603 | PyObject * obj1 = 0 ; | |
18604 | PyObject * obj2 = 0 ; | |
18605 | char *kwnames[] = { | |
18606 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
18607 | }; | |
18608 | ||
18609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18612 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18613 | if (PyErr_Occurred()) SWIG_fail; |
18614 | { | |
18615 | arg3 = wxString_in_helper(obj2); | |
18616 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18617 | temp3 = true; |
d55e5bfc RD |
18618 | } |
18619 | { | |
18620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18621 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
18622 | ||
18623 | wxPyEndAllowThreads(__tstate); | |
18624 | if (PyErr_Occurred()) SWIG_fail; | |
18625 | } | |
18626 | Py_INCREF(Py_None); resultobj = Py_None; | |
18627 | { | |
18628 | if (temp3) | |
18629 | delete arg3; | |
18630 | } | |
18631 | return resultobj; | |
18632 | fail: | |
18633 | { | |
18634 | if (temp3) | |
18635 | delete arg3; | |
18636 | } | |
18637 | return NULL; | |
18638 | } | |
18639 | ||
18640 | ||
c32bde28 | 18641 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18642 | PyObject *resultobj; |
18643 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18644 | int arg2 ; | |
18645 | wxString result; | |
18646 | PyObject * obj0 = 0 ; | |
18647 | PyObject * obj1 = 0 ; | |
18648 | char *kwnames[] = { | |
18649 | (char *) "self",(char *) "id", NULL | |
18650 | }; | |
18651 | ||
18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
18653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18655 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18656 | if (PyErr_Occurred()) SWIG_fail; |
18657 | { | |
18658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18659 | result = (arg1)->GetToolLongHelp(arg2); | |
18660 | ||
18661 | wxPyEndAllowThreads(__tstate); | |
18662 | if (PyErr_Occurred()) SWIG_fail; | |
18663 | } | |
18664 | { | |
18665 | #if wxUSE_UNICODE | |
18666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18667 | #else | |
18668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18669 | #endif | |
18670 | } | |
18671 | return resultobj; | |
18672 | fail: | |
18673 | return NULL; | |
18674 | } | |
18675 | ||
18676 | ||
c32bde28 | 18677 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18678 | PyObject *resultobj; |
18679 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18680 | int arg2 ; | |
18681 | int arg3 ; | |
18682 | PyObject * obj0 = 0 ; | |
18683 | PyObject * obj1 = 0 ; | |
18684 | PyObject * obj2 = 0 ; | |
18685 | char *kwnames[] = { | |
18686 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18687 | }; | |
18688 | ||
18689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18692 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18693 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18694 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18695 | if (PyErr_Occurred()) SWIG_fail; |
18696 | { | |
18697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18698 | (arg1)->SetMargins(arg2,arg3); | |
18699 | ||
18700 | wxPyEndAllowThreads(__tstate); | |
18701 | if (PyErr_Occurred()) SWIG_fail; | |
18702 | } | |
18703 | Py_INCREF(Py_None); resultobj = Py_None; | |
18704 | return resultobj; | |
18705 | fail: | |
18706 | return NULL; | |
18707 | } | |
18708 | ||
18709 | ||
c32bde28 | 18710 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18711 | PyObject *resultobj; |
18712 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18713 | wxSize *arg2 = 0 ; | |
18714 | wxSize temp2 ; | |
18715 | PyObject * obj0 = 0 ; | |
18716 | PyObject * obj1 = 0 ; | |
18717 | char *kwnames[] = { | |
18718 | (char *) "self",(char *) "size", NULL | |
18719 | }; | |
18720 | ||
18721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
18722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18724 | { | |
18725 | arg2 = &temp2; | |
18726 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18727 | } | |
18728 | { | |
18729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18730 | (arg1)->SetMargins((wxSize const &)*arg2); | |
18731 | ||
18732 | wxPyEndAllowThreads(__tstate); | |
18733 | if (PyErr_Occurred()) SWIG_fail; | |
18734 | } | |
18735 | Py_INCREF(Py_None); resultobj = Py_None; | |
18736 | return resultobj; | |
18737 | fail: | |
18738 | return NULL; | |
18739 | } | |
18740 | ||
18741 | ||
c32bde28 | 18742 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18743 | PyObject *resultobj; |
18744 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18745 | int arg2 ; | |
18746 | PyObject * obj0 = 0 ; | |
18747 | PyObject * obj1 = 0 ; | |
18748 | char *kwnames[] = { | |
18749 | (char *) "self",(char *) "packing", NULL | |
18750 | }; | |
18751 | ||
18752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
18753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18755 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18756 | if (PyErr_Occurred()) SWIG_fail; |
18757 | { | |
18758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18759 | (arg1)->SetToolPacking(arg2); | |
18760 | ||
18761 | wxPyEndAllowThreads(__tstate); | |
18762 | if (PyErr_Occurred()) SWIG_fail; | |
18763 | } | |
18764 | Py_INCREF(Py_None); resultobj = Py_None; | |
18765 | return resultobj; | |
18766 | fail: | |
18767 | return NULL; | |
18768 | } | |
18769 | ||
18770 | ||
c32bde28 | 18771 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18772 | PyObject *resultobj; |
18773 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18774 | int arg2 ; | |
18775 | PyObject * obj0 = 0 ; | |
18776 | PyObject * obj1 = 0 ; | |
18777 | char *kwnames[] = { | |
18778 | (char *) "self",(char *) "separation", NULL | |
18779 | }; | |
18780 | ||
18781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
18782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18784 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18785 | if (PyErr_Occurred()) SWIG_fail; |
18786 | { | |
18787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18788 | (arg1)->SetToolSeparation(arg2); | |
18789 | ||
18790 | wxPyEndAllowThreads(__tstate); | |
18791 | if (PyErr_Occurred()) SWIG_fail; | |
18792 | } | |
18793 | Py_INCREF(Py_None); resultobj = Py_None; | |
18794 | return resultobj; | |
18795 | fail: | |
18796 | return NULL; | |
18797 | } | |
18798 | ||
18799 | ||
c32bde28 | 18800 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18801 | PyObject *resultobj; |
18802 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18803 | wxSize result; | |
18804 | PyObject * obj0 = 0 ; | |
18805 | char *kwnames[] = { | |
18806 | (char *) "self", NULL | |
18807 | }; | |
18808 | ||
18809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
18810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18812 | { | |
18813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18814 | result = (arg1)->GetToolMargins(); | |
18815 | ||
18816 | wxPyEndAllowThreads(__tstate); | |
18817 | if (PyErr_Occurred()) SWIG_fail; | |
18818 | } | |
18819 | { | |
18820 | wxSize * resultptr; | |
18821 | resultptr = new wxSize((wxSize &) result); | |
18822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18823 | } | |
18824 | return resultobj; | |
18825 | fail: | |
18826 | return NULL; | |
18827 | } | |
18828 | ||
18829 | ||
c32bde28 | 18830 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18831 | PyObject *resultobj; |
18832 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18833 | wxSize result; | |
18834 | PyObject * obj0 = 0 ; | |
18835 | char *kwnames[] = { | |
18836 | (char *) "self", NULL | |
18837 | }; | |
18838 | ||
18839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
18840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18842 | { | |
18843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18844 | result = (arg1)->GetMargins(); | |
18845 | ||
18846 | wxPyEndAllowThreads(__tstate); | |
18847 | if (PyErr_Occurred()) SWIG_fail; | |
18848 | } | |
18849 | { | |
18850 | wxSize * resultptr; | |
18851 | resultptr = new wxSize((wxSize &) result); | |
18852 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18853 | } | |
18854 | return resultobj; | |
18855 | fail: | |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
c32bde28 | 18860 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18861 | PyObject *resultobj; |
18862 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18863 | int result; | |
18864 | PyObject * obj0 = 0 ; | |
18865 | char *kwnames[] = { | |
18866 | (char *) "self", NULL | |
18867 | }; | |
18868 | ||
18869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
18870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18872 | { | |
18873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18874 | result = (int)(arg1)->GetToolPacking(); | |
18875 | ||
18876 | wxPyEndAllowThreads(__tstate); | |
18877 | if (PyErr_Occurred()) SWIG_fail; | |
18878 | } | |
c32bde28 | 18879 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18880 | return resultobj; |
18881 | fail: | |
18882 | return NULL; | |
18883 | } | |
18884 | ||
18885 | ||
c32bde28 | 18886 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18887 | PyObject *resultobj; |
18888 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18889 | int result; | |
18890 | PyObject * obj0 = 0 ; | |
18891 | char *kwnames[] = { | |
18892 | (char *) "self", NULL | |
18893 | }; | |
18894 | ||
18895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
18896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18898 | { | |
18899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18900 | result = (int)(arg1)->GetToolSeparation(); | |
18901 | ||
18902 | wxPyEndAllowThreads(__tstate); | |
18903 | if (PyErr_Occurred()) SWIG_fail; | |
18904 | } | |
c32bde28 | 18905 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18906 | return resultobj; |
18907 | fail: | |
18908 | return NULL; | |
18909 | } | |
18910 | ||
18911 | ||
c32bde28 | 18912 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18913 | PyObject *resultobj; |
18914 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18915 | int arg2 ; | |
18916 | PyObject * obj0 = 0 ; | |
18917 | PyObject * obj1 = 0 ; | |
18918 | char *kwnames[] = { | |
18919 | (char *) "self",(char *) "nRows", NULL | |
18920 | }; | |
18921 | ||
18922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
18923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18925 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18926 | if (PyErr_Occurred()) SWIG_fail; |
18927 | { | |
18928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18929 | (arg1)->SetRows(arg2); | |
18930 | ||
18931 | wxPyEndAllowThreads(__tstate); | |
18932 | if (PyErr_Occurred()) SWIG_fail; | |
18933 | } | |
18934 | Py_INCREF(Py_None); resultobj = Py_None; | |
18935 | return resultobj; | |
18936 | fail: | |
18937 | return NULL; | |
18938 | } | |
18939 | ||
18940 | ||
c32bde28 | 18941 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18942 | PyObject *resultobj; |
18943 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18944 | int arg2 ; | |
18945 | int arg3 ; | |
18946 | PyObject * obj0 = 0 ; | |
18947 | PyObject * obj1 = 0 ; | |
18948 | PyObject * obj2 = 0 ; | |
18949 | char *kwnames[] = { | |
18950 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18951 | }; | |
18952 | ||
18953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18956 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18957 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18958 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18959 | if (PyErr_Occurred()) SWIG_fail; |
18960 | { | |
18961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18962 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18963 | ||
18964 | wxPyEndAllowThreads(__tstate); | |
18965 | if (PyErr_Occurred()) SWIG_fail; | |
18966 | } | |
18967 | Py_INCREF(Py_None); resultobj = Py_None; | |
18968 | return resultobj; | |
18969 | fail: | |
18970 | return NULL; | |
18971 | } | |
18972 | ||
18973 | ||
c32bde28 | 18974 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18975 | PyObject *resultobj; |
18976 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18977 | int result; | |
18978 | PyObject * obj0 = 0 ; | |
18979 | char *kwnames[] = { | |
18980 | (char *) "self", NULL | |
18981 | }; | |
18982 | ||
18983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
18984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18986 | { | |
18987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18988 | result = (int)(arg1)->GetMaxRows(); | |
18989 | ||
18990 | wxPyEndAllowThreads(__tstate); | |
18991 | if (PyErr_Occurred()) SWIG_fail; | |
18992 | } | |
c32bde28 | 18993 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18994 | return resultobj; |
18995 | fail: | |
18996 | return NULL; | |
18997 | } | |
18998 | ||
18999 | ||
c32bde28 | 19000 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19001 | PyObject *resultobj; |
19002 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19003 | int result; | |
19004 | PyObject * obj0 = 0 ; | |
19005 | char *kwnames[] = { | |
19006 | (char *) "self", NULL | |
19007 | }; | |
19008 | ||
19009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
19010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
19011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19012 | { | |
19013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19014 | result = (int)(arg1)->GetMaxCols(); | |
19015 | ||
19016 | wxPyEndAllowThreads(__tstate); | |
19017 | if (PyErr_Occurred()) SWIG_fail; | |
19018 | } | |
c32bde28 | 19019 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19020 | return resultobj; |
19021 | fail: | |
19022 | return NULL; | |
19023 | } | |
19024 | ||
19025 | ||
c32bde28 | 19026 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19027 | PyObject *resultobj; |
19028 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19029 | wxSize *arg2 = 0 ; | |
19030 | wxSize temp2 ; | |
19031 | PyObject * obj0 = 0 ; | |
19032 | PyObject * obj1 = 0 ; | |
19033 | char *kwnames[] = { | |
19034 | (char *) "self",(char *) "size", NULL | |
19035 | }; | |
19036 | ||
19037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
19038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
19039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19040 | { | |
19041 | arg2 = &temp2; | |
19042 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19043 | } | |
19044 | { | |
19045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19046 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
19047 | ||
19048 | wxPyEndAllowThreads(__tstate); | |
19049 | if (PyErr_Occurred()) SWIG_fail; | |
19050 | } | |
19051 | Py_INCREF(Py_None); resultobj = Py_None; | |
19052 | return resultobj; | |
19053 | fail: | |
19054 | return NULL; | |
19055 | } | |
19056 | ||
19057 | ||
c32bde28 | 19058 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19059 | PyObject *resultobj; |
19060 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19061 | wxSize result; | |
19062 | PyObject * obj0 = 0 ; | |
19063 | char *kwnames[] = { | |
19064 | (char *) "self", NULL | |
19065 | }; | |
19066 | ||
19067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
19068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
19069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19070 | { | |
19071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19072 | result = (arg1)->GetToolBitmapSize(); | |
19073 | ||
19074 | wxPyEndAllowThreads(__tstate); | |
19075 | if (PyErr_Occurred()) SWIG_fail; | |
19076 | } | |
19077 | { | |
19078 | wxSize * resultptr; | |
19079 | resultptr = new wxSize((wxSize &) result); | |
19080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
19081 | } | |
19082 | return resultobj; | |
19083 | fail: | |
19084 | return NULL; | |
19085 | } | |
19086 | ||
19087 | ||
c32bde28 | 19088 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19089 | PyObject *resultobj; |
19090 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19091 | wxSize result; | |
19092 | PyObject * obj0 = 0 ; | |
19093 | char *kwnames[] = { | |
19094 | (char *) "self", NULL | |
19095 | }; | |
19096 | ||
19097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
19098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
19099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19100 | { | |
19101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19102 | result = (arg1)->GetToolSize(); | |
19103 | ||
19104 | wxPyEndAllowThreads(__tstate); | |
19105 | if (PyErr_Occurred()) SWIG_fail; | |
19106 | } | |
19107 | { | |
19108 | wxSize * resultptr; | |
19109 | resultptr = new wxSize((wxSize &) result); | |
19110 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
19111 | } | |
19112 | return resultobj; | |
19113 | fail: | |
19114 | return NULL; | |
19115 | } | |
19116 | ||
19117 | ||
c32bde28 | 19118 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19119 | PyObject *resultobj; |
19120 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19121 | int arg2 ; | |
19122 | int arg3 ; | |
19123 | wxToolBarToolBase *result; | |
19124 | PyObject * obj0 = 0 ; | |
19125 | PyObject * obj1 = 0 ; | |
19126 | PyObject * obj2 = 0 ; | |
19127 | char *kwnames[] = { | |
19128 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19129 | }; | |
19130 | ||
19131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
19133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19134 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 19135 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 19136 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19137 | if (PyErr_Occurred()) SWIG_fail; |
19138 | { | |
19139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19140 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
19141 | ||
19142 | wxPyEndAllowThreads(__tstate); | |
19143 | if (PyErr_Occurred()) SWIG_fail; | |
19144 | } | |
19145 | { | |
412d302d | 19146 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19147 | } |
19148 | return resultobj; | |
19149 | fail: | |
19150 | return NULL; | |
19151 | } | |
19152 | ||
19153 | ||
c32bde28 | 19154 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19155 | PyObject *resultobj; |
19156 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19157 | int arg2 ; | |
19158 | wxToolBarToolBase *result; | |
19159 | PyObject * obj0 = 0 ; | |
19160 | PyObject * obj1 = 0 ; | |
19161 | char *kwnames[] = { | |
19162 | (char *) "self",(char *) "toolid", NULL | |
19163 | }; | |
19164 | ||
19165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
19166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
19167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19168 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19169 | if (PyErr_Occurred()) SWIG_fail; |
19170 | { | |
19171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19172 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
19173 | ||
19174 | wxPyEndAllowThreads(__tstate); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | { | |
412d302d | 19178 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19179 | } |
19180 | return resultobj; | |
19181 | fail: | |
19182 | return NULL; | |
19183 | } | |
19184 | ||
19185 | ||
c32bde28 | 19186 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19187 | PyObject *resultobj; |
19188 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19189 | bool result; | |
19190 | PyObject * obj0 = 0 ; | |
19191 | char *kwnames[] = { | |
19192 | (char *) "self", NULL | |
19193 | }; | |
19194 | ||
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
19196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
19197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19198 | { | |
19199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19200 | result = (bool)(arg1)->IsVertical(); | |
19201 | ||
19202 | wxPyEndAllowThreads(__tstate); | |
19203 | if (PyErr_Occurred()) SWIG_fail; | |
19204 | } | |
19205 | { | |
19206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19207 | } | |
19208 | return resultobj; | |
19209 | fail: | |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
c32bde28 | 19214 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19215 | PyObject *obj; |
19216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19217 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
19218 | Py_INCREF(obj); | |
19219 | return Py_BuildValue((char *)""); | |
19220 | } | |
c32bde28 | 19221 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19222 | PyObject *resultobj; |
19223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 19224 | int arg2 = (int) -1 ; |
d55e5bfc RD |
19225 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19226 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19227 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19228 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19229 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
19230 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
19231 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
19232 | wxToolBar *result; | |
19233 | wxPoint temp3 ; | |
19234 | wxSize temp4 ; | |
ae8162c8 | 19235 | bool temp6 = false ; |
d55e5bfc RD |
19236 | PyObject * obj0 = 0 ; |
19237 | PyObject * obj1 = 0 ; | |
19238 | PyObject * obj2 = 0 ; | |
19239 | PyObject * obj3 = 0 ; | |
19240 | PyObject * obj4 = 0 ; | |
19241 | PyObject * obj5 = 0 ; | |
19242 | char *kwnames[] = { | |
19243 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19244 | }; | |
19245 | ||
248ed943 | 19246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
19247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 19249 | if (obj1) { |
c32bde28 | 19250 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
19251 | if (PyErr_Occurred()) SWIG_fail; |
19252 | } | |
d55e5bfc RD |
19253 | if (obj2) { |
19254 | { | |
19255 | arg3 = &temp3; | |
19256 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19257 | } | |
19258 | } | |
19259 | if (obj3) { | |
19260 | { | |
19261 | arg4 = &temp4; | |
19262 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19263 | } | |
19264 | } | |
19265 | if (obj4) { | |
c32bde28 | 19266 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
19267 | if (PyErr_Occurred()) SWIG_fail; |
19268 | } | |
19269 | if (obj5) { | |
19270 | { | |
19271 | arg6 = wxString_in_helper(obj5); | |
19272 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 19273 | temp6 = true; |
d55e5bfc RD |
19274 | } |
19275 | } | |
19276 | { | |
0439c23b | 19277 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
19278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19279 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
19280 | ||
19281 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19282 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 19283 | } |
b0f7404b | 19284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
19285 | { |
19286 | if (temp6) | |
19287 | delete arg6; | |
19288 | } | |
19289 | return resultobj; | |
19290 | fail: | |
19291 | { | |
19292 | if (temp6) | |
19293 | delete arg6; | |
19294 | } | |
19295 | return NULL; | |
19296 | } | |
19297 | ||
19298 | ||
c32bde28 | 19299 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19300 | PyObject *resultobj; |
19301 | wxToolBar *result; | |
19302 | char *kwnames[] = { | |
19303 | NULL | |
19304 | }; | |
19305 | ||
19306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
19307 | { | |
0439c23b | 19308 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
19309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19310 | result = (wxToolBar *)new wxToolBar(); | |
19311 | ||
19312 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19313 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 19314 | } |
b0f7404b | 19315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
19316 | return resultobj; |
19317 | fail: | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
c32bde28 | 19322 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19323 | PyObject *resultobj; |
19324 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
19325 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 19326 | int arg3 = (int) -1 ; |
d55e5bfc RD |
19327 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19328 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19329 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19330 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19331 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
19332 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
19333 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19334 | bool result; | |
19335 | wxPoint temp4 ; | |
19336 | wxSize temp5 ; | |
ae8162c8 | 19337 | bool temp7 = false ; |
d55e5bfc RD |
19338 | PyObject * obj0 = 0 ; |
19339 | PyObject * obj1 = 0 ; | |
19340 | PyObject * obj2 = 0 ; | |
19341 | PyObject * obj3 = 0 ; | |
19342 | PyObject * obj4 = 0 ; | |
19343 | PyObject * obj5 = 0 ; | |
19344 | PyObject * obj6 = 0 ; | |
19345 | char *kwnames[] = { | |
19346 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19347 | }; | |
19348 | ||
248ed943 | 19349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
19350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
19351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 19354 | if (obj2) { |
c32bde28 | 19355 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
19356 | if (PyErr_Occurred()) SWIG_fail; |
19357 | } | |
d55e5bfc RD |
19358 | if (obj3) { |
19359 | { | |
19360 | arg4 = &temp4; | |
19361 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19362 | } | |
19363 | } | |
19364 | if (obj4) { | |
19365 | { | |
19366 | arg5 = &temp5; | |
19367 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19368 | } | |
19369 | } | |
19370 | if (obj5) { | |
c32bde28 | 19371 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
19372 | if (PyErr_Occurred()) SWIG_fail; |
19373 | } | |
19374 | if (obj6) { | |
19375 | { | |
19376 | arg7 = wxString_in_helper(obj6); | |
19377 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19378 | temp7 = true; |
d55e5bfc RD |
19379 | } |
19380 | } | |
19381 | { | |
19382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19383 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
19384 | ||
19385 | wxPyEndAllowThreads(__tstate); | |
19386 | if (PyErr_Occurred()) SWIG_fail; | |
19387 | } | |
19388 | { | |
19389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19390 | } | |
19391 | { | |
19392 | if (temp7) | |
19393 | delete arg7; | |
19394 | } | |
19395 | return resultobj; | |
19396 | fail: | |
19397 | { | |
19398 | if (temp7) | |
19399 | delete arg7; | |
19400 | } | |
19401 | return NULL; | |
19402 | } | |
19403 | ||
19404 | ||
c32bde28 | 19405 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19406 | PyObject *resultobj; |
19407 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
19408 | int arg2 ; | |
19409 | int arg3 ; | |
19410 | wxToolBarToolBase *result; | |
19411 | PyObject * obj0 = 0 ; | |
19412 | PyObject * obj1 = 0 ; | |
19413 | PyObject * obj2 = 0 ; | |
19414 | char *kwnames[] = { | |
19415 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19416 | }; | |
19417 | ||
19418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
19420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19421 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 19422 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 19423 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19424 | if (PyErr_Occurred()) SWIG_fail; |
19425 | { | |
19426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19427 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
19428 | ||
19429 | wxPyEndAllowThreads(__tstate); | |
19430 | if (PyErr_Occurred()) SWIG_fail; | |
19431 | } | |
19432 | { | |
412d302d | 19433 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19434 | } |
19435 | return resultobj; | |
19436 | fail: | |
19437 | return NULL; | |
19438 | } | |
19439 | ||
19440 | ||
c32bde28 | 19441 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
19442 | PyObject *resultobj; |
19443 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
19444 | wxVisualAttributes result; | |
19445 | PyObject * obj0 = 0 ; | |
19446 | char *kwnames[] = { | |
19447 | (char *) "variant", NULL | |
19448 | }; | |
19449 | ||
19450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
19451 | if (obj0) { | |
c32bde28 | 19452 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
19453 | if (PyErr_Occurred()) SWIG_fail; |
19454 | } | |
19455 | { | |
19272049 | 19456 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19458 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
19459 | ||
19460 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19461 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
19462 | } |
19463 | { | |
19464 | wxVisualAttributes * resultptr; | |
19465 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
19466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
19467 | } | |
19468 | return resultobj; | |
19469 | fail: | |
19470 | return NULL; | |
19471 | } | |
19472 | ||
19473 | ||
c32bde28 | 19474 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19475 | PyObject *obj; |
19476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19477 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
19478 | Py_INCREF(obj); | |
19479 | return Py_BuildValue((char *)""); | |
19480 | } | |
c32bde28 | 19481 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
19482 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
19483 | return 1; | |
19484 | } | |
19485 | ||
19486 | ||
19487 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
19488 | PyObject *pyobj; | |
19489 | ||
19490 | { | |
19491 | #if wxUSE_UNICODE | |
19492 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
19493 | #else | |
19494 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
19495 | #endif | |
19496 | } | |
19497 | return pyobj; | |
19498 | } | |
19499 | ||
19500 | ||
c32bde28 | 19501 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19502 | PyObject *resultobj; |
19503 | wxColour const &arg1_defvalue = wxNullColour ; | |
19504 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
19505 | wxColour const &arg2_defvalue = wxNullColour ; | |
19506 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
19507 | wxFont const &arg3_defvalue = wxNullFont ; | |
19508 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
19509 | wxListItemAttr *result; | |
19510 | wxColour temp1 ; | |
19511 | wxColour temp2 ; | |
19512 | PyObject * obj0 = 0 ; | |
19513 | PyObject * obj1 = 0 ; | |
19514 | PyObject * obj2 = 0 ; | |
19515 | char *kwnames[] = { | |
19516 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
19517 | }; | |
19518 | ||
19519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19520 | if (obj0) { | |
19521 | { | |
19522 | arg1 = &temp1; | |
19523 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
19524 | } | |
19525 | } | |
19526 | if (obj1) { | |
19527 | { | |
19528 | arg2 = &temp2; | |
19529 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19530 | } | |
19531 | } | |
19532 | if (obj2) { | |
19533 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
19534 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19535 | SWIG_fail; | |
19536 | if (arg3 == NULL) { | |
19537 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19538 | SWIG_fail; | |
19539 | } | |
19540 | } | |
19541 | { | |
19542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19543 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
19544 | ||
19545 | wxPyEndAllowThreads(__tstate); | |
19546 | if (PyErr_Occurred()) SWIG_fail; | |
19547 | } | |
19548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
19549 | return resultobj; | |
19550 | fail: | |
19551 | return NULL; | |
19552 | } | |
19553 | ||
19554 | ||
c32bde28 | 19555 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19556 | PyObject *resultobj; |
19557 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19558 | wxColour *arg2 = 0 ; | |
19559 | wxColour temp2 ; | |
19560 | PyObject * obj0 = 0 ; | |
19561 | PyObject * obj1 = 0 ; | |
19562 | char *kwnames[] = { | |
19563 | (char *) "self",(char *) "colText", NULL | |
19564 | }; | |
19565 | ||
19566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
19567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19569 | { | |
19570 | arg2 = &temp2; | |
19571 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19572 | } | |
19573 | { | |
19574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19575 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19576 | ||
19577 | wxPyEndAllowThreads(__tstate); | |
19578 | if (PyErr_Occurred()) SWIG_fail; | |
19579 | } | |
19580 | Py_INCREF(Py_None); resultobj = Py_None; | |
19581 | return resultobj; | |
19582 | fail: | |
19583 | return NULL; | |
19584 | } | |
19585 | ||
19586 | ||
c32bde28 | 19587 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19588 | PyObject *resultobj; |
19589 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19590 | wxColour *arg2 = 0 ; | |
19591 | wxColour temp2 ; | |
19592 | PyObject * obj0 = 0 ; | |
19593 | PyObject * obj1 = 0 ; | |
19594 | char *kwnames[] = { | |
19595 | (char *) "self",(char *) "colBack", NULL | |
19596 | }; | |
19597 | ||
19598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19601 | { | |
19602 | arg2 = &temp2; | |
19603 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19604 | } | |
19605 | { | |
19606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19607 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19608 | ||
19609 | wxPyEndAllowThreads(__tstate); | |
19610 | if (PyErr_Occurred()) SWIG_fail; | |
19611 | } | |
19612 | Py_INCREF(Py_None); resultobj = Py_None; | |
19613 | return resultobj; | |
19614 | fail: | |
19615 | return NULL; | |
19616 | } | |
19617 | ||
19618 | ||
c32bde28 | 19619 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19620 | PyObject *resultobj; |
19621 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19622 | wxFont *arg2 = 0 ; | |
19623 | PyObject * obj0 = 0 ; | |
19624 | PyObject * obj1 = 0 ; | |
19625 | char *kwnames[] = { | |
19626 | (char *) "self",(char *) "font", NULL | |
19627 | }; | |
19628 | ||
19629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
19630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19633 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19634 | SWIG_fail; | |
19635 | if (arg2 == NULL) { | |
19636 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19637 | SWIG_fail; | |
19638 | } | |
19639 | { | |
19640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19641 | (arg1)->SetFont((wxFont const &)*arg2); | |
19642 | ||
19643 | wxPyEndAllowThreads(__tstate); | |
19644 | if (PyErr_Occurred()) SWIG_fail; | |
19645 | } | |
19646 | Py_INCREF(Py_None); resultobj = Py_None; | |
19647 | return resultobj; | |
19648 | fail: | |
19649 | return NULL; | |
19650 | } | |
19651 | ||
19652 | ||
c32bde28 | 19653 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19654 | PyObject *resultobj; |
19655 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19656 | bool result; | |
19657 | PyObject * obj0 = 0 ; | |
19658 | char *kwnames[] = { | |
19659 | (char *) "self", NULL | |
19660 | }; | |
19661 | ||
19662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
19663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | result = (bool)(arg1)->HasTextColour(); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
19672 | { | |
19673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19674 | } | |
19675 | return resultobj; | |
19676 | fail: | |
19677 | return NULL; | |
19678 | } | |
19679 | ||
19680 | ||
c32bde28 | 19681 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19682 | PyObject *resultobj; |
19683 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19684 | bool result; | |
19685 | PyObject * obj0 = 0 ; | |
19686 | char *kwnames[] = { | |
19687 | (char *) "self", NULL | |
19688 | }; | |
19689 | ||
19690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
19691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19693 | { | |
19694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19695 | result = (bool)(arg1)->HasBackgroundColour(); | |
19696 | ||
19697 | wxPyEndAllowThreads(__tstate); | |
19698 | if (PyErr_Occurred()) SWIG_fail; | |
19699 | } | |
19700 | { | |
19701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19702 | } | |
19703 | return resultobj; | |
19704 | fail: | |
19705 | return NULL; | |
19706 | } | |
19707 | ||
19708 | ||
c32bde28 | 19709 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19710 | PyObject *resultobj; |
19711 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19712 | bool result; | |
19713 | PyObject * obj0 = 0 ; | |
19714 | char *kwnames[] = { | |
19715 | (char *) "self", NULL | |
19716 | }; | |
19717 | ||
19718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
19719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19721 | { | |
19722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19723 | result = (bool)(arg1)->HasFont(); | |
19724 | ||
19725 | wxPyEndAllowThreads(__tstate); | |
19726 | if (PyErr_Occurred()) SWIG_fail; | |
19727 | } | |
19728 | { | |
19729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19730 | } | |
19731 | return resultobj; | |
19732 | fail: | |
19733 | return NULL; | |
19734 | } | |
19735 | ||
19736 | ||
c32bde28 | 19737 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19738 | PyObject *resultobj; |
19739 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19740 | wxColour result; | |
19741 | PyObject * obj0 = 0 ; | |
19742 | char *kwnames[] = { | |
19743 | (char *) "self", NULL | |
19744 | }; | |
19745 | ||
19746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
19747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19749 | { | |
19750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19751 | result = (arg1)->GetTextColour(); | |
19752 | ||
19753 | wxPyEndAllowThreads(__tstate); | |
19754 | if (PyErr_Occurred()) SWIG_fail; | |
19755 | } | |
19756 | { | |
19757 | wxColour * resultptr; | |
19758 | resultptr = new wxColour((wxColour &) result); | |
19759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19760 | } | |
19761 | return resultobj; | |
19762 | fail: | |
19763 | return NULL; | |
19764 | } | |
19765 | ||
19766 | ||
c32bde28 | 19767 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19768 | PyObject *resultobj; |
19769 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19770 | wxColour result; | |
19771 | PyObject * obj0 = 0 ; | |
19772 | char *kwnames[] = { | |
19773 | (char *) "self", NULL | |
19774 | }; | |
19775 | ||
19776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | result = (arg1)->GetBackgroundColour(); | |
19782 | ||
19783 | wxPyEndAllowThreads(__tstate); | |
19784 | if (PyErr_Occurred()) SWIG_fail; | |
19785 | } | |
19786 | { | |
19787 | wxColour * resultptr; | |
19788 | resultptr = new wxColour((wxColour &) result); | |
19789 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19790 | } | |
19791 | return resultobj; | |
19792 | fail: | |
19793 | return NULL; | |
19794 | } | |
19795 | ||
19796 | ||
c32bde28 | 19797 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19798 | PyObject *resultobj; |
19799 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19800 | wxFont result; | |
19801 | PyObject * obj0 = 0 ; | |
19802 | char *kwnames[] = { | |
19803 | (char *) "self", NULL | |
19804 | }; | |
19805 | ||
19806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
19807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19809 | { | |
19810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19811 | result = (arg1)->GetFont(); | |
19812 | ||
19813 | wxPyEndAllowThreads(__tstate); | |
19814 | if (PyErr_Occurred()) SWIG_fail; | |
19815 | } | |
19816 | { | |
19817 | wxFont * resultptr; | |
19818 | resultptr = new wxFont((wxFont &) result); | |
19819 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19820 | } | |
19821 | return resultobj; | |
19822 | fail: | |
19823 | return NULL; | |
19824 | } | |
19825 | ||
19826 | ||
c32bde28 | 19827 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19828 | PyObject *resultobj; |
19829 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19830 | PyObject * obj0 = 0 ; | |
19831 | char *kwnames[] = { | |
19832 | (char *) "self", NULL | |
19833 | }; | |
19834 | ||
19835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
19836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19838 | { | |
19839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19840 | wxListItemAttr_Destroy(arg1); | |
19841 | ||
19842 | wxPyEndAllowThreads(__tstate); | |
19843 | if (PyErr_Occurred()) SWIG_fail; | |
19844 | } | |
19845 | Py_INCREF(Py_None); resultobj = Py_None; | |
19846 | return resultobj; | |
19847 | fail: | |
19848 | return NULL; | |
19849 | } | |
19850 | ||
19851 | ||
c32bde28 | 19852 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19853 | PyObject *obj; |
19854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19855 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19856 | Py_INCREF(obj); | |
19857 | return Py_BuildValue((char *)""); | |
19858 | } | |
c32bde28 | 19859 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19860 | PyObject *resultobj; |
19861 | wxListItem *result; | |
19862 | char *kwnames[] = { | |
19863 | NULL | |
19864 | }; | |
19865 | ||
19866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19867 | { | |
19868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19869 | result = (wxListItem *)new wxListItem(); | |
19870 | ||
19871 | wxPyEndAllowThreads(__tstate); | |
19872 | if (PyErr_Occurred()) SWIG_fail; | |
19873 | } | |
19874 | { | |
412d302d | 19875 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
19876 | } |
19877 | return resultobj; | |
19878 | fail: | |
19879 | return NULL; | |
19880 | } | |
19881 | ||
19882 | ||
c32bde28 | 19883 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19884 | PyObject *resultobj; |
19885 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19886 | PyObject * obj0 = 0 ; | |
19887 | char *kwnames[] = { | |
19888 | (char *) "self", NULL | |
19889 | }; | |
19890 | ||
19891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
19892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19894 | { | |
19895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19896 | delete arg1; | |
19897 | ||
19898 | wxPyEndAllowThreads(__tstate); | |
19899 | if (PyErr_Occurred()) SWIG_fail; | |
19900 | } | |
19901 | Py_INCREF(Py_None); resultobj = Py_None; | |
19902 | return resultobj; | |
19903 | fail: | |
19904 | return NULL; | |
19905 | } | |
19906 | ||
19907 | ||
c32bde28 | 19908 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19909 | PyObject *resultobj; |
19910 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19911 | PyObject * obj0 = 0 ; | |
19912 | char *kwnames[] = { | |
19913 | (char *) "self", NULL | |
19914 | }; | |
19915 | ||
19916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
19917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19919 | { | |
19920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19921 | (arg1)->Clear(); | |
19922 | ||
19923 | wxPyEndAllowThreads(__tstate); | |
19924 | if (PyErr_Occurred()) SWIG_fail; | |
19925 | } | |
19926 | Py_INCREF(Py_None); resultobj = Py_None; | |
19927 | return resultobj; | |
19928 | fail: | |
19929 | return NULL; | |
19930 | } | |
19931 | ||
19932 | ||
c32bde28 | 19933 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19934 | PyObject *resultobj; |
19935 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19936 | PyObject * obj0 = 0 ; | |
19937 | char *kwnames[] = { | |
19938 | (char *) "self", NULL | |
19939 | }; | |
19940 | ||
19941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
19942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19944 | { | |
19945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19946 | (arg1)->ClearAttributes(); | |
19947 | ||
19948 | wxPyEndAllowThreads(__tstate); | |
19949 | if (PyErr_Occurred()) SWIG_fail; | |
19950 | } | |
19951 | Py_INCREF(Py_None); resultobj = Py_None; | |
19952 | return resultobj; | |
19953 | fail: | |
19954 | return NULL; | |
19955 | } | |
19956 | ||
19957 | ||
c32bde28 | 19958 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19959 | PyObject *resultobj; |
19960 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19961 | long arg2 ; | |
19962 | PyObject * obj0 = 0 ; | |
19963 | PyObject * obj1 = 0 ; | |
19964 | char *kwnames[] = { | |
19965 | (char *) "self",(char *) "mask", NULL | |
19966 | }; | |
19967 | ||
19968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
19969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19971 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
19972 | if (PyErr_Occurred()) SWIG_fail; |
19973 | { | |
19974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19975 | (arg1)->SetMask(arg2); | |
19976 | ||
19977 | wxPyEndAllowThreads(__tstate); | |
19978 | if (PyErr_Occurred()) SWIG_fail; | |
19979 | } | |
19980 | Py_INCREF(Py_None); resultobj = Py_None; | |
19981 | return resultobj; | |
19982 | fail: | |
19983 | return NULL; | |
19984 | } | |
19985 | ||
19986 | ||
c32bde28 | 19987 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19988 | PyObject *resultobj; |
19989 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19990 | long arg2 ; | |
19991 | PyObject * obj0 = 0 ; | |
19992 | PyObject * obj1 = 0 ; | |
19993 | char *kwnames[] = { | |
19994 | (char *) "self",(char *) "id", NULL | |
19995 | }; | |
19996 | ||
19997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
19998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20000 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20001 | if (PyErr_Occurred()) SWIG_fail; |
20002 | { | |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | (arg1)->SetId(arg2); | |
20005 | ||
20006 | wxPyEndAllowThreads(__tstate); | |
20007 | if (PyErr_Occurred()) SWIG_fail; | |
20008 | } | |
20009 | Py_INCREF(Py_None); resultobj = Py_None; | |
20010 | return resultobj; | |
20011 | fail: | |
20012 | return NULL; | |
20013 | } | |
20014 | ||
20015 | ||
c32bde28 | 20016 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20017 | PyObject *resultobj; |
20018 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20019 | int arg2 ; | |
20020 | PyObject * obj0 = 0 ; | |
20021 | PyObject * obj1 = 0 ; | |
20022 | char *kwnames[] = { | |
20023 | (char *) "self",(char *) "col", NULL | |
20024 | }; | |
20025 | ||
20026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
20027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20029 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20030 | if (PyErr_Occurred()) SWIG_fail; |
20031 | { | |
20032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20033 | (arg1)->SetColumn(arg2); | |
20034 | ||
20035 | wxPyEndAllowThreads(__tstate); | |
20036 | if (PyErr_Occurred()) SWIG_fail; | |
20037 | } | |
20038 | Py_INCREF(Py_None); resultobj = Py_None; | |
20039 | return resultobj; | |
20040 | fail: | |
20041 | return NULL; | |
20042 | } | |
20043 | ||
20044 | ||
c32bde28 | 20045 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20046 | PyObject *resultobj; |
20047 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20048 | long arg2 ; | |
20049 | PyObject * obj0 = 0 ; | |
20050 | PyObject * obj1 = 0 ; | |
20051 | char *kwnames[] = { | |
20052 | (char *) "self",(char *) "state", NULL | |
20053 | }; | |
20054 | ||
20055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
20056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20058 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20059 | if (PyErr_Occurred()) SWIG_fail; |
20060 | { | |
20061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20062 | (arg1)->SetState(arg2); | |
20063 | ||
20064 | wxPyEndAllowThreads(__tstate); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
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_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20075 | PyObject *resultobj; |
20076 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20077 | long arg2 ; | |
20078 | PyObject * obj0 = 0 ; | |
20079 | PyObject * obj1 = 0 ; | |
20080 | char *kwnames[] = { | |
20081 | (char *) "self",(char *) "stateMask", NULL | |
20082 | }; | |
20083 | ||
20084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
20085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20087 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20088 | if (PyErr_Occurred()) SWIG_fail; |
20089 | { | |
20090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20091 | (arg1)->SetStateMask(arg2); | |
20092 | ||
20093 | wxPyEndAllowThreads(__tstate); | |
20094 | if (PyErr_Occurred()) SWIG_fail; | |
20095 | } | |
20096 | Py_INCREF(Py_None); resultobj = Py_None; | |
20097 | return resultobj; | |
20098 | fail: | |
20099 | return NULL; | |
20100 | } | |
20101 | ||
20102 | ||
c32bde28 | 20103 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20104 | PyObject *resultobj; |
20105 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20106 | wxString *arg2 = 0 ; | |
ae8162c8 | 20107 | bool temp2 = false ; |
d55e5bfc RD |
20108 | PyObject * obj0 = 0 ; |
20109 | PyObject * obj1 = 0 ; | |
20110 | char *kwnames[] = { | |
20111 | (char *) "self",(char *) "text", NULL | |
20112 | }; | |
20113 | ||
20114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
20115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20117 | { | |
20118 | arg2 = wxString_in_helper(obj1); | |
20119 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20120 | temp2 = true; |
d55e5bfc RD |
20121 | } |
20122 | { | |
20123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20124 | (arg1)->SetText((wxString const &)*arg2); | |
20125 | ||
20126 | wxPyEndAllowThreads(__tstate); | |
20127 | if (PyErr_Occurred()) SWIG_fail; | |
20128 | } | |
20129 | Py_INCREF(Py_None); resultobj = Py_None; | |
20130 | { | |
20131 | if (temp2) | |
20132 | delete arg2; | |
20133 | } | |
20134 | return resultobj; | |
20135 | fail: | |
20136 | { | |
20137 | if (temp2) | |
20138 | delete arg2; | |
20139 | } | |
20140 | return NULL; | |
20141 | } | |
20142 | ||
20143 | ||
c32bde28 | 20144 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20145 | PyObject *resultobj; |
20146 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20147 | int arg2 ; | |
20148 | PyObject * obj0 = 0 ; | |
20149 | PyObject * obj1 = 0 ; | |
20150 | char *kwnames[] = { | |
20151 | (char *) "self",(char *) "image", NULL | |
20152 | }; | |
20153 | ||
20154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
20155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20157 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20158 | if (PyErr_Occurred()) SWIG_fail; |
20159 | { | |
20160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20161 | (arg1)->SetImage(arg2); | |
20162 | ||
20163 | wxPyEndAllowThreads(__tstate); | |
20164 | if (PyErr_Occurred()) SWIG_fail; | |
20165 | } | |
20166 | Py_INCREF(Py_None); resultobj = Py_None; | |
20167 | return resultobj; | |
20168 | fail: | |
20169 | return NULL; | |
20170 | } | |
20171 | ||
20172 | ||
c32bde28 | 20173 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20174 | PyObject *resultobj; |
20175 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20176 | long arg2 ; | |
20177 | PyObject * obj0 = 0 ; | |
20178 | PyObject * obj1 = 0 ; | |
20179 | char *kwnames[] = { | |
20180 | (char *) "self",(char *) "data", NULL | |
20181 | }; | |
20182 | ||
20183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
20184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20186 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20187 | if (PyErr_Occurred()) SWIG_fail; |
20188 | { | |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | (arg1)->SetData(arg2); | |
20191 | ||
20192 | wxPyEndAllowThreads(__tstate); | |
20193 | if (PyErr_Occurred()) SWIG_fail; | |
20194 | } | |
20195 | Py_INCREF(Py_None); resultobj = Py_None; | |
20196 | return resultobj; | |
20197 | fail: | |
20198 | return NULL; | |
20199 | } | |
20200 | ||
20201 | ||
c32bde28 | 20202 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20203 | PyObject *resultobj; |
20204 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20205 | int arg2 ; | |
20206 | PyObject * obj0 = 0 ; | |
20207 | PyObject * obj1 = 0 ; | |
20208 | char *kwnames[] = { | |
20209 | (char *) "self",(char *) "width", NULL | |
20210 | }; | |
20211 | ||
20212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
20213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20215 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20216 | if (PyErr_Occurred()) SWIG_fail; |
20217 | { | |
20218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20219 | (arg1)->SetWidth(arg2); | |
20220 | ||
20221 | wxPyEndAllowThreads(__tstate); | |
20222 | if (PyErr_Occurred()) SWIG_fail; | |
20223 | } | |
20224 | Py_INCREF(Py_None); resultobj = Py_None; | |
20225 | return resultobj; | |
20226 | fail: | |
20227 | return NULL; | |
20228 | } | |
20229 | ||
20230 | ||
c32bde28 | 20231 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20232 | PyObject *resultobj; |
20233 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20234 | int arg2 ; | |
20235 | PyObject * obj0 = 0 ; | |
20236 | PyObject * obj1 = 0 ; | |
20237 | char *kwnames[] = { | |
20238 | (char *) "self",(char *) "align", NULL | |
20239 | }; | |
20240 | ||
20241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
20242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20244 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20245 | if (PyErr_Occurred()) SWIG_fail; |
20246 | { | |
20247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20248 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
20249 | ||
20250 | wxPyEndAllowThreads(__tstate); | |
20251 | if (PyErr_Occurred()) SWIG_fail; | |
20252 | } | |
20253 | Py_INCREF(Py_None); resultobj = Py_None; | |
20254 | return resultobj; | |
20255 | fail: | |
20256 | return NULL; | |
20257 | } | |
20258 | ||
20259 | ||
c32bde28 | 20260 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20261 | PyObject *resultobj; |
20262 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20263 | wxColour *arg2 = 0 ; | |
20264 | wxColour temp2 ; | |
20265 | PyObject * obj0 = 0 ; | |
20266 | PyObject * obj1 = 0 ; | |
20267 | char *kwnames[] = { | |
20268 | (char *) "self",(char *) "colText", NULL | |
20269 | }; | |
20270 | ||
20271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
20272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20274 | { | |
20275 | arg2 = &temp2; | |
20276 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20277 | } | |
20278 | { | |
20279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20280 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
20281 | ||
20282 | wxPyEndAllowThreads(__tstate); | |
20283 | if (PyErr_Occurred()) SWIG_fail; | |
20284 | } | |
20285 | Py_INCREF(Py_None); resultobj = Py_None; | |
20286 | return resultobj; | |
20287 | fail: | |
20288 | return NULL; | |
20289 | } | |
20290 | ||
20291 | ||
c32bde28 | 20292 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20293 | PyObject *resultobj; |
20294 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20295 | wxColour *arg2 = 0 ; | |
20296 | wxColour temp2 ; | |
20297 | PyObject * obj0 = 0 ; | |
20298 | PyObject * obj1 = 0 ; | |
20299 | char *kwnames[] = { | |
20300 | (char *) "self",(char *) "colBack", NULL | |
20301 | }; | |
20302 | ||
20303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20306 | { | |
20307 | arg2 = &temp2; | |
20308 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20309 | } | |
20310 | { | |
20311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20312 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20313 | ||
20314 | wxPyEndAllowThreads(__tstate); | |
20315 | if (PyErr_Occurred()) SWIG_fail; | |
20316 | } | |
20317 | Py_INCREF(Py_None); resultobj = Py_None; | |
20318 | return resultobj; | |
20319 | fail: | |
20320 | return NULL; | |
20321 | } | |
20322 | ||
20323 | ||
c32bde28 | 20324 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20325 | PyObject *resultobj; |
20326 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20327 | wxFont *arg2 = 0 ; | |
20328 | PyObject * obj0 = 0 ; | |
20329 | PyObject * obj1 = 0 ; | |
20330 | char *kwnames[] = { | |
20331 | (char *) "self",(char *) "font", NULL | |
20332 | }; | |
20333 | ||
20334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
20335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
20338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20339 | SWIG_fail; | |
20340 | if (arg2 == NULL) { | |
20341 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20342 | SWIG_fail; | |
20343 | } | |
20344 | { | |
20345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20346 | (arg1)->SetFont((wxFont const &)*arg2); | |
20347 | ||
20348 | wxPyEndAllowThreads(__tstate); | |
20349 | if (PyErr_Occurred()) SWIG_fail; | |
20350 | } | |
20351 | Py_INCREF(Py_None); resultobj = Py_None; | |
20352 | return resultobj; | |
20353 | fail: | |
20354 | return NULL; | |
20355 | } | |
20356 | ||
20357 | ||
c32bde28 | 20358 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20359 | PyObject *resultobj; |
20360 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20361 | long result; | |
20362 | PyObject * obj0 = 0 ; | |
20363 | char *kwnames[] = { | |
20364 | (char *) "self", NULL | |
20365 | }; | |
20366 | ||
20367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
20368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | result = (long)(arg1)->GetMask(); | |
20373 | ||
20374 | wxPyEndAllowThreads(__tstate); | |
20375 | if (PyErr_Occurred()) SWIG_fail; | |
20376 | } | |
c32bde28 | 20377 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20378 | return resultobj; |
20379 | fail: | |
20380 | return NULL; | |
20381 | } | |
20382 | ||
20383 | ||
c32bde28 | 20384 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20385 | PyObject *resultobj; |
20386 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20387 | long result; | |
20388 | PyObject * obj0 = 0 ; | |
20389 | char *kwnames[] = { | |
20390 | (char *) "self", NULL | |
20391 | }; | |
20392 | ||
20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
20394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20396 | { | |
20397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20398 | result = (long)(arg1)->GetId(); | |
20399 | ||
20400 | wxPyEndAllowThreads(__tstate); | |
20401 | if (PyErr_Occurred()) SWIG_fail; | |
20402 | } | |
c32bde28 | 20403 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20404 | return resultobj; |
20405 | fail: | |
20406 | return NULL; | |
20407 | } | |
20408 | ||
20409 | ||
c32bde28 | 20410 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20411 | PyObject *resultobj; |
20412 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20413 | int result; | |
20414 | PyObject * obj0 = 0 ; | |
20415 | char *kwnames[] = { | |
20416 | (char *) "self", NULL | |
20417 | }; | |
20418 | ||
20419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
20420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20422 | { | |
20423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20424 | result = (int)(arg1)->GetColumn(); | |
20425 | ||
20426 | wxPyEndAllowThreads(__tstate); | |
20427 | if (PyErr_Occurred()) SWIG_fail; | |
20428 | } | |
c32bde28 | 20429 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20430 | return resultobj; |
20431 | fail: | |
20432 | return NULL; | |
20433 | } | |
20434 | ||
20435 | ||
c32bde28 | 20436 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20437 | PyObject *resultobj; |
20438 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20439 | long result; | |
20440 | PyObject * obj0 = 0 ; | |
20441 | char *kwnames[] = { | |
20442 | (char *) "self", NULL | |
20443 | }; | |
20444 | ||
20445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
20446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20448 | { | |
20449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20450 | result = (long)(arg1)->GetState(); | |
20451 | ||
20452 | wxPyEndAllowThreads(__tstate); | |
20453 | if (PyErr_Occurred()) SWIG_fail; | |
20454 | } | |
c32bde28 | 20455 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20456 | return resultobj; |
20457 | fail: | |
20458 | return NULL; | |
20459 | } | |
20460 | ||
20461 | ||
c32bde28 | 20462 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20463 | PyObject *resultobj; |
20464 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20465 | wxString *result; | |
20466 | PyObject * obj0 = 0 ; | |
20467 | char *kwnames[] = { | |
20468 | (char *) "self", NULL | |
20469 | }; | |
20470 | ||
20471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
20472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20474 | { | |
20475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20476 | { | |
20477 | wxString const &_result_ref = (arg1)->GetText(); | |
20478 | result = (wxString *) &_result_ref; | |
20479 | } | |
20480 | ||
20481 | wxPyEndAllowThreads(__tstate); | |
20482 | if (PyErr_Occurred()) SWIG_fail; | |
20483 | } | |
20484 | { | |
20485 | #if wxUSE_UNICODE | |
20486 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20487 | #else | |
20488 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20489 | #endif | |
20490 | } | |
20491 | return resultobj; | |
20492 | fail: | |
20493 | return NULL; | |
20494 | } | |
20495 | ||
20496 | ||
c32bde28 | 20497 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc 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_GetImage",kwnames,&obj0)) goto fail; | |
20507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20509 | { | |
20510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20511 | result = (int)(arg1)->GetImage(); | |
20512 | ||
20513 | wxPyEndAllowThreads(__tstate); | |
20514 | if (PyErr_Occurred()) SWIG_fail; | |
20515 | } | |
c32bde28 | 20516 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20517 | return resultobj; |
20518 | fail: | |
20519 | return NULL; | |
20520 | } | |
20521 | ||
20522 | ||
c32bde28 | 20523 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20524 | PyObject *resultobj; |
20525 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20526 | long result; | |
20527 | PyObject * obj0 = 0 ; | |
20528 | char *kwnames[] = { | |
20529 | (char *) "self", NULL | |
20530 | }; | |
20531 | ||
20532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
20533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20535 | { | |
20536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20537 | result = (long)(arg1)->GetData(); | |
20538 | ||
20539 | wxPyEndAllowThreads(__tstate); | |
20540 | if (PyErr_Occurred()) SWIG_fail; | |
20541 | } | |
c32bde28 | 20542 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20543 | return resultobj; |
20544 | fail: | |
20545 | return NULL; | |
20546 | } | |
20547 | ||
20548 | ||
c32bde28 | 20549 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20550 | PyObject *resultobj; |
20551 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20552 | int result; | |
20553 | PyObject * obj0 = 0 ; | |
20554 | char *kwnames[] = { | |
20555 | (char *) "self", NULL | |
20556 | }; | |
20557 | ||
20558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
20559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20561 | { | |
20562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20563 | result = (int)(arg1)->GetWidth(); | |
20564 | ||
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
c32bde28 | 20568 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20569 | return resultobj; |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
c32bde28 | 20575 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20576 | PyObject *resultobj; |
20577 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20578 | int result; | |
20579 | PyObject * obj0 = 0 ; | |
20580 | char *kwnames[] = { | |
20581 | (char *) "self", NULL | |
20582 | }; | |
20583 | ||
20584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
20585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20587 | { | |
20588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20589 | result = (int)(arg1)->GetAlign(); | |
20590 | ||
20591 | wxPyEndAllowThreads(__tstate); | |
20592 | if (PyErr_Occurred()) SWIG_fail; | |
20593 | } | |
c32bde28 | 20594 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20595 | return resultobj; |
20596 | fail: | |
20597 | return NULL; | |
20598 | } | |
20599 | ||
20600 | ||
c32bde28 | 20601 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20602 | PyObject *resultobj; |
20603 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20604 | wxListItemAttr *result; | |
20605 | PyObject * obj0 = 0 ; | |
20606 | char *kwnames[] = { | |
20607 | (char *) "self", NULL | |
20608 | }; | |
20609 | ||
20610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
20611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20613 | { | |
20614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20615 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
20616 | ||
20617 | wxPyEndAllowThreads(__tstate); | |
20618 | if (PyErr_Occurred()) SWIG_fail; | |
20619 | } | |
20620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
20621 | return resultobj; | |
20622 | fail: | |
20623 | return NULL; | |
20624 | } | |
20625 | ||
20626 | ||
c32bde28 | 20627 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20628 | PyObject *resultobj; |
20629 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20630 | bool result; | |
20631 | PyObject * obj0 = 0 ; | |
20632 | char *kwnames[] = { | |
20633 | (char *) "self", NULL | |
20634 | }; | |
20635 | ||
20636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
20637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20639 | { | |
20640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20641 | result = (bool)(arg1)->HasAttributes(); | |
20642 | ||
20643 | wxPyEndAllowThreads(__tstate); | |
20644 | if (PyErr_Occurred()) SWIG_fail; | |
20645 | } | |
20646 | { | |
20647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20648 | } | |
20649 | return resultobj; | |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
c32bde28 | 20655 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20656 | PyObject *resultobj; |
20657 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20658 | wxColour result; | |
20659 | PyObject * obj0 = 0 ; | |
20660 | char *kwnames[] = { | |
20661 | (char *) "self", NULL | |
20662 | }; | |
20663 | ||
20664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
20665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20667 | { | |
20668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20669 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
20670 | ||
20671 | wxPyEndAllowThreads(__tstate); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
20674 | { | |
20675 | wxColour * resultptr; | |
20676 | resultptr = new wxColour((wxColour &) result); | |
20677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
20678 | } | |
20679 | return resultobj; | |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
c32bde28 | 20685 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20686 | PyObject *resultobj; |
20687 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20688 | wxColour result; | |
20689 | PyObject * obj0 = 0 ; | |
20690 | char *kwnames[] = { | |
20691 | (char *) "self", NULL | |
20692 | }; | |
20693 | ||
20694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
20695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20697 | { | |
20698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20699 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
20700 | ||
20701 | wxPyEndAllowThreads(__tstate); | |
20702 | if (PyErr_Occurred()) SWIG_fail; | |
20703 | } | |
20704 | { | |
20705 | wxColour * resultptr; | |
20706 | resultptr = new wxColour((wxColour &) result); | |
20707 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
20708 | } | |
20709 | return resultobj; | |
20710 | fail: | |
20711 | return NULL; | |
20712 | } | |
20713 | ||
20714 | ||
c32bde28 | 20715 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20716 | PyObject *resultobj; |
20717 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20718 | wxFont result; | |
20719 | PyObject * obj0 = 0 ; | |
20720 | char *kwnames[] = { | |
20721 | (char *) "self", NULL | |
20722 | }; | |
20723 | ||
20724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
20725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20727 | { | |
20728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20729 | result = ((wxListItem const *)arg1)->GetFont(); | |
20730 | ||
20731 | wxPyEndAllowThreads(__tstate); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
20734 | { | |
20735 | wxFont * resultptr; | |
20736 | resultptr = new wxFont((wxFont &) result); | |
20737 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
20738 | } | |
20739 | return resultobj; | |
20740 | fail: | |
20741 | return NULL; | |
20742 | } | |
20743 | ||
20744 | ||
c32bde28 | 20745 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20746 | PyObject *resultobj; |
20747 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20748 | long arg2 ; | |
20749 | PyObject * obj0 = 0 ; | |
20750 | PyObject * obj1 = 0 ; | |
20751 | char *kwnames[] = { | |
20752 | (char *) "self",(char *) "m_mask", NULL | |
20753 | }; | |
20754 | ||
20755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
20756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20758 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20759 | if (PyErr_Occurred()) SWIG_fail; |
20760 | if (arg1) (arg1)->m_mask = arg2; | |
20761 | ||
20762 | Py_INCREF(Py_None); resultobj = Py_None; | |
20763 | return resultobj; | |
20764 | fail: | |
20765 | return NULL; | |
20766 | } | |
20767 | ||
20768 | ||
c32bde28 | 20769 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20770 | PyObject *resultobj; |
20771 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20772 | long result; | |
20773 | PyObject * obj0 = 0 ; | |
20774 | char *kwnames[] = { | |
20775 | (char *) "self", NULL | |
20776 | }; | |
20777 | ||
20778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
20779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20781 | result = (long) ((arg1)->m_mask); | |
20782 | ||
c32bde28 | 20783 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20784 | return resultobj; |
20785 | fail: | |
20786 | return NULL; | |
20787 | } | |
20788 | ||
20789 | ||
c32bde28 | 20790 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20791 | PyObject *resultobj; |
20792 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20793 | long arg2 ; | |
20794 | PyObject * obj0 = 0 ; | |
20795 | PyObject * obj1 = 0 ; | |
20796 | char *kwnames[] = { | |
20797 | (char *) "self",(char *) "m_itemId", NULL | |
20798 | }; | |
20799 | ||
20800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
20801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20803 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20804 | if (PyErr_Occurred()) SWIG_fail; |
20805 | if (arg1) (arg1)->m_itemId = arg2; | |
20806 | ||
20807 | Py_INCREF(Py_None); resultobj = Py_None; | |
20808 | return resultobj; | |
20809 | fail: | |
20810 | return NULL; | |
20811 | } | |
20812 | ||
20813 | ||
c32bde28 | 20814 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20815 | PyObject *resultobj; |
20816 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20817 | long result; | |
20818 | PyObject * obj0 = 0 ; | |
20819 | char *kwnames[] = { | |
20820 | (char *) "self", NULL | |
20821 | }; | |
20822 | ||
20823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
20824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20826 | result = (long) ((arg1)->m_itemId); | |
20827 | ||
c32bde28 | 20828 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20829 | return resultobj; |
20830 | fail: | |
20831 | return NULL; | |
20832 | } | |
20833 | ||
20834 | ||
c32bde28 | 20835 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20836 | PyObject *resultobj; |
20837 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20838 | int arg2 ; | |
20839 | PyObject * obj0 = 0 ; | |
20840 | PyObject * obj1 = 0 ; | |
20841 | char *kwnames[] = { | |
20842 | (char *) "self",(char *) "m_col", NULL | |
20843 | }; | |
20844 | ||
20845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20848 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20849 | if (PyErr_Occurred()) SWIG_fail; |
20850 | if (arg1) (arg1)->m_col = arg2; | |
20851 | ||
20852 | Py_INCREF(Py_None); resultobj = Py_None; | |
20853 | return resultobj; | |
20854 | fail: | |
20855 | return NULL; | |
20856 | } | |
20857 | ||
20858 | ||
c32bde28 | 20859 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20860 | PyObject *resultobj; |
20861 | wxListItem *arg1 = (wxListItem *) 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:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
20869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20871 | result = (int) ((arg1)->m_col); | |
20872 | ||
c32bde28 | 20873 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20874 | return resultobj; |
20875 | fail: | |
20876 | return NULL; | |
20877 | } | |
20878 | ||
20879 | ||
c32bde28 | 20880 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20881 | PyObject *resultobj; |
20882 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20883 | long arg2 ; | |
20884 | PyObject * obj0 = 0 ; | |
20885 | PyObject * obj1 = 0 ; | |
20886 | char *kwnames[] = { | |
20887 | (char *) "self",(char *) "m_state", NULL | |
20888 | }; | |
20889 | ||
20890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
20891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20893 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20894 | if (PyErr_Occurred()) SWIG_fail; |
20895 | if (arg1) (arg1)->m_state = arg2; | |
20896 | ||
20897 | Py_INCREF(Py_None); resultobj = Py_None; | |
20898 | return resultobj; | |
20899 | fail: | |
20900 | return NULL; | |
20901 | } | |
20902 | ||
20903 | ||
c32bde28 | 20904 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20905 | PyObject *resultobj; |
20906 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20907 | long result; | |
20908 | PyObject * obj0 = 0 ; | |
20909 | char *kwnames[] = { | |
20910 | (char *) "self", NULL | |
20911 | }; | |
20912 | ||
20913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
20914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20916 | result = (long) ((arg1)->m_state); | |
20917 | ||
c32bde28 | 20918 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20919 | return resultobj; |
20920 | fail: | |
20921 | return NULL; | |
20922 | } | |
20923 | ||
20924 | ||
c32bde28 | 20925 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20926 | PyObject *resultobj; |
20927 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20928 | long arg2 ; | |
20929 | PyObject * obj0 = 0 ; | |
20930 | PyObject * obj1 = 0 ; | |
20931 | char *kwnames[] = { | |
20932 | (char *) "self",(char *) "m_stateMask", NULL | |
20933 | }; | |
20934 | ||
20935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
20936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20938 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
20939 | if (PyErr_Occurred()) SWIG_fail; |
20940 | if (arg1) (arg1)->m_stateMask = arg2; | |
20941 | ||
20942 | Py_INCREF(Py_None); resultobj = Py_None; | |
20943 | return resultobj; | |
20944 | fail: | |
20945 | return NULL; | |
20946 | } | |
20947 | ||
20948 | ||
c32bde28 | 20949 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20950 | PyObject *resultobj; |
20951 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20952 | long result; | |
20953 | PyObject * obj0 = 0 ; | |
20954 | char *kwnames[] = { | |
20955 | (char *) "self", NULL | |
20956 | }; | |
20957 | ||
20958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
20959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20961 | result = (long) ((arg1)->m_stateMask); | |
20962 | ||
c32bde28 | 20963 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20964 | return resultobj; |
20965 | fail: | |
20966 | return NULL; | |
20967 | } | |
20968 | ||
20969 | ||
c32bde28 | 20970 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20971 | PyObject *resultobj; |
20972 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20973 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 20974 | bool temp2 = false ; |
d55e5bfc RD |
20975 | PyObject * obj0 = 0 ; |
20976 | PyObject * obj1 = 0 ; | |
20977 | char *kwnames[] = { | |
20978 | (char *) "self",(char *) "m_text", NULL | |
20979 | }; | |
20980 | ||
20981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
20982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20984 | { | |
20985 | arg2 = wxString_in_helper(obj1); | |
20986 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20987 | temp2 = true; |
d55e5bfc RD |
20988 | } |
20989 | if (arg1) (arg1)->m_text = *arg2; | |
20990 | ||
20991 | Py_INCREF(Py_None); resultobj = Py_None; | |
20992 | { | |
20993 | if (temp2) | |
20994 | delete arg2; | |
20995 | } | |
20996 | return resultobj; | |
20997 | fail: | |
20998 | { | |
20999 | if (temp2) | |
21000 | delete arg2; | |
21001 | } | |
21002 | return NULL; | |
21003 | } | |
21004 | ||
21005 | ||
c32bde28 | 21006 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21007 | PyObject *resultobj; |
21008 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21009 | wxString *result; | |
21010 | PyObject * obj0 = 0 ; | |
21011 | char *kwnames[] = { | |
21012 | (char *) "self", NULL | |
21013 | }; | |
21014 | ||
21015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
21016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21018 | result = (wxString *)& ((arg1)->m_text); | |
21019 | ||
21020 | { | |
21021 | #if wxUSE_UNICODE | |
21022 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21023 | #else | |
21024 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21025 | #endif | |
21026 | } | |
21027 | return resultobj; | |
21028 | fail: | |
21029 | return NULL; | |
21030 | } | |
21031 | ||
21032 | ||
c32bde28 | 21033 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21034 | PyObject *resultobj; |
21035 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21036 | int arg2 ; | |
21037 | PyObject * obj0 = 0 ; | |
21038 | PyObject * obj1 = 0 ; | |
21039 | char *kwnames[] = { | |
21040 | (char *) "self",(char *) "m_image", NULL | |
21041 | }; | |
21042 | ||
21043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
21044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21046 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21047 | if (PyErr_Occurred()) SWIG_fail; |
21048 | if (arg1) (arg1)->m_image = arg2; | |
21049 | ||
21050 | Py_INCREF(Py_None); resultobj = Py_None; | |
21051 | return resultobj; | |
21052 | fail: | |
21053 | return NULL; | |
21054 | } | |
21055 | ||
21056 | ||
c32bde28 | 21057 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21058 | PyObject *resultobj; |
21059 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21060 | int result; | |
21061 | PyObject * obj0 = 0 ; | |
21062 | char *kwnames[] = { | |
21063 | (char *) "self", NULL | |
21064 | }; | |
21065 | ||
21066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
21067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21069 | result = (int) ((arg1)->m_image); | |
21070 | ||
c32bde28 | 21071 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21072 | return resultobj; |
21073 | fail: | |
21074 | return NULL; | |
21075 | } | |
21076 | ||
21077 | ||
c32bde28 | 21078 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21079 | PyObject *resultobj; |
21080 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21081 | long arg2 ; | |
21082 | PyObject * obj0 = 0 ; | |
21083 | PyObject * obj1 = 0 ; | |
21084 | char *kwnames[] = { | |
21085 | (char *) "self",(char *) "m_data", NULL | |
21086 | }; | |
21087 | ||
21088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
21089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21091 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21092 | if (PyErr_Occurred()) SWIG_fail; |
21093 | if (arg1) (arg1)->m_data = arg2; | |
21094 | ||
21095 | Py_INCREF(Py_None); resultobj = Py_None; | |
21096 | return resultobj; | |
21097 | fail: | |
21098 | return NULL; | |
21099 | } | |
21100 | ||
21101 | ||
c32bde28 | 21102 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21103 | PyObject *resultobj; |
21104 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21105 | long result; | |
21106 | PyObject * obj0 = 0 ; | |
21107 | char *kwnames[] = { | |
21108 | (char *) "self", NULL | |
21109 | }; | |
21110 | ||
21111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
21112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21114 | result = (long) ((arg1)->m_data); | |
21115 | ||
c32bde28 | 21116 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21117 | return resultobj; |
21118 | fail: | |
21119 | return NULL; | |
21120 | } | |
21121 | ||
21122 | ||
c32bde28 | 21123 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21124 | PyObject *resultobj; |
21125 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21126 | int arg2 ; | |
21127 | PyObject * obj0 = 0 ; | |
21128 | PyObject * obj1 = 0 ; | |
21129 | char *kwnames[] = { | |
21130 | (char *) "self",(char *) "m_format", NULL | |
21131 | }; | |
21132 | ||
21133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
21134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21136 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21137 | if (PyErr_Occurred()) SWIG_fail; |
21138 | if (arg1) (arg1)->m_format = arg2; | |
21139 | ||
21140 | Py_INCREF(Py_None); resultobj = Py_None; | |
21141 | return resultobj; | |
21142 | fail: | |
21143 | return NULL; | |
21144 | } | |
21145 | ||
21146 | ||
c32bde28 | 21147 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21148 | PyObject *resultobj; |
21149 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21150 | int result; | |
21151 | PyObject * obj0 = 0 ; | |
21152 | char *kwnames[] = { | |
21153 | (char *) "self", NULL | |
21154 | }; | |
21155 | ||
21156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
21157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21159 | result = (int) ((arg1)->m_format); | |
21160 | ||
c32bde28 | 21161 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21162 | return resultobj; |
21163 | fail: | |
21164 | return NULL; | |
21165 | } | |
21166 | ||
21167 | ||
c32bde28 | 21168 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21169 | PyObject *resultobj; |
21170 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21171 | int arg2 ; | |
21172 | PyObject * obj0 = 0 ; | |
21173 | PyObject * obj1 = 0 ; | |
21174 | char *kwnames[] = { | |
21175 | (char *) "self",(char *) "m_width", NULL | |
21176 | }; | |
21177 | ||
21178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
21179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21181 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21182 | if (PyErr_Occurred()) SWIG_fail; |
21183 | if (arg1) (arg1)->m_width = arg2; | |
21184 | ||
21185 | Py_INCREF(Py_None); resultobj = Py_None; | |
21186 | return resultobj; | |
21187 | fail: | |
21188 | return NULL; | |
21189 | } | |
21190 | ||
21191 | ||
c32bde28 | 21192 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21193 | PyObject *resultobj; |
21194 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21195 | int result; | |
21196 | PyObject * obj0 = 0 ; | |
21197 | char *kwnames[] = { | |
21198 | (char *) "self", NULL | |
21199 | }; | |
21200 | ||
21201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
21202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
21203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21204 | result = (int) ((arg1)->m_width); | |
21205 | ||
c32bde28 | 21206 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21207 | return resultobj; |
21208 | fail: | |
21209 | return NULL; | |
21210 | } | |
21211 | ||
21212 | ||
c32bde28 | 21213 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21214 | PyObject *obj; |
21215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21216 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
21217 | Py_INCREF(obj); | |
21218 | return Py_BuildValue((char *)""); | |
21219 | } | |
c32bde28 | 21220 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21221 | PyObject *resultobj; |
21222 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21223 | int arg2 = (int) 0 ; | |
21224 | wxListEvent *result; | |
21225 | PyObject * obj0 = 0 ; | |
21226 | PyObject * obj1 = 0 ; | |
21227 | char *kwnames[] = { | |
21228 | (char *) "commandType",(char *) "id", NULL | |
21229 | }; | |
21230 | ||
21231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
21232 | if (obj0) { | |
c32bde28 | 21233 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
21234 | if (PyErr_Occurred()) SWIG_fail; |
21235 | } | |
21236 | if (obj1) { | |
c32bde28 | 21237 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21238 | if (PyErr_Occurred()) SWIG_fail; |
21239 | } | |
21240 | { | |
21241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21242 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
21243 | ||
21244 | wxPyEndAllowThreads(__tstate); | |
21245 | if (PyErr_Occurred()) SWIG_fail; | |
21246 | } | |
21247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
21248 | return resultobj; | |
21249 | fail: | |
21250 | return NULL; | |
21251 | } | |
21252 | ||
21253 | ||
c32bde28 | 21254 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21255 | PyObject *resultobj; |
21256 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21257 | int arg2 ; | |
21258 | PyObject * obj0 = 0 ; | |
21259 | PyObject * obj1 = 0 ; | |
21260 | char *kwnames[] = { | |
21261 | (char *) "self",(char *) "m_code", NULL | |
21262 | }; | |
21263 | ||
21264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
21265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21267 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21268 | if (PyErr_Occurred()) SWIG_fail; |
21269 | if (arg1) (arg1)->m_code = arg2; | |
21270 | ||
21271 | Py_INCREF(Py_None); resultobj = Py_None; | |
21272 | return resultobj; | |
21273 | fail: | |
21274 | return NULL; | |
21275 | } | |
21276 | ||
21277 | ||
c32bde28 | 21278 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21279 | PyObject *resultobj; |
21280 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21281 | int result; | |
21282 | PyObject * obj0 = 0 ; | |
21283 | char *kwnames[] = { | |
21284 | (char *) "self", NULL | |
21285 | }; | |
21286 | ||
21287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
21288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21290 | result = (int) ((arg1)->m_code); | |
21291 | ||
c32bde28 | 21292 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21293 | return resultobj; |
21294 | fail: | |
21295 | return NULL; | |
21296 | } | |
21297 | ||
21298 | ||
c32bde28 | 21299 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21300 | PyObject *resultobj; |
21301 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21302 | long arg2 ; | |
21303 | PyObject * obj0 = 0 ; | |
21304 | PyObject * obj1 = 0 ; | |
21305 | char *kwnames[] = { | |
21306 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
21307 | }; | |
21308 | ||
21309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
21310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21312 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21313 | if (PyErr_Occurred()) SWIG_fail; |
21314 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
21315 | ||
21316 | Py_INCREF(Py_None); resultobj = Py_None; | |
21317 | return resultobj; | |
21318 | fail: | |
21319 | return NULL; | |
21320 | } | |
21321 | ||
21322 | ||
c32bde28 | 21323 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21324 | PyObject *resultobj; |
21325 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21326 | long result; | |
21327 | PyObject * obj0 = 0 ; | |
21328 | char *kwnames[] = { | |
21329 | (char *) "self", NULL | |
21330 | }; | |
21331 | ||
21332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
21333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21335 | result = (long) ((arg1)->m_oldItemIndex); | |
21336 | ||
c32bde28 | 21337 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21338 | return resultobj; |
21339 | fail: | |
21340 | return NULL; | |
21341 | } | |
21342 | ||
21343 | ||
c32bde28 | 21344 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21345 | PyObject *resultobj; |
21346 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21347 | long arg2 ; | |
21348 | PyObject * obj0 = 0 ; | |
21349 | PyObject * obj1 = 0 ; | |
21350 | char *kwnames[] = { | |
21351 | (char *) "self",(char *) "m_itemIndex", NULL | |
21352 | }; | |
21353 | ||
21354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
21355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21357 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21358 | if (PyErr_Occurred()) SWIG_fail; |
21359 | if (arg1) (arg1)->m_itemIndex = arg2; | |
21360 | ||
21361 | Py_INCREF(Py_None); resultobj = Py_None; | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
c32bde28 | 21368 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21369 | PyObject *resultobj; |
21370 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21371 | long result; | |
21372 | PyObject * obj0 = 0 ; | |
21373 | char *kwnames[] = { | |
21374 | (char *) "self", NULL | |
21375 | }; | |
21376 | ||
21377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
21378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21380 | result = (long) ((arg1)->m_itemIndex); | |
21381 | ||
c32bde28 | 21382 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21383 | return resultobj; |
21384 | fail: | |
21385 | return NULL; | |
21386 | } | |
21387 | ||
21388 | ||
c32bde28 | 21389 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21390 | PyObject *resultobj; |
21391 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21392 | int arg2 ; | |
21393 | PyObject * obj0 = 0 ; | |
21394 | PyObject * obj1 = 0 ; | |
21395 | char *kwnames[] = { | |
21396 | (char *) "self",(char *) "m_col", NULL | |
21397 | }; | |
21398 | ||
21399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
21400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21402 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21403 | if (PyErr_Occurred()) SWIG_fail; |
21404 | if (arg1) (arg1)->m_col = arg2; | |
21405 | ||
21406 | Py_INCREF(Py_None); resultobj = Py_None; | |
21407 | return resultobj; | |
21408 | fail: | |
21409 | return NULL; | |
21410 | } | |
21411 | ||
21412 | ||
c32bde28 | 21413 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21414 | PyObject *resultobj; |
21415 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21416 | int result; | |
21417 | PyObject * obj0 = 0 ; | |
21418 | char *kwnames[] = { | |
21419 | (char *) "self", NULL | |
21420 | }; | |
21421 | ||
21422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
21423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21425 | result = (int) ((arg1)->m_col); | |
21426 | ||
c32bde28 | 21427 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21428 | return resultobj; |
21429 | fail: | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
c32bde28 | 21434 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21435 | PyObject *resultobj; |
21436 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21437 | wxPoint *arg2 = (wxPoint *) 0 ; | |
21438 | PyObject * obj0 = 0 ; | |
21439 | PyObject * obj1 = 0 ; | |
21440 | char *kwnames[] = { | |
21441 | (char *) "self",(char *) "m_pointDrag", NULL | |
21442 | }; | |
21443 | ||
21444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
21445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21447 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
21448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21449 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
21450 | ||
21451 | Py_INCREF(Py_None); resultobj = Py_None; | |
21452 | return resultobj; | |
21453 | fail: | |
21454 | return NULL; | |
21455 | } | |
21456 | ||
21457 | ||
c32bde28 | 21458 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21459 | PyObject *resultobj; |
21460 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21461 | wxPoint *result; | |
21462 | PyObject * obj0 = 0 ; | |
21463 | char *kwnames[] = { | |
21464 | (char *) "self", NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
21468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21470 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
21471 | ||
21472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
c32bde28 | 21479 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21480 | PyObject *resultobj; |
21481 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21482 | wxListItem *result; | |
21483 | PyObject * obj0 = 0 ; | |
21484 | char *kwnames[] = { | |
21485 | (char *) "self", NULL | |
21486 | }; | |
21487 | ||
21488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
21489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21491 | result = (wxListItem *)& ((arg1)->m_item); | |
21492 | ||
21493 | { | |
412d302d | 21494 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21495 | } |
21496 | return resultobj; | |
21497 | fail: | |
21498 | return NULL; | |
21499 | } | |
21500 | ||
21501 | ||
c32bde28 | 21502 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21503 | PyObject *resultobj; |
21504 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21505 | int result; | |
21506 | PyObject * obj0 = 0 ; | |
21507 | char *kwnames[] = { | |
21508 | (char *) "self", NULL | |
21509 | }; | |
21510 | ||
21511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
21512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21514 | { | |
21515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21516 | result = (int)(arg1)->GetKeyCode(); | |
21517 | ||
21518 | wxPyEndAllowThreads(__tstate); | |
21519 | if (PyErr_Occurred()) SWIG_fail; | |
21520 | } | |
c32bde28 | 21521 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21522 | return resultobj; |
21523 | fail: | |
21524 | return NULL; | |
21525 | } | |
21526 | ||
21527 | ||
c32bde28 | 21528 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21529 | PyObject *resultobj; |
21530 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21531 | long result; | |
21532 | PyObject * obj0 = 0 ; | |
21533 | char *kwnames[] = { | |
21534 | (char *) "self", NULL | |
21535 | }; | |
21536 | ||
21537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
21538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21540 | { | |
21541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21542 | result = (long)(arg1)->GetIndex(); | |
21543 | ||
21544 | wxPyEndAllowThreads(__tstate); | |
21545 | if (PyErr_Occurred()) SWIG_fail; | |
21546 | } | |
c32bde28 | 21547 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21548 | return resultobj; |
21549 | fail: | |
21550 | return NULL; | |
21551 | } | |
21552 | ||
21553 | ||
c32bde28 | 21554 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21555 | PyObject *resultobj; |
21556 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21557 | int result; | |
21558 | PyObject * obj0 = 0 ; | |
21559 | char *kwnames[] = { | |
21560 | (char *) "self", NULL | |
21561 | }; | |
21562 | ||
21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
21564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21566 | { | |
21567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21568 | result = (int)(arg1)->GetColumn(); | |
21569 | ||
21570 | wxPyEndAllowThreads(__tstate); | |
21571 | if (PyErr_Occurred()) SWIG_fail; | |
21572 | } | |
c32bde28 | 21573 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21574 | return resultobj; |
21575 | fail: | |
21576 | return NULL; | |
21577 | } | |
21578 | ||
21579 | ||
c32bde28 | 21580 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21581 | PyObject *resultobj; |
21582 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21583 | wxPoint result; | |
21584 | PyObject * obj0 = 0 ; | |
21585 | char *kwnames[] = { | |
21586 | (char *) "self", NULL | |
21587 | }; | |
21588 | ||
21589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
21590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21592 | { | |
21593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21594 | result = (arg1)->GetPoint(); | |
21595 | ||
21596 | wxPyEndAllowThreads(__tstate); | |
21597 | if (PyErr_Occurred()) SWIG_fail; | |
21598 | } | |
21599 | { | |
21600 | wxPoint * resultptr; | |
21601 | resultptr = new wxPoint((wxPoint &) result); | |
21602 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
21603 | } | |
21604 | return resultobj; | |
21605 | fail: | |
21606 | return NULL; | |
21607 | } | |
21608 | ||
21609 | ||
c32bde28 | 21610 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21611 | PyObject *resultobj; |
21612 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21613 | wxString *result; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | char *kwnames[] = { | |
21616 | (char *) "self", NULL | |
21617 | }; | |
21618 | ||
21619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
21620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | { | |
21625 | wxString const &_result_ref = (arg1)->GetLabel(); | |
21626 | result = (wxString *) &_result_ref; | |
21627 | } | |
21628 | ||
21629 | wxPyEndAllowThreads(__tstate); | |
21630 | if (PyErr_Occurred()) SWIG_fail; | |
21631 | } | |
21632 | { | |
21633 | #if wxUSE_UNICODE | |
21634 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21635 | #else | |
21636 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21637 | #endif | |
21638 | } | |
21639 | return resultobj; | |
21640 | fail: | |
21641 | return NULL; | |
21642 | } | |
21643 | ||
21644 | ||
c32bde28 | 21645 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21646 | PyObject *resultobj; |
21647 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21648 | wxString *result; | |
21649 | PyObject * obj0 = 0 ; | |
21650 | char *kwnames[] = { | |
21651 | (char *) "self", NULL | |
21652 | }; | |
21653 | ||
21654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
21655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21657 | { | |
21658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21659 | { | |
21660 | wxString const &_result_ref = (arg1)->GetText(); | |
21661 | result = (wxString *) &_result_ref; | |
21662 | } | |
21663 | ||
21664 | wxPyEndAllowThreads(__tstate); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
21667 | { | |
21668 | #if wxUSE_UNICODE | |
21669 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21670 | #else | |
21671 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21672 | #endif | |
21673 | } | |
21674 | return resultobj; | |
21675 | fail: | |
21676 | return NULL; | |
21677 | } | |
21678 | ||
21679 | ||
c32bde28 | 21680 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21681 | PyObject *resultobj; |
21682 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21683 | int result; | |
21684 | PyObject * obj0 = 0 ; | |
21685 | char *kwnames[] = { | |
21686 | (char *) "self", NULL | |
21687 | }; | |
21688 | ||
21689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
21690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21692 | { | |
21693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21694 | result = (int)(arg1)->GetImage(); | |
21695 | ||
21696 | wxPyEndAllowThreads(__tstate); | |
21697 | if (PyErr_Occurred()) SWIG_fail; | |
21698 | } | |
c32bde28 | 21699 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21700 | return resultobj; |
21701 | fail: | |
21702 | return NULL; | |
21703 | } | |
21704 | ||
21705 | ||
c32bde28 | 21706 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21707 | PyObject *resultobj; |
21708 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21709 | long result; | |
21710 | PyObject * obj0 = 0 ; | |
21711 | char *kwnames[] = { | |
21712 | (char *) "self", NULL | |
21713 | }; | |
21714 | ||
21715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
21716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21718 | { | |
21719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21720 | result = (long)(arg1)->GetData(); | |
21721 | ||
21722 | wxPyEndAllowThreads(__tstate); | |
21723 | if (PyErr_Occurred()) SWIG_fail; | |
21724 | } | |
c32bde28 | 21725 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21726 | return resultobj; |
21727 | fail: | |
21728 | return NULL; | |
21729 | } | |
21730 | ||
21731 | ||
c32bde28 | 21732 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21733 | PyObject *resultobj; |
21734 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21735 | long result; | |
21736 | PyObject * obj0 = 0 ; | |
21737 | char *kwnames[] = { | |
21738 | (char *) "self", NULL | |
21739 | }; | |
21740 | ||
21741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
21742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21744 | { | |
21745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21746 | result = (long)(arg1)->GetMask(); | |
21747 | ||
21748 | wxPyEndAllowThreads(__tstate); | |
21749 | if (PyErr_Occurred()) SWIG_fail; | |
21750 | } | |
c32bde28 | 21751 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21752 | return resultobj; |
21753 | fail: | |
21754 | return NULL; | |
21755 | } | |
21756 | ||
21757 | ||
c32bde28 | 21758 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21759 | PyObject *resultobj; |
21760 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21761 | wxListItem *result; | |
21762 | PyObject * obj0 = 0 ; | |
21763 | char *kwnames[] = { | |
21764 | (char *) "self", NULL | |
21765 | }; | |
21766 | ||
21767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
21768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21770 | { | |
21771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21772 | { | |
21773 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
21774 | result = (wxListItem *) &_result_ref; | |
21775 | } | |
21776 | ||
21777 | wxPyEndAllowThreads(__tstate); | |
21778 | if (PyErr_Occurred()) SWIG_fail; | |
21779 | } | |
21780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
21781 | return resultobj; | |
21782 | fail: | |
21783 | return NULL; | |
21784 | } | |
21785 | ||
21786 | ||
c32bde28 | 21787 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21788 | PyObject *resultobj; |
21789 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21790 | long result; | |
21791 | PyObject * obj0 = 0 ; | |
21792 | char *kwnames[] = { | |
21793 | (char *) "self", NULL | |
21794 | }; | |
21795 | ||
21796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
21797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21799 | { | |
21800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21801 | result = (long)(arg1)->GetCacheFrom(); | |
21802 | ||
21803 | wxPyEndAllowThreads(__tstate); | |
21804 | if (PyErr_Occurred()) SWIG_fail; | |
21805 | } | |
c32bde28 | 21806 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21807 | return resultobj; |
21808 | fail: | |
21809 | return NULL; | |
21810 | } | |
21811 | ||
21812 | ||
c32bde28 | 21813 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21814 | PyObject *resultobj; |
21815 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21816 | long result; | |
21817 | PyObject * obj0 = 0 ; | |
21818 | char *kwnames[] = { | |
21819 | (char *) "self", NULL | |
21820 | }; | |
21821 | ||
21822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
21823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21825 | { | |
21826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21827 | result = (long)(arg1)->GetCacheTo(); | |
21828 | ||
21829 | wxPyEndAllowThreads(__tstate); | |
21830 | if (PyErr_Occurred()) SWIG_fail; | |
21831 | } | |
c32bde28 | 21832 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21833 | return resultobj; |
21834 | fail: | |
21835 | return NULL; | |
21836 | } | |
21837 | ||
21838 | ||
c32bde28 | 21839 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21840 | PyObject *resultobj; |
21841 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21842 | bool result; | |
21843 | PyObject * obj0 = 0 ; | |
21844 | char *kwnames[] = { | |
21845 | (char *) "self", NULL | |
21846 | }; | |
21847 | ||
21848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
21849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21851 | { | |
21852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21853 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21854 | ||
21855 | wxPyEndAllowThreads(__tstate); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | } | |
21858 | { | |
21859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21860 | } | |
21861 | return resultobj; | |
21862 | fail: | |
21863 | return NULL; | |
21864 | } | |
21865 | ||
21866 | ||
c32bde28 | 21867 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21868 | PyObject *resultobj; |
21869 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21870 | bool arg2 ; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | PyObject * obj1 = 0 ; | |
21873 | char *kwnames[] = { | |
21874 | (char *) "self",(char *) "editCancelled", NULL | |
21875 | }; | |
21876 | ||
21877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
21878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21880 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21881 | if (PyErr_Occurred()) SWIG_fail; |
21882 | { | |
21883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21884 | (arg1)->SetEditCanceled(arg2); | |
21885 | ||
21886 | wxPyEndAllowThreads(__tstate); | |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | Py_INCREF(Py_None); resultobj = Py_None; | |
21890 | return resultobj; | |
21891 | fail: | |
21892 | return NULL; | |
21893 | } | |
21894 | ||
21895 | ||
c32bde28 | 21896 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21897 | PyObject *obj; |
21898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21899 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21900 | Py_INCREF(obj); | |
21901 | return Py_BuildValue((char *)""); | |
21902 | } | |
c32bde28 | 21903 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21904 | PyObject *resultobj; |
21905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21906 | int arg2 = (int) -1 ; | |
21907 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21908 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21909 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21910 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21911 | long arg5 = (long) wxLC_ICON ; | |
21912 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21913 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21914 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21915 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21916 | wxPyListCtrl *result; | |
21917 | wxPoint temp3 ; | |
21918 | wxSize temp4 ; | |
ae8162c8 | 21919 | bool temp7 = false ; |
d55e5bfc RD |
21920 | PyObject * obj0 = 0 ; |
21921 | PyObject * obj1 = 0 ; | |
21922 | PyObject * obj2 = 0 ; | |
21923 | PyObject * obj3 = 0 ; | |
21924 | PyObject * obj4 = 0 ; | |
21925 | PyObject * obj5 = 0 ; | |
21926 | PyObject * obj6 = 0 ; | |
21927 | char *kwnames[] = { | |
21928 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21929 | }; | |
21930 | ||
21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21934 | if (obj1) { | |
c32bde28 | 21935 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21936 | if (PyErr_Occurred()) SWIG_fail; |
21937 | } | |
21938 | if (obj2) { | |
21939 | { | |
21940 | arg3 = &temp3; | |
21941 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21942 | } | |
21943 | } | |
21944 | if (obj3) { | |
21945 | { | |
21946 | arg4 = &temp4; | |
21947 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21948 | } | |
21949 | } | |
21950 | if (obj4) { | |
c32bde28 | 21951 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
21952 | if (PyErr_Occurred()) SWIG_fail; |
21953 | } | |
21954 | if (obj5) { | |
21955 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
21956 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21957 | SWIG_fail; | |
21958 | if (arg6 == NULL) { | |
21959 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21960 | SWIG_fail; | |
21961 | } | |
21962 | } | |
21963 | if (obj6) { | |
21964 | { | |
21965 | arg7 = wxString_in_helper(obj6); | |
21966 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 21967 | temp7 = true; |
d55e5bfc RD |
21968 | } |
21969 | } | |
21970 | { | |
0439c23b | 21971 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21973 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21974 | ||
21975 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21976 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21977 | } |
21978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21979 | { | |
21980 | if (temp7) | |
21981 | delete arg7; | |
21982 | } | |
21983 | return resultobj; | |
21984 | fail: | |
21985 | { | |
21986 | if (temp7) | |
21987 | delete arg7; | |
21988 | } | |
21989 | return NULL; | |
21990 | } | |
21991 | ||
21992 | ||
c32bde28 | 21993 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21994 | PyObject *resultobj; |
21995 | wxPyListCtrl *result; | |
21996 | char *kwnames[] = { | |
21997 | NULL | |
21998 | }; | |
21999 | ||
22000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
22001 | { | |
0439c23b | 22002 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22004 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
22005 | ||
22006 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22007 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22008 | } |
22009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
22010 | return resultobj; | |
22011 | fail: | |
22012 | return NULL; | |
22013 | } | |
22014 | ||
22015 | ||
c32bde28 | 22016 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22017 | PyObject *resultobj; |
22018 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22019 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22020 | int arg3 = (int) -1 ; | |
22021 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22022 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22023 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22024 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22025 | long arg6 = (long) wxLC_ICON ; | |
22026 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22027 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22028 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22029 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22030 | bool result; | |
22031 | wxPoint temp4 ; | |
22032 | wxSize temp5 ; | |
ae8162c8 | 22033 | bool temp8 = false ; |
d55e5bfc RD |
22034 | PyObject * obj0 = 0 ; |
22035 | PyObject * obj1 = 0 ; | |
22036 | PyObject * obj2 = 0 ; | |
22037 | PyObject * obj3 = 0 ; | |
22038 | PyObject * obj4 = 0 ; | |
22039 | PyObject * obj5 = 0 ; | |
22040 | PyObject * obj6 = 0 ; | |
22041 | PyObject * obj7 = 0 ; | |
22042 | char *kwnames[] = { | |
22043 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22044 | }; | |
22045 | ||
22046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
22047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22051 | if (obj2) { | |
c32bde28 | 22052 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22053 | if (PyErr_Occurred()) SWIG_fail; |
22054 | } | |
22055 | if (obj3) { | |
22056 | { | |
22057 | arg4 = &temp4; | |
22058 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22059 | } | |
22060 | } | |
22061 | if (obj4) { | |
22062 | { | |
22063 | arg5 = &temp5; | |
22064 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22065 | } | |
22066 | } | |
22067 | if (obj5) { | |
c32bde28 | 22068 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22069 | if (PyErr_Occurred()) SWIG_fail; |
22070 | } | |
22071 | if (obj6) { | |
22072 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
22073 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22074 | SWIG_fail; | |
22075 | if (arg7 == NULL) { | |
22076 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22077 | SWIG_fail; | |
22078 | } | |
22079 | } | |
22080 | if (obj7) { | |
22081 | { | |
22082 | arg8 = wxString_in_helper(obj7); | |
22083 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 22084 | temp8 = true; |
d55e5bfc RD |
22085 | } |
22086 | } | |
22087 | { | |
22088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22089 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22090 | ||
22091 | wxPyEndAllowThreads(__tstate); | |
22092 | if (PyErr_Occurred()) SWIG_fail; | |
22093 | } | |
22094 | { | |
22095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22096 | } | |
22097 | { | |
22098 | if (temp8) | |
22099 | delete arg8; | |
22100 | } | |
22101 | return resultobj; | |
22102 | fail: | |
22103 | { | |
22104 | if (temp8) | |
22105 | delete arg8; | |
22106 | } | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
c32bde28 | 22111 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22112 | PyObject *resultobj; |
22113 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22114 | PyObject *arg2 = (PyObject *) 0 ; | |
22115 | PyObject *arg3 = (PyObject *) 0 ; | |
22116 | PyObject * obj0 = 0 ; | |
22117 | PyObject * obj1 = 0 ; | |
22118 | PyObject * obj2 = 0 ; | |
22119 | char *kwnames[] = { | |
22120 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22121 | }; | |
22122 | ||
22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22126 | arg2 = obj1; | |
22127 | arg3 = obj2; | |
22128 | { | |
22129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22130 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22131 | ||
22132 | wxPyEndAllowThreads(__tstate); | |
22133 | if (PyErr_Occurred()) SWIG_fail; | |
22134 | } | |
22135 | Py_INCREF(Py_None); resultobj = Py_None; | |
22136 | return resultobj; | |
22137 | fail: | |
22138 | return NULL; | |
22139 | } | |
22140 | ||
22141 | ||
c32bde28 | 22142 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22143 | PyObject *resultobj; |
22144 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22145 | wxColour *arg2 = 0 ; | |
22146 | bool result; | |
22147 | wxColour temp2 ; | |
22148 | PyObject * obj0 = 0 ; | |
22149 | PyObject * obj1 = 0 ; | |
22150 | char *kwnames[] = { | |
22151 | (char *) "self",(char *) "col", NULL | |
22152 | }; | |
22153 | ||
22154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22157 | { | |
22158 | arg2 = &temp2; | |
22159 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22160 | } | |
22161 | { | |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
22164 | ||
22165 | wxPyEndAllowThreads(__tstate); | |
22166 | if (PyErr_Occurred()) SWIG_fail; | |
22167 | } | |
22168 | { | |
22169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22170 | } | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
22174 | } | |
22175 | ||
22176 | ||
c32bde28 | 22177 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22178 | PyObject *resultobj; |
22179 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22180 | wxColour *arg2 = 0 ; | |
22181 | bool result; | |
22182 | wxColour temp2 ; | |
22183 | PyObject * obj0 = 0 ; | |
22184 | PyObject * obj1 = 0 ; | |
22185 | char *kwnames[] = { | |
22186 | (char *) "self",(char *) "col", NULL | |
22187 | }; | |
22188 | ||
22189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22192 | { | |
22193 | arg2 = &temp2; | |
22194 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22195 | } | |
22196 | { | |
22197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22198 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22199 | ||
22200 | wxPyEndAllowThreads(__tstate); | |
22201 | if (PyErr_Occurred()) SWIG_fail; | |
22202 | } | |
22203 | { | |
22204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22205 | } | |
22206 | return resultobj; | |
22207 | fail: | |
22208 | return NULL; | |
22209 | } | |
22210 | ||
22211 | ||
c32bde28 | 22212 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22213 | PyObject *resultobj; |
22214 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22215 | int arg2 ; | |
22216 | wxListItem *result; | |
22217 | PyObject * obj0 = 0 ; | |
22218 | PyObject * obj1 = 0 ; | |
22219 | char *kwnames[] = { | |
22220 | (char *) "self",(char *) "col", NULL | |
22221 | }; | |
22222 | ||
22223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
22224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22226 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22227 | if (PyErr_Occurred()) SWIG_fail; |
22228 | { | |
22229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22230 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
22231 | ||
22232 | wxPyEndAllowThreads(__tstate); | |
22233 | if (PyErr_Occurred()) SWIG_fail; | |
22234 | } | |
22235 | { | |
412d302d | 22236 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22237 | } |
22238 | return resultobj; | |
22239 | fail: | |
22240 | return NULL; | |
22241 | } | |
22242 | ||
22243 | ||
c32bde28 | 22244 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22245 | PyObject *resultobj; |
22246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22247 | int arg2 ; | |
22248 | wxListItem *arg3 = 0 ; | |
22249 | bool result; | |
22250 | PyObject * obj0 = 0 ; | |
22251 | PyObject * obj1 = 0 ; | |
22252 | PyObject * obj2 = 0 ; | |
22253 | char *kwnames[] = { | |
22254 | (char *) "self",(char *) "col",(char *) "item", NULL | |
22255 | }; | |
22256 | ||
22257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22260 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22261 | if (PyErr_Occurred()) SWIG_fail; |
22262 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
22263 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22264 | SWIG_fail; | |
22265 | if (arg3 == NULL) { | |
22266 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22267 | SWIG_fail; | |
22268 | } | |
22269 | { | |
22270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22271 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
22272 | ||
22273 | wxPyEndAllowThreads(__tstate); | |
22274 | if (PyErr_Occurred()) SWIG_fail; | |
22275 | } | |
22276 | { | |
22277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22278 | } | |
22279 | return resultobj; | |
22280 | fail: | |
22281 | return NULL; | |
22282 | } | |
22283 | ||
22284 | ||
c32bde28 | 22285 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22286 | PyObject *resultobj; |
22287 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22288 | int arg2 ; | |
22289 | int result; | |
22290 | PyObject * obj0 = 0 ; | |
22291 | PyObject * obj1 = 0 ; | |
22292 | char *kwnames[] = { | |
22293 | (char *) "self",(char *) "col", NULL | |
22294 | }; | |
22295 | ||
22296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
22297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22299 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22300 | if (PyErr_Occurred()) SWIG_fail; |
22301 | { | |
22302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22303 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
22304 | ||
22305 | wxPyEndAllowThreads(__tstate); | |
22306 | if (PyErr_Occurred()) SWIG_fail; | |
22307 | } | |
c32bde28 | 22308 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22309 | return resultobj; |
22310 | fail: | |
22311 | return NULL; | |
22312 | } | |
22313 | ||
22314 | ||
c32bde28 | 22315 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22316 | PyObject *resultobj; |
22317 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22318 | int arg2 ; | |
22319 | int arg3 ; | |
22320 | bool result; | |
22321 | PyObject * obj0 = 0 ; | |
22322 | PyObject * obj1 = 0 ; | |
22323 | PyObject * obj2 = 0 ; | |
22324 | char *kwnames[] = { | |
22325 | (char *) "self",(char *) "col",(char *) "width", NULL | |
22326 | }; | |
22327 | ||
22328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22331 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22332 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22333 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22334 | if (PyErr_Occurred()) SWIG_fail; |
22335 | { | |
22336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22337 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
22338 | ||
22339 | wxPyEndAllowThreads(__tstate); | |
22340 | if (PyErr_Occurred()) SWIG_fail; | |
22341 | } | |
22342 | { | |
22343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22344 | } | |
22345 | return resultobj; | |
22346 | fail: | |
22347 | return NULL; | |
22348 | } | |
22349 | ||
22350 | ||
c32bde28 | 22351 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22352 | PyObject *resultobj; |
22353 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22354 | int result; | |
22355 | PyObject * obj0 = 0 ; | |
22356 | char *kwnames[] = { | |
22357 | (char *) "self", NULL | |
22358 | }; | |
22359 | ||
22360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
22361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22363 | { | |
22364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22365 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
22366 | ||
22367 | wxPyEndAllowThreads(__tstate); | |
22368 | if (PyErr_Occurred()) SWIG_fail; | |
22369 | } | |
c32bde28 | 22370 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22371 | return resultobj; |
22372 | fail: | |
22373 | return NULL; | |
22374 | } | |
22375 | ||
22376 | ||
c32bde28 | 22377 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22378 | PyObject *resultobj; |
22379 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22380 | wxRect result; | |
22381 | PyObject * obj0 = 0 ; | |
22382 | char *kwnames[] = { | |
22383 | (char *) "self", NULL | |
22384 | }; | |
22385 | ||
22386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
22387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22389 | { | |
22390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22391 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
22392 | ||
22393 | wxPyEndAllowThreads(__tstate); | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
22396 | { | |
22397 | wxRect * resultptr; | |
22398 | resultptr = new wxRect((wxRect &) result); | |
22399 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22400 | } | |
22401 | return resultobj; | |
22402 | fail: | |
22403 | return NULL; | |
22404 | } | |
22405 | ||
22406 | ||
c32bde28 | 22407 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22408 | PyObject *resultobj; |
22409 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22410 | wxTextCtrl *result; | |
22411 | PyObject * obj0 = 0 ; | |
22412 | char *kwnames[] = { | |
22413 | (char *) "self", NULL | |
22414 | }; | |
22415 | ||
22416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
22417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22419 | { | |
22420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22421 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
22422 | ||
22423 | wxPyEndAllowThreads(__tstate); | |
22424 | if (PyErr_Occurred()) SWIG_fail; | |
22425 | } | |
22426 | { | |
412d302d | 22427 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22428 | } |
22429 | return resultobj; | |
22430 | fail: | |
22431 | return NULL; | |
22432 | } | |
22433 | ||
22434 | ||
c32bde28 | 22435 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22436 | PyObject *resultobj; |
22437 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22438 | long arg2 ; | |
22439 | int arg3 = (int) 0 ; | |
22440 | wxListItem *result; | |
22441 | PyObject * obj0 = 0 ; | |
22442 | PyObject * obj1 = 0 ; | |
22443 | PyObject * obj2 = 0 ; | |
22444 | char *kwnames[] = { | |
22445 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
22446 | }; | |
22447 | ||
22448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22451 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22452 | if (PyErr_Occurred()) SWIG_fail; |
22453 | if (obj2) { | |
c32bde28 | 22454 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22455 | if (PyErr_Occurred()) SWIG_fail; |
22456 | } | |
22457 | { | |
22458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22459 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
22460 | ||
22461 | wxPyEndAllowThreads(__tstate); | |
22462 | if (PyErr_Occurred()) SWIG_fail; | |
22463 | } | |
22464 | { | |
412d302d | 22465 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22466 | } |
22467 | return resultobj; | |
22468 | fail: | |
22469 | return NULL; | |
22470 | } | |
22471 | ||
22472 | ||
c32bde28 | 22473 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22474 | PyObject *resultobj; |
22475 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22476 | wxListItem *arg2 = 0 ; | |
22477 | bool result; | |
22478 | PyObject * obj0 = 0 ; | |
22479 | PyObject * obj1 = 0 ; | |
22480 | char *kwnames[] = { | |
22481 | (char *) "self",(char *) "info", NULL | |
22482 | }; | |
22483 | ||
22484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
22485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22489 | SWIG_fail; | |
22490 | if (arg2 == NULL) { | |
22491 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22492 | SWIG_fail; | |
22493 | } | |
22494 | { | |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | result = (bool)(arg1)->SetItem(*arg2); | |
22497 | ||
22498 | wxPyEndAllowThreads(__tstate); | |
22499 | if (PyErr_Occurred()) SWIG_fail; | |
22500 | } | |
22501 | { | |
22502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22503 | } | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
c32bde28 | 22510 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22511 | PyObject *resultobj; |
22512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22513 | long arg2 ; | |
22514 | int arg3 ; | |
22515 | wxString *arg4 = 0 ; | |
22516 | int arg5 = (int) -1 ; | |
22517 | long result; | |
ae8162c8 | 22518 | bool temp4 = false ; |
d55e5bfc RD |
22519 | PyObject * obj0 = 0 ; |
22520 | PyObject * obj1 = 0 ; | |
22521 | PyObject * obj2 = 0 ; | |
22522 | PyObject * obj3 = 0 ; | |
22523 | PyObject * obj4 = 0 ; | |
22524 | char *kwnames[] = { | |
22525 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
22526 | }; | |
22527 | ||
22528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
22529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22531 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 22532 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22533 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22534 | if (PyErr_Occurred()) SWIG_fail; |
22535 | { | |
22536 | arg4 = wxString_in_helper(obj3); | |
22537 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 22538 | temp4 = true; |
d55e5bfc RD |
22539 | } |
22540 | if (obj4) { | |
c32bde28 | 22541 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
22542 | if (PyErr_Occurred()) SWIG_fail; |
22543 | } | |
22544 | { | |
22545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22546 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
22547 | ||
22548 | wxPyEndAllowThreads(__tstate); | |
22549 | if (PyErr_Occurred()) SWIG_fail; | |
22550 | } | |
c32bde28 | 22551 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
22552 | { |
22553 | if (temp4) | |
22554 | delete arg4; | |
22555 | } | |
22556 | return resultobj; | |
22557 | fail: | |
22558 | { | |
22559 | if (temp4) | |
22560 | delete arg4; | |
22561 | } | |
22562 | return NULL; | |
22563 | } | |
22564 | ||
22565 | ||
c32bde28 | 22566 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22567 | PyObject *resultobj; |
22568 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22569 | long arg2 ; | |
22570 | long arg3 ; | |
22571 | int result; | |
22572 | PyObject * obj0 = 0 ; | |
22573 | PyObject * obj1 = 0 ; | |
22574 | PyObject * obj2 = 0 ; | |
22575 | char *kwnames[] = { | |
22576 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
22577 | }; | |
22578 | ||
22579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22582 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 22583 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22584 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
22585 | if (PyErr_Occurred()) SWIG_fail; |
22586 | { | |
22587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22588 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
22589 | ||
22590 | wxPyEndAllowThreads(__tstate); | |
22591 | if (PyErr_Occurred()) SWIG_fail; | |
22592 | } | |
c32bde28 | 22593 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22594 | return resultobj; |
22595 | fail: | |
22596 | return NULL; | |
22597 | } | |
22598 | ||
22599 | ||
c32bde28 | 22600 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22601 | PyObject *resultobj; |
22602 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22603 | long arg2 ; | |
22604 | long arg3 ; | |
22605 | long arg4 ; | |
22606 | bool result; | |
22607 | PyObject * obj0 = 0 ; | |
22608 | PyObject * obj1 = 0 ; | |
22609 | PyObject * obj2 = 0 ; | |
22610 | PyObject * obj3 = 0 ; | |
22611 | char *kwnames[] = { | |
22612 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
22613 | }; | |
22614 | ||
22615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22618 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 22619 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22620 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc | 22621 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22622 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
22623 | if (PyErr_Occurred()) SWIG_fail; |
22624 | { | |
22625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22626 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
22627 | ||
22628 | wxPyEndAllowThreads(__tstate); | |
22629 | if (PyErr_Occurred()) SWIG_fail; | |
22630 | } | |
22631 | { | |
22632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22633 | } | |
22634 | return resultobj; | |
22635 | fail: | |
22636 | return NULL; | |
22637 | } | |
22638 | ||
22639 | ||
c32bde28 | 22640 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22641 | PyObject *resultobj; |
22642 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22643 | long arg2 ; | |
22644 | int arg3 ; | |
84f85550 | 22645 | int arg4 = (int) -1 ; |
d55e5bfc RD |
22646 | bool result; |
22647 | PyObject * obj0 = 0 ; | |
22648 | PyObject * obj1 = 0 ; | |
22649 | PyObject * obj2 = 0 ; | |
22650 | PyObject * obj3 = 0 ; | |
22651 | char *kwnames[] = { | |
22652 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
22653 | }; | |
22654 | ||
84f85550 | 22655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
22656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22658 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 22659 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22660 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 22661 | if (PyErr_Occurred()) SWIG_fail; |
84f85550 RD |
22662 | if (obj3) { |
22663 | arg4 = (int)SWIG_As_int(obj3); | |
22664 | if (PyErr_Occurred()) SWIG_fail; | |
22665 | } | |
d55e5bfc RD |
22666 | { |
22667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22668 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
22669 | ||
22670 | wxPyEndAllowThreads(__tstate); | |
22671 | if (PyErr_Occurred()) SWIG_fail; | |
22672 | } | |
22673 | { | |
22674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22675 | } | |
22676 | return resultobj; | |
22677 | fail: | |
22678 | return NULL; | |
22679 | } | |
22680 | ||
22681 | ||
c32bde28 | 22682 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22683 | PyObject *resultobj; |
22684 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22685 | long arg2 ; | |
22686 | wxString result; | |
22687 | PyObject * obj0 = 0 ; | |
22688 | PyObject * obj1 = 0 ; | |
22689 | char *kwnames[] = { | |
22690 | (char *) "self",(char *) "item", NULL | |
22691 | }; | |
22692 | ||
22693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
22694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22696 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22697 | if (PyErr_Occurred()) SWIG_fail; |
22698 | { | |
22699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22700 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
22701 | ||
22702 | wxPyEndAllowThreads(__tstate); | |
22703 | if (PyErr_Occurred()) SWIG_fail; | |
22704 | } | |
22705 | { | |
22706 | #if wxUSE_UNICODE | |
22707 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22708 | #else | |
22709 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22710 | #endif | |
22711 | } | |
22712 | return resultobj; | |
22713 | fail: | |
22714 | return NULL; | |
22715 | } | |
22716 | ||
22717 | ||
c32bde28 | 22718 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22719 | PyObject *resultobj; |
22720 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22721 | long arg2 ; | |
22722 | wxString *arg3 = 0 ; | |
ae8162c8 | 22723 | bool temp3 = false ; |
d55e5bfc RD |
22724 | PyObject * obj0 = 0 ; |
22725 | PyObject * obj1 = 0 ; | |
22726 | PyObject * obj2 = 0 ; | |
22727 | char *kwnames[] = { | |
22728 | (char *) "self",(char *) "item",(char *) "str", NULL | |
22729 | }; | |
22730 | ||
22731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22734 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22735 | if (PyErr_Occurred()) SWIG_fail; |
22736 | { | |
22737 | arg3 = wxString_in_helper(obj2); | |
22738 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 22739 | temp3 = true; |
d55e5bfc RD |
22740 | } |
22741 | { | |
22742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22743 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
22744 | ||
22745 | wxPyEndAllowThreads(__tstate); | |
22746 | if (PyErr_Occurred()) SWIG_fail; | |
22747 | } | |
22748 | Py_INCREF(Py_None); resultobj = Py_None; | |
22749 | { | |
22750 | if (temp3) | |
22751 | delete arg3; | |
22752 | } | |
22753 | return resultobj; | |
22754 | fail: | |
22755 | { | |
22756 | if (temp3) | |
22757 | delete arg3; | |
22758 | } | |
22759 | return NULL; | |
22760 | } | |
22761 | ||
22762 | ||
c32bde28 | 22763 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22764 | PyObject *resultobj; |
22765 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22766 | long arg2 ; | |
22767 | long result; | |
22768 | PyObject * obj0 = 0 ; | |
22769 | PyObject * obj1 = 0 ; | |
22770 | char *kwnames[] = { | |
22771 | (char *) "self",(char *) "item", NULL | |
22772 | }; | |
22773 | ||
22774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
22775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22777 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22778 | if (PyErr_Occurred()) SWIG_fail; |
22779 | { | |
22780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22781 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
22782 | ||
22783 | wxPyEndAllowThreads(__tstate); | |
22784 | if (PyErr_Occurred()) SWIG_fail; | |
22785 | } | |
c32bde28 | 22786 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
22787 | return resultobj; |
22788 | fail: | |
22789 | return NULL; | |
22790 | } | |
22791 | ||
22792 | ||
c32bde28 | 22793 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22794 | PyObject *resultobj; |
22795 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22796 | long arg2 ; | |
22797 | long arg3 ; | |
22798 | bool result; | |
22799 | PyObject * obj0 = 0 ; | |
22800 | PyObject * obj1 = 0 ; | |
22801 | PyObject * obj2 = 0 ; | |
22802 | char *kwnames[] = { | |
22803 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22804 | }; | |
22805 | ||
22806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22809 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 22810 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22811 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
22812 | if (PyErr_Occurred()) SWIG_fail; |
22813 | { | |
22814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22815 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
22816 | ||
22817 | wxPyEndAllowThreads(__tstate); | |
22818 | if (PyErr_Occurred()) SWIG_fail; | |
22819 | } | |
22820 | { | |
22821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22822 | } | |
22823 | return resultobj; | |
22824 | fail: | |
22825 | return NULL; | |
22826 | } | |
22827 | ||
22828 | ||
c32bde28 | 22829 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22830 | PyObject *resultobj; |
22831 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22832 | long arg2 ; | |
22833 | wxPoint result; | |
22834 | PyObject * obj0 = 0 ; | |
22835 | PyObject * obj1 = 0 ; | |
22836 | char *kwnames[] = { | |
22837 | (char *) "self",(char *) "item", NULL | |
22838 | }; | |
22839 | ||
22840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
22841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22843 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22844 | if (PyErr_Occurred()) SWIG_fail; |
22845 | { | |
22846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22847 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
22848 | ||
22849 | wxPyEndAllowThreads(__tstate); | |
22850 | if (PyErr_Occurred()) SWIG_fail; | |
22851 | } | |
22852 | { | |
22853 | wxPoint * resultptr; | |
22854 | resultptr = new wxPoint((wxPoint &) result); | |
22855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22856 | } | |
22857 | return resultobj; | |
22858 | fail: | |
22859 | return NULL; | |
22860 | } | |
22861 | ||
22862 | ||
c32bde28 | 22863 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22864 | PyObject *resultobj; |
22865 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22866 | long arg2 ; | |
22867 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22868 | wxRect result; | |
22869 | PyObject * obj0 = 0 ; | |
22870 | PyObject * obj1 = 0 ; | |
22871 | PyObject * obj2 = 0 ; | |
22872 | char *kwnames[] = { | |
22873 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22874 | }; | |
22875 | ||
22876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22879 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22880 | if (PyErr_Occurred()) SWIG_fail; |
22881 | if (obj2) { | |
c32bde28 | 22882 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22883 | if (PyErr_Occurred()) SWIG_fail; |
22884 | } | |
22885 | { | |
22886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22887 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22888 | ||
22889 | wxPyEndAllowThreads(__tstate); | |
22890 | if (PyErr_Occurred()) SWIG_fail; | |
22891 | } | |
22892 | { | |
22893 | wxRect * resultptr; | |
22894 | resultptr = new wxRect((wxRect &) result); | |
22895 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22896 | } | |
22897 | return resultobj; | |
22898 | fail: | |
22899 | return NULL; | |
22900 | } | |
22901 | ||
22902 | ||
c32bde28 | 22903 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22904 | PyObject *resultobj; |
22905 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22906 | long arg2 ; | |
22907 | wxPoint *arg3 = 0 ; | |
22908 | bool result; | |
22909 | wxPoint temp3 ; | |
22910 | PyObject * obj0 = 0 ; | |
22911 | PyObject * obj1 = 0 ; | |
22912 | PyObject * obj2 = 0 ; | |
22913 | char *kwnames[] = { | |
22914 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22915 | }; | |
22916 | ||
22917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22920 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22921 | if (PyErr_Occurred()) SWIG_fail; |
22922 | { | |
22923 | arg3 = &temp3; | |
22924 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22925 | } | |
22926 | { | |
22927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22928 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22929 | ||
22930 | wxPyEndAllowThreads(__tstate); | |
22931 | if (PyErr_Occurred()) SWIG_fail; | |
22932 | } | |
22933 | { | |
22934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22935 | } | |
22936 | return resultobj; | |
22937 | fail: | |
22938 | return NULL; | |
22939 | } | |
22940 | ||
22941 | ||
c32bde28 | 22942 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22943 | PyObject *resultobj; |
22944 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22945 | int result; | |
22946 | PyObject * obj0 = 0 ; | |
22947 | char *kwnames[] = { | |
22948 | (char *) "self", NULL | |
22949 | }; | |
22950 | ||
22951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
22952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22954 | { | |
22955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22956 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22957 | ||
22958 | wxPyEndAllowThreads(__tstate); | |
22959 | if (PyErr_Occurred()) SWIG_fail; | |
22960 | } | |
c32bde28 | 22961 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22962 | return resultobj; |
22963 | fail: | |
22964 | return NULL; | |
22965 | } | |
22966 | ||
22967 | ||
c32bde28 | 22968 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22969 | PyObject *resultobj; |
22970 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22971 | int result; | |
22972 | PyObject * obj0 = 0 ; | |
22973 | char *kwnames[] = { | |
22974 | (char *) "self", NULL | |
22975 | }; | |
22976 | ||
22977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
22978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22980 | { | |
22981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22982 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22983 | ||
22984 | wxPyEndAllowThreads(__tstate); | |
22985 | if (PyErr_Occurred()) SWIG_fail; | |
22986 | } | |
c32bde28 | 22987 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22988 | return resultobj; |
22989 | fail: | |
22990 | return NULL; | |
22991 | } | |
22992 | ||
22993 | ||
c32bde28 | 22994 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22995 | PyObject *resultobj; |
22996 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22997 | wxSize result; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | char *kwnames[] = { | |
23000 | (char *) "self", NULL | |
23001 | }; | |
23002 | ||
23003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
23004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23006 | { | |
23007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23008 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
23013 | { | |
23014 | wxSize * resultptr; | |
23015 | resultptr = new wxSize((wxSize &) result); | |
23016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23017 | } | |
23018 | return resultobj; | |
23019 | fail: | |
23020 | return NULL; | |
23021 | } | |
23022 | ||
23023 | ||
c32bde28 | 23024 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23025 | PyObject *resultobj; |
23026 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23027 | int result; | |
23028 | PyObject * obj0 = 0 ; | |
23029 | char *kwnames[] = { | |
23030 | (char *) "self", NULL | |
23031 | }; | |
23032 | ||
23033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
23034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23036 | { | |
23037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23038 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
23039 | ||
23040 | wxPyEndAllowThreads(__tstate); | |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
23042 | } | |
c32bde28 | 23043 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23044 | return resultobj; |
23045 | fail: | |
23046 | return NULL; | |
23047 | } | |
23048 | ||
23049 | ||
c32bde28 | 23050 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23051 | PyObject *resultobj; |
23052 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23053 | wxColour result; | |
23054 | PyObject * obj0 = 0 ; | |
23055 | char *kwnames[] = { | |
23056 | (char *) "self", NULL | |
23057 | }; | |
23058 | ||
23059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
23060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23062 | { | |
23063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23064 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
23065 | ||
23066 | wxPyEndAllowThreads(__tstate); | |
23067 | if (PyErr_Occurred()) SWIG_fail; | |
23068 | } | |
23069 | { | |
23070 | wxColour * resultptr; | |
23071 | resultptr = new wxColour((wxColour &) result); | |
23072 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23073 | } | |
23074 | return resultobj; | |
23075 | fail: | |
23076 | return NULL; | |
23077 | } | |
23078 | ||
23079 | ||
c32bde28 | 23080 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23081 | PyObject *resultobj; |
23082 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23083 | wxColour *arg2 = 0 ; | |
23084 | wxColour temp2 ; | |
23085 | PyObject * obj0 = 0 ; | |
23086 | PyObject * obj1 = 0 ; | |
23087 | char *kwnames[] = { | |
23088 | (char *) "self",(char *) "col", NULL | |
23089 | }; | |
23090 | ||
23091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
23092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23094 | { | |
23095 | arg2 = &temp2; | |
23096 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23097 | } | |
23098 | { | |
23099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23100 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
23101 | ||
23102 | wxPyEndAllowThreads(__tstate); | |
23103 | if (PyErr_Occurred()) SWIG_fail; | |
23104 | } | |
23105 | Py_INCREF(Py_None); resultobj = Py_None; | |
23106 | return resultobj; | |
23107 | fail: | |
23108 | return NULL; | |
23109 | } | |
23110 | ||
23111 | ||
c32bde28 | 23112 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23113 | PyObject *resultobj; |
23114 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23115 | long result; | |
23116 | PyObject * obj0 = 0 ; | |
23117 | char *kwnames[] = { | |
23118 | (char *) "self", NULL | |
23119 | }; | |
23120 | ||
23121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
23122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23124 | { | |
23125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23126 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
23127 | ||
23128 | wxPyEndAllowThreads(__tstate); | |
23129 | if (PyErr_Occurred()) SWIG_fail; | |
23130 | } | |
c32bde28 | 23131 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23132 | return resultobj; |
23133 | fail: | |
23134 | return NULL; | |
23135 | } | |
23136 | ||
23137 | ||
c32bde28 | 23138 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23139 | PyObject *resultobj; |
23140 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23141 | long arg2 ; | |
ae8162c8 | 23142 | bool arg3 = (bool) true ; |
d55e5bfc RD |
23143 | PyObject * obj0 = 0 ; |
23144 | PyObject * obj1 = 0 ; | |
23145 | PyObject * obj2 = 0 ; | |
23146 | char *kwnames[] = { | |
23147 | (char *) "self",(char *) "style",(char *) "add", NULL | |
23148 | }; | |
23149 | ||
23150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23153 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23154 | if (PyErr_Occurred()) SWIG_fail; |
23155 | if (obj2) { | |
c32bde28 | 23156 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
23157 | if (PyErr_Occurred()) SWIG_fail; |
23158 | } | |
23159 | { | |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | (arg1)->SetSingleStyle(arg2,arg3); | |
23162 | ||
23163 | wxPyEndAllowThreads(__tstate); | |
23164 | if (PyErr_Occurred()) SWIG_fail; | |
23165 | } | |
23166 | Py_INCREF(Py_None); resultobj = Py_None; | |
23167 | return resultobj; | |
23168 | fail: | |
23169 | return NULL; | |
23170 | } | |
23171 | ||
23172 | ||
c32bde28 | 23173 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23174 | PyObject *resultobj; |
23175 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23176 | long arg2 ; | |
23177 | PyObject * obj0 = 0 ; | |
23178 | PyObject * obj1 = 0 ; | |
23179 | char *kwnames[] = { | |
23180 | (char *) "self",(char *) "style", NULL | |
23181 | }; | |
23182 | ||
23183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
23184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23186 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23187 | if (PyErr_Occurred()) SWIG_fail; |
23188 | { | |
23189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23190 | (arg1)->SetWindowStyleFlag(arg2); | |
23191 | ||
23192 | wxPyEndAllowThreads(__tstate); | |
23193 | if (PyErr_Occurred()) SWIG_fail; | |
23194 | } | |
23195 | Py_INCREF(Py_None); resultobj = Py_None; | |
23196 | return resultobj; | |
23197 | fail: | |
23198 | return NULL; | |
23199 | } | |
23200 | ||
23201 | ||
c32bde28 | 23202 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23203 | PyObject *resultobj; |
23204 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23205 | long arg2 ; | |
23206 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
23207 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
23208 | long result; | |
23209 | PyObject * obj0 = 0 ; | |
23210 | PyObject * obj1 = 0 ; | |
23211 | PyObject * obj2 = 0 ; | |
23212 | PyObject * obj3 = 0 ; | |
23213 | char *kwnames[] = { | |
23214 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
23215 | }; | |
23216 | ||
23217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23220 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23221 | if (PyErr_Occurred()) SWIG_fail; |
23222 | if (obj2) { | |
c32bde28 | 23223 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23224 | if (PyErr_Occurred()) SWIG_fail; |
23225 | } | |
23226 | if (obj3) { | |
c32bde28 | 23227 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23228 | if (PyErr_Occurred()) SWIG_fail; |
23229 | } | |
23230 | { | |
23231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23232 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
23233 | ||
23234 | wxPyEndAllowThreads(__tstate); | |
23235 | if (PyErr_Occurred()) SWIG_fail; | |
23236 | } | |
c32bde28 | 23237 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23238 | return resultobj; |
23239 | fail: | |
23240 | return NULL; | |
23241 | } | |
23242 | ||
23243 | ||
c32bde28 | 23244 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23245 | PyObject *resultobj; |
23246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23247 | int arg2 ; | |
23248 | wxImageList *result; | |
23249 | PyObject * obj0 = 0 ; | |
23250 | PyObject * obj1 = 0 ; | |
23251 | char *kwnames[] = { | |
23252 | (char *) "self",(char *) "which", NULL | |
23253 | }; | |
23254 | ||
23255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
23256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23258 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23259 | if (PyErr_Occurred()) SWIG_fail; |
23260 | { | |
23261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23262 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
23263 | ||
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
23267 | { | |
412d302d | 23268 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23269 | } |
23270 | return resultobj; | |
23271 | fail: | |
23272 | return NULL; | |
23273 | } | |
23274 | ||
23275 | ||
c32bde28 | 23276 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23277 | PyObject *resultobj; |
23278 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23279 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23280 | int arg3 ; | |
23281 | PyObject * obj0 = 0 ; | |
23282 | PyObject * obj1 = 0 ; | |
23283 | PyObject * obj2 = 0 ; | |
23284 | char *kwnames[] = { | |
23285 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
23286 | }; | |
23287 | ||
23288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
23292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23293 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23294 | if (PyErr_Occurred()) SWIG_fail; |
23295 | { | |
23296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23297 | (arg1)->SetImageList(arg2,arg3); | |
23298 | ||
23299 | wxPyEndAllowThreads(__tstate); | |
23300 | if (PyErr_Occurred()) SWIG_fail; | |
23301 | } | |
23302 | Py_INCREF(Py_None); resultobj = Py_None; | |
23303 | return resultobj; | |
23304 | fail: | |
23305 | return NULL; | |
23306 | } | |
23307 | ||
23308 | ||
c32bde28 | 23309 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23310 | PyObject *resultobj; |
23311 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23312 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23313 | int arg3 ; | |
23314 | PyObject * obj0 = 0 ; | |
23315 | PyObject * obj1 = 0 ; | |
23316 | PyObject * obj2 = 0 ; | |
23317 | char *kwnames[] = { | |
23318 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
23319 | }; | |
23320 | ||
23321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
23325 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
c32bde28 | 23326 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23327 | if (PyErr_Occurred()) SWIG_fail; |
23328 | { | |
23329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23330 | (arg1)->AssignImageList(arg2,arg3); | |
23331 | ||
23332 | wxPyEndAllowThreads(__tstate); | |
23333 | if (PyErr_Occurred()) SWIG_fail; | |
23334 | } | |
23335 | Py_INCREF(Py_None); resultobj = Py_None; | |
23336 | return resultobj; | |
23337 | fail: | |
23338 | return NULL; | |
23339 | } | |
23340 | ||
23341 | ||
c32bde28 | 23342 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23343 | PyObject *resultobj; |
23344 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23345 | bool result; | |
23346 | PyObject * obj0 = 0 ; | |
23347 | char *kwnames[] = { | |
23348 | (char *) "self", NULL | |
23349 | }; | |
23350 | ||
23351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
23352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23354 | { | |
23355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23356 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
23357 | ||
23358 | wxPyEndAllowThreads(__tstate); | |
23359 | if (PyErr_Occurred()) SWIG_fail; | |
23360 | } | |
23361 | { | |
23362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23363 | } | |
23364 | return resultobj; | |
23365 | fail: | |
23366 | return NULL; | |
23367 | } | |
23368 | ||
23369 | ||
c32bde28 | 23370 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23371 | PyObject *resultobj; |
23372 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23373 | bool result; | |
23374 | PyObject * obj0 = 0 ; | |
23375 | char *kwnames[] = { | |
23376 | (char *) "self", NULL | |
23377 | }; | |
23378 | ||
23379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
23380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23382 | { | |
23383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23384 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
23385 | ||
23386 | wxPyEndAllowThreads(__tstate); | |
23387 | if (PyErr_Occurred()) SWIG_fail; | |
23388 | } | |
23389 | { | |
23390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23391 | } | |
23392 | return resultobj; | |
23393 | fail: | |
23394 | return NULL; | |
23395 | } | |
23396 | ||
23397 | ||
c32bde28 | 23398 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23399 | PyObject *resultobj; |
23400 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23401 | long arg2 ; | |
23402 | PyObject * obj0 = 0 ; | |
23403 | PyObject * obj1 = 0 ; | |
23404 | char *kwnames[] = { | |
23405 | (char *) "self",(char *) "item", NULL | |
23406 | }; | |
23407 | ||
23408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
23409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23411 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23412 | if (PyErr_Occurred()) SWIG_fail; |
23413 | { | |
23414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23415 | (arg1)->RefreshItem(arg2); | |
23416 | ||
23417 | wxPyEndAllowThreads(__tstate); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
23419 | } | |
23420 | Py_INCREF(Py_None); resultobj = Py_None; | |
23421 | return resultobj; | |
23422 | fail: | |
23423 | return NULL; | |
23424 | } | |
23425 | ||
23426 | ||
c32bde28 | 23427 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23428 | PyObject *resultobj; |
23429 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23430 | long arg2 ; | |
23431 | long arg3 ; | |
23432 | PyObject * obj0 = 0 ; | |
23433 | PyObject * obj1 = 0 ; | |
23434 | PyObject * obj2 = 0 ; | |
23435 | char *kwnames[] = { | |
23436 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
23437 | }; | |
23438 | ||
23439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23442 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 23443 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23444 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
23445 | if (PyErr_Occurred()) SWIG_fail; |
23446 | { | |
23447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23448 | (arg1)->RefreshItems(arg2,arg3); | |
23449 | ||
23450 | wxPyEndAllowThreads(__tstate); | |
23451 | if (PyErr_Occurred()) SWIG_fail; | |
23452 | } | |
23453 | Py_INCREF(Py_None); resultobj = Py_None; | |
23454 | return resultobj; | |
23455 | fail: | |
23456 | return NULL; | |
23457 | } | |
23458 | ||
23459 | ||
c32bde28 | 23460 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23461 | PyObject *resultobj; |
23462 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23463 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
23464 | bool result; | |
23465 | PyObject * obj0 = 0 ; | |
23466 | PyObject * obj1 = 0 ; | |
23467 | char *kwnames[] = { | |
23468 | (char *) "self",(char *) "flag", NULL | |
23469 | }; | |
23470 | ||
23471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
23472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23474 | if (obj1) { | |
c32bde28 | 23475 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23476 | if (PyErr_Occurred()) SWIG_fail; |
23477 | } | |
23478 | { | |
23479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23480 | result = (bool)(arg1)->Arrange(arg2); | |
23481 | ||
23482 | wxPyEndAllowThreads(__tstate); | |
23483 | if (PyErr_Occurred()) SWIG_fail; | |
23484 | } | |
23485 | { | |
23486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23487 | } | |
23488 | return resultobj; | |
23489 | fail: | |
23490 | return NULL; | |
23491 | } | |
23492 | ||
23493 | ||
c32bde28 | 23494 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23495 | PyObject *resultobj; |
23496 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23497 | long arg2 ; | |
23498 | bool result; | |
23499 | PyObject * obj0 = 0 ; | |
23500 | PyObject * obj1 = 0 ; | |
23501 | char *kwnames[] = { | |
23502 | (char *) "self",(char *) "item", NULL | |
23503 | }; | |
23504 | ||
23505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
23506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23508 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23509 | if (PyErr_Occurred()) SWIG_fail; |
23510 | { | |
23511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23512 | result = (bool)(arg1)->DeleteItem(arg2); | |
23513 | ||
23514 | wxPyEndAllowThreads(__tstate); | |
23515 | if (PyErr_Occurred()) SWIG_fail; | |
23516 | } | |
23517 | { | |
23518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23519 | } | |
23520 | return resultobj; | |
23521 | fail: | |
23522 | return NULL; | |
23523 | } | |
23524 | ||
23525 | ||
c32bde28 | 23526 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23527 | PyObject *resultobj; |
23528 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23529 | bool result; | |
23530 | PyObject * obj0 = 0 ; | |
23531 | char *kwnames[] = { | |
23532 | (char *) "self", NULL | |
23533 | }; | |
23534 | ||
23535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
23536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23538 | { | |
23539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23540 | result = (bool)(arg1)->DeleteAllItems(); | |
23541 | ||
23542 | wxPyEndAllowThreads(__tstate); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
23544 | } | |
23545 | { | |
23546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23547 | } | |
23548 | return resultobj; | |
23549 | fail: | |
23550 | return NULL; | |
23551 | } | |
23552 | ||
23553 | ||
c32bde28 | 23554 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23555 | PyObject *resultobj; |
23556 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23557 | int arg2 ; | |
23558 | bool result; | |
23559 | PyObject * obj0 = 0 ; | |
23560 | PyObject * obj1 = 0 ; | |
23561 | char *kwnames[] = { | |
23562 | (char *) "self",(char *) "col", NULL | |
23563 | }; | |
23564 | ||
23565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
23566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23568 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23569 | if (PyErr_Occurred()) SWIG_fail; |
23570 | { | |
23571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23572 | result = (bool)(arg1)->DeleteColumn(arg2); | |
23573 | ||
23574 | wxPyEndAllowThreads(__tstate); | |
23575 | if (PyErr_Occurred()) SWIG_fail; | |
23576 | } | |
23577 | { | |
23578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23579 | } | |
23580 | return resultobj; | |
23581 | fail: | |
23582 | return NULL; | |
23583 | } | |
23584 | ||
23585 | ||
c32bde28 | 23586 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23587 | PyObject *resultobj; |
23588 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23589 | bool result; | |
23590 | PyObject * obj0 = 0 ; | |
23591 | char *kwnames[] = { | |
23592 | (char *) "self", NULL | |
23593 | }; | |
23594 | ||
23595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
23596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23598 | { | |
23599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23600 | result = (bool)(arg1)->DeleteAllColumns(); | |
23601 | ||
23602 | wxPyEndAllowThreads(__tstate); | |
23603 | if (PyErr_Occurred()) SWIG_fail; | |
23604 | } | |
23605 | { | |
23606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23607 | } | |
23608 | return resultobj; | |
23609 | fail: | |
23610 | return NULL; | |
23611 | } | |
23612 | ||
23613 | ||
c32bde28 | 23614 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23615 | PyObject *resultobj; |
23616 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23617 | PyObject * obj0 = 0 ; | |
23618 | char *kwnames[] = { | |
23619 | (char *) "self", NULL | |
23620 | }; | |
23621 | ||
23622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
23623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23625 | { | |
23626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23627 | (arg1)->ClearAll(); | |
23628 | ||
23629 | wxPyEndAllowThreads(__tstate); | |
23630 | if (PyErr_Occurred()) SWIG_fail; | |
23631 | } | |
23632 | Py_INCREF(Py_None); resultobj = Py_None; | |
23633 | return resultobj; | |
23634 | fail: | |
23635 | return NULL; | |
23636 | } | |
23637 | ||
23638 | ||
c32bde28 | 23639 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23640 | PyObject *resultobj; |
23641 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23642 | long arg2 ; | |
23643 | wxTextCtrl *result; | |
23644 | PyObject * obj0 = 0 ; | |
23645 | PyObject * obj1 = 0 ; | |
23646 | char *kwnames[] = { | |
23647 | (char *) "self",(char *) "item", NULL | |
23648 | }; | |
23649 | ||
23650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
23651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23653 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23654 | if (PyErr_Occurred()) SWIG_fail; |
23655 | { | |
23656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23657 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
23658 | ||
23659 | wxPyEndAllowThreads(__tstate); | |
23660 | if (PyErr_Occurred()) SWIG_fail; | |
23661 | } | |
23662 | { | |
412d302d | 23663 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23664 | } |
23665 | return resultobj; | |
23666 | fail: | |
23667 | return NULL; | |
23668 | } | |
23669 | ||
23670 | ||
c32bde28 | 23671 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23672 | PyObject *resultobj; |
23673 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23674 | bool arg2 ; | |
23675 | bool result; | |
23676 | PyObject * obj0 = 0 ; | |
23677 | PyObject * obj1 = 0 ; | |
23678 | char *kwnames[] = { | |
23679 | (char *) "self",(char *) "cancel", NULL | |
23680 | }; | |
23681 | ||
23682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
23683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23685 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
23686 | if (PyErr_Occurred()) SWIG_fail; |
23687 | { | |
23688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23689 | result = (bool)(arg1)->EndEditLabel(arg2); | |
23690 | ||
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | { | |
23695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23696 | } | |
23697 | return resultobj; | |
23698 | fail: | |
23699 | return NULL; | |
23700 | } | |
23701 | ||
23702 | ||
c32bde28 | 23703 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23704 | PyObject *resultobj; |
23705 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23706 | long arg2 ; | |
23707 | bool result; | |
23708 | PyObject * obj0 = 0 ; | |
23709 | PyObject * obj1 = 0 ; | |
23710 | char *kwnames[] = { | |
23711 | (char *) "self",(char *) "item", NULL | |
23712 | }; | |
23713 | ||
23714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
23715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23717 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23718 | if (PyErr_Occurred()) SWIG_fail; |
23719 | { | |
23720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23721 | result = (bool)(arg1)->EnsureVisible(arg2); | |
23722 | ||
23723 | wxPyEndAllowThreads(__tstate); | |
23724 | if (PyErr_Occurred()) SWIG_fail; | |
23725 | } | |
23726 | { | |
23727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23728 | } | |
23729 | return resultobj; | |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
c32bde28 | 23735 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23736 | PyObject *resultobj; |
23737 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23738 | long arg2 ; | |
23739 | wxString *arg3 = 0 ; | |
ae8162c8 | 23740 | bool arg4 = (bool) false ; |
d55e5bfc | 23741 | long result; |
ae8162c8 | 23742 | bool temp3 = false ; |
d55e5bfc RD |
23743 | PyObject * obj0 = 0 ; |
23744 | PyObject * obj1 = 0 ; | |
23745 | PyObject * obj2 = 0 ; | |
23746 | PyObject * obj3 = 0 ; | |
23747 | char *kwnames[] = { | |
23748 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
23749 | }; | |
23750 | ||
23751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23754 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23755 | if (PyErr_Occurred()) SWIG_fail; |
23756 | { | |
23757 | arg3 = wxString_in_helper(obj2); | |
23758 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23759 | temp3 = true; |
d55e5bfc RD |
23760 | } |
23761 | if (obj3) { | |
c32bde28 | 23762 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
23763 | if (PyErr_Occurred()) SWIG_fail; |
23764 | } | |
23765 | { | |
23766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23767 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
23768 | ||
23769 | wxPyEndAllowThreads(__tstate); | |
23770 | if (PyErr_Occurred()) SWIG_fail; | |
23771 | } | |
c32bde28 | 23772 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23773 | { |
23774 | if (temp3) | |
23775 | delete arg3; | |
23776 | } | |
23777 | return resultobj; | |
23778 | fail: | |
23779 | { | |
23780 | if (temp3) | |
23781 | delete arg3; | |
23782 | } | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
c32bde28 | 23787 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23788 | PyObject *resultobj; |
23789 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23790 | long arg2 ; | |
23791 | long arg3 ; | |
23792 | long result; | |
23793 | PyObject * obj0 = 0 ; | |
23794 | PyObject * obj1 = 0 ; | |
23795 | PyObject * obj2 = 0 ; | |
23796 | char *kwnames[] = { | |
23797 | (char *) "self",(char *) "start",(char *) "data", NULL | |
23798 | }; | |
23799 | ||
23800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23803 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 23804 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23805 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
23806 | if (PyErr_Occurred()) SWIG_fail; |
23807 | { | |
23808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23809 | result = (long)(arg1)->FindItem(arg2,arg3); | |
23810 | ||
23811 | wxPyEndAllowThreads(__tstate); | |
23812 | if (PyErr_Occurred()) SWIG_fail; | |
23813 | } | |
c32bde28 | 23814 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23815 | return resultobj; |
23816 | fail: | |
23817 | return NULL; | |
23818 | } | |
23819 | ||
23820 | ||
c32bde28 | 23821 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23822 | PyObject *resultobj; |
23823 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23824 | long arg2 ; | |
23825 | wxPoint *arg3 = 0 ; | |
23826 | int arg4 ; | |
23827 | long result; | |
23828 | wxPoint temp3 ; | |
23829 | PyObject * obj0 = 0 ; | |
23830 | PyObject * obj1 = 0 ; | |
23831 | PyObject * obj2 = 0 ; | |
23832 | PyObject * obj3 = 0 ; | |
23833 | char *kwnames[] = { | |
23834 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
23835 | }; | |
23836 | ||
23837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23840 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23841 | if (PyErr_Occurred()) SWIG_fail; |
23842 | { | |
23843 | arg3 = &temp3; | |
23844 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23845 | } | |
c32bde28 | 23846 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23847 | if (PyErr_Occurred()) SWIG_fail; |
23848 | { | |
23849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23850 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
23851 | ||
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
c32bde28 | 23855 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23856 | return resultobj; |
23857 | fail: | |
23858 | return NULL; | |
23859 | } | |
23860 | ||
23861 | ||
c32bde28 | 23862 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23863 | PyObject *resultobj; |
23864 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23865 | wxPoint *arg2 = 0 ; | |
23866 | int *arg3 = 0 ; | |
23867 | long result; | |
23868 | wxPoint temp2 ; | |
23869 | int temp3 ; | |
c32bde28 | 23870 | int res3 = 0 ; |
d55e5bfc RD |
23871 | PyObject * obj0 = 0 ; |
23872 | PyObject * obj1 = 0 ; | |
23873 | char *kwnames[] = { | |
23874 | (char *) "self",(char *) "point", NULL | |
23875 | }; | |
23876 | ||
c32bde28 | 23877 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
23878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
23879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23881 | { | |
23882 | arg2 = &temp2; | |
23883 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23884 | } | |
23885 | { | |
23886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23887 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23888 | ||
23889 | wxPyEndAllowThreads(__tstate); | |
23890 | if (PyErr_Occurred()) SWIG_fail; | |
23891 | } | |
c32bde28 RD |
23892 | resultobj = SWIG_From_long((long)result); |
23893 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23894 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23895 | return resultobj; |
23896 | fail: | |
23897 | return NULL; | |
23898 | } | |
23899 | ||
23900 | ||
c32bde28 | 23901 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23902 | PyObject *resultobj; |
23903 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23904 | wxListItem *arg2 = 0 ; | |
23905 | long result; | |
23906 | PyObject * obj0 = 0 ; | |
23907 | PyObject * obj1 = 0 ; | |
23908 | char *kwnames[] = { | |
23909 | (char *) "self",(char *) "info", NULL | |
23910 | }; | |
23911 | ||
23912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
23913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23915 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23916 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23917 | SWIG_fail; | |
23918 | if (arg2 == NULL) { | |
23919 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23920 | SWIG_fail; | |
23921 | } | |
23922 | { | |
23923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23924 | result = (long)(arg1)->InsertItem(*arg2); | |
23925 | ||
23926 | wxPyEndAllowThreads(__tstate); | |
23927 | if (PyErr_Occurred()) SWIG_fail; | |
23928 | } | |
c32bde28 | 23929 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23930 | return resultobj; |
23931 | fail: | |
23932 | return NULL; | |
23933 | } | |
23934 | ||
23935 | ||
c32bde28 | 23936 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23937 | PyObject *resultobj; |
23938 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23939 | long arg2 ; | |
23940 | wxString *arg3 = 0 ; | |
23941 | long result; | |
ae8162c8 | 23942 | bool temp3 = false ; |
d55e5bfc RD |
23943 | PyObject * obj0 = 0 ; |
23944 | PyObject * obj1 = 0 ; | |
23945 | PyObject * obj2 = 0 ; | |
23946 | char *kwnames[] = { | |
23947 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23948 | }; | |
23949 | ||
23950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23953 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
23954 | if (PyErr_Occurred()) SWIG_fail; |
23955 | { | |
23956 | arg3 = wxString_in_helper(obj2); | |
23957 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23958 | temp3 = true; |
d55e5bfc RD |
23959 | } |
23960 | { | |
23961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23962 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23963 | ||
23964 | wxPyEndAllowThreads(__tstate); | |
23965 | if (PyErr_Occurred()) SWIG_fail; | |
23966 | } | |
c32bde28 | 23967 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
23968 | { |
23969 | if (temp3) | |
23970 | delete arg3; | |
23971 | } | |
23972 | return resultobj; | |
23973 | fail: | |
23974 | { | |
23975 | if (temp3) | |
23976 | delete arg3; | |
23977 | } | |
23978 | return NULL; | |
23979 | } | |
23980 | ||
23981 | ||
c32bde28 | 23982 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23983 | PyObject *resultobj; |
23984 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23985 | long arg2 ; | |
23986 | int arg3 ; | |
23987 | long result; | |
23988 | PyObject * obj0 = 0 ; | |
23989 | PyObject * obj1 = 0 ; | |
23990 | PyObject * obj2 = 0 ; | |
23991 | char *kwnames[] = { | |
23992 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23993 | }; | |
23994 | ||
23995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23998 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 23999 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24000 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24001 | if (PyErr_Occurred()) SWIG_fail; |
24002 | { | |
24003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24004 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
24005 | ||
24006 | wxPyEndAllowThreads(__tstate); | |
24007 | if (PyErr_Occurred()) SWIG_fail; | |
24008 | } | |
c32bde28 | 24009 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24010 | return resultobj; |
24011 | fail: | |
24012 | return NULL; | |
24013 | } | |
24014 | ||
24015 | ||
c32bde28 | 24016 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24017 | PyObject *resultobj; |
24018 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24019 | long arg2 ; | |
24020 | wxString *arg3 = 0 ; | |
24021 | int arg4 ; | |
24022 | long result; | |
ae8162c8 | 24023 | bool temp3 = false ; |
d55e5bfc RD |
24024 | PyObject * obj0 = 0 ; |
24025 | PyObject * obj1 = 0 ; | |
24026 | PyObject * obj2 = 0 ; | |
24027 | PyObject * obj3 = 0 ; | |
24028 | char *kwnames[] = { | |
24029 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
24030 | }; | |
24031 | ||
24032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24035 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24036 | if (PyErr_Occurred()) SWIG_fail; |
24037 | { | |
24038 | arg3 = wxString_in_helper(obj2); | |
24039 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24040 | temp3 = true; |
d55e5bfc | 24041 | } |
c32bde28 | 24042 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
24043 | if (PyErr_Occurred()) SWIG_fail; |
24044 | { | |
24045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24046 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
24047 | ||
24048 | wxPyEndAllowThreads(__tstate); | |
24049 | if (PyErr_Occurred()) SWIG_fail; | |
24050 | } | |
c32bde28 | 24051 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24052 | { |
24053 | if (temp3) | |
24054 | delete arg3; | |
24055 | } | |
24056 | return resultobj; | |
24057 | fail: | |
24058 | { | |
24059 | if (temp3) | |
24060 | delete arg3; | |
24061 | } | |
24062 | return NULL; | |
24063 | } | |
24064 | ||
24065 | ||
c32bde28 | 24066 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24067 | PyObject *resultobj; |
24068 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24069 | long arg2 ; | |
24070 | wxListItem *arg3 = 0 ; | |
24071 | long result; | |
24072 | PyObject * obj0 = 0 ; | |
24073 | PyObject * obj1 = 0 ; | |
24074 | PyObject * obj2 = 0 ; | |
24075 | char *kwnames[] = { | |
24076 | (char *) "self",(char *) "col",(char *) "info", NULL | |
24077 | }; | |
24078 | ||
24079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24082 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24083 | if (PyErr_Occurred()) SWIG_fail; |
24084 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
24085 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24086 | SWIG_fail; | |
24087 | if (arg3 == NULL) { | |
24088 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24089 | SWIG_fail; | |
24090 | } | |
24091 | { | |
24092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24093 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
24094 | ||
24095 | wxPyEndAllowThreads(__tstate); | |
24096 | if (PyErr_Occurred()) SWIG_fail; | |
24097 | } | |
c32bde28 | 24098 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24099 | return resultobj; |
24100 | fail: | |
24101 | return NULL; | |
24102 | } | |
24103 | ||
24104 | ||
c32bde28 | 24105 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24106 | PyObject *resultobj; |
24107 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24108 | long arg2 ; | |
24109 | wxString *arg3 = 0 ; | |
24110 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
24111 | int arg5 = (int) -1 ; | |
24112 | long result; | |
ae8162c8 | 24113 | bool temp3 = false ; |
d55e5bfc RD |
24114 | PyObject * obj0 = 0 ; |
24115 | PyObject * obj1 = 0 ; | |
24116 | PyObject * obj2 = 0 ; | |
24117 | PyObject * obj3 = 0 ; | |
24118 | PyObject * obj4 = 0 ; | |
24119 | char *kwnames[] = { | |
24120 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
24121 | }; | |
24122 | ||
24123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
24124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24126 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24127 | if (PyErr_Occurred()) SWIG_fail; |
24128 | { | |
24129 | arg3 = wxString_in_helper(obj2); | |
24130 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24131 | temp3 = true; |
d55e5bfc RD |
24132 | } |
24133 | if (obj3) { | |
c32bde28 | 24134 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
24135 | if (PyErr_Occurred()) SWIG_fail; |
24136 | } | |
24137 | if (obj4) { | |
c32bde28 | 24138 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
24139 | if (PyErr_Occurred()) SWIG_fail; |
24140 | } | |
24141 | { | |
24142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24143 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
24144 | ||
24145 | wxPyEndAllowThreads(__tstate); | |
24146 | if (PyErr_Occurred()) SWIG_fail; | |
24147 | } | |
c32bde28 | 24148 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24149 | { |
24150 | if (temp3) | |
24151 | delete arg3; | |
24152 | } | |
24153 | return resultobj; | |
24154 | fail: | |
24155 | { | |
24156 | if (temp3) | |
24157 | delete arg3; | |
24158 | } | |
24159 | return NULL; | |
24160 | } | |
24161 | ||
24162 | ||
c32bde28 | 24163 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24164 | PyObject *resultobj; |
24165 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24166 | long arg2 ; | |
24167 | PyObject * obj0 = 0 ; | |
24168 | PyObject * obj1 = 0 ; | |
24169 | char *kwnames[] = { | |
24170 | (char *) "self",(char *) "count", NULL | |
24171 | }; | |
24172 | ||
24173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
24174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24176 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24177 | if (PyErr_Occurred()) SWIG_fail; |
24178 | { | |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24180 | (arg1)->SetItemCount(arg2); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
24185 | Py_INCREF(Py_None); resultobj = Py_None; | |
24186 | return resultobj; | |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
c32bde28 | 24192 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24193 | PyObject *resultobj; |
24194 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24195 | int arg2 ; | |
24196 | int arg3 ; | |
24197 | bool result; | |
24198 | PyObject * obj0 = 0 ; | |
24199 | PyObject * obj1 = 0 ; | |
24200 | PyObject * obj2 = 0 ; | |
24201 | char *kwnames[] = { | |
24202 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
24203 | }; | |
24204 | ||
24205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24208 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24209 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24210 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24211 | if (PyErr_Occurred()) SWIG_fail; |
24212 | { | |
24213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24214 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
24215 | ||
24216 | wxPyEndAllowThreads(__tstate); | |
24217 | if (PyErr_Occurred()) SWIG_fail; | |
24218 | } | |
24219 | { | |
24220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24221 | } | |
24222 | return resultobj; | |
24223 | fail: | |
24224 | return NULL; | |
24225 | } | |
24226 | ||
24227 | ||
c32bde28 | 24228 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24229 | PyObject *resultobj; |
24230 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24231 | long arg2 ; | |
24232 | wxColour *arg3 = 0 ; | |
24233 | wxColour temp3 ; | |
24234 | PyObject * obj0 = 0 ; | |
24235 | PyObject * obj1 = 0 ; | |
24236 | PyObject * obj2 = 0 ; | |
24237 | char *kwnames[] = { | |
24238 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24239 | }; | |
24240 | ||
24241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24244 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24245 | if (PyErr_Occurred()) SWIG_fail; |
24246 | { | |
24247 | arg3 = &temp3; | |
24248 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24249 | } | |
24250 | { | |
24251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24252 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
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_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24265 | PyObject *resultobj; |
24266 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24267 | long arg2 ; | |
24268 | wxColour result; | |
24269 | PyObject * obj0 = 0 ; | |
24270 | PyObject * obj1 = 0 ; | |
24271 | char *kwnames[] = { | |
24272 | (char *) "self",(char *) "item", NULL | |
24273 | }; | |
24274 | ||
24275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24278 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24279 | if (PyErr_Occurred()) SWIG_fail; |
24280 | { | |
24281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24282 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
24283 | ||
24284 | wxPyEndAllowThreads(__tstate); | |
24285 | if (PyErr_Occurred()) SWIG_fail; | |
24286 | } | |
24287 | { | |
24288 | wxColour * resultptr; | |
24289 | resultptr = new wxColour((wxColour &) result); | |
24290 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
24291 | } | |
24292 | return resultobj; | |
24293 | fail: | |
24294 | return NULL; | |
24295 | } | |
24296 | ||
24297 | ||
c32bde28 | 24298 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24299 | PyObject *resultobj; |
24300 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24301 | long arg2 ; | |
24302 | wxColour *arg3 = 0 ; | |
24303 | wxColour temp3 ; | |
24304 | PyObject * obj0 = 0 ; | |
24305 | PyObject * obj1 = 0 ; | |
24306 | PyObject * obj2 = 0 ; | |
24307 | char *kwnames[] = { | |
24308 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24309 | }; | |
24310 | ||
24311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24314 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24315 | if (PyErr_Occurred()) SWIG_fail; |
24316 | { | |
24317 | arg3 = &temp3; | |
24318 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24319 | } | |
24320 | { | |
24321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24322 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
24323 | ||
24324 | wxPyEndAllowThreads(__tstate); | |
24325 | if (PyErr_Occurred()) SWIG_fail; | |
24326 | } | |
24327 | Py_INCREF(Py_None); resultobj = Py_None; | |
24328 | return resultobj; | |
24329 | fail: | |
24330 | return NULL; | |
24331 | } | |
24332 | ||
24333 | ||
c32bde28 | 24334 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24335 | PyObject *resultobj; |
24336 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24337 | long arg2 ; | |
24338 | wxColour result; | |
24339 | PyObject * obj0 = 0 ; | |
24340 | PyObject * obj1 = 0 ; | |
24341 | char *kwnames[] = { | |
24342 | (char *) "self",(char *) "item", NULL | |
24343 | }; | |
24344 | ||
24345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24348 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24349 | if (PyErr_Occurred()) SWIG_fail; |
24350 | { | |
24351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24352 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
24353 | ||
24354 | wxPyEndAllowThreads(__tstate); | |
24355 | if (PyErr_Occurred()) SWIG_fail; | |
24356 | } | |
24357 | { | |
24358 | wxColour * resultptr; | |
24359 | resultptr = new wxColour((wxColour &) result); | |
24360 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
24361 | } | |
24362 | return resultobj; | |
24363 | fail: | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
c32bde28 | 24368 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24369 | PyObject *resultobj; |
24370 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24371 | PyObject *arg2 = (PyObject *) 0 ; | |
24372 | bool result; | |
24373 | PyObject * obj0 = 0 ; | |
24374 | PyObject * obj1 = 0 ; | |
24375 | char *kwnames[] = { | |
24376 | (char *) "self",(char *) "func", NULL | |
24377 | }; | |
24378 | ||
24379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
24380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24382 | arg2 = obj1; | |
24383 | { | |
24384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24385 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
24386 | ||
24387 | wxPyEndAllowThreads(__tstate); | |
24388 | if (PyErr_Occurred()) SWIG_fail; | |
24389 | } | |
24390 | { | |
24391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24392 | } | |
24393 | return resultobj; | |
24394 | fail: | |
24395 | return NULL; | |
24396 | } | |
24397 | ||
24398 | ||
c32bde28 | 24399 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24400 | PyObject *resultobj; |
24401 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24402 | wxWindow *result; | |
24403 | PyObject * obj0 = 0 ; | |
24404 | char *kwnames[] = { | |
24405 | (char *) "self", NULL | |
24406 | }; | |
24407 | ||
24408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
24409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
24410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24411 | { | |
24412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24413 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
24414 | ||
24415 | wxPyEndAllowThreads(__tstate); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
24417 | } | |
24418 | { | |
412d302d | 24419 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24420 | } |
24421 | return resultobj; | |
24422 | fail: | |
24423 | return NULL; | |
24424 | } | |
24425 | ||
24426 | ||
c32bde28 | 24427 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24428 | PyObject *resultobj; |
24429 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
24430 | wxVisualAttributes result; | |
24431 | PyObject * obj0 = 0 ; | |
24432 | char *kwnames[] = { | |
24433 | (char *) "variant", NULL | |
24434 | }; | |
24435 | ||
24436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
24437 | if (obj0) { | |
c32bde28 | 24438 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
24439 | if (PyErr_Occurred()) SWIG_fail; |
24440 | } | |
24441 | { | |
19272049 | 24442 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24444 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
24445 | ||
24446 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24447 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24448 | } |
24449 | { | |
24450 | wxVisualAttributes * resultptr; | |
24451 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
24452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
24453 | } | |
24454 | return resultobj; | |
24455 | fail: | |
24456 | return NULL; | |
24457 | } | |
24458 | ||
24459 | ||
c32bde28 | 24460 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24461 | PyObject *obj; |
24462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24463 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
24464 | Py_INCREF(obj); | |
24465 | return Py_BuildValue((char *)""); | |
24466 | } | |
c32bde28 | 24467 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24468 | PyObject *resultobj; |
24469 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24470 | int arg2 = (int) -1 ; | |
24471 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
24472 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24473 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24474 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24475 | long arg5 = (long) wxLC_REPORT ; | |
24476 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24477 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24478 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
24479 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24480 | wxListView *result; | |
24481 | wxPoint temp3 ; | |
24482 | wxSize temp4 ; | |
ae8162c8 | 24483 | bool temp7 = false ; |
d55e5bfc RD |
24484 | PyObject * obj0 = 0 ; |
24485 | PyObject * obj1 = 0 ; | |
24486 | PyObject * obj2 = 0 ; | |
24487 | PyObject * obj3 = 0 ; | |
24488 | PyObject * obj4 = 0 ; | |
24489 | PyObject * obj5 = 0 ; | |
24490 | PyObject * obj6 = 0 ; | |
24491 | char *kwnames[] = { | |
24492 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24493 | }; | |
24494 | ||
24495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24498 | if (obj1) { | |
c32bde28 | 24499 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24500 | if (PyErr_Occurred()) SWIG_fail; |
24501 | } | |
24502 | if (obj2) { | |
24503 | { | |
24504 | arg3 = &temp3; | |
24505 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24506 | } | |
24507 | } | |
24508 | if (obj3) { | |
24509 | { | |
24510 | arg4 = &temp4; | |
24511 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24512 | } | |
24513 | } | |
24514 | if (obj4) { | |
c32bde28 | 24515 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
24516 | if (PyErr_Occurred()) SWIG_fail; |
24517 | } | |
24518 | if (obj5) { | |
24519 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
24520 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24521 | SWIG_fail; | |
24522 | if (arg6 == NULL) { | |
24523 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24524 | SWIG_fail; | |
24525 | } | |
24526 | } | |
24527 | if (obj6) { | |
24528 | { | |
24529 | arg7 = wxString_in_helper(obj6); | |
24530 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 24531 | temp7 = true; |
d55e5bfc RD |
24532 | } |
24533 | } | |
24534 | { | |
0439c23b | 24535 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24537 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24538 | ||
24539 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24540 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24541 | } |
24542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
24543 | { | |
24544 | if (temp7) | |
24545 | delete arg7; | |
24546 | } | |
24547 | return resultobj; | |
24548 | fail: | |
24549 | { | |
24550 | if (temp7) | |
24551 | delete arg7; | |
24552 | } | |
24553 | return NULL; | |
24554 | } | |
24555 | ||
24556 | ||
c32bde28 | 24557 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24558 | PyObject *resultobj; |
24559 | wxListView *result; | |
24560 | char *kwnames[] = { | |
24561 | NULL | |
24562 | }; | |
24563 | ||
24564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
24565 | { | |
0439c23b | 24566 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24568 | result = (wxListView *)new wxListView(); | |
24569 | ||
24570 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24571 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24572 | } |
24573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
24574 | return resultobj; | |
24575 | fail: | |
24576 | return NULL; | |
24577 | } | |
24578 | ||
24579 | ||
c32bde28 | 24580 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24581 | PyObject *resultobj; |
24582 | wxListView *arg1 = (wxListView *) 0 ; | |
24583 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24584 | int arg3 = (int) -1 ; | |
24585 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24586 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24587 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24588 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24589 | long arg6 = (long) wxLC_REPORT ; | |
24590 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24591 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
24592 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
24593 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
24594 | bool result; | |
24595 | wxPoint temp4 ; | |
24596 | wxSize temp5 ; | |
ae8162c8 | 24597 | bool temp8 = false ; |
d55e5bfc RD |
24598 | PyObject * obj0 = 0 ; |
24599 | PyObject * obj1 = 0 ; | |
24600 | PyObject * obj2 = 0 ; | |
24601 | PyObject * obj3 = 0 ; | |
24602 | PyObject * obj4 = 0 ; | |
24603 | PyObject * obj5 = 0 ; | |
24604 | PyObject * obj6 = 0 ; | |
24605 | PyObject * obj7 = 0 ; | |
24606 | char *kwnames[] = { | |
24607 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24608 | }; | |
24609 | ||
24610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
24611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24613 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24615 | if (obj2) { | |
c32bde28 | 24616 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24617 | if (PyErr_Occurred()) SWIG_fail; |
24618 | } | |
24619 | if (obj3) { | |
24620 | { | |
24621 | arg4 = &temp4; | |
24622 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24623 | } | |
24624 | } | |
24625 | if (obj4) { | |
24626 | { | |
24627 | arg5 = &temp5; | |
24628 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24629 | } | |
24630 | } | |
24631 | if (obj5) { | |
c32bde28 | 24632 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
24633 | if (PyErr_Occurred()) SWIG_fail; |
24634 | } | |
24635 | if (obj6) { | |
24636 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
24637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24638 | SWIG_fail; | |
24639 | if (arg7 == NULL) { | |
24640 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24641 | SWIG_fail; | |
24642 | } | |
24643 | } | |
24644 | if (obj7) { | |
24645 | { | |
24646 | arg8 = wxString_in_helper(obj7); | |
24647 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 24648 | temp8 = true; |
d55e5bfc RD |
24649 | } |
24650 | } | |
24651 | { | |
24652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24653 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24654 | ||
24655 | wxPyEndAllowThreads(__tstate); | |
24656 | if (PyErr_Occurred()) SWIG_fail; | |
24657 | } | |
24658 | { | |
24659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24660 | } | |
24661 | { | |
24662 | if (temp8) | |
24663 | delete arg8; | |
24664 | } | |
24665 | return resultobj; | |
24666 | fail: | |
24667 | { | |
24668 | if (temp8) | |
24669 | delete arg8; | |
24670 | } | |
24671 | return NULL; | |
24672 | } | |
24673 | ||
24674 | ||
c32bde28 | 24675 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24676 | PyObject *resultobj; |
24677 | wxListView *arg1 = (wxListView *) 0 ; | |
24678 | long arg2 ; | |
ae8162c8 | 24679 | bool arg3 = (bool) true ; |
d55e5bfc RD |
24680 | PyObject * obj0 = 0 ; |
24681 | PyObject * obj1 = 0 ; | |
24682 | PyObject * obj2 = 0 ; | |
24683 | char *kwnames[] = { | |
24684 | (char *) "self",(char *) "n",(char *) "on", NULL | |
24685 | }; | |
24686 | ||
24687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24690 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24691 | if (PyErr_Occurred()) SWIG_fail; |
24692 | if (obj2) { | |
c32bde28 | 24693 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
24694 | if (PyErr_Occurred()) SWIG_fail; |
24695 | } | |
24696 | { | |
24697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24698 | (arg1)->Select(arg2,arg3); | |
24699 | ||
24700 | wxPyEndAllowThreads(__tstate); | |
24701 | if (PyErr_Occurred()) SWIG_fail; | |
24702 | } | |
24703 | Py_INCREF(Py_None); resultobj = Py_None; | |
24704 | return resultobj; | |
24705 | fail: | |
24706 | return NULL; | |
24707 | } | |
24708 | ||
24709 | ||
c32bde28 | 24710 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24711 | PyObject *resultobj; |
24712 | wxListView *arg1 = (wxListView *) 0 ; | |
24713 | long arg2 ; | |
24714 | PyObject * obj0 = 0 ; | |
24715 | PyObject * obj1 = 0 ; | |
24716 | char *kwnames[] = { | |
24717 | (char *) "self",(char *) "index", NULL | |
24718 | }; | |
24719 | ||
24720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
24721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24723 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24724 | if (PyErr_Occurred()) SWIG_fail; |
24725 | { | |
24726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24727 | (arg1)->Focus(arg2); | |
24728 | ||
24729 | wxPyEndAllowThreads(__tstate); | |
24730 | if (PyErr_Occurred()) SWIG_fail; | |
24731 | } | |
24732 | Py_INCREF(Py_None); resultobj = Py_None; | |
24733 | return resultobj; | |
24734 | fail: | |
24735 | return NULL; | |
24736 | } | |
24737 | ||
24738 | ||
c32bde28 | 24739 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24740 | PyObject *resultobj; |
24741 | wxListView *arg1 = (wxListView *) 0 ; | |
24742 | long result; | |
24743 | PyObject * obj0 = 0 ; | |
24744 | char *kwnames[] = { | |
24745 | (char *) "self", NULL | |
24746 | }; | |
24747 | ||
24748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
24749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24751 | { | |
24752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24753 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
24754 | ||
24755 | wxPyEndAllowThreads(__tstate); | |
24756 | if (PyErr_Occurred()) SWIG_fail; | |
24757 | } | |
c32bde28 | 24758 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24759 | return resultobj; |
24760 | fail: | |
24761 | return NULL; | |
24762 | } | |
24763 | ||
24764 | ||
c32bde28 | 24765 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24766 | PyObject *resultobj; |
24767 | wxListView *arg1 = (wxListView *) 0 ; | |
24768 | long arg2 ; | |
24769 | long result; | |
24770 | PyObject * obj0 = 0 ; | |
24771 | PyObject * obj1 = 0 ; | |
24772 | char *kwnames[] = { | |
24773 | (char *) "self",(char *) "item", NULL | |
24774 | }; | |
24775 | ||
24776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
24777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24779 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24780 | if (PyErr_Occurred()) SWIG_fail; |
24781 | { | |
24782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24783 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
24784 | ||
24785 | wxPyEndAllowThreads(__tstate); | |
24786 | if (PyErr_Occurred()) SWIG_fail; | |
24787 | } | |
c32bde28 | 24788 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24789 | return resultobj; |
24790 | fail: | |
24791 | return NULL; | |
24792 | } | |
24793 | ||
24794 | ||
c32bde28 | 24795 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24796 | PyObject *resultobj; |
24797 | wxListView *arg1 = (wxListView *) 0 ; | |
24798 | long result; | |
24799 | PyObject * obj0 = 0 ; | |
24800 | char *kwnames[] = { | |
24801 | (char *) "self", NULL | |
24802 | }; | |
24803 | ||
24804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
24805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24807 | { | |
24808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24809 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
24810 | ||
24811 | wxPyEndAllowThreads(__tstate); | |
24812 | if (PyErr_Occurred()) SWIG_fail; | |
24813 | } | |
c32bde28 | 24814 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24815 | return resultobj; |
24816 | fail: | |
24817 | return NULL; | |
24818 | } | |
24819 | ||
24820 | ||
c32bde28 | 24821 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24822 | PyObject *resultobj; |
24823 | wxListView *arg1 = (wxListView *) 0 ; | |
24824 | long arg2 ; | |
24825 | bool result; | |
24826 | PyObject * obj0 = 0 ; | |
24827 | PyObject * obj1 = 0 ; | |
24828 | char *kwnames[] = { | |
24829 | (char *) "self",(char *) "index", NULL | |
24830 | }; | |
24831 | ||
24832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24835 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24836 | if (PyErr_Occurred()) SWIG_fail; |
24837 | { | |
24838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24839 | result = (bool)(arg1)->IsSelected(arg2); | |
24840 | ||
24841 | wxPyEndAllowThreads(__tstate); | |
24842 | if (PyErr_Occurred()) SWIG_fail; | |
24843 | } | |
24844 | { | |
24845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24846 | } | |
24847 | return resultobj; | |
24848 | fail: | |
24849 | return NULL; | |
24850 | } | |
24851 | ||
24852 | ||
c32bde28 | 24853 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24854 | PyObject *resultobj; |
24855 | wxListView *arg1 = (wxListView *) 0 ; | |
24856 | int arg2 ; | |
24857 | int arg3 ; | |
24858 | PyObject * obj0 = 0 ; | |
24859 | PyObject * obj1 = 0 ; | |
24860 | PyObject * obj2 = 0 ; | |
24861 | char *kwnames[] = { | |
24862 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24863 | }; | |
24864 | ||
24865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24868 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24869 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24870 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24871 | if (PyErr_Occurred()) SWIG_fail; |
24872 | { | |
24873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24874 | (arg1)->SetColumnImage(arg2,arg3); | |
24875 | ||
24876 | wxPyEndAllowThreads(__tstate); | |
24877 | if (PyErr_Occurred()) SWIG_fail; | |
24878 | } | |
24879 | Py_INCREF(Py_None); resultobj = Py_None; | |
24880 | return resultobj; | |
24881 | fail: | |
24882 | return NULL; | |
24883 | } | |
24884 | ||
24885 | ||
c32bde28 | 24886 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24887 | PyObject *resultobj; |
24888 | wxListView *arg1 = (wxListView *) 0 ; | |
24889 | int arg2 ; | |
24890 | PyObject * obj0 = 0 ; | |
24891 | PyObject * obj1 = 0 ; | |
24892 | char *kwnames[] = { | |
24893 | (char *) "self",(char *) "col", NULL | |
24894 | }; | |
24895 | ||
24896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
24897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24899 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24900 | if (PyErr_Occurred()) SWIG_fail; |
24901 | { | |
24902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24903 | (arg1)->ClearColumnImage(arg2); | |
24904 | ||
24905 | wxPyEndAllowThreads(__tstate); | |
24906 | if (PyErr_Occurred()) SWIG_fail; | |
24907 | } | |
24908 | Py_INCREF(Py_None); resultobj = Py_None; | |
24909 | return resultobj; | |
24910 | fail: | |
24911 | return NULL; | |
24912 | } | |
24913 | ||
24914 | ||
c32bde28 | 24915 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24916 | PyObject *obj; |
24917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24918 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24919 | Py_INCREF(obj); | |
24920 | return Py_BuildValue((char *)""); | |
24921 | } | |
c32bde28 | 24922 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
24923 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
24924 | return 1; | |
24925 | } | |
24926 | ||
24927 | ||
24928 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24929 | PyObject *pyobj; | |
24930 | ||
24931 | { | |
24932 | #if wxUSE_UNICODE | |
24933 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24934 | #else | |
24935 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24936 | #endif | |
24937 | } | |
24938 | return pyobj; | |
24939 | } | |
24940 | ||
24941 | ||
c32bde28 | 24942 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24943 | PyObject *resultobj; |
24944 | wxTreeItemId *result; | |
24945 | char *kwnames[] = { | |
24946 | NULL | |
24947 | }; | |
24948 | ||
24949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24950 | { | |
24951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24952 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24953 | ||
24954 | wxPyEndAllowThreads(__tstate); | |
24955 | if (PyErr_Occurred()) SWIG_fail; | |
24956 | } | |
24957 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
24958 | return resultobj; | |
24959 | fail: | |
24960 | return NULL; | |
24961 | } | |
24962 | ||
24963 | ||
c32bde28 | 24964 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24965 | PyObject *resultobj; |
24966 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24967 | PyObject * obj0 = 0 ; | |
24968 | char *kwnames[] = { | |
24969 | (char *) "self", NULL | |
24970 | }; | |
24971 | ||
24972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
24973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24975 | { | |
24976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24977 | delete arg1; | |
24978 | ||
24979 | wxPyEndAllowThreads(__tstate); | |
24980 | if (PyErr_Occurred()) SWIG_fail; | |
24981 | } | |
24982 | Py_INCREF(Py_None); resultobj = Py_None; | |
24983 | return resultobj; | |
24984 | fail: | |
24985 | return NULL; | |
24986 | } | |
24987 | ||
24988 | ||
c32bde28 | 24989 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24990 | PyObject *resultobj; |
24991 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24992 | bool result; | |
24993 | PyObject * obj0 = 0 ; | |
24994 | char *kwnames[] = { | |
24995 | (char *) "self", NULL | |
24996 | }; | |
24997 | ||
24998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
24999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
25000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25001 | { | |
25002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25003 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
25004 | ||
25005 | wxPyEndAllowThreads(__tstate); | |
25006 | if (PyErr_Occurred()) SWIG_fail; | |
25007 | } | |
25008 | { | |
25009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25010 | } | |
25011 | return resultobj; | |
25012 | fail: | |
25013 | return NULL; | |
25014 | } | |
25015 | ||
25016 | ||
c32bde28 | 25017 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25018 | PyObject *resultobj; |
25019 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
25020 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
25021 | bool result; | |
25022 | PyObject * obj0 = 0 ; | |
25023 | PyObject * obj1 = 0 ; | |
25024 | char *kwnames[] = { | |
25025 | (char *) "self",(char *) "other", NULL | |
25026 | }; | |
25027 | ||
25028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
25029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
25030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25031 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25033 | { | |
25034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25035 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
25036 | ||
25037 | wxPyEndAllowThreads(__tstate); | |
25038 | if (PyErr_Occurred()) SWIG_fail; | |
25039 | } | |
25040 | { | |
25041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25042 | } | |
25043 | return resultobj; | |
25044 | fail: | |
25045 | return NULL; | |
25046 | } | |
25047 | ||
25048 | ||
c32bde28 | 25049 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25050 | PyObject *resultobj; |
25051 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
25052 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
25053 | bool result; | |
25054 | PyObject * obj0 = 0 ; | |
25055 | PyObject * obj1 = 0 ; | |
25056 | char *kwnames[] = { | |
25057 | (char *) "self",(char *) "other", NULL | |
25058 | }; | |
25059 | ||
25060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
25061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
25062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25065 | { | |
25066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25067 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
25068 | ||
25069 | wxPyEndAllowThreads(__tstate); | |
25070 | if (PyErr_Occurred()) SWIG_fail; | |
25071 | } | |
25072 | { | |
25073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25074 | } | |
25075 | return resultobj; | |
25076 | fail: | |
25077 | return NULL; | |
25078 | } | |
25079 | ||
25080 | ||
c32bde28 | 25081 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25082 | PyObject *resultobj; |
25083 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
25084 | void *arg2 = (void *) 0 ; | |
25085 | PyObject * obj0 = 0 ; | |
25086 | PyObject * obj1 = 0 ; | |
25087 | char *kwnames[] = { | |
25088 | (char *) "self",(char *) "m_pItem", NULL | |
25089 | }; | |
25090 | ||
25091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
25092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
25093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25094 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25095 | if (arg1) (arg1)->m_pItem = arg2; | |
25096 | ||
25097 | Py_INCREF(Py_None); resultobj = Py_None; | |
25098 | return resultobj; | |
25099 | fail: | |
25100 | return NULL; | |
25101 | } | |
25102 | ||
25103 | ||
c32bde28 | 25104 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25105 | PyObject *resultobj; |
25106 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
25107 | void *result; | |
25108 | PyObject * obj0 = 0 ; | |
25109 | char *kwnames[] = { | |
25110 | (char *) "self", NULL | |
25111 | }; | |
25112 | ||
25113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
25114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
25115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25116 | result = (void *) ((arg1)->m_pItem); | |
25117 | ||
25118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
25119 | return resultobj; | |
25120 | fail: | |
25121 | return NULL; | |
25122 | } | |
25123 | ||
25124 | ||
c32bde28 | 25125 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25126 | PyObject *obj; |
25127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25128 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
25129 | Py_INCREF(obj); | |
25130 | return Py_BuildValue((char *)""); | |
25131 | } | |
c32bde28 | 25132 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25133 | PyObject *resultobj; |
25134 | PyObject *arg1 = (PyObject *) NULL ; | |
25135 | wxPyTreeItemData *result; | |
25136 | PyObject * obj0 = 0 ; | |
25137 | char *kwnames[] = { | |
25138 | (char *) "obj", NULL | |
25139 | }; | |
25140 | ||
25141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
25142 | if (obj0) { | |
25143 | arg1 = obj0; | |
25144 | } | |
25145 | { | |
25146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25147 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
25148 | ||
25149 | wxPyEndAllowThreads(__tstate); | |
25150 | if (PyErr_Occurred()) SWIG_fail; | |
25151 | } | |
25152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
25153 | return resultobj; | |
25154 | fail: | |
25155 | return NULL; | |
25156 | } | |
25157 | ||
25158 | ||
c32bde28 | 25159 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25160 | PyObject *resultobj; |
25161 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25162 | PyObject *result; | |
25163 | PyObject * obj0 = 0 ; | |
25164 | char *kwnames[] = { | |
25165 | (char *) "self", NULL | |
25166 | }; | |
25167 | ||
25168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
25169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
25170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25171 | { | |
25172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25173 | result = (PyObject *)(arg1)->GetData(); | |
25174 | ||
25175 | wxPyEndAllowThreads(__tstate); | |
25176 | if (PyErr_Occurred()) SWIG_fail; | |
25177 | } | |
25178 | resultobj = result; | |
25179 | return resultobj; | |
25180 | fail: | |
25181 | return NULL; | |
25182 | } | |
25183 | ||
25184 | ||
c32bde28 | 25185 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25186 | PyObject *resultobj; |
25187 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25188 | PyObject *arg2 = (PyObject *) 0 ; | |
25189 | PyObject * obj0 = 0 ; | |
25190 | PyObject * obj1 = 0 ; | |
25191 | char *kwnames[] = { | |
25192 | (char *) "self",(char *) "obj", NULL | |
25193 | }; | |
25194 | ||
25195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
25197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25198 | arg2 = obj1; | |
25199 | { | |
25200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25201 | (arg1)->SetData(arg2); | |
25202 | ||
25203 | wxPyEndAllowThreads(__tstate); | |
25204 | if (PyErr_Occurred()) SWIG_fail; | |
25205 | } | |
25206 | Py_INCREF(Py_None); resultobj = Py_None; | |
25207 | return resultobj; | |
25208 | fail: | |
25209 | return NULL; | |
25210 | } | |
25211 | ||
25212 | ||
c32bde28 | 25213 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25214 | PyObject *resultobj; |
25215 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25216 | wxTreeItemId *result; | |
25217 | PyObject * obj0 = 0 ; | |
25218 | char *kwnames[] = { | |
25219 | (char *) "self", NULL | |
25220 | }; | |
25221 | ||
25222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
25223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
25224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25225 | { | |
25226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25227 | { | |
25228 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
25229 | result = (wxTreeItemId *) &_result_ref; | |
25230 | } | |
25231 | ||
25232 | wxPyEndAllowThreads(__tstate); | |
25233 | if (PyErr_Occurred()) SWIG_fail; | |
25234 | } | |
25235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
25236 | return resultobj; | |
25237 | fail: | |
25238 | return NULL; | |
25239 | } | |
25240 | ||
25241 | ||
c32bde28 | 25242 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25243 | PyObject *resultobj; |
25244 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25245 | wxTreeItemId *arg2 = 0 ; | |
25246 | PyObject * obj0 = 0 ; | |
25247 | PyObject * obj1 = 0 ; | |
25248 | char *kwnames[] = { | |
25249 | (char *) "self",(char *) "id", NULL | |
25250 | }; | |
25251 | ||
25252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
25253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
25254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25255 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25256 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25257 | SWIG_fail; | |
25258 | if (arg2 == NULL) { | |
25259 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25260 | SWIG_fail; | |
25261 | } | |
25262 | { | |
25263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25264 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
25265 | ||
25266 | wxPyEndAllowThreads(__tstate); | |
25267 | if (PyErr_Occurred()) SWIG_fail; | |
25268 | } | |
25269 | Py_INCREF(Py_None); resultobj = Py_None; | |
25270 | return resultobj; | |
25271 | fail: | |
25272 | return NULL; | |
25273 | } | |
25274 | ||
25275 | ||
c32bde28 | 25276 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25277 | PyObject *resultobj; |
25278 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25279 | PyObject * obj0 = 0 ; | |
25280 | char *kwnames[] = { | |
25281 | (char *) "self", NULL | |
25282 | }; | |
25283 | ||
25284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
25285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
25286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25287 | { | |
25288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25289 | wxPyTreeItemData_Destroy(arg1); | |
25290 | ||
25291 | wxPyEndAllowThreads(__tstate); | |
25292 | if (PyErr_Occurred()) SWIG_fail; | |
25293 | } | |
25294 | Py_INCREF(Py_None); resultobj = Py_None; | |
25295 | return resultobj; | |
25296 | fail: | |
25297 | return NULL; | |
25298 | } | |
25299 | ||
25300 | ||
c32bde28 | 25301 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25302 | PyObject *obj; |
25303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25304 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
25305 | Py_INCREF(obj); | |
25306 | return Py_BuildValue((char *)""); | |
25307 | } | |
c32bde28 | 25308 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25309 | PyObject *resultobj; |
25310 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
25311 | int arg2 = (int) 0 ; | |
25312 | wxTreeEvent *result; | |
25313 | PyObject * obj0 = 0 ; | |
25314 | PyObject * obj1 = 0 ; | |
25315 | char *kwnames[] = { | |
25316 | (char *) "commandType",(char *) "id", NULL | |
25317 | }; | |
25318 | ||
25319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
25320 | if (obj0) { | |
c32bde28 | 25321 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
25322 | if (PyErr_Occurred()) SWIG_fail; |
25323 | } | |
25324 | if (obj1) { | |
c32bde28 | 25325 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25326 | if (PyErr_Occurred()) SWIG_fail; |
25327 | } | |
25328 | { | |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
25335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
25336 | return resultobj; | |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
c32bde28 | 25342 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25343 | PyObject *resultobj; |
25344 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25345 | wxTreeItemId result; | |
25346 | PyObject * obj0 = 0 ; | |
25347 | char *kwnames[] = { | |
25348 | (char *) "self", NULL | |
25349 | }; | |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
25352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25354 | { | |
25355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25356 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
25357 | ||
25358 | wxPyEndAllowThreads(__tstate); | |
25359 | if (PyErr_Occurred()) SWIG_fail; | |
25360 | } | |
25361 | { | |
25362 | wxTreeItemId * resultptr; | |
25363 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25364 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25365 | } | |
25366 | return resultobj; | |
25367 | fail: | |
25368 | return NULL; | |
25369 | } | |
25370 | ||
25371 | ||
c32bde28 | 25372 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25373 | PyObject *resultobj; |
25374 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25375 | wxTreeItemId *arg2 = 0 ; | |
25376 | PyObject * obj0 = 0 ; | |
25377 | PyObject * obj1 = 0 ; | |
25378 | char *kwnames[] = { | |
25379 | (char *) "self",(char *) "item", NULL | |
25380 | }; | |
25381 | ||
25382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
25383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25385 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25386 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25387 | SWIG_fail; | |
25388 | if (arg2 == NULL) { | |
25389 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25390 | SWIG_fail; | |
25391 | } | |
25392 | { | |
25393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25394 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
25395 | ||
25396 | wxPyEndAllowThreads(__tstate); | |
25397 | if (PyErr_Occurred()) SWIG_fail; | |
25398 | } | |
25399 | Py_INCREF(Py_None); resultobj = Py_None; | |
25400 | return resultobj; | |
25401 | fail: | |
25402 | return NULL; | |
25403 | } | |
25404 | ||
25405 | ||
c32bde28 | 25406 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25407 | PyObject *resultobj; |
25408 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25409 | wxTreeItemId result; | |
25410 | PyObject * obj0 = 0 ; | |
25411 | char *kwnames[] = { | |
25412 | (char *) "self", NULL | |
25413 | }; | |
25414 | ||
25415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
25416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25418 | { | |
25419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25420 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
25421 | ||
25422 | wxPyEndAllowThreads(__tstate); | |
25423 | if (PyErr_Occurred()) SWIG_fail; | |
25424 | } | |
25425 | { | |
25426 | wxTreeItemId * resultptr; | |
25427 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25428 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25429 | } | |
25430 | return resultobj; | |
25431 | fail: | |
25432 | return NULL; | |
25433 | } | |
25434 | ||
25435 | ||
c32bde28 | 25436 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25437 | PyObject *resultobj; |
25438 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25439 | wxTreeItemId *arg2 = 0 ; | |
25440 | PyObject * obj0 = 0 ; | |
25441 | PyObject * obj1 = 0 ; | |
25442 | char *kwnames[] = { | |
25443 | (char *) "self",(char *) "item", NULL | |
25444 | }; | |
25445 | ||
25446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
25447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25451 | SWIG_fail; | |
25452 | if (arg2 == NULL) { | |
25453 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25454 | SWIG_fail; | |
25455 | } | |
25456 | { | |
25457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25458 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
25459 | ||
25460 | wxPyEndAllowThreads(__tstate); | |
25461 | if (PyErr_Occurred()) SWIG_fail; | |
25462 | } | |
25463 | Py_INCREF(Py_None); resultobj = Py_None; | |
25464 | return resultobj; | |
25465 | fail: | |
25466 | return NULL; | |
25467 | } | |
25468 | ||
25469 | ||
c32bde28 | 25470 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25471 | PyObject *resultobj; |
25472 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25473 | wxPoint result; | |
25474 | PyObject * obj0 = 0 ; | |
25475 | char *kwnames[] = { | |
25476 | (char *) "self", NULL | |
25477 | }; | |
25478 | ||
25479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
25480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25482 | { | |
25483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25484 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
25485 | ||
25486 | wxPyEndAllowThreads(__tstate); | |
25487 | if (PyErr_Occurred()) SWIG_fail; | |
25488 | } | |
25489 | { | |
25490 | wxPoint * resultptr; | |
25491 | resultptr = new wxPoint((wxPoint &) result); | |
25492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25493 | } | |
25494 | return resultobj; | |
25495 | fail: | |
25496 | return NULL; | |
25497 | } | |
25498 | ||
25499 | ||
c32bde28 | 25500 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25501 | PyObject *resultobj; |
25502 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25503 | wxPoint *arg2 = 0 ; | |
25504 | wxPoint temp2 ; | |
25505 | PyObject * obj0 = 0 ; | |
25506 | PyObject * obj1 = 0 ; | |
25507 | char *kwnames[] = { | |
25508 | (char *) "self",(char *) "pt", NULL | |
25509 | }; | |
25510 | ||
25511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
25512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25514 | { | |
25515 | arg2 = &temp2; | |
25516 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25517 | } | |
25518 | { | |
25519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25520 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
25521 | ||
25522 | wxPyEndAllowThreads(__tstate); | |
25523 | if (PyErr_Occurred()) SWIG_fail; | |
25524 | } | |
25525 | Py_INCREF(Py_None); resultobj = Py_None; | |
25526 | return resultobj; | |
25527 | fail: | |
25528 | return NULL; | |
25529 | } | |
25530 | ||
25531 | ||
c32bde28 | 25532 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25533 | PyObject *resultobj; |
25534 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25535 | wxKeyEvent *result; | |
25536 | PyObject * obj0 = 0 ; | |
25537 | char *kwnames[] = { | |
25538 | (char *) "self", NULL | |
25539 | }; | |
25540 | ||
25541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
25542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25544 | { | |
25545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25546 | { | |
25547 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
25548 | result = (wxKeyEvent *) &_result_ref; | |
25549 | } | |
25550 | ||
25551 | wxPyEndAllowThreads(__tstate); | |
25552 | if (PyErr_Occurred()) SWIG_fail; | |
25553 | } | |
25554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
25555 | return resultobj; | |
25556 | fail: | |
25557 | return NULL; | |
25558 | } | |
25559 | ||
25560 | ||
c32bde28 | 25561 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25562 | PyObject *resultobj; |
25563 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25564 | int result; | |
25565 | PyObject * obj0 = 0 ; | |
25566 | char *kwnames[] = { | |
25567 | (char *) "self", NULL | |
25568 | }; | |
25569 | ||
25570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
25571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25573 | { | |
25574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25575 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
25576 | ||
25577 | wxPyEndAllowThreads(__tstate); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | } | |
c32bde28 | 25580 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
25581 | return resultobj; |
25582 | fail: | |
25583 | return NULL; | |
25584 | } | |
25585 | ||
25586 | ||
c32bde28 | 25587 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25588 | PyObject *resultobj; |
25589 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25590 | wxKeyEvent *arg2 = 0 ; | |
25591 | PyObject * obj0 = 0 ; | |
25592 | PyObject * obj1 = 0 ; | |
25593 | char *kwnames[] = { | |
25594 | (char *) "self",(char *) "evt", NULL | |
25595 | }; | |
25596 | ||
25597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
25598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25600 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
25601 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25602 | SWIG_fail; | |
25603 | if (arg2 == NULL) { | |
25604 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25605 | SWIG_fail; | |
25606 | } | |
25607 | { | |
25608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25609 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
25610 | ||
25611 | wxPyEndAllowThreads(__tstate); | |
25612 | if (PyErr_Occurred()) SWIG_fail; | |
25613 | } | |
25614 | Py_INCREF(Py_None); resultobj = Py_None; | |
25615 | return resultobj; | |
25616 | fail: | |
25617 | return NULL; | |
25618 | } | |
25619 | ||
25620 | ||
c32bde28 | 25621 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25622 | PyObject *resultobj; |
25623 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25624 | wxString *result; | |
25625 | PyObject * obj0 = 0 ; | |
25626 | char *kwnames[] = { | |
25627 | (char *) "self", NULL | |
25628 | }; | |
25629 | ||
25630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
25631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25633 | { | |
25634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25635 | { | |
25636 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
25637 | result = (wxString *) &_result_ref; | |
25638 | } | |
25639 | ||
25640 | wxPyEndAllowThreads(__tstate); | |
25641 | if (PyErr_Occurred()) SWIG_fail; | |
25642 | } | |
25643 | { | |
25644 | #if wxUSE_UNICODE | |
25645 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25646 | #else | |
25647 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25648 | #endif | |
25649 | } | |
25650 | return resultobj; | |
25651 | fail: | |
25652 | return NULL; | |
25653 | } | |
25654 | ||
25655 | ||
c32bde28 | 25656 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25657 | PyObject *resultobj; |
25658 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25659 | wxString *arg2 = 0 ; | |
ae8162c8 | 25660 | bool temp2 = false ; |
d55e5bfc RD |
25661 | PyObject * obj0 = 0 ; |
25662 | PyObject * obj1 = 0 ; | |
25663 | char *kwnames[] = { | |
25664 | (char *) "self",(char *) "label", NULL | |
25665 | }; | |
25666 | ||
25667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
25668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25670 | { | |
25671 | arg2 = wxString_in_helper(obj1); | |
25672 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25673 | temp2 = true; |
d55e5bfc RD |
25674 | } |
25675 | { | |
25676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25677 | (arg1)->SetLabel((wxString const &)*arg2); | |
25678 | ||
25679 | wxPyEndAllowThreads(__tstate); | |
25680 | if (PyErr_Occurred()) SWIG_fail; | |
25681 | } | |
25682 | Py_INCREF(Py_None); resultobj = Py_None; | |
25683 | { | |
25684 | if (temp2) | |
25685 | delete arg2; | |
25686 | } | |
25687 | return resultobj; | |
25688 | fail: | |
25689 | { | |
25690 | if (temp2) | |
25691 | delete arg2; | |
25692 | } | |
25693 | return NULL; | |
25694 | } | |
25695 | ||
25696 | ||
c32bde28 | 25697 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25698 | PyObject *resultobj; |
25699 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25700 | bool result; | |
25701 | PyObject * obj0 = 0 ; | |
25702 | char *kwnames[] = { | |
25703 | (char *) "self", NULL | |
25704 | }; | |
25705 | ||
25706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
25707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25709 | { | |
25710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25711 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
25712 | ||
25713 | wxPyEndAllowThreads(__tstate); | |
25714 | if (PyErr_Occurred()) SWIG_fail; | |
25715 | } | |
25716 | { | |
25717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25718 | } | |
25719 | return resultobj; | |
25720 | fail: | |
25721 | return NULL; | |
25722 | } | |
25723 | ||
25724 | ||
c32bde28 | 25725 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25726 | PyObject *resultobj; |
25727 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25728 | bool arg2 ; | |
25729 | PyObject * obj0 = 0 ; | |
25730 | PyObject * obj1 = 0 ; | |
25731 | char *kwnames[] = { | |
25732 | (char *) "self",(char *) "editCancelled", NULL | |
25733 | }; | |
25734 | ||
25735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
25736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25738 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25739 | if (PyErr_Occurred()) SWIG_fail; |
25740 | { | |
25741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25742 | (arg1)->SetEditCanceled(arg2); | |
25743 | ||
25744 | wxPyEndAllowThreads(__tstate); | |
25745 | if (PyErr_Occurred()) SWIG_fail; | |
25746 | } | |
25747 | Py_INCREF(Py_None); resultobj = Py_None; | |
25748 | return resultobj; | |
25749 | fail: | |
25750 | return NULL; | |
25751 | } | |
25752 | ||
25753 | ||
c32bde28 | 25754 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25755 | PyObject *resultobj; |
25756 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25757 | wxString *arg2 = 0 ; | |
ae8162c8 | 25758 | bool temp2 = false ; |
d55e5bfc RD |
25759 | PyObject * obj0 = 0 ; |
25760 | PyObject * obj1 = 0 ; | |
25761 | char *kwnames[] = { | |
25762 | (char *) "self",(char *) "toolTip", NULL | |
25763 | }; | |
25764 | ||
25765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
25766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25768 | { | |
25769 | arg2 = wxString_in_helper(obj1); | |
25770 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25771 | temp2 = true; |
d55e5bfc RD |
25772 | } |
25773 | { | |
25774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25775 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25776 | ||
25777 | wxPyEndAllowThreads(__tstate); | |
25778 | if (PyErr_Occurred()) SWIG_fail; | |
25779 | } | |
25780 | Py_INCREF(Py_None); resultobj = Py_None; | |
25781 | { | |
25782 | if (temp2) | |
25783 | delete arg2; | |
25784 | } | |
25785 | return resultobj; | |
25786 | fail: | |
25787 | { | |
25788 | if (temp2) | |
25789 | delete arg2; | |
25790 | } | |
25791 | return NULL; | |
25792 | } | |
25793 | ||
25794 | ||
c32bde28 | 25795 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25796 | PyObject *obj; |
25797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25798 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
25799 | Py_INCREF(obj); | |
25800 | return Py_BuildValue((char *)""); | |
25801 | } | |
c32bde28 | 25802 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25803 | PyObject *resultobj; |
25804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25805 | int arg2 = (int) -1 ; | |
25806 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25807 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25808 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25809 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25810 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
25811 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
25812 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
25813 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
25814 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25815 | wxPyTreeCtrl *result; | |
25816 | wxPoint temp3 ; | |
25817 | wxSize temp4 ; | |
ae8162c8 | 25818 | bool temp7 = false ; |
d55e5bfc RD |
25819 | PyObject * obj0 = 0 ; |
25820 | PyObject * obj1 = 0 ; | |
25821 | PyObject * obj2 = 0 ; | |
25822 | PyObject * obj3 = 0 ; | |
25823 | PyObject * obj4 = 0 ; | |
25824 | PyObject * obj5 = 0 ; | |
25825 | PyObject * obj6 = 0 ; | |
25826 | char *kwnames[] = { | |
25827 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25828 | }; | |
25829 | ||
25830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
25831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25833 | if (obj1) { | |
c32bde28 | 25834 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25835 | if (PyErr_Occurred()) SWIG_fail; |
25836 | } | |
25837 | if (obj2) { | |
25838 | { | |
25839 | arg3 = &temp3; | |
25840 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25841 | } | |
25842 | } | |
25843 | if (obj3) { | |
25844 | { | |
25845 | arg4 = &temp4; | |
25846 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25847 | } | |
25848 | } | |
25849 | if (obj4) { | |
c32bde28 | 25850 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
25851 | if (PyErr_Occurred()) SWIG_fail; |
25852 | } | |
25853 | if (obj5) { | |
25854 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
25855 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25856 | SWIG_fail; | |
25857 | if (arg6 == NULL) { | |
25858 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25859 | SWIG_fail; | |
25860 | } | |
25861 | } | |
25862 | if (obj6) { | |
25863 | { | |
25864 | arg7 = wxString_in_helper(obj6); | |
25865 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 25866 | temp7 = true; |
d55e5bfc RD |
25867 | } |
25868 | } | |
25869 | { | |
0439c23b | 25870 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25872 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25873 | ||
25874 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25875 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 25876 | } |
b0f7404b | 25877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
25878 | { |
25879 | if (temp7) | |
25880 | delete arg7; | |
25881 | } | |
25882 | return resultobj; | |
25883 | fail: | |
25884 | { | |
25885 | if (temp7) | |
25886 | delete arg7; | |
25887 | } | |
25888 | return NULL; | |
25889 | } | |
25890 | ||
25891 | ||
c32bde28 | 25892 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25893 | PyObject *resultobj; |
25894 | wxPyTreeCtrl *result; | |
25895 | char *kwnames[] = { | |
25896 | NULL | |
25897 | }; | |
25898 | ||
25899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25900 | { | |
0439c23b | 25901 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25903 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25904 | ||
25905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25906 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 25907 | } |
b0f7404b | 25908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
25909 | return resultobj; |
25910 | fail: | |
25911 | return NULL; | |
25912 | } | |
25913 | ||
25914 | ||
c32bde28 | 25915 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25916 | PyObject *resultobj; |
25917 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25918 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25919 | int arg3 = (int) -1 ; | |
25920 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25921 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25922 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25923 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25924 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25925 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25926 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
25927 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
25928 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25929 | bool result; | |
25930 | wxPoint temp4 ; | |
25931 | wxSize temp5 ; | |
ae8162c8 | 25932 | bool temp8 = false ; |
d55e5bfc RD |
25933 | PyObject * obj0 = 0 ; |
25934 | PyObject * obj1 = 0 ; | |
25935 | PyObject * obj2 = 0 ; | |
25936 | PyObject * obj3 = 0 ; | |
25937 | PyObject * obj4 = 0 ; | |
25938 | PyObject * obj5 = 0 ; | |
25939 | PyObject * obj6 = 0 ; | |
25940 | PyObject * obj7 = 0 ; | |
25941 | char *kwnames[] = { | |
25942 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25943 | }; | |
25944 | ||
25945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
25946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25950 | if (obj2) { | |
c32bde28 | 25951 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
25952 | if (PyErr_Occurred()) SWIG_fail; |
25953 | } | |
25954 | if (obj3) { | |
25955 | { | |
25956 | arg4 = &temp4; | |
25957 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25958 | } | |
25959 | } | |
25960 | if (obj4) { | |
25961 | { | |
25962 | arg5 = &temp5; | |
25963 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25964 | } | |
25965 | } | |
25966 | if (obj5) { | |
c32bde28 | 25967 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
25968 | if (PyErr_Occurred()) SWIG_fail; |
25969 | } | |
25970 | if (obj6) { | |
25971 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
25972 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25973 | SWIG_fail; | |
25974 | if (arg7 == NULL) { | |
25975 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25976 | SWIG_fail; | |
25977 | } | |
25978 | } | |
25979 | if (obj7) { | |
25980 | { | |
25981 | arg8 = wxString_in_helper(obj7); | |
25982 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 25983 | temp8 = true; |
d55e5bfc RD |
25984 | } |
25985 | } | |
25986 | { | |
25987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25988 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25989 | ||
25990 | wxPyEndAllowThreads(__tstate); | |
25991 | if (PyErr_Occurred()) SWIG_fail; | |
25992 | } | |
25993 | { | |
25994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25995 | } | |
25996 | { | |
25997 | if (temp8) | |
25998 | delete arg8; | |
25999 | } | |
26000 | return resultobj; | |
26001 | fail: | |
26002 | { | |
26003 | if (temp8) | |
26004 | delete arg8; | |
26005 | } | |
26006 | return NULL; | |
26007 | } | |
26008 | ||
26009 | ||
c32bde28 | 26010 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26011 | PyObject *resultobj; |
26012 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26013 | PyObject *arg2 = (PyObject *) 0 ; | |
26014 | PyObject *arg3 = (PyObject *) 0 ; | |
26015 | PyObject * obj0 = 0 ; | |
26016 | PyObject * obj1 = 0 ; | |
26017 | PyObject * obj2 = 0 ; | |
26018 | char *kwnames[] = { | |
26019 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26020 | }; | |
26021 | ||
26022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26025 | arg2 = obj1; | |
26026 | arg3 = obj2; | |
26027 | { | |
26028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26029 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26030 | ||
26031 | wxPyEndAllowThreads(__tstate); | |
26032 | if (PyErr_Occurred()) SWIG_fail; | |
26033 | } | |
26034 | Py_INCREF(Py_None); resultobj = Py_None; | |
26035 | return resultobj; | |
26036 | fail: | |
26037 | return NULL; | |
26038 | } | |
26039 | ||
26040 | ||
c32bde28 | 26041 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26042 | PyObject *resultobj; |
26043 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26044 | size_t result; | |
26045 | PyObject * obj0 = 0 ; | |
26046 | char *kwnames[] = { | |
26047 | (char *) "self", NULL | |
26048 | }; | |
26049 | ||
26050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
26051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26053 | { | |
26054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26055 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
26056 | ||
26057 | wxPyEndAllowThreads(__tstate); | |
26058 | if (PyErr_Occurred()) SWIG_fail; | |
26059 | } | |
c32bde28 | 26060 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
26061 | return resultobj; |
26062 | fail: | |
26063 | return NULL; | |
26064 | } | |
26065 | ||
26066 | ||
c32bde28 | 26067 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26068 | PyObject *resultobj; |
26069 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26070 | unsigned int result; | |
26071 | PyObject * obj0 = 0 ; | |
26072 | char *kwnames[] = { | |
26073 | (char *) "self", NULL | |
26074 | }; | |
26075 | ||
26076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
26077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26079 | { | |
26080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26081 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
26082 | ||
26083 | wxPyEndAllowThreads(__tstate); | |
26084 | if (PyErr_Occurred()) SWIG_fail; | |
26085 | } | |
c32bde28 | 26086 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
26087 | return resultobj; |
26088 | fail: | |
26089 | return NULL; | |
26090 | } | |
26091 | ||
26092 | ||
c32bde28 | 26093 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26094 | PyObject *resultobj; |
26095 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26096 | unsigned int arg2 ; | |
26097 | PyObject * obj0 = 0 ; | |
26098 | PyObject * obj1 = 0 ; | |
26099 | char *kwnames[] = { | |
26100 | (char *) "self",(char *) "indent", NULL | |
26101 | }; | |
26102 | ||
26103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
26104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26106 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
26107 | if (PyErr_Occurred()) SWIG_fail; |
26108 | { | |
26109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26110 | (arg1)->SetIndent(arg2); | |
26111 | ||
26112 | wxPyEndAllowThreads(__tstate); | |
26113 | if (PyErr_Occurred()) SWIG_fail; | |
26114 | } | |
26115 | Py_INCREF(Py_None); resultobj = Py_None; | |
26116 | return resultobj; | |
26117 | fail: | |
26118 | return NULL; | |
26119 | } | |
26120 | ||
26121 | ||
c32bde28 | 26122 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26123 | PyObject *resultobj; |
26124 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26125 | unsigned int result; | |
26126 | PyObject * obj0 = 0 ; | |
26127 | char *kwnames[] = { | |
26128 | (char *) "self", NULL | |
26129 | }; | |
26130 | ||
26131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
26132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26134 | { | |
26135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26136 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
26137 | ||
26138 | wxPyEndAllowThreads(__tstate); | |
26139 | if (PyErr_Occurred()) SWIG_fail; | |
26140 | } | |
c32bde28 | 26141 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
26142 | return resultobj; |
26143 | fail: | |
26144 | return NULL; | |
26145 | } | |
26146 | ||
26147 | ||
c32bde28 | 26148 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26149 | PyObject *resultobj; |
26150 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26151 | unsigned int arg2 ; | |
26152 | PyObject * obj0 = 0 ; | |
26153 | PyObject * obj1 = 0 ; | |
26154 | char *kwnames[] = { | |
26155 | (char *) "self",(char *) "spacing", NULL | |
26156 | }; | |
26157 | ||
26158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
26159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26161 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
26162 | if (PyErr_Occurred()) SWIG_fail; |
26163 | { | |
26164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26165 | (arg1)->SetSpacing(arg2); | |
26166 | ||
26167 | wxPyEndAllowThreads(__tstate); | |
26168 | if (PyErr_Occurred()) SWIG_fail; | |
26169 | } | |
26170 | Py_INCREF(Py_None); resultobj = Py_None; | |
26171 | return resultobj; | |
26172 | fail: | |
26173 | return NULL; | |
26174 | } | |
26175 | ||
26176 | ||
c32bde28 | 26177 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26178 | PyObject *resultobj; |
26179 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26180 | wxImageList *result; | |
26181 | PyObject * obj0 = 0 ; | |
26182 | char *kwnames[] = { | |
26183 | (char *) "self", NULL | |
26184 | }; | |
26185 | ||
26186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
26187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26189 | { | |
26190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26191 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
26192 | ||
26193 | wxPyEndAllowThreads(__tstate); | |
26194 | if (PyErr_Occurred()) SWIG_fail; | |
26195 | } | |
26196 | { | |
412d302d | 26197 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26198 | } |
26199 | return resultobj; | |
26200 | fail: | |
26201 | return NULL; | |
26202 | } | |
26203 | ||
26204 | ||
c32bde28 | 26205 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26206 | PyObject *resultobj; |
26207 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26208 | wxImageList *result; | |
26209 | PyObject * obj0 = 0 ; | |
26210 | char *kwnames[] = { | |
26211 | (char *) "self", NULL | |
26212 | }; | |
26213 | ||
26214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
26215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26217 | { | |
26218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26219 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
26220 | ||
26221 | wxPyEndAllowThreads(__tstate); | |
26222 | if (PyErr_Occurred()) SWIG_fail; | |
26223 | } | |
26224 | { | |
412d302d | 26225 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26226 | } |
26227 | return resultobj; | |
26228 | fail: | |
26229 | return NULL; | |
26230 | } | |
26231 | ||
26232 | ||
c32bde28 | 26233 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26234 | PyObject *resultobj; |
26235 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26236 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26237 | PyObject * obj0 = 0 ; | |
26238 | PyObject * obj1 = 0 ; | |
26239 | char *kwnames[] = { | |
26240 | (char *) "self",(char *) "imageList", NULL | |
26241 | }; | |
26242 | ||
26243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
26244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26246 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26248 | { | |
26249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26250 | (arg1)->SetImageList(arg2); | |
26251 | ||
26252 | wxPyEndAllowThreads(__tstate); | |
26253 | if (PyErr_Occurred()) SWIG_fail; | |
26254 | } | |
26255 | Py_INCREF(Py_None); resultobj = Py_None; | |
26256 | return resultobj; | |
26257 | fail: | |
26258 | return NULL; | |
26259 | } | |
26260 | ||
26261 | ||
c32bde28 | 26262 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26263 | PyObject *resultobj; |
26264 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26265 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26266 | PyObject * obj0 = 0 ; | |
26267 | PyObject * obj1 = 0 ; | |
26268 | char *kwnames[] = { | |
26269 | (char *) "self",(char *) "imageList", NULL | |
26270 | }; | |
26271 | ||
26272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
26273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26277 | { | |
26278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26279 | (arg1)->SetStateImageList(arg2); | |
26280 | ||
26281 | wxPyEndAllowThreads(__tstate); | |
26282 | if (PyErr_Occurred()) SWIG_fail; | |
26283 | } | |
26284 | Py_INCREF(Py_None); resultobj = Py_None; | |
26285 | return resultobj; | |
26286 | fail: | |
26287 | return NULL; | |
26288 | } | |
26289 | ||
26290 | ||
c32bde28 | 26291 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26292 | PyObject *resultobj; |
26293 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26294 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26295 | PyObject * obj0 = 0 ; | |
26296 | PyObject * obj1 = 0 ; | |
26297 | char *kwnames[] = { | |
26298 | (char *) "self",(char *) "imageList", NULL | |
26299 | }; | |
26300 | ||
26301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
26302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26304 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26305 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26306 | { | |
26307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26308 | (arg1)->AssignImageList(arg2); | |
26309 | ||
26310 | wxPyEndAllowThreads(__tstate); | |
26311 | if (PyErr_Occurred()) SWIG_fail; | |
26312 | } | |
26313 | Py_INCREF(Py_None); resultobj = Py_None; | |
26314 | return resultobj; | |
26315 | fail: | |
26316 | return NULL; | |
26317 | } | |
26318 | ||
26319 | ||
c32bde28 | 26320 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26321 | PyObject *resultobj; |
26322 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26323 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26324 | PyObject * obj0 = 0 ; | |
26325 | PyObject * obj1 = 0 ; | |
26326 | char *kwnames[] = { | |
26327 | (char *) "self",(char *) "imageList", NULL | |
26328 | }; | |
26329 | ||
26330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
26331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26334 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26335 | { | |
26336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26337 | (arg1)->AssignStateImageList(arg2); | |
26338 | ||
26339 | wxPyEndAllowThreads(__tstate); | |
26340 | if (PyErr_Occurred()) SWIG_fail; | |
26341 | } | |
26342 | Py_INCREF(Py_None); resultobj = Py_None; | |
26343 | return resultobj; | |
26344 | fail: | |
26345 | return NULL; | |
26346 | } | |
26347 | ||
26348 | ||
c32bde28 | 26349 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26350 | PyObject *resultobj; |
26351 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26352 | wxTreeItemId *arg2 = 0 ; | |
26353 | wxString result; | |
26354 | PyObject * obj0 = 0 ; | |
26355 | PyObject * obj1 = 0 ; | |
26356 | char *kwnames[] = { | |
26357 | (char *) "self",(char *) "item", NULL | |
26358 | }; | |
26359 | ||
26360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
26361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26363 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26364 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26365 | SWIG_fail; | |
26366 | if (arg2 == NULL) { | |
26367 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26368 | SWIG_fail; | |
26369 | } | |
26370 | { | |
26371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26372 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
26373 | ||
26374 | wxPyEndAllowThreads(__tstate); | |
26375 | if (PyErr_Occurred()) SWIG_fail; | |
26376 | } | |
26377 | { | |
26378 | #if wxUSE_UNICODE | |
26379 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26380 | #else | |
26381 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26382 | #endif | |
26383 | } | |
26384 | return resultobj; | |
26385 | fail: | |
26386 | return NULL; | |
26387 | } | |
26388 | ||
26389 | ||
c32bde28 | 26390 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26391 | PyObject *resultobj; |
26392 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26393 | wxTreeItemId *arg2 = 0 ; | |
26394 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
26395 | int result; | |
26396 | PyObject * obj0 = 0 ; | |
26397 | PyObject * obj1 = 0 ; | |
26398 | PyObject * obj2 = 0 ; | |
26399 | char *kwnames[] = { | |
26400 | (char *) "self",(char *) "item",(char *) "which", NULL | |
26401 | }; | |
26402 | ||
26403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26406 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26407 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26408 | SWIG_fail; | |
26409 | if (arg2 == NULL) { | |
26410 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26411 | SWIG_fail; | |
26412 | } | |
26413 | if (obj2) { | |
c32bde28 | 26414 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26415 | if (PyErr_Occurred()) SWIG_fail; |
26416 | } | |
26417 | { | |
26418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26419 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
26420 | ||
26421 | wxPyEndAllowThreads(__tstate); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | } | |
c32bde28 | 26424 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26425 | return resultobj; |
26426 | fail: | |
26427 | return NULL; | |
26428 | } | |
26429 | ||
26430 | ||
c32bde28 | 26431 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26432 | PyObject *resultobj; |
26433 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26434 | wxTreeItemId *arg2 = 0 ; | |
26435 | wxPyTreeItemData *result; | |
26436 | PyObject * obj0 = 0 ; | |
26437 | PyObject * obj1 = 0 ; | |
26438 | char *kwnames[] = { | |
26439 | (char *) "self",(char *) "item", NULL | |
26440 | }; | |
26441 | ||
26442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
26443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26447 | SWIG_fail; | |
26448 | if (arg2 == NULL) { | |
26449 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26450 | SWIG_fail; | |
26451 | } | |
26452 | { | |
26453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26454 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
26455 | ||
26456 | wxPyEndAllowThreads(__tstate); | |
26457 | if (PyErr_Occurred()) SWIG_fail; | |
26458 | } | |
26459 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
26460 | return resultobj; | |
26461 | fail: | |
26462 | return NULL; | |
26463 | } | |
26464 | ||
26465 | ||
c32bde28 | 26466 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26467 | PyObject *resultobj; |
26468 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26469 | wxTreeItemId *arg2 = 0 ; | |
26470 | PyObject *result; | |
26471 | PyObject * obj0 = 0 ; | |
26472 | PyObject * obj1 = 0 ; | |
26473 | char *kwnames[] = { | |
26474 | (char *) "self",(char *) "item", NULL | |
26475 | }; | |
26476 | ||
26477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
26478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26480 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26481 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26482 | SWIG_fail; | |
26483 | if (arg2 == NULL) { | |
26484 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26485 | SWIG_fail; | |
26486 | } | |
26487 | { | |
26488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26489 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
26490 | ||
26491 | wxPyEndAllowThreads(__tstate); | |
26492 | if (PyErr_Occurred()) SWIG_fail; | |
26493 | } | |
26494 | resultobj = result; | |
26495 | return resultobj; | |
26496 | fail: | |
26497 | return NULL; | |
26498 | } | |
26499 | ||
26500 | ||
c32bde28 | 26501 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26502 | PyObject *resultobj; |
26503 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26504 | wxTreeItemId *arg2 = 0 ; | |
26505 | wxColour result; | |
26506 | PyObject * obj0 = 0 ; | |
26507 | PyObject * obj1 = 0 ; | |
26508 | char *kwnames[] = { | |
26509 | (char *) "self",(char *) "item", NULL | |
26510 | }; | |
26511 | ||
26512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
26513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26517 | SWIG_fail; | |
26518 | if (arg2 == NULL) { | |
26519 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26520 | SWIG_fail; | |
26521 | } | |
26522 | { | |
26523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26524 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
26525 | ||
26526 | wxPyEndAllowThreads(__tstate); | |
26527 | if (PyErr_Occurred()) SWIG_fail; | |
26528 | } | |
26529 | { | |
26530 | wxColour * resultptr; | |
26531 | resultptr = new wxColour((wxColour &) result); | |
26532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26533 | } | |
26534 | return resultobj; | |
26535 | fail: | |
26536 | return NULL; | |
26537 | } | |
26538 | ||
26539 | ||
c32bde28 | 26540 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26541 | PyObject *resultobj; |
26542 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26543 | wxTreeItemId *arg2 = 0 ; | |
26544 | wxColour result; | |
26545 | PyObject * obj0 = 0 ; | |
26546 | PyObject * obj1 = 0 ; | |
26547 | char *kwnames[] = { | |
26548 | (char *) "self",(char *) "item", NULL | |
26549 | }; | |
26550 | ||
26551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26556 | SWIG_fail; | |
26557 | if (arg2 == NULL) { | |
26558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26559 | SWIG_fail; | |
26560 | } | |
26561 | { | |
26562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26563 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
26564 | ||
26565 | wxPyEndAllowThreads(__tstate); | |
26566 | if (PyErr_Occurred()) SWIG_fail; | |
26567 | } | |
26568 | { | |
26569 | wxColour * resultptr; | |
26570 | resultptr = new wxColour((wxColour &) result); | |
26571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26572 | } | |
26573 | return resultobj; | |
26574 | fail: | |
26575 | return NULL; | |
26576 | } | |
26577 | ||
26578 | ||
c32bde28 | 26579 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26580 | PyObject *resultobj; |
26581 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26582 | wxTreeItemId *arg2 = 0 ; | |
26583 | wxFont 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_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
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; | |
26596 | if (arg2 == NULL) { | |
26597 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26598 | SWIG_fail; | |
26599 | } | |
26600 | { | |
26601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26602 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
26603 | ||
26604 | wxPyEndAllowThreads(__tstate); | |
26605 | if (PyErr_Occurred()) SWIG_fail; | |
26606 | } | |
26607 | { | |
26608 | wxFont * resultptr; | |
26609 | resultptr = new wxFont((wxFont &) result); | |
26610 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26611 | } | |
26612 | return resultobj; | |
26613 | fail: | |
26614 | return NULL; | |
26615 | } | |
26616 | ||
26617 | ||
c32bde28 | 26618 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26619 | PyObject *resultobj; |
26620 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26621 | wxTreeItemId *arg2 = 0 ; | |
26622 | wxString *arg3 = 0 ; | |
ae8162c8 | 26623 | bool temp3 = false ; |
d55e5bfc RD |
26624 | PyObject * obj0 = 0 ; |
26625 | PyObject * obj1 = 0 ; | |
26626 | PyObject * obj2 = 0 ; | |
26627 | char *kwnames[] = { | |
26628 | (char *) "self",(char *) "item",(char *) "text", NULL | |
26629 | }; | |
26630 | ||
26631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26635 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26636 | SWIG_fail; | |
26637 | if (arg2 == NULL) { | |
26638 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26639 | SWIG_fail; | |
26640 | } | |
26641 | { | |
26642 | arg3 = wxString_in_helper(obj2); | |
26643 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26644 | temp3 = true; |
d55e5bfc RD |
26645 | } |
26646 | { | |
26647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26648 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
26649 | ||
26650 | wxPyEndAllowThreads(__tstate); | |
26651 | if (PyErr_Occurred()) SWIG_fail; | |
26652 | } | |
26653 | Py_INCREF(Py_None); resultobj = Py_None; | |
26654 | { | |
26655 | if (temp3) | |
26656 | delete arg3; | |
26657 | } | |
26658 | return resultobj; | |
26659 | fail: | |
26660 | { | |
26661 | if (temp3) | |
26662 | delete arg3; | |
26663 | } | |
26664 | return NULL; | |
26665 | } | |
26666 | ||
26667 | ||
c32bde28 | 26668 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26669 | PyObject *resultobj; |
26670 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26671 | wxTreeItemId *arg2 = 0 ; | |
26672 | int arg3 ; | |
26673 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
26674 | PyObject * obj0 = 0 ; | |
26675 | PyObject * obj1 = 0 ; | |
26676 | PyObject * obj2 = 0 ; | |
26677 | PyObject * obj3 = 0 ; | |
26678 | char *kwnames[] = { | |
26679 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
26680 | }; | |
26681 | ||
26682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26686 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26687 | SWIG_fail; | |
26688 | if (arg2 == NULL) { | |
26689 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26690 | SWIG_fail; | |
26691 | } | |
c32bde28 | 26692 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26693 | if (PyErr_Occurred()) SWIG_fail; |
26694 | if (obj3) { | |
c32bde28 | 26695 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26696 | if (PyErr_Occurred()) SWIG_fail; |
26697 | } | |
26698 | { | |
26699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26700 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
26701 | ||
26702 | wxPyEndAllowThreads(__tstate); | |
26703 | if (PyErr_Occurred()) SWIG_fail; | |
26704 | } | |
26705 | Py_INCREF(Py_None); resultobj = Py_None; | |
26706 | return resultobj; | |
26707 | fail: | |
26708 | return NULL; | |
26709 | } | |
26710 | ||
26711 | ||
c32bde28 | 26712 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26713 | PyObject *resultobj; |
26714 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26715 | wxTreeItemId *arg2 = 0 ; | |
26716 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
26717 | PyObject * obj0 = 0 ; | |
26718 | PyObject * obj1 = 0 ; | |
26719 | PyObject * obj2 = 0 ; | |
26720 | char *kwnames[] = { | |
26721 | (char *) "self",(char *) "item",(char *) "data", NULL | |
26722 | }; | |
26723 | ||
26724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26728 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26729 | SWIG_fail; | |
26730 | if (arg2 == NULL) { | |
26731 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26732 | SWIG_fail; | |
26733 | } | |
26734 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, | |
26735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26736 | { | |
26737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26738 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26739 | ||
26740 | wxPyEndAllowThreads(__tstate); | |
26741 | if (PyErr_Occurred()) SWIG_fail; | |
26742 | } | |
26743 | Py_INCREF(Py_None); resultobj = Py_None; | |
26744 | return resultobj; | |
26745 | fail: | |
26746 | return NULL; | |
26747 | } | |
26748 | ||
26749 | ||
c32bde28 | 26750 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26751 | PyObject *resultobj; |
26752 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26753 | wxTreeItemId *arg2 = 0 ; | |
26754 | PyObject *arg3 = (PyObject *) 0 ; | |
26755 | PyObject * obj0 = 0 ; | |
26756 | PyObject * obj1 = 0 ; | |
26757 | PyObject * obj2 = 0 ; | |
26758 | char *kwnames[] = { | |
26759 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
26760 | }; | |
26761 | ||
26762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26767 | SWIG_fail; | |
26768 | if (arg2 == NULL) { | |
26769 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26770 | SWIG_fail; | |
26771 | } | |
26772 | arg3 = obj2; | |
26773 | { | |
26774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26775 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26776 | ||
26777 | wxPyEndAllowThreads(__tstate); | |
26778 | if (PyErr_Occurred()) SWIG_fail; | |
26779 | } | |
26780 | Py_INCREF(Py_None); resultobj = Py_None; | |
26781 | return resultobj; | |
26782 | fail: | |
26783 | return NULL; | |
26784 | } | |
26785 | ||
26786 | ||
c32bde28 | 26787 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26788 | PyObject *resultobj; |
26789 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26790 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26791 | bool arg3 = (bool) true ; |
d55e5bfc RD |
26792 | PyObject * obj0 = 0 ; |
26793 | PyObject * obj1 = 0 ; | |
26794 | PyObject * obj2 = 0 ; | |
26795 | char *kwnames[] = { | |
26796 | (char *) "self",(char *) "item",(char *) "has", NULL | |
26797 | }; | |
26798 | ||
26799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26803 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26804 | SWIG_fail; | |
26805 | if (arg2 == NULL) { | |
26806 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26807 | SWIG_fail; | |
26808 | } | |
26809 | if (obj2) { | |
c32bde28 | 26810 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
26811 | if (PyErr_Occurred()) SWIG_fail; |
26812 | } | |
26813 | { | |
26814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26815 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
26816 | ||
26817 | wxPyEndAllowThreads(__tstate); | |
26818 | if (PyErr_Occurred()) SWIG_fail; | |
26819 | } | |
26820 | Py_INCREF(Py_None); resultobj = Py_None; | |
26821 | return resultobj; | |
26822 | fail: | |
26823 | return NULL; | |
26824 | } | |
26825 | ||
26826 | ||
c32bde28 | 26827 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26828 | PyObject *resultobj; |
26829 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26830 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26831 | bool arg3 = (bool) true ; |
d55e5bfc RD |
26832 | PyObject * obj0 = 0 ; |
26833 | PyObject * obj1 = 0 ; | |
26834 | PyObject * obj2 = 0 ; | |
26835 | char *kwnames[] = { | |
26836 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
26837 | }; | |
26838 | ||
26839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26842 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26843 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26844 | SWIG_fail; | |
26845 | if (arg2 == NULL) { | |
26846 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26847 | SWIG_fail; | |
26848 | } | |
26849 | if (obj2) { | |
c32bde28 | 26850 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
26851 | if (PyErr_Occurred()) SWIG_fail; |
26852 | } | |
26853 | { | |
26854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26855 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26856 | ||
26857 | wxPyEndAllowThreads(__tstate); | |
26858 | if (PyErr_Occurred()) SWIG_fail; | |
26859 | } | |
26860 | Py_INCREF(Py_None); resultobj = Py_None; | |
26861 | return resultobj; | |
26862 | fail: | |
26863 | return NULL; | |
26864 | } | |
26865 | ||
26866 | ||
c32bde28 | 26867 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26868 | PyObject *resultobj; |
26869 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26870 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26871 | bool arg3 = (bool) true ; |
d55e5bfc RD |
26872 | PyObject * obj0 = 0 ; |
26873 | PyObject * obj1 = 0 ; | |
26874 | PyObject * obj2 = 0 ; | |
26875 | char *kwnames[] = { | |
26876 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
26877 | }; | |
26878 | ||
26879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26883 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26884 | SWIG_fail; | |
26885 | if (arg2 == NULL) { | |
26886 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26887 | SWIG_fail; | |
26888 | } | |
26889 | if (obj2) { | |
c32bde28 | 26890 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
26891 | if (PyErr_Occurred()) SWIG_fail; |
26892 | } | |
26893 | { | |
26894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26895 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
26896 | ||
26897 | wxPyEndAllowThreads(__tstate); | |
26898 | if (PyErr_Occurred()) SWIG_fail; | |
26899 | } | |
26900 | Py_INCREF(Py_None); resultobj = Py_None; | |
26901 | return resultobj; | |
26902 | fail: | |
26903 | return NULL; | |
26904 | } | |
26905 | ||
26906 | ||
c32bde28 | 26907 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26908 | PyObject *resultobj; |
26909 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26910 | wxTreeItemId *arg2 = 0 ; | |
26911 | wxColour *arg3 = 0 ; | |
26912 | wxColour temp3 ; | |
26913 | PyObject * obj0 = 0 ; | |
26914 | PyObject * obj1 = 0 ; | |
26915 | PyObject * obj2 = 0 ; | |
26916 | char *kwnames[] = { | |
26917 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26918 | }; | |
26919 | ||
26920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26925 | SWIG_fail; | |
26926 | if (arg2 == NULL) { | |
26927 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26928 | SWIG_fail; | |
26929 | } | |
26930 | { | |
26931 | arg3 = &temp3; | |
26932 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26933 | } | |
26934 | { | |
26935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26936 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26937 | ||
26938 | wxPyEndAllowThreads(__tstate); | |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
26940 | } | |
26941 | Py_INCREF(Py_None); resultobj = Py_None; | |
26942 | return resultobj; | |
26943 | fail: | |
26944 | return NULL; | |
26945 | } | |
26946 | ||
26947 | ||
c32bde28 | 26948 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26949 | PyObject *resultobj; |
26950 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26951 | wxTreeItemId *arg2 = 0 ; | |
26952 | wxColour *arg3 = 0 ; | |
26953 | wxColour temp3 ; | |
26954 | PyObject * obj0 = 0 ; | |
26955 | PyObject * obj1 = 0 ; | |
26956 | PyObject * obj2 = 0 ; | |
26957 | char *kwnames[] = { | |
26958 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26959 | }; | |
26960 | ||
26961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26966 | SWIG_fail; | |
26967 | if (arg2 == NULL) { | |
26968 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26969 | SWIG_fail; | |
26970 | } | |
26971 | { | |
26972 | arg3 = &temp3; | |
26973 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26974 | } | |
26975 | { | |
26976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26977 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26978 | ||
26979 | wxPyEndAllowThreads(__tstate); | |
26980 | if (PyErr_Occurred()) SWIG_fail; | |
26981 | } | |
26982 | Py_INCREF(Py_None); resultobj = Py_None; | |
26983 | return resultobj; | |
26984 | fail: | |
26985 | return NULL; | |
26986 | } | |
26987 | ||
26988 | ||
c32bde28 | 26989 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26990 | PyObject *resultobj; |
26991 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26992 | wxTreeItemId *arg2 = 0 ; | |
26993 | wxFont *arg3 = 0 ; | |
26994 | PyObject * obj0 = 0 ; | |
26995 | PyObject * obj1 = 0 ; | |
26996 | PyObject * obj2 = 0 ; | |
26997 | char *kwnames[] = { | |
26998 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26999 | }; | |
27000 | ||
27001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27004 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27005 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27006 | SWIG_fail; | |
27007 | if (arg2 == NULL) { | |
27008 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27009 | SWIG_fail; | |
27010 | } | |
27011 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
27012 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27013 | SWIG_fail; | |
27014 | if (arg3 == NULL) { | |
27015 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27016 | SWIG_fail; | |
27017 | } | |
27018 | { | |
27019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27020 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
27021 | ||
27022 | wxPyEndAllowThreads(__tstate); | |
27023 | if (PyErr_Occurred()) SWIG_fail; | |
27024 | } | |
27025 | Py_INCREF(Py_None); resultobj = Py_None; | |
27026 | return resultobj; | |
27027 | fail: | |
27028 | return NULL; | |
27029 | } | |
27030 | ||
27031 | ||
c32bde28 | 27032 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27033 | PyObject *resultobj; |
27034 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27035 | wxTreeItemId *arg2 = 0 ; | |
27036 | bool result; | |
27037 | PyObject * obj0 = 0 ; | |
27038 | PyObject * obj1 = 0 ; | |
27039 | char *kwnames[] = { | |
27040 | (char *) "self",(char *) "item", NULL | |
27041 | }; | |
27042 | ||
27043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
27044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27047 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27048 | SWIG_fail; | |
27049 | if (arg2 == NULL) { | |
27050 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27051 | SWIG_fail; | |
27052 | } | |
27053 | { | |
27054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27055 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
27056 | ||
27057 | wxPyEndAllowThreads(__tstate); | |
27058 | if (PyErr_Occurred()) SWIG_fail; | |
27059 | } | |
27060 | { | |
27061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27062 | } | |
27063 | return resultobj; | |
27064 | fail: | |
27065 | return NULL; | |
27066 | } | |
27067 | ||
27068 | ||
c32bde28 | 27069 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27070 | PyObject *resultobj; |
27071 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27072 | wxTreeItemId *arg2 = 0 ; | |
27073 | bool result; | |
27074 | PyObject * obj0 = 0 ; | |
27075 | PyObject * obj1 = 0 ; | |
27076 | char *kwnames[] = { | |
27077 | (char *) "self",(char *) "item", NULL | |
27078 | }; | |
27079 | ||
27080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
27081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27084 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27085 | SWIG_fail; | |
27086 | if (arg2 == NULL) { | |
27087 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27088 | SWIG_fail; | |
27089 | } | |
27090 | { | |
27091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27092 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
27093 | ||
27094 | wxPyEndAllowThreads(__tstate); | |
27095 | if (PyErr_Occurred()) SWIG_fail; | |
27096 | } | |
27097 | { | |
27098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27099 | } | |
27100 | return resultobj; | |
27101 | fail: | |
27102 | return NULL; | |
27103 | } | |
27104 | ||
27105 | ||
c32bde28 | 27106 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27107 | PyObject *resultobj; |
27108 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27109 | wxTreeItemId *arg2 = 0 ; | |
27110 | bool result; | |
27111 | PyObject * obj0 = 0 ; | |
27112 | PyObject * obj1 = 0 ; | |
27113 | char *kwnames[] = { | |
27114 | (char *) "self",(char *) "item", NULL | |
27115 | }; | |
27116 | ||
27117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
27118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27120 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27121 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27122 | SWIG_fail; | |
27123 | if (arg2 == NULL) { | |
27124 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27125 | SWIG_fail; | |
27126 | } | |
27127 | { | |
27128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27129 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
27130 | ||
27131 | wxPyEndAllowThreads(__tstate); | |
27132 | if (PyErr_Occurred()) SWIG_fail; | |
27133 | } | |
27134 | { | |
27135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27136 | } | |
27137 | return resultobj; | |
27138 | fail: | |
27139 | return NULL; | |
27140 | } | |
27141 | ||
27142 | ||
c32bde28 | 27143 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27144 | PyObject *resultobj; |
27145 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27146 | wxTreeItemId *arg2 = 0 ; | |
27147 | bool result; | |
27148 | PyObject * obj0 = 0 ; | |
27149 | PyObject * obj1 = 0 ; | |
27150 | char *kwnames[] = { | |
27151 | (char *) "self",(char *) "item", NULL | |
27152 | }; | |
27153 | ||
27154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
27155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27158 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27159 | SWIG_fail; | |
27160 | if (arg2 == NULL) { | |
27161 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27162 | SWIG_fail; | |
27163 | } | |
27164 | { | |
27165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27166 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
27167 | ||
27168 | wxPyEndAllowThreads(__tstate); | |
27169 | if (PyErr_Occurred()) SWIG_fail; | |
27170 | } | |
27171 | { | |
27172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27173 | } | |
27174 | return resultobj; | |
27175 | fail: | |
27176 | return NULL; | |
27177 | } | |
27178 | ||
27179 | ||
c32bde28 | 27180 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27181 | PyObject *resultobj; |
27182 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27183 | wxTreeItemId *arg2 = 0 ; | |
27184 | bool result; | |
27185 | PyObject * obj0 = 0 ; | |
27186 | PyObject * obj1 = 0 ; | |
27187 | char *kwnames[] = { | |
27188 | (char *) "self",(char *) "item", NULL | |
27189 | }; | |
27190 | ||
27191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
27192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27195 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27196 | SWIG_fail; | |
27197 | if (arg2 == NULL) { | |
27198 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27199 | SWIG_fail; | |
27200 | } | |
27201 | { | |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
27204 | ||
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
27208 | { | |
27209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27210 | } | |
27211 | return resultobj; | |
27212 | fail: | |
27213 | return NULL; | |
27214 | } | |
27215 | ||
27216 | ||
c32bde28 | 27217 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27218 | PyObject *resultobj; |
27219 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27220 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 27221 | bool arg3 = (bool) true ; |
d55e5bfc RD |
27222 | size_t result; |
27223 | PyObject * obj0 = 0 ; | |
27224 | PyObject * obj1 = 0 ; | |
27225 | PyObject * obj2 = 0 ; | |
27226 | char *kwnames[] = { | |
27227 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
27228 | }; | |
27229 | ||
27230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27235 | SWIG_fail; | |
27236 | if (arg2 == NULL) { | |
27237 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27238 | SWIG_fail; | |
27239 | } | |
27240 | if (obj2) { | |
c32bde28 | 27241 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
27242 | if (PyErr_Occurred()) SWIG_fail; |
27243 | } | |
27244 | { | |
27245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27246 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
27247 | ||
27248 | wxPyEndAllowThreads(__tstate); | |
27249 | if (PyErr_Occurred()) SWIG_fail; | |
27250 | } | |
c32bde28 | 27251 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
27252 | return resultobj; |
27253 | fail: | |
27254 | return NULL; | |
27255 | } | |
27256 | ||
27257 | ||
c32bde28 | 27258 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27259 | PyObject *resultobj; |
27260 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27261 | wxTreeItemId result; | |
27262 | PyObject * obj0 = 0 ; | |
27263 | char *kwnames[] = { | |
27264 | (char *) "self", NULL | |
27265 | }; | |
27266 | ||
27267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
27268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27270 | { | |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
27273 | ||
27274 | wxPyEndAllowThreads(__tstate); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | } | |
27277 | { | |
27278 | wxTreeItemId * resultptr; | |
27279 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27280 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27281 | } | |
27282 | return resultobj; | |
27283 | fail: | |
27284 | return NULL; | |
27285 | } | |
27286 | ||
27287 | ||
c32bde28 | 27288 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27289 | PyObject *resultobj; |
27290 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27291 | wxTreeItemId result; | |
27292 | PyObject * obj0 = 0 ; | |
27293 | char *kwnames[] = { | |
27294 | (char *) "self", NULL | |
27295 | }; | |
27296 | ||
27297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
27298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27300 | { | |
27301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27302 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
27303 | ||
27304 | wxPyEndAllowThreads(__tstate); | |
27305 | if (PyErr_Occurred()) SWIG_fail; | |
27306 | } | |
27307 | { | |
27308 | wxTreeItemId * resultptr; | |
27309 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27310 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27311 | } | |
27312 | return resultobj; | |
27313 | fail: | |
27314 | return NULL; | |
27315 | } | |
27316 | ||
27317 | ||
c32bde28 | 27318 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27319 | PyObject *resultobj; |
27320 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27321 | PyObject *result; | |
27322 | PyObject * obj0 = 0 ; | |
27323 | char *kwnames[] = { | |
27324 | (char *) "self", NULL | |
27325 | }; | |
27326 | ||
27327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
27328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27330 | { | |
27331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27332 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
27333 | ||
27334 | wxPyEndAllowThreads(__tstate); | |
27335 | if (PyErr_Occurred()) SWIG_fail; | |
27336 | } | |
27337 | resultobj = result; | |
27338 | return resultobj; | |
27339 | fail: | |
27340 | return NULL; | |
27341 | } | |
27342 | ||
27343 | ||
c32bde28 | 27344 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27345 | PyObject *resultobj; |
27346 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27347 | wxTreeItemId *arg2 = 0 ; | |
27348 | wxTreeItemId result; | |
27349 | PyObject * obj0 = 0 ; | |
27350 | PyObject * obj1 = 0 ; | |
27351 | char *kwnames[] = { | |
27352 | (char *) "self",(char *) "item", NULL | |
27353 | }; | |
27354 | ||
27355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
27356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27359 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27360 | SWIG_fail; | |
27361 | if (arg2 == NULL) { | |
27362 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27363 | SWIG_fail; | |
27364 | } | |
27365 | { | |
27366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27367 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
27368 | ||
27369 | wxPyEndAllowThreads(__tstate); | |
27370 | if (PyErr_Occurred()) SWIG_fail; | |
27371 | } | |
27372 | { | |
27373 | wxTreeItemId * resultptr; | |
27374 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27376 | } | |
27377 | return resultobj; | |
27378 | fail: | |
27379 | return NULL; | |
27380 | } | |
27381 | ||
27382 | ||
c32bde28 | 27383 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27384 | PyObject *resultobj; |
27385 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27386 | wxTreeItemId *arg2 = 0 ; | |
27387 | PyObject *result; | |
27388 | PyObject * obj0 = 0 ; | |
27389 | PyObject * obj1 = 0 ; | |
27390 | char *kwnames[] = { | |
27391 | (char *) "self",(char *) "item", NULL | |
27392 | }; | |
27393 | ||
27394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
27395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27397 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27398 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27399 | SWIG_fail; | |
27400 | if (arg2 == NULL) { | |
27401 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27402 | SWIG_fail; | |
27403 | } | |
27404 | { | |
27405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27406 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
27407 | ||
27408 | wxPyEndAllowThreads(__tstate); | |
27409 | if (PyErr_Occurred()) SWIG_fail; | |
27410 | } | |
27411 | resultobj = result; | |
27412 | return resultobj; | |
27413 | fail: | |
27414 | return NULL; | |
27415 | } | |
27416 | ||
27417 | ||
c32bde28 | 27418 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27419 | PyObject *resultobj; |
27420 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27421 | wxTreeItemId *arg2 = 0 ; | |
27422 | void *arg3 = (void *) 0 ; | |
27423 | PyObject *result; | |
27424 | PyObject * obj0 = 0 ; | |
27425 | PyObject * obj1 = 0 ; | |
27426 | PyObject * obj2 = 0 ; | |
27427 | char *kwnames[] = { | |
27428 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
27429 | }; | |
27430 | ||
27431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27434 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27435 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27436 | SWIG_fail; | |
27437 | if (arg2 == NULL) { | |
27438 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27439 | SWIG_fail; | |
27440 | } | |
27441 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27442 | { | |
27443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27444 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27445 | ||
27446 | wxPyEndAllowThreads(__tstate); | |
27447 | if (PyErr_Occurred()) SWIG_fail; | |
27448 | } | |
27449 | resultobj = result; | |
27450 | return resultobj; | |
27451 | fail: | |
27452 | return NULL; | |
27453 | } | |
27454 | ||
27455 | ||
c32bde28 | 27456 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27457 | PyObject *resultobj; |
27458 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27459 | wxTreeItemId *arg2 = 0 ; | |
27460 | wxTreeItemId result; | |
27461 | PyObject * obj0 = 0 ; | |
27462 | PyObject * obj1 = 0 ; | |
27463 | char *kwnames[] = { | |
27464 | (char *) "self",(char *) "item", NULL | |
27465 | }; | |
27466 | ||
27467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
27468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27472 | SWIG_fail; | |
27473 | if (arg2 == NULL) { | |
27474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27475 | SWIG_fail; | |
27476 | } | |
27477 | { | |
27478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27479 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
27480 | ||
27481 | wxPyEndAllowThreads(__tstate); | |
27482 | if (PyErr_Occurred()) SWIG_fail; | |
27483 | } | |
27484 | { | |
27485 | wxTreeItemId * resultptr; | |
27486 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27488 | } | |
27489 | return resultobj; | |
27490 | fail: | |
27491 | return NULL; | |
27492 | } | |
27493 | ||
27494 | ||
c32bde28 | 27495 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27496 | PyObject *resultobj; |
27497 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27498 | wxTreeItemId *arg2 = 0 ; | |
27499 | wxTreeItemId result; | |
27500 | PyObject * obj0 = 0 ; | |
27501 | PyObject * obj1 = 0 ; | |
27502 | char *kwnames[] = { | |
27503 | (char *) "self",(char *) "item", NULL | |
27504 | }; | |
27505 | ||
27506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
27507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27510 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27511 | SWIG_fail; | |
27512 | if (arg2 == NULL) { | |
27513 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27514 | SWIG_fail; | |
27515 | } | |
27516 | { | |
27517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27518 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
27519 | ||
27520 | wxPyEndAllowThreads(__tstate); | |
27521 | if (PyErr_Occurred()) SWIG_fail; | |
27522 | } | |
27523 | { | |
27524 | wxTreeItemId * resultptr; | |
27525 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27527 | } | |
27528 | return resultobj; | |
27529 | fail: | |
27530 | return NULL; | |
27531 | } | |
27532 | ||
27533 | ||
c32bde28 | 27534 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27535 | PyObject *resultobj; |
27536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27537 | wxTreeItemId *arg2 = 0 ; | |
27538 | wxTreeItemId result; | |
27539 | PyObject * obj0 = 0 ; | |
27540 | PyObject * obj1 = 0 ; | |
27541 | char *kwnames[] = { | |
27542 | (char *) "self",(char *) "item", NULL | |
27543 | }; | |
27544 | ||
27545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
27546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27549 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27550 | SWIG_fail; | |
27551 | if (arg2 == NULL) { | |
27552 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27553 | SWIG_fail; | |
27554 | } | |
27555 | { | |
27556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27557 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
27558 | ||
27559 | wxPyEndAllowThreads(__tstate); | |
27560 | if (PyErr_Occurred()) SWIG_fail; | |
27561 | } | |
27562 | { | |
27563 | wxTreeItemId * resultptr; | |
27564 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27565 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27566 | } | |
27567 | return resultobj; | |
27568 | fail: | |
27569 | return NULL; | |
27570 | } | |
27571 | ||
27572 | ||
c32bde28 | 27573 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27574 | PyObject *resultobj; |
27575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27576 | wxTreeItemId result; | |
27577 | PyObject * obj0 = 0 ; | |
27578 | char *kwnames[] = { | |
27579 | (char *) "self", NULL | |
27580 | }; | |
27581 | ||
27582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
27583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27585 | { | |
27586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27587 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
27588 | ||
27589 | wxPyEndAllowThreads(__tstate); | |
27590 | if (PyErr_Occurred()) SWIG_fail; | |
27591 | } | |
27592 | { | |
27593 | wxTreeItemId * resultptr; | |
27594 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27596 | } | |
27597 | return resultobj; | |
27598 | fail: | |
27599 | return NULL; | |
27600 | } | |
27601 | ||
27602 | ||
c32bde28 | 27603 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27604 | PyObject *resultobj; |
27605 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27606 | wxTreeItemId *arg2 = 0 ; | |
27607 | wxTreeItemId result; | |
27608 | PyObject * obj0 = 0 ; | |
27609 | PyObject * obj1 = 0 ; | |
27610 | char *kwnames[] = { | |
27611 | (char *) "self",(char *) "item", NULL | |
27612 | }; | |
27613 | ||
27614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
27615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27619 | SWIG_fail; | |
27620 | if (arg2 == NULL) { | |
27621 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27622 | SWIG_fail; | |
27623 | } | |
27624 | { | |
27625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27626 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
27627 | ||
27628 | wxPyEndAllowThreads(__tstate); | |
27629 | if (PyErr_Occurred()) SWIG_fail; | |
27630 | } | |
27631 | { | |
27632 | wxTreeItemId * resultptr; | |
27633 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27635 | } | |
27636 | return resultobj; | |
27637 | fail: | |
27638 | return NULL; | |
27639 | } | |
27640 | ||
27641 | ||
c32bde28 | 27642 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27643 | PyObject *resultobj; |
27644 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27645 | wxTreeItemId *arg2 = 0 ; | |
27646 | wxTreeItemId result; | |
27647 | PyObject * obj0 = 0 ; | |
27648 | PyObject * obj1 = 0 ; | |
27649 | char *kwnames[] = { | |
27650 | (char *) "self",(char *) "item", NULL | |
27651 | }; | |
27652 | ||
27653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
27654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27657 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27658 | SWIG_fail; | |
27659 | if (arg2 == NULL) { | |
27660 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27661 | SWIG_fail; | |
27662 | } | |
27663 | { | |
27664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27665 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
27666 | ||
27667 | wxPyEndAllowThreads(__tstate); | |
27668 | if (PyErr_Occurred()) SWIG_fail; | |
27669 | } | |
27670 | { | |
27671 | wxTreeItemId * resultptr; | |
27672 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27674 | } | |
27675 | return resultobj; | |
27676 | fail: | |
27677 | return NULL; | |
27678 | } | |
27679 | ||
27680 | ||
c32bde28 | 27681 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27682 | PyObject *resultobj; |
27683 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27684 | wxString *arg2 = 0 ; | |
27685 | int arg3 = (int) -1 ; | |
27686 | int arg4 = (int) -1 ; | |
27687 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
27688 | wxTreeItemId result; | |
ae8162c8 | 27689 | bool temp2 = false ; |
d55e5bfc RD |
27690 | PyObject * obj0 = 0 ; |
27691 | PyObject * obj1 = 0 ; | |
27692 | PyObject * obj2 = 0 ; | |
27693 | PyObject * obj3 = 0 ; | |
27694 | PyObject * obj4 = 0 ; | |
27695 | char *kwnames[] = { | |
27696 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27697 | }; | |
27698 | ||
27699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27702 | { | |
27703 | arg2 = wxString_in_helper(obj1); | |
27704 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27705 | temp2 = true; |
d55e5bfc RD |
27706 | } |
27707 | if (obj2) { | |
c32bde28 | 27708 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27709 | if (PyErr_Occurred()) SWIG_fail; |
27710 | } | |
27711 | if (obj3) { | |
c32bde28 | 27712 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27713 | if (PyErr_Occurred()) SWIG_fail; |
27714 | } | |
27715 | if (obj4) { | |
27716 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, | |
27717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27718 | } | |
27719 | { | |
27720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27721 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
27722 | ||
27723 | wxPyEndAllowThreads(__tstate); | |
27724 | if (PyErr_Occurred()) SWIG_fail; | |
27725 | } | |
27726 | { | |
27727 | wxTreeItemId * resultptr; | |
27728 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27730 | } | |
27731 | { | |
27732 | if (temp2) | |
27733 | delete arg2; | |
27734 | } | |
27735 | return resultobj; | |
27736 | fail: | |
27737 | { | |
27738 | if (temp2) | |
27739 | delete arg2; | |
27740 | } | |
27741 | return NULL; | |
27742 | } | |
27743 | ||
27744 | ||
c32bde28 | 27745 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27746 | PyObject *resultobj; |
27747 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27748 | wxTreeItemId *arg2 = 0 ; | |
27749 | wxString *arg3 = 0 ; | |
27750 | int arg4 = (int) -1 ; | |
27751 | int arg5 = (int) -1 ; | |
27752 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27753 | wxTreeItemId result; | |
ae8162c8 | 27754 | bool temp3 = false ; |
d55e5bfc RD |
27755 | PyObject * obj0 = 0 ; |
27756 | PyObject * obj1 = 0 ; | |
27757 | PyObject * obj2 = 0 ; | |
27758 | PyObject * obj3 = 0 ; | |
27759 | PyObject * obj4 = 0 ; | |
27760 | PyObject * obj5 = 0 ; | |
27761 | char *kwnames[] = { | |
27762 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27763 | }; | |
27764 | ||
27765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27768 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27770 | SWIG_fail; | |
27771 | if (arg2 == NULL) { | |
27772 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27773 | SWIG_fail; | |
27774 | } | |
27775 | { | |
27776 | arg3 = wxString_in_helper(obj2); | |
27777 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27778 | temp3 = true; |
d55e5bfc RD |
27779 | } |
27780 | if (obj3) { | |
c32bde28 | 27781 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27782 | if (PyErr_Occurred()) SWIG_fail; |
27783 | } | |
27784 | if (obj4) { | |
c32bde28 | 27785 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27786 | if (PyErr_Occurred()) SWIG_fail; |
27787 | } | |
27788 | if (obj5) { | |
27789 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27791 | } | |
27792 | { | |
27793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27794 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27795 | ||
27796 | wxPyEndAllowThreads(__tstate); | |
27797 | if (PyErr_Occurred()) SWIG_fail; | |
27798 | } | |
27799 | { | |
27800 | wxTreeItemId * resultptr; | |
27801 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27802 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27803 | } | |
27804 | { | |
27805 | if (temp3) | |
27806 | delete arg3; | |
27807 | } | |
27808 | return resultobj; | |
27809 | fail: | |
27810 | { | |
27811 | if (temp3) | |
27812 | delete arg3; | |
27813 | } | |
27814 | return NULL; | |
27815 | } | |
27816 | ||
27817 | ||
c32bde28 | 27818 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27819 | PyObject *resultobj; |
27820 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27821 | wxTreeItemId *arg2 = 0 ; | |
27822 | wxTreeItemId *arg3 = 0 ; | |
27823 | wxString *arg4 = 0 ; | |
27824 | int arg5 = (int) -1 ; | |
27825 | int arg6 = (int) -1 ; | |
27826 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27827 | wxTreeItemId result; | |
ae8162c8 | 27828 | bool temp4 = false ; |
d55e5bfc RD |
27829 | PyObject * obj0 = 0 ; |
27830 | PyObject * obj1 = 0 ; | |
27831 | PyObject * obj2 = 0 ; | |
27832 | PyObject * obj3 = 0 ; | |
27833 | PyObject * obj4 = 0 ; | |
27834 | PyObject * obj5 = 0 ; | |
27835 | PyObject * obj6 = 0 ; | |
27836 | char *kwnames[] = { | |
27837 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27838 | }; | |
27839 | ||
27840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27843 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27844 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27845 | SWIG_fail; | |
27846 | if (arg2 == NULL) { | |
27847 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27848 | SWIG_fail; | |
27849 | } | |
27850 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, | |
27851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27852 | SWIG_fail; | |
27853 | if (arg3 == NULL) { | |
27854 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27855 | SWIG_fail; | |
27856 | } | |
27857 | { | |
27858 | arg4 = wxString_in_helper(obj3); | |
27859 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 27860 | temp4 = true; |
d55e5bfc RD |
27861 | } |
27862 | if (obj4) { | |
c32bde28 | 27863 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27864 | if (PyErr_Occurred()) SWIG_fail; |
27865 | } | |
27866 | if (obj5) { | |
c32bde28 | 27867 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
27868 | if (PyErr_Occurred()) SWIG_fail; |
27869 | } | |
27870 | if (obj6) { | |
27871 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27873 | } | |
27874 | { | |
27875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27876 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27877 | ||
27878 | wxPyEndAllowThreads(__tstate); | |
27879 | if (PyErr_Occurred()) SWIG_fail; | |
27880 | } | |
27881 | { | |
27882 | wxTreeItemId * resultptr; | |
27883 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27885 | } | |
27886 | { | |
27887 | if (temp4) | |
27888 | delete arg4; | |
27889 | } | |
27890 | return resultobj; | |
27891 | fail: | |
27892 | { | |
27893 | if (temp4) | |
27894 | delete arg4; | |
27895 | } | |
27896 | return NULL; | |
27897 | } | |
27898 | ||
27899 | ||
c32bde28 | 27900 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27901 | PyObject *resultobj; |
27902 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27903 | wxTreeItemId *arg2 = 0 ; | |
27904 | size_t arg3 ; | |
27905 | wxString *arg4 = 0 ; | |
27906 | int arg5 = (int) -1 ; | |
27907 | int arg6 = (int) -1 ; | |
27908 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27909 | wxTreeItemId result; | |
ae8162c8 | 27910 | bool temp4 = false ; |
d55e5bfc RD |
27911 | PyObject * obj0 = 0 ; |
27912 | PyObject * obj1 = 0 ; | |
27913 | PyObject * obj2 = 0 ; | |
27914 | PyObject * obj3 = 0 ; | |
27915 | PyObject * obj4 = 0 ; | |
27916 | PyObject * obj5 = 0 ; | |
27917 | PyObject * obj6 = 0 ; | |
27918 | char *kwnames[] = { | |
27919 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27920 | }; | |
27921 | ||
27922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27927 | SWIG_fail; | |
27928 | if (arg2 == NULL) { | |
27929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27930 | SWIG_fail; | |
27931 | } | |
c32bde28 | 27932 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
d55e5bfc RD |
27933 | if (PyErr_Occurred()) SWIG_fail; |
27934 | { | |
27935 | arg4 = wxString_in_helper(obj3); | |
27936 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 27937 | temp4 = true; |
d55e5bfc RD |
27938 | } |
27939 | if (obj4) { | |
c32bde28 | 27940 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27941 | if (PyErr_Occurred()) SWIG_fail; |
27942 | } | |
27943 | if (obj5) { | |
c32bde28 | 27944 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
27945 | if (PyErr_Occurred()) SWIG_fail; |
27946 | } | |
27947 | if (obj6) { | |
27948 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27950 | } | |
27951 | { | |
27952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27953 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27954 | ||
27955 | wxPyEndAllowThreads(__tstate); | |
27956 | if (PyErr_Occurred()) SWIG_fail; | |
27957 | } | |
27958 | { | |
27959 | wxTreeItemId * resultptr; | |
27960 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27962 | } | |
27963 | { | |
27964 | if (temp4) | |
27965 | delete arg4; | |
27966 | } | |
27967 | return resultobj; | |
27968 | fail: | |
27969 | { | |
27970 | if (temp4) | |
27971 | delete arg4; | |
27972 | } | |
27973 | return NULL; | |
27974 | } | |
27975 | ||
27976 | ||
c32bde28 | 27977 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27978 | PyObject *resultobj; |
27979 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27980 | wxTreeItemId *arg2 = 0 ; | |
27981 | wxString *arg3 = 0 ; | |
27982 | int arg4 = (int) -1 ; | |
27983 | int arg5 = (int) -1 ; | |
27984 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27985 | wxTreeItemId result; | |
ae8162c8 | 27986 | bool temp3 = false ; |
d55e5bfc RD |
27987 | PyObject * obj0 = 0 ; |
27988 | PyObject * obj1 = 0 ; | |
27989 | PyObject * obj2 = 0 ; | |
27990 | PyObject * obj3 = 0 ; | |
27991 | PyObject * obj4 = 0 ; | |
27992 | PyObject * obj5 = 0 ; | |
27993 | char *kwnames[] = { | |
27994 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27995 | }; | |
27996 | ||
27997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28002 | SWIG_fail; | |
28003 | if (arg2 == NULL) { | |
28004 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28005 | SWIG_fail; | |
28006 | } | |
28007 | { | |
28008 | arg3 = wxString_in_helper(obj2); | |
28009 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28010 | temp3 = true; |
d55e5bfc RD |
28011 | } |
28012 | if (obj3) { | |
c32bde28 | 28013 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
28014 | if (PyErr_Occurred()) SWIG_fail; |
28015 | } | |
28016 | if (obj4) { | |
c32bde28 | 28017 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
28018 | if (PyErr_Occurred()) SWIG_fail; |
28019 | } | |
28020 | if (obj5) { | |
28021 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
28022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28023 | } | |
28024 | { | |
28025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28026 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
28027 | ||
28028 | wxPyEndAllowThreads(__tstate); | |
28029 | if (PyErr_Occurred()) SWIG_fail; | |
28030 | } | |
28031 | { | |
28032 | wxTreeItemId * resultptr; | |
28033 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28034 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28035 | } | |
28036 | { | |
28037 | if (temp3) | |
28038 | delete arg3; | |
28039 | } | |
28040 | return resultobj; | |
28041 | fail: | |
28042 | { | |
28043 | if (temp3) | |
28044 | delete arg3; | |
28045 | } | |
28046 | return NULL; | |
28047 | } | |
28048 | ||
28049 | ||
c32bde28 | 28050 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28051 | PyObject *resultobj; |
28052 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28053 | wxTreeItemId *arg2 = 0 ; | |
28054 | PyObject * obj0 = 0 ; | |
28055 | PyObject * obj1 = 0 ; | |
28056 | char *kwnames[] = { | |
28057 | (char *) "self",(char *) "item", NULL | |
28058 | }; | |
28059 | ||
28060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
28061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28064 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28065 | SWIG_fail; | |
28066 | if (arg2 == NULL) { | |
28067 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28068 | SWIG_fail; | |
28069 | } | |
28070 | { | |
28071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28072 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
28073 | ||
28074 | wxPyEndAllowThreads(__tstate); | |
28075 | if (PyErr_Occurred()) SWIG_fail; | |
28076 | } | |
28077 | Py_INCREF(Py_None); resultobj = Py_None; | |
28078 | return resultobj; | |
28079 | fail: | |
28080 | return NULL; | |
28081 | } | |
28082 | ||
28083 | ||
c32bde28 | 28084 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28085 | PyObject *resultobj; |
28086 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28087 | wxTreeItemId *arg2 = 0 ; | |
28088 | PyObject * obj0 = 0 ; | |
28089 | PyObject * obj1 = 0 ; | |
28090 | char *kwnames[] = { | |
28091 | (char *) "self",(char *) "item", NULL | |
28092 | }; | |
28093 | ||
28094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
28095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28099 | SWIG_fail; | |
28100 | if (arg2 == NULL) { | |
28101 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28102 | SWIG_fail; | |
28103 | } | |
28104 | { | |
28105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28106 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
28107 | ||
28108 | wxPyEndAllowThreads(__tstate); | |
28109 | if (PyErr_Occurred()) SWIG_fail; | |
28110 | } | |
28111 | Py_INCREF(Py_None); resultobj = Py_None; | |
28112 | return resultobj; | |
28113 | fail: | |
28114 | return NULL; | |
28115 | } | |
28116 | ||
28117 | ||
c32bde28 | 28118 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28119 | PyObject *resultobj; |
28120 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28121 | PyObject * obj0 = 0 ; | |
28122 | char *kwnames[] = { | |
28123 | (char *) "self", NULL | |
28124 | }; | |
28125 | ||
28126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
28127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28129 | { | |
28130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28131 | (arg1)->DeleteAllItems(); | |
28132 | ||
28133 | wxPyEndAllowThreads(__tstate); | |
28134 | if (PyErr_Occurred()) SWIG_fail; | |
28135 | } | |
28136 | Py_INCREF(Py_None); resultobj = Py_None; | |
28137 | return resultobj; | |
28138 | fail: | |
28139 | return NULL; | |
28140 | } | |
28141 | ||
28142 | ||
c32bde28 | 28143 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28144 | PyObject *resultobj; |
28145 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28146 | wxTreeItemId *arg2 = 0 ; | |
28147 | PyObject * obj0 = 0 ; | |
28148 | PyObject * obj1 = 0 ; | |
28149 | char *kwnames[] = { | |
28150 | (char *) "self",(char *) "item", NULL | |
28151 | }; | |
28152 | ||
28153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
28154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28156 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28157 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28158 | SWIG_fail; | |
28159 | if (arg2 == NULL) { | |
28160 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28161 | SWIG_fail; | |
28162 | } | |
28163 | { | |
28164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28165 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
28166 | ||
28167 | wxPyEndAllowThreads(__tstate); | |
28168 | if (PyErr_Occurred()) SWIG_fail; | |
28169 | } | |
28170 | Py_INCREF(Py_None); resultobj = Py_None; | |
28171 | return resultobj; | |
28172 | fail: | |
28173 | return NULL; | |
28174 | } | |
28175 | ||
28176 | ||
c32bde28 | 28177 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28178 | PyObject *resultobj; |
28179 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28180 | wxTreeItemId *arg2 = 0 ; | |
28181 | PyObject * obj0 = 0 ; | |
28182 | PyObject * obj1 = 0 ; | |
28183 | char *kwnames[] = { | |
28184 | (char *) "self",(char *) "item", NULL | |
28185 | }; | |
28186 | ||
28187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
28188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28191 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28192 | SWIG_fail; | |
28193 | if (arg2 == NULL) { | |
28194 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28195 | SWIG_fail; | |
28196 | } | |
28197 | { | |
28198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28199 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
28200 | ||
28201 | wxPyEndAllowThreads(__tstate); | |
28202 | if (PyErr_Occurred()) SWIG_fail; | |
28203 | } | |
28204 | Py_INCREF(Py_None); resultobj = Py_None; | |
28205 | return resultobj; | |
28206 | fail: | |
28207 | return NULL; | |
28208 | } | |
28209 | ||
28210 | ||
c32bde28 | 28211 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28212 | PyObject *resultobj; |
28213 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28214 | wxTreeItemId *arg2 = 0 ; | |
28215 | PyObject * obj0 = 0 ; | |
28216 | PyObject * obj1 = 0 ; | |
28217 | char *kwnames[] = { | |
28218 | (char *) "self",(char *) "item", NULL | |
28219 | }; | |
28220 | ||
28221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
28222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28226 | SWIG_fail; | |
28227 | if (arg2 == NULL) { | |
28228 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28229 | SWIG_fail; | |
28230 | } | |
28231 | { | |
28232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28233 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
28234 | ||
28235 | wxPyEndAllowThreads(__tstate); | |
28236 | if (PyErr_Occurred()) SWIG_fail; | |
28237 | } | |
28238 | Py_INCREF(Py_None); resultobj = Py_None; | |
28239 | return resultobj; | |
28240 | fail: | |
28241 | return NULL; | |
28242 | } | |
28243 | ||
28244 | ||
c32bde28 | 28245 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28246 | PyObject *resultobj; |
28247 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28248 | wxTreeItemId *arg2 = 0 ; | |
28249 | PyObject * obj0 = 0 ; | |
28250 | PyObject * obj1 = 0 ; | |
28251 | char *kwnames[] = { | |
28252 | (char *) "self",(char *) "item", NULL | |
28253 | }; | |
28254 | ||
28255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
28256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28260 | SWIG_fail; | |
28261 | if (arg2 == NULL) { | |
28262 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28263 | SWIG_fail; | |
28264 | } | |
28265 | { | |
28266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28267 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
28268 | ||
28269 | wxPyEndAllowThreads(__tstate); | |
28270 | if (PyErr_Occurred()) SWIG_fail; | |
28271 | } | |
28272 | Py_INCREF(Py_None); resultobj = Py_None; | |
28273 | return resultobj; | |
28274 | fail: | |
28275 | return NULL; | |
28276 | } | |
28277 | ||
28278 | ||
c32bde28 | 28279 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28280 | PyObject *resultobj; |
28281 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28282 | PyObject * obj0 = 0 ; | |
28283 | char *kwnames[] = { | |
28284 | (char *) "self", NULL | |
28285 | }; | |
28286 | ||
28287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
28288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28290 | { | |
28291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28292 | (arg1)->Unselect(); | |
28293 | ||
28294 | wxPyEndAllowThreads(__tstate); | |
28295 | if (PyErr_Occurred()) SWIG_fail; | |
28296 | } | |
28297 | Py_INCREF(Py_None); resultobj = Py_None; | |
28298 | return resultobj; | |
28299 | fail: | |
28300 | return NULL; | |
28301 | } | |
28302 | ||
28303 | ||
c32bde28 | 28304 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28305 | PyObject *resultobj; |
28306 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28307 | wxTreeItemId *arg2 = 0 ; | |
28308 | PyObject * obj0 = 0 ; | |
28309 | PyObject * obj1 = 0 ; | |
28310 | char *kwnames[] = { | |
28311 | (char *) "self",(char *) "item", NULL | |
28312 | }; | |
28313 | ||
28314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
28315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28319 | SWIG_fail; | |
28320 | if (arg2 == NULL) { | |
28321 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28322 | SWIG_fail; | |
28323 | } | |
28324 | { | |
28325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28326 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
28327 | ||
28328 | wxPyEndAllowThreads(__tstate); | |
28329 | if (PyErr_Occurred()) SWIG_fail; | |
28330 | } | |
28331 | Py_INCREF(Py_None); resultobj = Py_None; | |
28332 | return resultobj; | |
28333 | fail: | |
28334 | return NULL; | |
28335 | } | |
28336 | ||
28337 | ||
c32bde28 | 28338 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28339 | PyObject *resultobj; |
28340 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28341 | PyObject * obj0 = 0 ; | |
28342 | char *kwnames[] = { | |
28343 | (char *) "self", NULL | |
28344 | }; | |
28345 | ||
28346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
28347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28349 | { | |
28350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28351 | (arg1)->UnselectAll(); | |
28352 | ||
28353 | wxPyEndAllowThreads(__tstate); | |
28354 | if (PyErr_Occurred()) SWIG_fail; | |
28355 | } | |
28356 | Py_INCREF(Py_None); resultobj = Py_None; | |
28357 | return resultobj; | |
28358 | fail: | |
28359 | return NULL; | |
28360 | } | |
28361 | ||
28362 | ||
c32bde28 | 28363 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28364 | PyObject *resultobj; |
28365 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28366 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28367 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28368 | PyObject * obj0 = 0 ; |
28369 | PyObject * obj1 = 0 ; | |
28370 | PyObject * obj2 = 0 ; | |
28371 | char *kwnames[] = { | |
28372 | (char *) "self",(char *) "item",(char *) "select", NULL | |
28373 | }; | |
28374 | ||
28375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28379 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28380 | SWIG_fail; | |
28381 | if (arg2 == NULL) { | |
28382 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28383 | SWIG_fail; | |
28384 | } | |
28385 | if (obj2) { | |
c32bde28 | 28386 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28387 | if (PyErr_Occurred()) SWIG_fail; |
28388 | } | |
28389 | { | |
28390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28391 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
28392 | ||
28393 | wxPyEndAllowThreads(__tstate); | |
28394 | if (PyErr_Occurred()) SWIG_fail; | |
28395 | } | |
28396 | Py_INCREF(Py_None); resultobj = Py_None; | |
28397 | return resultobj; | |
28398 | fail: | |
28399 | return NULL; | |
28400 | } | |
28401 | ||
28402 | ||
c32bde28 | 28403 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28404 | PyObject *resultobj; |
28405 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28406 | wxTreeItemId *arg2 = 0 ; | |
28407 | PyObject * obj0 = 0 ; | |
28408 | PyObject * obj1 = 0 ; | |
28409 | char *kwnames[] = { | |
28410 | (char *) "self",(char *) "item", NULL | |
28411 | }; | |
28412 | ||
28413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
28414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28416 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28417 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28418 | SWIG_fail; | |
28419 | if (arg2 == NULL) { | |
28420 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28421 | SWIG_fail; | |
28422 | } | |
28423 | { | |
28424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28425 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
28426 | ||
28427 | wxPyEndAllowThreads(__tstate); | |
28428 | if (PyErr_Occurred()) SWIG_fail; | |
28429 | } | |
28430 | Py_INCREF(Py_None); resultobj = Py_None; | |
28431 | return resultobj; | |
28432 | fail: | |
28433 | return NULL; | |
28434 | } | |
28435 | ||
28436 | ||
c32bde28 | 28437 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28438 | PyObject *resultobj; |
28439 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28440 | wxTreeItemId *arg2 = 0 ; | |
28441 | PyObject * obj0 = 0 ; | |
28442 | PyObject * obj1 = 0 ; | |
28443 | char *kwnames[] = { | |
28444 | (char *) "self",(char *) "item", NULL | |
28445 | }; | |
28446 | ||
28447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
28448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28451 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28452 | SWIG_fail; | |
28453 | if (arg2 == NULL) { | |
28454 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28455 | SWIG_fail; | |
28456 | } | |
28457 | { | |
28458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28459 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
28460 | ||
28461 | wxPyEndAllowThreads(__tstate); | |
28462 | if (PyErr_Occurred()) SWIG_fail; | |
28463 | } | |
28464 | Py_INCREF(Py_None); resultobj = Py_None; | |
28465 | return resultobj; | |
28466 | fail: | |
28467 | return NULL; | |
28468 | } | |
28469 | ||
28470 | ||
c32bde28 | 28471 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28472 | PyObject *resultobj; |
28473 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28474 | wxTreeItemId *arg2 = 0 ; | |
28475 | PyObject * obj0 = 0 ; | |
28476 | PyObject * obj1 = 0 ; | |
28477 | char *kwnames[] = { | |
28478 | (char *) "self",(char *) "item", NULL | |
28479 | }; | |
28480 | ||
28481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
28482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28485 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28486 | SWIG_fail; | |
28487 | if (arg2 == NULL) { | |
28488 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28489 | SWIG_fail; | |
28490 | } | |
28491 | { | |
28492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28493 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
28494 | ||
28495 | wxPyEndAllowThreads(__tstate); | |
28496 | if (PyErr_Occurred()) SWIG_fail; | |
28497 | } | |
28498 | Py_INCREF(Py_None); resultobj = Py_None; | |
28499 | return resultobj; | |
28500 | fail: | |
28501 | return NULL; | |
28502 | } | |
28503 | ||
28504 | ||
c32bde28 | 28505 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28506 | PyObject *resultobj; |
28507 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28508 | wxTreeItemId *arg2 = 0 ; | |
28509 | PyObject * obj0 = 0 ; | |
28510 | PyObject * obj1 = 0 ; | |
28511 | char *kwnames[] = { | |
28512 | (char *) "self",(char *) "item", NULL | |
28513 | }; | |
28514 | ||
28515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
28516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28520 | SWIG_fail; | |
28521 | if (arg2 == NULL) { | |
28522 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28523 | SWIG_fail; | |
28524 | } | |
28525 | { | |
28526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28527 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
28528 | ||
28529 | wxPyEndAllowThreads(__tstate); | |
28530 | if (PyErr_Occurred()) SWIG_fail; | |
28531 | } | |
28532 | Py_INCREF(Py_None); resultobj = Py_None; | |
28533 | return resultobj; | |
28534 | fail: | |
28535 | return NULL; | |
28536 | } | |
28537 | ||
28538 | ||
c32bde28 | 28539 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28540 | PyObject *resultobj; |
28541 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28542 | wxTextCtrl *result; | |
28543 | PyObject * obj0 = 0 ; | |
28544 | char *kwnames[] = { | |
28545 | (char *) "self", NULL | |
28546 | }; | |
28547 | ||
28548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
28549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28551 | { | |
28552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28553 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
28554 | ||
28555 | wxPyEndAllowThreads(__tstate); | |
28556 | if (PyErr_Occurred()) SWIG_fail; | |
28557 | } | |
28558 | { | |
412d302d | 28559 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28560 | } |
28561 | return resultobj; | |
28562 | fail: | |
28563 | return NULL; | |
28564 | } | |
28565 | ||
28566 | ||
c32bde28 | 28567 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28568 | PyObject *resultobj; |
28569 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28570 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28571 | bool arg3 = (bool) false ; |
d55e5bfc RD |
28572 | PyObject * obj0 = 0 ; |
28573 | PyObject * obj1 = 0 ; | |
28574 | PyObject * obj2 = 0 ; | |
28575 | char *kwnames[] = { | |
28576 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
28577 | }; | |
28578 | ||
28579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28584 | SWIG_fail; | |
28585 | if (arg2 == NULL) { | |
28586 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28587 | SWIG_fail; | |
28588 | } | |
28589 | if (obj2) { | |
c32bde28 | 28590 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28591 | if (PyErr_Occurred()) SWIG_fail; |
28592 | } | |
28593 | { | |
28594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28595 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
28596 | ||
28597 | wxPyEndAllowThreads(__tstate); | |
28598 | if (PyErr_Occurred()) SWIG_fail; | |
28599 | } | |
28600 | Py_INCREF(Py_None); resultobj = Py_None; | |
28601 | return resultobj; | |
28602 | fail: | |
28603 | return NULL; | |
28604 | } | |
28605 | ||
28606 | ||
c32bde28 | 28607 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28608 | PyObject *resultobj; |
28609 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28610 | wxTreeItemId *arg2 = 0 ; | |
28611 | PyObject * obj0 = 0 ; | |
28612 | PyObject * obj1 = 0 ; | |
28613 | char *kwnames[] = { | |
28614 | (char *) "self",(char *) "item", NULL | |
28615 | }; | |
28616 | ||
28617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
28618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28621 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28622 | SWIG_fail; | |
28623 | if (arg2 == NULL) { | |
28624 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28625 | SWIG_fail; | |
28626 | } | |
28627 | { | |
28628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28629 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
28630 | ||
28631 | wxPyEndAllowThreads(__tstate); | |
28632 | if (PyErr_Occurred()) SWIG_fail; | |
28633 | } | |
28634 | Py_INCREF(Py_None); resultobj = Py_None; | |
28635 | return resultobj; | |
28636 | fail: | |
28637 | return NULL; | |
28638 | } | |
28639 | ||
28640 | ||
c32bde28 | 28641 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28642 | PyObject *resultobj; |
28643 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28644 | wxPoint *arg2 = 0 ; | |
28645 | int *arg3 = 0 ; | |
28646 | wxTreeItemId result; | |
28647 | wxPoint temp2 ; | |
28648 | int temp3 ; | |
c32bde28 | 28649 | int res3 = 0 ; |
d55e5bfc RD |
28650 | PyObject * obj0 = 0 ; |
28651 | PyObject * obj1 = 0 ; | |
28652 | char *kwnames[] = { | |
28653 | (char *) "self",(char *) "point", NULL | |
28654 | }; | |
28655 | ||
c32bde28 | 28656 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
28657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
28658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28660 | { | |
28661 | arg2 = &temp2; | |
28662 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28663 | } | |
28664 | { | |
28665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28666 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
28667 | ||
28668 | wxPyEndAllowThreads(__tstate); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
28670 | } | |
28671 | { | |
28672 | wxTreeItemId * resultptr; | |
28673 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28675 | } | |
c32bde28 RD |
28676 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
28677 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
28678 | return resultobj; |
28679 | fail: | |
28680 | return NULL; | |
28681 | } | |
28682 | ||
28683 | ||
c32bde28 | 28684 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28685 | PyObject *resultobj; |
28686 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28687 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28688 | bool arg3 = (bool) false ; |
d55e5bfc RD |
28689 | PyObject *result; |
28690 | PyObject * obj0 = 0 ; | |
28691 | PyObject * obj1 = 0 ; | |
28692 | PyObject * obj2 = 0 ; | |
28693 | char *kwnames[] = { | |
28694 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
28695 | }; | |
28696 | ||
28697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28701 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28702 | SWIG_fail; | |
28703 | if (arg2 == NULL) { | |
28704 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28705 | SWIG_fail; | |
28706 | } | |
28707 | if (obj2) { | |
c32bde28 | 28708 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28709 | if (PyErr_Occurred()) SWIG_fail; |
28710 | } | |
28711 | { | |
28712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28713 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28714 | ||
28715 | wxPyEndAllowThreads(__tstate); | |
28716 | if (PyErr_Occurred()) SWIG_fail; | |
28717 | } | |
28718 | resultobj = result; | |
28719 | return resultobj; | |
28720 | fail: | |
28721 | return NULL; | |
28722 | } | |
28723 | ||
28724 | ||
c32bde28 | 28725 | static PyObject *_wrap_TreeCtrl_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
110da5b0 RD |
28726 | PyObject *resultobj; |
28727 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28728 | wxTreeItemId *arg2 = 0 ; | |
28729 | int arg3 ; | |
28730 | PyObject * obj0 = 0 ; | |
28731 | PyObject * obj1 = 0 ; | |
28732 | PyObject * obj2 = 0 ; | |
28733 | char *kwnames[] = { | |
28734 | (char *) "self",(char *) "node",(char *) "state", NULL | |
28735 | }; | |
28736 | ||
28737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28740 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28741 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28742 | SWIG_fail; | |
28743 | if (arg2 == NULL) { | |
28744 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28745 | SWIG_fail; | |
28746 | } | |
c32bde28 | 28747 | arg3 = (int)SWIG_As_int(obj2); |
110da5b0 RD |
28748 | if (PyErr_Occurred()) SWIG_fail; |
28749 | { | |
28750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28751 | (arg1)->SetState((wxTreeItemId const &)*arg2,arg3); | |
28752 | ||
28753 | wxPyEndAllowThreads(__tstate); | |
28754 | if (PyErr_Occurred()) SWIG_fail; | |
28755 | } | |
28756 | Py_INCREF(Py_None); resultobj = Py_None; | |
28757 | return resultobj; | |
28758 | fail: | |
28759 | return NULL; | |
28760 | } | |
28761 | ||
28762 | ||
c32bde28 | 28763 | static PyObject *_wrap_TreeCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
110da5b0 RD |
28764 | PyObject *resultobj; |
28765 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28766 | wxTreeItemId *arg2 = 0 ; | |
28767 | int result; | |
28768 | PyObject * obj0 = 0 ; | |
28769 | PyObject * obj1 = 0 ; | |
28770 | char *kwnames[] = { | |
28771 | (char *) "self",(char *) "node", NULL | |
28772 | }; | |
28773 | ||
28774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail; | |
28775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28779 | SWIG_fail; | |
28780 | if (arg2 == NULL) { | |
28781 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28782 | SWIG_fail; | |
28783 | } | |
28784 | { | |
28785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28786 | result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2); | |
28787 | ||
28788 | wxPyEndAllowThreads(__tstate); | |
28789 | if (PyErr_Occurred()) SWIG_fail; | |
28790 | } | |
c32bde28 | 28791 | resultobj = SWIG_From_int((int)result); |
110da5b0 RD |
28792 | return resultobj; |
28793 | fail: | |
28794 | return NULL; | |
28795 | } | |
28796 | ||
28797 | ||
c32bde28 | 28798 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28799 | PyObject *resultobj; |
28800 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
28801 | wxVisualAttributes result; | |
28802 | PyObject * obj0 = 0 ; | |
28803 | char *kwnames[] = { | |
28804 | (char *) "variant", NULL | |
28805 | }; | |
28806 | ||
28807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
28808 | if (obj0) { | |
c32bde28 | 28809 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
28810 | if (PyErr_Occurred()) SWIG_fail; |
28811 | } | |
28812 | { | |
19272049 | 28813 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28815 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
28816 | ||
28817 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28818 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28819 | } |
28820 | { | |
28821 | wxVisualAttributes * resultptr; | |
28822 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
28823 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
28824 | } | |
28825 | return resultobj; | |
28826 | fail: | |
28827 | return NULL; | |
28828 | } | |
28829 | ||
28830 | ||
c32bde28 | 28831 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28832 | PyObject *obj; |
28833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28834 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
28835 | Py_INCREF(obj); | |
28836 | return Py_BuildValue((char *)""); | |
28837 | } | |
c32bde28 | 28838 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
d55e5bfc RD |
28839 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
28840 | return 1; | |
28841 | } | |
28842 | ||
28843 | ||
28844 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
28845 | PyObject *pyobj; | |
28846 | ||
28847 | { | |
28848 | #if wxUSE_UNICODE | |
28849 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28850 | #else | |
28851 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28852 | #endif | |
28853 | } | |
28854 | return pyobj; | |
28855 | } | |
28856 | ||
28857 | ||
c32bde28 | 28858 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28859 | PyObject *resultobj; |
28860 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28861 | int arg2 = (int) (int)-1 ; | |
28862 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
28863 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
28864 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28865 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28866 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28867 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28868 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28869 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
28870 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28871 | int arg8 = (int) 0 ; | |
28872 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
28873 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
28874 | wxGenericDirCtrl *result; | |
ae8162c8 | 28875 | bool temp3 = false ; |
d55e5bfc RD |
28876 | wxPoint temp4 ; |
28877 | wxSize temp5 ; | |
ae8162c8 RD |
28878 | bool temp7 = false ; |
28879 | bool temp9 = false ; | |
d55e5bfc RD |
28880 | PyObject * obj0 = 0 ; |
28881 | PyObject * obj1 = 0 ; | |
28882 | PyObject * obj2 = 0 ; | |
28883 | PyObject * obj3 = 0 ; | |
28884 | PyObject * obj4 = 0 ; | |
28885 | PyObject * obj5 = 0 ; | |
28886 | PyObject * obj6 = 0 ; | |
28887 | PyObject * obj7 = 0 ; | |
28888 | PyObject * obj8 = 0 ; | |
28889 | char *kwnames[] = { | |
28890 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28891 | }; | |
28892 | ||
28893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
28894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28896 | if (obj1) { | |
c32bde28 | 28897 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28898 | if (PyErr_Occurred()) SWIG_fail; |
28899 | } | |
28900 | if (obj2) { | |
28901 | { | |
28902 | arg3 = wxString_in_helper(obj2); | |
28903 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28904 | temp3 = true; |
d55e5bfc RD |
28905 | } |
28906 | } | |
28907 | if (obj3) { | |
28908 | { | |
28909 | arg4 = &temp4; | |
28910 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28911 | } | |
28912 | } | |
28913 | if (obj4) { | |
28914 | { | |
28915 | arg5 = &temp5; | |
28916 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28917 | } | |
28918 | } | |
28919 | if (obj5) { | |
c32bde28 | 28920 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
28921 | if (PyErr_Occurred()) SWIG_fail; |
28922 | } | |
28923 | if (obj6) { | |
28924 | { | |
28925 | arg7 = wxString_in_helper(obj6); | |
28926 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 28927 | temp7 = true; |
d55e5bfc RD |
28928 | } |
28929 | } | |
28930 | if (obj7) { | |
c32bde28 | 28931 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
28932 | if (PyErr_Occurred()) SWIG_fail; |
28933 | } | |
28934 | if (obj8) { | |
28935 | { | |
28936 | arg9 = wxString_in_helper(obj8); | |
28937 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 28938 | temp9 = true; |
d55e5bfc RD |
28939 | } |
28940 | } | |
28941 | { | |
0439c23b | 28942 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28944 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
28945 | ||
28946 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28947 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28948 | } |
28949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28950 | { | |
28951 | if (temp3) | |
28952 | delete arg3; | |
28953 | } | |
28954 | { | |
28955 | if (temp7) | |
28956 | delete arg7; | |
28957 | } | |
28958 | { | |
28959 | if (temp9) | |
28960 | delete arg9; | |
28961 | } | |
28962 | return resultobj; | |
28963 | fail: | |
28964 | { | |
28965 | if (temp3) | |
28966 | delete arg3; | |
28967 | } | |
28968 | { | |
28969 | if (temp7) | |
28970 | delete arg7; | |
28971 | } | |
28972 | { | |
28973 | if (temp9) | |
28974 | delete arg9; | |
28975 | } | |
28976 | return NULL; | |
28977 | } | |
28978 | ||
28979 | ||
c32bde28 | 28980 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28981 | PyObject *resultobj; |
28982 | wxGenericDirCtrl *result; | |
28983 | char *kwnames[] = { | |
28984 | NULL | |
28985 | }; | |
28986 | ||
28987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
28988 | { | |
0439c23b | 28989 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28991 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
28992 | ||
28993 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28994 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28995 | } |
28996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28997 | return resultobj; | |
28998 | fail: | |
28999 | return NULL; | |
29000 | } | |
29001 | ||
29002 | ||
c32bde28 | 29003 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29004 | PyObject *resultobj; |
29005 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29006 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29007 | int arg3 = (int) (int)-1 ; | |
29008 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
29009 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29010 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
29011 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
29012 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
29013 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
29014 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
29015 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
29016 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
29017 | int arg9 = (int) 0 ; | |
29018 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
29019 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
29020 | bool result; | |
ae8162c8 | 29021 | bool temp4 = false ; |
d55e5bfc RD |
29022 | wxPoint temp5 ; |
29023 | wxSize temp6 ; | |
ae8162c8 RD |
29024 | bool temp8 = false ; |
29025 | bool temp10 = false ; | |
d55e5bfc RD |
29026 | PyObject * obj0 = 0 ; |
29027 | PyObject * obj1 = 0 ; | |
29028 | PyObject * obj2 = 0 ; | |
29029 | PyObject * obj3 = 0 ; | |
29030 | PyObject * obj4 = 0 ; | |
29031 | PyObject * obj5 = 0 ; | |
29032 | PyObject * obj6 = 0 ; | |
29033 | PyObject * obj7 = 0 ; | |
29034 | PyObject * obj8 = 0 ; | |
29035 | PyObject * obj9 = 0 ; | |
29036 | char *kwnames[] = { | |
29037 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
29038 | }; | |
29039 | ||
29040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
29041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29045 | if (obj2) { | |
c32bde28 | 29046 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29047 | if (PyErr_Occurred()) SWIG_fail; |
29048 | } | |
29049 | if (obj3) { | |
29050 | { | |
29051 | arg4 = wxString_in_helper(obj3); | |
29052 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29053 | temp4 = true; |
d55e5bfc RD |
29054 | } |
29055 | } | |
29056 | if (obj4) { | |
29057 | { | |
29058 | arg5 = &temp5; | |
29059 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
29060 | } | |
29061 | } | |
29062 | if (obj5) { | |
29063 | { | |
29064 | arg6 = &temp6; | |
29065 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
29066 | } | |
29067 | } | |
29068 | if (obj6) { | |
c32bde28 | 29069 | arg7 = (long)SWIG_As_long(obj6); |
d55e5bfc RD |
29070 | if (PyErr_Occurred()) SWIG_fail; |
29071 | } | |
29072 | if (obj7) { | |
29073 | { | |
29074 | arg8 = wxString_in_helper(obj7); | |
29075 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 29076 | temp8 = true; |
d55e5bfc RD |
29077 | } |
29078 | } | |
29079 | if (obj8) { | |
c32bde28 | 29080 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
29081 | if (PyErr_Occurred()) SWIG_fail; |
29082 | } | |
29083 | if (obj9) { | |
29084 | { | |
29085 | arg10 = wxString_in_helper(obj9); | |
29086 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 29087 | temp10 = true; |
d55e5bfc RD |
29088 | } |
29089 | } | |
29090 | { | |
29091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29092 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
29093 | ||
29094 | wxPyEndAllowThreads(__tstate); | |
29095 | if (PyErr_Occurred()) SWIG_fail; | |
29096 | } | |
29097 | { | |
29098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29099 | } | |
29100 | { | |
29101 | if (temp4) | |
29102 | delete arg4; | |
29103 | } | |
29104 | { | |
29105 | if (temp8) | |
29106 | delete arg8; | |
29107 | } | |
29108 | { | |
29109 | if (temp10) | |
29110 | delete arg10; | |
29111 | } | |
29112 | return resultobj; | |
29113 | fail: | |
29114 | { | |
29115 | if (temp4) | |
29116 | delete arg4; | |
29117 | } | |
29118 | { | |
29119 | if (temp8) | |
29120 | delete arg8; | |
29121 | } | |
29122 | { | |
29123 | if (temp10) | |
29124 | delete arg10; | |
29125 | } | |
29126 | return NULL; | |
29127 | } | |
29128 | ||
29129 | ||
c32bde28 | 29130 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29131 | PyObject *resultobj; |
29132 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29133 | wxString *arg2 = 0 ; | |
29134 | bool result; | |
ae8162c8 | 29135 | bool temp2 = false ; |
d55e5bfc RD |
29136 | PyObject * obj0 = 0 ; |
29137 | PyObject * obj1 = 0 ; | |
29138 | char *kwnames[] = { | |
29139 | (char *) "self",(char *) "path", NULL | |
29140 | }; | |
29141 | ||
29142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
29143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29145 | { | |
29146 | arg2 = wxString_in_helper(obj1); | |
29147 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29148 | temp2 = true; |
d55e5bfc RD |
29149 | } |
29150 | { | |
29151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29152 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
29153 | ||
29154 | wxPyEndAllowThreads(__tstate); | |
29155 | if (PyErr_Occurred()) SWIG_fail; | |
29156 | } | |
29157 | { | |
29158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29159 | } | |
29160 | { | |
29161 | if (temp2) | |
29162 | delete arg2; | |
29163 | } | |
29164 | return resultobj; | |
29165 | fail: | |
29166 | { | |
29167 | if (temp2) | |
29168 | delete arg2; | |
29169 | } | |
29170 | return NULL; | |
29171 | } | |
29172 | ||
29173 | ||
c32bde28 | 29174 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29175 | PyObject *resultobj; |
29176 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29177 | wxString result; | |
29178 | PyObject * obj0 = 0 ; | |
29179 | char *kwnames[] = { | |
29180 | (char *) "self", NULL | |
29181 | }; | |
29182 | ||
29183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
29184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29186 | { | |
29187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29188 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
29189 | ||
29190 | wxPyEndAllowThreads(__tstate); | |
29191 | if (PyErr_Occurred()) SWIG_fail; | |
29192 | } | |
29193 | { | |
29194 | #if wxUSE_UNICODE | |
29195 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29196 | #else | |
29197 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29198 | #endif | |
29199 | } | |
29200 | return resultobj; | |
29201 | fail: | |
29202 | return NULL; | |
29203 | } | |
29204 | ||
29205 | ||
c32bde28 | 29206 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29207 | PyObject *resultobj; |
29208 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29209 | wxString *arg2 = 0 ; | |
ae8162c8 | 29210 | bool temp2 = false ; |
d55e5bfc RD |
29211 | PyObject * obj0 = 0 ; |
29212 | PyObject * obj1 = 0 ; | |
29213 | char *kwnames[] = { | |
29214 | (char *) "self",(char *) "path", NULL | |
29215 | }; | |
29216 | ||
29217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
29218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29220 | { | |
29221 | arg2 = wxString_in_helper(obj1); | |
29222 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29223 | temp2 = true; |
d55e5bfc RD |
29224 | } |
29225 | { | |
29226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29227 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
29228 | ||
29229 | wxPyEndAllowThreads(__tstate); | |
29230 | if (PyErr_Occurred()) SWIG_fail; | |
29231 | } | |
29232 | Py_INCREF(Py_None); resultobj = Py_None; | |
29233 | { | |
29234 | if (temp2) | |
29235 | delete arg2; | |
29236 | } | |
29237 | return resultobj; | |
29238 | fail: | |
29239 | { | |
29240 | if (temp2) | |
29241 | delete arg2; | |
29242 | } | |
29243 | return NULL; | |
29244 | } | |
29245 | ||
29246 | ||
c32bde28 | 29247 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29248 | PyObject *resultobj; |
29249 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29250 | wxString result; | |
29251 | PyObject * obj0 = 0 ; | |
29252 | char *kwnames[] = { | |
29253 | (char *) "self", NULL | |
29254 | }; | |
29255 | ||
29256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
29257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29259 | { | |
29260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29261 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
29262 | ||
29263 | wxPyEndAllowThreads(__tstate); | |
29264 | if (PyErr_Occurred()) SWIG_fail; | |
29265 | } | |
29266 | { | |
29267 | #if wxUSE_UNICODE | |
29268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29269 | #else | |
29270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29271 | #endif | |
29272 | } | |
29273 | return resultobj; | |
29274 | fail: | |
29275 | return NULL; | |
29276 | } | |
29277 | ||
29278 | ||
c32bde28 | 29279 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29280 | PyObject *resultobj; |
29281 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29282 | wxString result; | |
29283 | PyObject * obj0 = 0 ; | |
29284 | char *kwnames[] = { | |
29285 | (char *) "self", NULL | |
29286 | }; | |
29287 | ||
29288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
29289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29291 | { | |
29292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29293 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
29294 | ||
29295 | wxPyEndAllowThreads(__tstate); | |
29296 | if (PyErr_Occurred()) SWIG_fail; | |
29297 | } | |
29298 | { | |
29299 | #if wxUSE_UNICODE | |
29300 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29301 | #else | |
29302 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29303 | #endif | |
29304 | } | |
29305 | return resultobj; | |
29306 | fail: | |
29307 | return NULL; | |
29308 | } | |
29309 | ||
29310 | ||
c32bde28 | 29311 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29312 | PyObject *resultobj; |
29313 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29314 | wxString *arg2 = 0 ; | |
ae8162c8 | 29315 | bool temp2 = false ; |
d55e5bfc RD |
29316 | PyObject * obj0 = 0 ; |
29317 | PyObject * obj1 = 0 ; | |
29318 | char *kwnames[] = { | |
29319 | (char *) "self",(char *) "path", NULL | |
29320 | }; | |
29321 | ||
29322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
29323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29325 | { | |
29326 | arg2 = wxString_in_helper(obj1); | |
29327 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29328 | temp2 = true; |
d55e5bfc RD |
29329 | } |
29330 | { | |
29331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29332 | (arg1)->SetPath((wxString const &)*arg2); | |
29333 | ||
29334 | wxPyEndAllowThreads(__tstate); | |
29335 | if (PyErr_Occurred()) SWIG_fail; | |
29336 | } | |
29337 | Py_INCREF(Py_None); resultobj = Py_None; | |
29338 | { | |
29339 | if (temp2) | |
29340 | delete arg2; | |
29341 | } | |
29342 | return resultobj; | |
29343 | fail: | |
29344 | { | |
29345 | if (temp2) | |
29346 | delete arg2; | |
29347 | } | |
29348 | return NULL; | |
29349 | } | |
29350 | ||
29351 | ||
c32bde28 | 29352 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29353 | PyObject *resultobj; |
29354 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29355 | bool arg2 ; | |
29356 | PyObject * obj0 = 0 ; | |
29357 | PyObject * obj1 = 0 ; | |
29358 | char *kwnames[] = { | |
29359 | (char *) "self",(char *) "show", NULL | |
29360 | }; | |
29361 | ||
29362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
29363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29365 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
29366 | if (PyErr_Occurred()) SWIG_fail; |
29367 | { | |
29368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29369 | (arg1)->ShowHidden(arg2); | |
29370 | ||
29371 | wxPyEndAllowThreads(__tstate); | |
29372 | if (PyErr_Occurred()) SWIG_fail; | |
29373 | } | |
29374 | Py_INCREF(Py_None); resultobj = Py_None; | |
29375 | return resultobj; | |
29376 | fail: | |
29377 | return NULL; | |
29378 | } | |
29379 | ||
29380 | ||
c32bde28 | 29381 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29382 | PyObject *resultobj; |
29383 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29384 | bool result; | |
29385 | PyObject * obj0 = 0 ; | |
29386 | char *kwnames[] = { | |
29387 | (char *) "self", NULL | |
29388 | }; | |
29389 | ||
29390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
29391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29393 | { | |
29394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29395 | result = (bool)(arg1)->GetShowHidden(); | |
29396 | ||
29397 | wxPyEndAllowThreads(__tstate); | |
29398 | if (PyErr_Occurred()) SWIG_fail; | |
29399 | } | |
29400 | { | |
29401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29402 | } | |
29403 | return resultobj; | |
29404 | fail: | |
29405 | return NULL; | |
29406 | } | |
29407 | ||
29408 | ||
c32bde28 | 29409 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29410 | PyObject *resultobj; |
29411 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29412 | wxString result; | |
29413 | PyObject * obj0 = 0 ; | |
29414 | char *kwnames[] = { | |
29415 | (char *) "self", NULL | |
29416 | }; | |
29417 | ||
29418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
29419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29421 | { | |
29422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29423 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
29424 | ||
29425 | wxPyEndAllowThreads(__tstate); | |
29426 | if (PyErr_Occurred()) SWIG_fail; | |
29427 | } | |
29428 | { | |
29429 | #if wxUSE_UNICODE | |
29430 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29431 | #else | |
29432 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29433 | #endif | |
29434 | } | |
29435 | return resultobj; | |
29436 | fail: | |
29437 | return NULL; | |
29438 | } | |
29439 | ||
29440 | ||
c32bde28 | 29441 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29442 | PyObject *resultobj; |
29443 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29444 | wxString *arg2 = 0 ; | |
ae8162c8 | 29445 | bool temp2 = false ; |
d55e5bfc RD |
29446 | PyObject * obj0 = 0 ; |
29447 | PyObject * obj1 = 0 ; | |
29448 | char *kwnames[] = { | |
29449 | (char *) "self",(char *) "filter", NULL | |
29450 | }; | |
29451 | ||
29452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
29453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29455 | { | |
29456 | arg2 = wxString_in_helper(obj1); | |
29457 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29458 | temp2 = true; |
d55e5bfc RD |
29459 | } |
29460 | { | |
29461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29462 | (arg1)->SetFilter((wxString const &)*arg2); | |
29463 | ||
29464 | wxPyEndAllowThreads(__tstate); | |
29465 | if (PyErr_Occurred()) SWIG_fail; | |
29466 | } | |
29467 | Py_INCREF(Py_None); resultobj = Py_None; | |
29468 | { | |
29469 | if (temp2) | |
29470 | delete arg2; | |
29471 | } | |
29472 | return resultobj; | |
29473 | fail: | |
29474 | { | |
29475 | if (temp2) | |
29476 | delete arg2; | |
29477 | } | |
29478 | return NULL; | |
29479 | } | |
29480 | ||
29481 | ||
c32bde28 | 29482 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29483 | PyObject *resultobj; |
29484 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29485 | int result; | |
29486 | PyObject * obj0 = 0 ; | |
29487 | char *kwnames[] = { | |
29488 | (char *) "self", NULL | |
29489 | }; | |
29490 | ||
29491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
29492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29494 | { | |
29495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29496 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
29497 | ||
29498 | wxPyEndAllowThreads(__tstate); | |
29499 | if (PyErr_Occurred()) SWIG_fail; | |
29500 | } | |
c32bde28 | 29501 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
29502 | return resultobj; |
29503 | fail: | |
29504 | return NULL; | |
29505 | } | |
29506 | ||
29507 | ||
c32bde28 | 29508 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29509 | PyObject *resultobj; |
29510 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29511 | int arg2 ; | |
29512 | PyObject * obj0 = 0 ; | |
29513 | PyObject * obj1 = 0 ; | |
29514 | char *kwnames[] = { | |
29515 | (char *) "self",(char *) "n", NULL | |
29516 | }; | |
29517 | ||
29518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
29519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29521 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29522 | if (PyErr_Occurred()) SWIG_fail; |
29523 | { | |
29524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29525 | (arg1)->SetFilterIndex(arg2); | |
29526 | ||
29527 | wxPyEndAllowThreads(__tstate); | |
29528 | if (PyErr_Occurred()) SWIG_fail; | |
29529 | } | |
29530 | Py_INCREF(Py_None); resultobj = Py_None; | |
29531 | return resultobj; | |
29532 | fail: | |
29533 | return NULL; | |
29534 | } | |
29535 | ||
29536 | ||
c32bde28 | 29537 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29538 | PyObject *resultobj; |
29539 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29540 | wxTreeItemId result; | |
29541 | PyObject * obj0 = 0 ; | |
29542 | char *kwnames[] = { | |
29543 | (char *) "self", NULL | |
29544 | }; | |
29545 | ||
29546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
29547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29549 | { | |
29550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29551 | result = (arg1)->GetRootId(); | |
29552 | ||
29553 | wxPyEndAllowThreads(__tstate); | |
29554 | if (PyErr_Occurred()) SWIG_fail; | |
29555 | } | |
29556 | { | |
29557 | wxTreeItemId * resultptr; | |
29558 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
29559 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29560 | } | |
29561 | return resultobj; | |
29562 | fail: | |
29563 | return NULL; | |
29564 | } | |
29565 | ||
29566 | ||
c32bde28 | 29567 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29568 | PyObject *resultobj; |
29569 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29570 | wxPyTreeCtrl *result; | |
29571 | PyObject * obj0 = 0 ; | |
29572 | char *kwnames[] = { | |
29573 | (char *) "self", NULL | |
29574 | }; | |
29575 | ||
29576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
29577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29579 | { | |
29580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29581 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
29582 | ||
29583 | wxPyEndAllowThreads(__tstate); | |
29584 | if (PyErr_Occurred()) SWIG_fail; | |
29585 | } | |
29586 | { | |
412d302d | 29587 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29588 | } |
29589 | return resultobj; | |
29590 | fail: | |
29591 | return NULL; | |
29592 | } | |
29593 | ||
29594 | ||
c32bde28 | 29595 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29596 | PyObject *resultobj; |
29597 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29598 | wxDirFilterListCtrl *result; | |
29599 | PyObject * obj0 = 0 ; | |
29600 | char *kwnames[] = { | |
29601 | (char *) "self", NULL | |
29602 | }; | |
29603 | ||
29604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
29605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29607 | { | |
29608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29609 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
29610 | ||
29611 | wxPyEndAllowThreads(__tstate); | |
29612 | if (PyErr_Occurred()) SWIG_fail; | |
29613 | } | |
29614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
29615 | return resultobj; | |
29616 | fail: | |
29617 | return NULL; | |
29618 | } | |
29619 | ||
29620 | ||
c32bde28 | 29621 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29622 | PyObject *resultobj; |
29623 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29624 | wxTreeItemId arg2 ; | |
29625 | wxString *arg3 = 0 ; | |
29626 | bool *arg4 = 0 ; | |
29627 | wxTreeItemId result; | |
29628 | wxTreeItemId *argp2 ; | |
ae8162c8 | 29629 | bool temp3 = false ; |
d55e5bfc | 29630 | bool temp4 ; |
c32bde28 | 29631 | int res4 = 0 ; |
d55e5bfc RD |
29632 | PyObject * obj0 = 0 ; |
29633 | PyObject * obj1 = 0 ; | |
29634 | PyObject * obj2 = 0 ; | |
29635 | char *kwnames[] = { | |
29636 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
29637 | }; | |
29638 | ||
c32bde28 | 29639 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d55e5bfc RD |
29640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
29641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29643 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
29644 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29645 | arg2 = *argp2; | |
29646 | { | |
29647 | arg3 = wxString_in_helper(obj2); | |
29648 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29649 | temp3 = true; |
d55e5bfc RD |
29650 | } |
29651 | { | |
29652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29653 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
29654 | ||
29655 | wxPyEndAllowThreads(__tstate); | |
29656 | if (PyErr_Occurred()) SWIG_fail; | |
29657 | } | |
29658 | { | |
29659 | wxTreeItemId * resultptr; | |
29660 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
29661 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29662 | } | |
c32bde28 RD |
29663 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
29664 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d55e5bfc RD |
29665 | { |
29666 | if (temp3) | |
29667 | delete arg3; | |
29668 | } | |
29669 | return resultobj; | |
29670 | fail: | |
29671 | { | |
29672 | if (temp3) | |
29673 | delete arg3; | |
29674 | } | |
29675 | return NULL; | |
29676 | } | |
29677 | ||
29678 | ||
c32bde28 | 29679 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29680 | PyObject *resultobj; |
29681 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29682 | PyObject * obj0 = 0 ; | |
29683 | char *kwnames[] = { | |
29684 | (char *) "self", NULL | |
29685 | }; | |
29686 | ||
29687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
29688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29690 | { | |
29691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29692 | (arg1)->DoResize(); | |
29693 | ||
29694 | wxPyEndAllowThreads(__tstate); | |
29695 | if (PyErr_Occurred()) SWIG_fail; | |
29696 | } | |
29697 | Py_INCREF(Py_None); resultobj = Py_None; | |
29698 | return resultobj; | |
29699 | fail: | |
29700 | return NULL; | |
29701 | } | |
29702 | ||
29703 | ||
c32bde28 | 29704 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29705 | PyObject *resultobj; |
29706 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29707 | PyObject * obj0 = 0 ; | |
29708 | char *kwnames[] = { | |
29709 | (char *) "self", NULL | |
29710 | }; | |
29711 | ||
29712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
29713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29715 | { | |
29716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29717 | (arg1)->ReCreateTree(); | |
29718 | ||
29719 | wxPyEndAllowThreads(__tstate); | |
29720 | if (PyErr_Occurred()) SWIG_fail; | |
29721 | } | |
29722 | Py_INCREF(Py_None); resultobj = Py_None; | |
29723 | return resultobj; | |
29724 | fail: | |
29725 | return NULL; | |
29726 | } | |
29727 | ||
29728 | ||
c32bde28 | 29729 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29730 | PyObject *obj; |
29731 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29732 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
29733 | Py_INCREF(obj); | |
29734 | return Py_BuildValue((char *)""); | |
29735 | } | |
c32bde28 | 29736 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29737 | PyObject *resultobj; |
29738 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29739 | int arg2 = (int) (int)-1 ; | |
29740 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29741 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29742 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29743 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29744 | long arg5 = (long) 0 ; | |
29745 | wxDirFilterListCtrl *result; | |
29746 | wxPoint temp3 ; | |
29747 | wxSize temp4 ; | |
29748 | PyObject * obj0 = 0 ; | |
29749 | PyObject * obj1 = 0 ; | |
29750 | PyObject * obj2 = 0 ; | |
29751 | PyObject * obj3 = 0 ; | |
29752 | PyObject * obj4 = 0 ; | |
29753 | char *kwnames[] = { | |
29754 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29755 | }; | |
29756 | ||
29757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
29759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29760 | if (obj1) { | |
c32bde28 | 29761 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29762 | if (PyErr_Occurred()) SWIG_fail; |
29763 | } | |
29764 | if (obj2) { | |
29765 | { | |
29766 | arg3 = &temp3; | |
29767 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29768 | } | |
29769 | } | |
29770 | if (obj3) { | |
29771 | { | |
29772 | arg4 = &temp4; | |
29773 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29774 | } | |
29775 | } | |
29776 | if (obj4) { | |
c32bde28 | 29777 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
29778 | if (PyErr_Occurred()) SWIG_fail; |
29779 | } | |
29780 | { | |
0439c23b | 29781 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29783 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29784 | ||
29785 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29786 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29787 | } |
29788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
29789 | return resultobj; | |
29790 | fail: | |
29791 | return NULL; | |
29792 | } | |
29793 | ||
29794 | ||
c32bde28 | 29795 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29796 | PyObject *resultobj; |
29797 | wxDirFilterListCtrl *result; | |
29798 | char *kwnames[] = { | |
29799 | NULL | |
29800 | }; | |
29801 | ||
29802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
29803 | { | |
0439c23b | 29804 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29806 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
29807 | ||
29808 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29809 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29810 | } |
29811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
29812 | return resultobj; | |
29813 | fail: | |
29814 | return NULL; | |
29815 | } | |
29816 | ||
29817 | ||
c32bde28 | 29818 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29819 | PyObject *resultobj; |
29820 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29821 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
29822 | int arg3 = (int) (int)-1 ; | |
29823 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29824 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29825 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29826 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29827 | long arg6 = (long) 0 ; | |
29828 | bool result; | |
29829 | wxPoint temp4 ; | |
29830 | wxSize temp5 ; | |
29831 | PyObject * obj0 = 0 ; | |
29832 | PyObject * obj1 = 0 ; | |
29833 | PyObject * obj2 = 0 ; | |
29834 | PyObject * obj3 = 0 ; | |
29835 | PyObject * obj4 = 0 ; | |
29836 | PyObject * obj5 = 0 ; | |
29837 | char *kwnames[] = { | |
29838 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29839 | }; | |
29840 | ||
29841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
29843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
29845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29846 | if (obj2) { | |
c32bde28 | 29847 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29848 | if (PyErr_Occurred()) SWIG_fail; |
29849 | } | |
29850 | if (obj3) { | |
29851 | { | |
29852 | arg4 = &temp4; | |
29853 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29854 | } | |
29855 | } | |
29856 | if (obj4) { | |
29857 | { | |
29858 | arg5 = &temp5; | |
29859 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29860 | } | |
29861 | } | |
29862 | if (obj5) { | |
c32bde28 | 29863 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
29864 | if (PyErr_Occurred()) SWIG_fail; |
29865 | } | |
29866 | { | |
29867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29868 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
29869 | ||
29870 | wxPyEndAllowThreads(__tstate); | |
29871 | if (PyErr_Occurred()) SWIG_fail; | |
29872 | } | |
29873 | { | |
29874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29875 | } | |
29876 | return resultobj; | |
29877 | fail: | |
29878 | return NULL; | |
29879 | } | |
29880 | ||
29881 | ||
c32bde28 | 29882 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29883 | PyObject *resultobj; |
29884 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29885 | wxString *arg2 = 0 ; | |
29886 | int arg3 ; | |
ae8162c8 | 29887 | bool temp2 = false ; |
d55e5bfc RD |
29888 | PyObject * obj0 = 0 ; |
29889 | PyObject * obj1 = 0 ; | |
29890 | PyObject * obj2 = 0 ; | |
29891 | char *kwnames[] = { | |
29892 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
29893 | }; | |
29894 | ||
29895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
29897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29898 | { | |
29899 | arg2 = wxString_in_helper(obj1); | |
29900 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29901 | temp2 = true; |
d55e5bfc | 29902 | } |
c32bde28 | 29903 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29904 | if (PyErr_Occurred()) SWIG_fail; |
29905 | { | |
29906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29907 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
29908 | ||
29909 | wxPyEndAllowThreads(__tstate); | |
29910 | if (PyErr_Occurred()) SWIG_fail; | |
29911 | } | |
29912 | Py_INCREF(Py_None); resultobj = Py_None; | |
29913 | { | |
29914 | if (temp2) | |
29915 | delete arg2; | |
29916 | } | |
29917 | return resultobj; | |
29918 | fail: | |
29919 | { | |
29920 | if (temp2) | |
29921 | delete arg2; | |
29922 | } | |
29923 | return NULL; | |
29924 | } | |
29925 | ||
29926 | ||
c32bde28 | 29927 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29928 | PyObject *obj; |
29929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29930 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
29931 | Py_INCREF(obj); | |
29932 | return Py_BuildValue((char *)""); | |
29933 | } | |
c32bde28 | 29934 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29935 | PyObject *resultobj; |
29936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 29937 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
29938 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29939 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29940 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29941 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29942 | long arg5 = (long) 0 ; | |
29943 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29944 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29945 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29946 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29947 | wxPyControl *result; | |
29948 | wxPoint temp3 ; | |
29949 | wxSize temp4 ; | |
ae8162c8 | 29950 | bool temp7 = false ; |
d55e5bfc RD |
29951 | PyObject * obj0 = 0 ; |
29952 | PyObject * obj1 = 0 ; | |
29953 | PyObject * obj2 = 0 ; | |
29954 | PyObject * obj3 = 0 ; | |
29955 | PyObject * obj4 = 0 ; | |
29956 | PyObject * obj5 = 0 ; | |
29957 | PyObject * obj6 = 0 ; | |
29958 | char *kwnames[] = { | |
29959 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29960 | }; | |
29961 | ||
248ed943 | 29962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
29963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 29965 | if (obj1) { |
c32bde28 | 29966 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
29967 | if (PyErr_Occurred()) SWIG_fail; |
29968 | } | |
d55e5bfc RD |
29969 | if (obj2) { |
29970 | { | |
29971 | arg3 = &temp3; | |
29972 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29973 | } | |
29974 | } | |
29975 | if (obj3) { | |
29976 | { | |
29977 | arg4 = &temp4; | |
29978 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29979 | } | |
29980 | } | |
29981 | if (obj4) { | |
c32bde28 | 29982 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
29983 | if (PyErr_Occurred()) SWIG_fail; |
29984 | } | |
29985 | if (obj5) { | |
29986 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
29987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29988 | SWIG_fail; | |
29989 | if (arg6 == NULL) { | |
29990 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29991 | SWIG_fail; | |
29992 | } | |
29993 | } | |
29994 | if (obj6) { | |
29995 | { | |
29996 | arg7 = wxString_in_helper(obj6); | |
29997 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 29998 | temp7 = true; |
d55e5bfc RD |
29999 | } |
30000 | } | |
30001 | { | |
0439c23b | 30002 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30004 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
30005 | ||
30006 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30007 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30008 | } |
30009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
30010 | { | |
30011 | if (temp7) | |
30012 | delete arg7; | |
30013 | } | |
30014 | return resultobj; | |
30015 | fail: | |
30016 | { | |
30017 | if (temp7) | |
30018 | delete arg7; | |
30019 | } | |
30020 | return NULL; | |
30021 | } | |
30022 | ||
30023 | ||
c32bde28 | 30024 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30025 | PyObject *resultobj; |
30026 | wxPyControl *result; | |
30027 | char *kwnames[] = { | |
30028 | NULL | |
30029 | }; | |
30030 | ||
30031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
30032 | { | |
0439c23b | 30033 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30035 | result = (wxPyControl *)new wxPyControl(); | |
30036 | ||
30037 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30038 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30039 | } |
30040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
30041 | return resultobj; | |
30042 | fail: | |
30043 | return NULL; | |
30044 | } | |
30045 | ||
30046 | ||
c32bde28 | 30047 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30048 | PyObject *resultobj; |
30049 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30050 | PyObject *arg2 = (PyObject *) 0 ; | |
30051 | PyObject *arg3 = (PyObject *) 0 ; | |
30052 | PyObject * obj0 = 0 ; | |
30053 | PyObject * obj1 = 0 ; | |
30054 | PyObject * obj2 = 0 ; | |
30055 | char *kwnames[] = { | |
30056 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30057 | }; | |
30058 | ||
30059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30062 | arg2 = obj1; | |
30063 | arg3 = obj2; | |
30064 | { | |
30065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30066 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30067 | ||
30068 | wxPyEndAllowThreads(__tstate); | |
30069 | if (PyErr_Occurred()) SWIG_fail; | |
30070 | } | |
30071 | Py_INCREF(Py_None); resultobj = Py_None; | |
30072 | return resultobj; | |
30073 | fail: | |
30074 | return NULL; | |
30075 | } | |
30076 | ||
30077 | ||
c32bde28 | 30078 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
caef1a4d RD |
30079 | PyObject *resultobj; |
30080 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30081 | wxSize *arg2 = 0 ; | |
30082 | wxSize temp2 ; | |
30083 | PyObject * obj0 = 0 ; | |
30084 | PyObject * obj1 = 0 ; | |
30085 | char *kwnames[] = { | |
30086 | (char *) "self",(char *) "size", NULL | |
30087 | }; | |
30088 | ||
30089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
30090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30092 | { | |
30093 | arg2 = &temp2; | |
30094 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
30095 | } | |
30096 | { | |
30097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30098 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
30099 | ||
30100 | wxPyEndAllowThreads(__tstate); | |
30101 | if (PyErr_Occurred()) SWIG_fail; | |
30102 | } | |
30103 | Py_INCREF(Py_None); resultobj = Py_None; | |
30104 | return resultobj; | |
30105 | fail: | |
30106 | return NULL; | |
30107 | } | |
30108 | ||
30109 | ||
c32bde28 | 30110 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30111 | PyObject *resultobj; |
30112 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30113 | int arg2 ; | |
30114 | int arg3 ; | |
30115 | int arg4 ; | |
30116 | int arg5 ; | |
30117 | PyObject * obj0 = 0 ; | |
30118 | PyObject * obj1 = 0 ; | |
30119 | PyObject * obj2 = 0 ; | |
30120 | PyObject * obj3 = 0 ; | |
30121 | PyObject * obj4 = 0 ; | |
30122 | char *kwnames[] = { | |
30123 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
30124 | }; | |
30125 | ||
30126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30129 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30130 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30131 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 30132 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30133 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 30134 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30135 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30136 | if (PyErr_Occurred()) SWIG_fail; |
30137 | { | |
30138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30139 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
30140 | ||
30141 | wxPyEndAllowThreads(__tstate); | |
30142 | if (PyErr_Occurred()) SWIG_fail; | |
30143 | } | |
30144 | Py_INCREF(Py_None); resultobj = Py_None; | |
30145 | return resultobj; | |
30146 | fail: | |
30147 | return NULL; | |
30148 | } | |
30149 | ||
30150 | ||
c32bde28 | 30151 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30152 | PyObject *resultobj; |
30153 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30154 | int arg2 ; | |
30155 | int arg3 ; | |
30156 | int arg4 ; | |
30157 | int arg5 ; | |
30158 | int arg6 = (int) wxSIZE_AUTO ; | |
30159 | PyObject * obj0 = 0 ; | |
30160 | PyObject * obj1 = 0 ; | |
30161 | PyObject * obj2 = 0 ; | |
30162 | PyObject * obj3 = 0 ; | |
30163 | PyObject * obj4 = 0 ; | |
30164 | PyObject * obj5 = 0 ; | |
30165 | char *kwnames[] = { | |
30166 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
30167 | }; | |
30168 | ||
30169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30172 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30173 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30174 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 30175 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30176 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 30177 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30178 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30179 | if (PyErr_Occurred()) SWIG_fail; |
30180 | if (obj5) { | |
c32bde28 | 30181 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
30182 | if (PyErr_Occurred()) SWIG_fail; |
30183 | } | |
30184 | { | |
30185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30186 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
30187 | ||
30188 | wxPyEndAllowThreads(__tstate); | |
30189 | if (PyErr_Occurred()) SWIG_fail; | |
30190 | } | |
30191 | Py_INCREF(Py_None); resultobj = Py_None; | |
30192 | return resultobj; | |
30193 | fail: | |
30194 | return NULL; | |
30195 | } | |
30196 | ||
30197 | ||
c32bde28 | 30198 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30199 | PyObject *resultobj; |
30200 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30201 | int arg2 ; | |
30202 | int arg3 ; | |
30203 | PyObject * obj0 = 0 ; | |
30204 | PyObject * obj1 = 0 ; | |
30205 | PyObject * obj2 = 0 ; | |
30206 | char *kwnames[] = { | |
30207 | (char *) "self",(char *) "width",(char *) "height", NULL | |
30208 | }; | |
30209 | ||
30210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30213 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30214 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30215 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30216 | if (PyErr_Occurred()) SWIG_fail; |
30217 | { | |
30218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30219 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
30220 | ||
30221 | wxPyEndAllowThreads(__tstate); | |
30222 | if (PyErr_Occurred()) SWIG_fail; | |
30223 | } | |
30224 | Py_INCREF(Py_None); resultobj = Py_None; | |
30225 | return resultobj; | |
30226 | fail: | |
30227 | return NULL; | |
30228 | } | |
30229 | ||
30230 | ||
c32bde28 | 30231 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30232 | PyObject *resultobj; |
30233 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30234 | int arg2 ; | |
30235 | int arg3 ; | |
30236 | PyObject * obj0 = 0 ; | |
30237 | PyObject * obj1 = 0 ; | |
30238 | PyObject * obj2 = 0 ; | |
30239 | char *kwnames[] = { | |
30240 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30241 | }; | |
30242 | ||
30243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30246 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30247 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30248 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30249 | if (PyErr_Occurred()) SWIG_fail; |
30250 | { | |
30251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30252 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
30253 | ||
30254 | wxPyEndAllowThreads(__tstate); | |
30255 | if (PyErr_Occurred()) SWIG_fail; | |
30256 | } | |
30257 | Py_INCREF(Py_None); resultobj = Py_None; | |
30258 | return resultobj; | |
30259 | fail: | |
30260 | return NULL; | |
30261 | } | |
30262 | ||
30263 | ||
c32bde28 | 30264 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30265 | PyObject *resultobj; |
30266 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30267 | int *arg2 = (int *) 0 ; | |
30268 | int *arg3 = (int *) 0 ; | |
30269 | int temp2 ; | |
c32bde28 | 30270 | int res2 = 0 ; |
d55e5bfc | 30271 | int temp3 ; |
c32bde28 | 30272 | int res3 = 0 ; |
d55e5bfc RD |
30273 | PyObject * obj0 = 0 ; |
30274 | char *kwnames[] = { | |
30275 | (char *) "self", NULL | |
30276 | }; | |
30277 | ||
c32bde28 RD |
30278 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
30279 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
30280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
30281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30283 | { | |
30284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30285 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
30286 | ||
30287 | wxPyEndAllowThreads(__tstate); | |
30288 | if (PyErr_Occurred()) SWIG_fail; | |
30289 | } | |
30290 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30291 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30292 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30293 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30294 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30295 | return resultobj; |
30296 | fail: | |
30297 | return NULL; | |
30298 | } | |
30299 | ||
30300 | ||
c32bde28 | 30301 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30302 | PyObject *resultobj; |
30303 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30304 | int *arg2 = (int *) 0 ; | |
30305 | int *arg3 = (int *) 0 ; | |
30306 | int temp2 ; | |
c32bde28 | 30307 | int res2 = 0 ; |
d55e5bfc | 30308 | int temp3 ; |
c32bde28 | 30309 | int res3 = 0 ; |
d55e5bfc RD |
30310 | PyObject * obj0 = 0 ; |
30311 | char *kwnames[] = { | |
30312 | (char *) "self", NULL | |
30313 | }; | |
30314 | ||
c32bde28 RD |
30315 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
30316 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
30317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
30318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30320 | { | |
30321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30322 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
30323 | ||
30324 | wxPyEndAllowThreads(__tstate); | |
30325 | if (PyErr_Occurred()) SWIG_fail; | |
30326 | } | |
30327 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30328 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30329 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30330 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30331 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30332 | return resultobj; |
30333 | fail: | |
30334 | return NULL; | |
30335 | } | |
30336 | ||
30337 | ||
c32bde28 | 30338 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30339 | PyObject *resultobj; |
30340 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30341 | int *arg2 = (int *) 0 ; | |
30342 | int *arg3 = (int *) 0 ; | |
30343 | int temp2 ; | |
c32bde28 | 30344 | int res2 = 0 ; |
d55e5bfc | 30345 | int temp3 ; |
c32bde28 | 30346 | int res3 = 0 ; |
d55e5bfc RD |
30347 | PyObject * obj0 = 0 ; |
30348 | char *kwnames[] = { | |
30349 | (char *) "self", NULL | |
30350 | }; | |
30351 | ||
c32bde28 RD |
30352 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
30353 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
30354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
30355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30357 | { | |
30358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30359 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
30360 | ||
30361 | wxPyEndAllowThreads(__tstate); | |
30362 | if (PyErr_Occurred()) SWIG_fail; | |
30363 | } | |
30364 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30365 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30366 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30367 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30368 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30369 | return resultobj; |
30370 | fail: | |
30371 | return NULL; | |
30372 | } | |
30373 | ||
30374 | ||
c32bde28 | 30375 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30376 | PyObject *resultobj; |
30377 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30378 | wxSize result; | |
30379 | PyObject * obj0 = 0 ; | |
30380 | char *kwnames[] = { | |
30381 | (char *) "self", NULL | |
30382 | }; | |
30383 | ||
30384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
30385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30387 | { | |
30388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30389 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
30390 | ||
30391 | wxPyEndAllowThreads(__tstate); | |
30392 | if (PyErr_Occurred()) SWIG_fail; | |
30393 | } | |
30394 | { | |
30395 | wxSize * resultptr; | |
30396 | resultptr = new wxSize((wxSize &) result); | |
30397 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
30398 | } | |
30399 | return resultobj; | |
30400 | fail: | |
30401 | return NULL; | |
30402 | } | |
30403 | ||
30404 | ||
c32bde28 | 30405 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30406 | PyObject *resultobj; |
30407 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30408 | wxSize result; | |
30409 | PyObject * obj0 = 0 ; | |
30410 | char *kwnames[] = { | |
30411 | (char *) "self", NULL | |
30412 | }; | |
30413 | ||
30414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
30415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30417 | { | |
30418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30419 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
30420 | ||
30421 | wxPyEndAllowThreads(__tstate); | |
30422 | if (PyErr_Occurred()) SWIG_fail; | |
30423 | } | |
30424 | { | |
30425 | wxSize * resultptr; | |
30426 | resultptr = new wxSize((wxSize &) result); | |
30427 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
30428 | } | |
30429 | return resultobj; | |
30430 | fail: | |
30431 | return NULL; | |
30432 | } | |
30433 | ||
30434 | ||
c32bde28 | 30435 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30436 | PyObject *resultobj; |
30437 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30438 | PyObject * obj0 = 0 ; | |
30439 | char *kwnames[] = { | |
30440 | (char *) "self", NULL | |
30441 | }; | |
30442 | ||
30443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
30444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30446 | { | |
30447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30448 | (arg1)->base_InitDialog(); | |
30449 | ||
30450 | wxPyEndAllowThreads(__tstate); | |
30451 | if (PyErr_Occurred()) SWIG_fail; | |
30452 | } | |
30453 | Py_INCREF(Py_None); resultobj = Py_None; | |
30454 | return resultobj; | |
30455 | fail: | |
30456 | return NULL; | |
30457 | } | |
30458 | ||
30459 | ||
c32bde28 | 30460 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30461 | PyObject *resultobj; |
30462 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30463 | bool result; | |
30464 | PyObject * obj0 = 0 ; | |
30465 | char *kwnames[] = { | |
30466 | (char *) "self", NULL | |
30467 | }; | |
30468 | ||
30469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
30470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30472 | { | |
30473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30474 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
30475 | ||
30476 | wxPyEndAllowThreads(__tstate); | |
30477 | if (PyErr_Occurred()) SWIG_fail; | |
30478 | } | |
30479 | { | |
30480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30481 | } | |
30482 | return resultobj; | |
30483 | fail: | |
30484 | return NULL; | |
30485 | } | |
30486 | ||
30487 | ||
c32bde28 | 30488 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30489 | PyObject *resultobj; |
30490 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30491 | bool result; | |
30492 | PyObject * obj0 = 0 ; | |
30493 | char *kwnames[] = { | |
30494 | (char *) "self", NULL | |
30495 | }; | |
30496 | ||
30497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
30498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30500 | { | |
30501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30502 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
30503 | ||
30504 | wxPyEndAllowThreads(__tstate); | |
30505 | if (PyErr_Occurred()) SWIG_fail; | |
30506 | } | |
30507 | { | |
30508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30509 | } | |
30510 | return resultobj; | |
30511 | fail: | |
30512 | return NULL; | |
30513 | } | |
30514 | ||
30515 | ||
c32bde28 | 30516 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30517 | PyObject *resultobj; |
30518 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30519 | bool result; | |
30520 | PyObject * obj0 = 0 ; | |
30521 | char *kwnames[] = { | |
30522 | (char *) "self", NULL | |
30523 | }; | |
30524 | ||
30525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
30526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30528 | { | |
30529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30530 | result = (bool)(arg1)->base_Validate(); | |
30531 | ||
30532 | wxPyEndAllowThreads(__tstate); | |
30533 | if (PyErr_Occurred()) SWIG_fail; | |
30534 | } | |
30535 | { | |
30536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30537 | } | |
30538 | return resultobj; | |
30539 | fail: | |
30540 | return NULL; | |
30541 | } | |
30542 | ||
30543 | ||
c32bde28 | 30544 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30545 | PyObject *resultobj; |
30546 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30547 | bool result; | |
30548 | PyObject * obj0 = 0 ; | |
30549 | char *kwnames[] = { | |
30550 | (char *) "self", NULL | |
30551 | }; | |
30552 | ||
30553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
30554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30556 | { | |
30557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30558 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
30559 | ||
30560 | wxPyEndAllowThreads(__tstate); | |
30561 | if (PyErr_Occurred()) SWIG_fail; | |
30562 | } | |
30563 | { | |
30564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30565 | } | |
30566 | return resultobj; | |
30567 | fail: | |
30568 | return NULL; | |
30569 | } | |
30570 | ||
30571 | ||
c32bde28 | 30572 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30573 | PyObject *resultobj; |
30574 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30575 | bool result; | |
30576 | PyObject * obj0 = 0 ; | |
30577 | char *kwnames[] = { | |
30578 | (char *) "self", NULL | |
30579 | }; | |
30580 | ||
30581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
30582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30584 | { | |
30585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30586 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
30587 | ||
30588 | wxPyEndAllowThreads(__tstate); | |
30589 | if (PyErr_Occurred()) SWIG_fail; | |
30590 | } | |
30591 | { | |
30592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30593 | } | |
30594 | return resultobj; | |
30595 | fail: | |
30596 | return NULL; | |
30597 | } | |
30598 | ||
30599 | ||
c32bde28 | 30600 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30601 | PyObject *resultobj; |
30602 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30603 | wxSize result; | |
30604 | PyObject * obj0 = 0 ; | |
30605 | char *kwnames[] = { | |
30606 | (char *) "self", NULL | |
30607 | }; | |
30608 | ||
30609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
30610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30612 | { | |
30613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30614 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
30615 | ||
30616 | wxPyEndAllowThreads(__tstate); | |
30617 | if (PyErr_Occurred()) SWIG_fail; | |
30618 | } | |
30619 | { | |
30620 | wxSize * resultptr; | |
30621 | resultptr = new wxSize((wxSize &) result); | |
30622 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
30623 | } | |
30624 | return resultobj; | |
30625 | fail: | |
30626 | return NULL; | |
30627 | } | |
30628 | ||
30629 | ||
c32bde28 | 30630 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30631 | PyObject *resultobj; |
30632 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30633 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30634 | PyObject * obj0 = 0 ; | |
30635 | PyObject * obj1 = 0 ; | |
30636 | char *kwnames[] = { | |
30637 | (char *) "self",(char *) "child", NULL | |
30638 | }; | |
30639 | ||
30640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
30641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30645 | { | |
30646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30647 | (arg1)->base_AddChild(arg2); | |
30648 | ||
30649 | wxPyEndAllowThreads(__tstate); | |
30650 | if (PyErr_Occurred()) SWIG_fail; | |
30651 | } | |
30652 | Py_INCREF(Py_None); resultobj = Py_None; | |
30653 | return resultobj; | |
30654 | fail: | |
30655 | return NULL; | |
30656 | } | |
30657 | ||
30658 | ||
c32bde28 | 30659 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30660 | PyObject *resultobj; |
30661 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30662 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30663 | PyObject * obj0 = 0 ; | |
30664 | PyObject * obj1 = 0 ; | |
30665 | char *kwnames[] = { | |
30666 | (char *) "self",(char *) "child", NULL | |
30667 | }; | |
30668 | ||
30669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
30670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30672 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30674 | { | |
30675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30676 | (arg1)->base_RemoveChild(arg2); | |
30677 | ||
30678 | wxPyEndAllowThreads(__tstate); | |
30679 | if (PyErr_Occurred()) SWIG_fail; | |
30680 | } | |
30681 | Py_INCREF(Py_None); resultobj = Py_None; | |
30682 | return resultobj; | |
30683 | fail: | |
30684 | return NULL; | |
30685 | } | |
30686 | ||
30687 | ||
c32bde28 | 30688 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30689 | PyObject *resultobj; |
30690 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30691 | bool result; | |
30692 | PyObject * obj0 = 0 ; | |
30693 | char *kwnames[] = { | |
30694 | (char *) "self", NULL | |
30695 | }; | |
30696 | ||
30697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
30698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30700 | { | |
30701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 30702 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
30703 | |
30704 | wxPyEndAllowThreads(__tstate); | |
30705 | if (PyErr_Occurred()) SWIG_fail; | |
30706 | } | |
30707 | { | |
30708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30709 | } | |
30710 | return resultobj; | |
30711 | fail: | |
30712 | return NULL; | |
30713 | } | |
30714 | ||
30715 | ||
c32bde28 | 30716 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30717 | PyObject *resultobj; |
30718 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30719 | wxColour *arg2 = 0 ; | |
30720 | wxColour temp2 ; | |
30721 | PyObject * obj0 = 0 ; | |
30722 | PyObject * obj1 = 0 ; | |
30723 | char *kwnames[] = { | |
30724 | (char *) "self",(char *) "c", NULL | |
30725 | }; | |
30726 | ||
30727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
30728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30730 | { | |
30731 | arg2 = &temp2; | |
30732 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30733 | } | |
30734 | { | |
30735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30736 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
30737 | ||
30738 | wxPyEndAllowThreads(__tstate); | |
30739 | if (PyErr_Occurred()) SWIG_fail; | |
30740 | } | |
30741 | Py_INCREF(Py_None); resultobj = Py_None; | |
30742 | return resultobj; | |
30743 | fail: | |
30744 | return NULL; | |
30745 | } | |
30746 | ||
30747 | ||
c32bde28 | 30748 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
caef1a4d RD |
30749 | PyObject *resultobj; |
30750 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30751 | wxVisualAttributes result; | |
30752 | PyObject * obj0 = 0 ; | |
30753 | char *kwnames[] = { | |
30754 | (char *) "self", NULL | |
30755 | }; | |
30756 | ||
30757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
30758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30760 | { | |
30761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30762 | result = (arg1)->base_GetDefaultAttributes(); | |
30763 | ||
30764 | wxPyEndAllowThreads(__tstate); | |
30765 | if (PyErr_Occurred()) SWIG_fail; | |
30766 | } | |
30767 | { | |
30768 | wxVisualAttributes * resultptr; | |
30769 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
30770 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
30771 | } | |
30772 | return resultobj; | |
30773 | fail: | |
30774 | return NULL; | |
30775 | } | |
30776 | ||
30777 | ||
c32bde28 | 30778 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30779 | PyObject *obj; |
30780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30781 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
30782 | Py_INCREF(obj); | |
30783 | return Py_BuildValue((char *)""); | |
30784 | } | |
c32bde28 | 30785 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30786 | PyObject *resultobj; |
30787 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
30788 | int arg2 = (int) 0 ; | |
30789 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
30790 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30791 | wxHelpEvent *result; | |
30792 | wxPoint temp3 ; | |
30793 | PyObject * obj0 = 0 ; | |
30794 | PyObject * obj1 = 0 ; | |
30795 | PyObject * obj2 = 0 ; | |
30796 | char *kwnames[] = { | |
30797 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
30798 | }; | |
30799 | ||
30800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30801 | if (obj0) { | |
c32bde28 | 30802 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
30803 | if (PyErr_Occurred()) SWIG_fail; |
30804 | } | |
30805 | if (obj1) { | |
c32bde28 | 30806 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30807 | if (PyErr_Occurred()) SWIG_fail; |
30808 | } | |
30809 | if (obj2) { | |
30810 | { | |
30811 | arg3 = &temp3; | |
30812 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30813 | } | |
30814 | } | |
30815 | { | |
30816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30817 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
30818 | ||
30819 | wxPyEndAllowThreads(__tstate); | |
30820 | if (PyErr_Occurred()) SWIG_fail; | |
30821 | } | |
30822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
30823 | return resultobj; | |
30824 | fail: | |
30825 | return NULL; | |
30826 | } | |
30827 | ||
30828 | ||
c32bde28 | 30829 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30830 | PyObject *resultobj; |
30831 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30832 | wxPoint result; | |
30833 | PyObject * obj0 = 0 ; | |
30834 | char *kwnames[] = { | |
30835 | (char *) "self", NULL | |
30836 | }; | |
30837 | ||
30838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
30839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30841 | { | |
30842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30843 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
30844 | ||
30845 | wxPyEndAllowThreads(__tstate); | |
30846 | if (PyErr_Occurred()) SWIG_fail; | |
30847 | } | |
30848 | { | |
30849 | wxPoint * resultptr; | |
30850 | resultptr = new wxPoint((wxPoint &) result); | |
30851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
30852 | } | |
30853 | return resultobj; | |
30854 | fail: | |
30855 | return NULL; | |
30856 | } | |
30857 | ||
30858 | ||
c32bde28 | 30859 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30860 | PyObject *resultobj; |
30861 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30862 | wxPoint *arg2 = 0 ; | |
30863 | wxPoint temp2 ; | |
30864 | PyObject * obj0 = 0 ; | |
30865 | PyObject * obj1 = 0 ; | |
30866 | char *kwnames[] = { | |
30867 | (char *) "self",(char *) "pos", NULL | |
30868 | }; | |
30869 | ||
30870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
30871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30873 | { | |
30874 | arg2 = &temp2; | |
30875 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30876 | } | |
30877 | { | |
30878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30879 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
30880 | ||
30881 | wxPyEndAllowThreads(__tstate); | |
30882 | if (PyErr_Occurred()) SWIG_fail; | |
30883 | } | |
30884 | Py_INCREF(Py_None); resultobj = Py_None; | |
30885 | return resultobj; | |
30886 | fail: | |
30887 | return NULL; | |
30888 | } | |
30889 | ||
30890 | ||
c32bde28 | 30891 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30892 | PyObject *resultobj; |
30893 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30894 | wxString *result; | |
30895 | PyObject * obj0 = 0 ; | |
30896 | char *kwnames[] = { | |
30897 | (char *) "self", NULL | |
30898 | }; | |
30899 | ||
30900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
30901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30903 | { | |
30904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30905 | { | |
30906 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
30907 | result = (wxString *) &_result_ref; | |
30908 | } | |
30909 | ||
30910 | wxPyEndAllowThreads(__tstate); | |
30911 | if (PyErr_Occurred()) SWIG_fail; | |
30912 | } | |
30913 | { | |
30914 | #if wxUSE_UNICODE | |
30915 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30916 | #else | |
30917 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30918 | #endif | |
30919 | } | |
30920 | return resultobj; | |
30921 | fail: | |
30922 | return NULL; | |
30923 | } | |
30924 | ||
30925 | ||
c32bde28 | 30926 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30927 | PyObject *resultobj; |
30928 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30929 | wxString *arg2 = 0 ; | |
ae8162c8 | 30930 | bool temp2 = false ; |
d55e5bfc RD |
30931 | PyObject * obj0 = 0 ; |
30932 | PyObject * obj1 = 0 ; | |
30933 | char *kwnames[] = { | |
30934 | (char *) "self",(char *) "link", NULL | |
30935 | }; | |
30936 | ||
30937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
30938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30940 | { | |
30941 | arg2 = wxString_in_helper(obj1); | |
30942 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30943 | temp2 = true; |
d55e5bfc RD |
30944 | } |
30945 | { | |
30946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30947 | (arg1)->SetLink((wxString const &)*arg2); | |
30948 | ||
30949 | wxPyEndAllowThreads(__tstate); | |
30950 | if (PyErr_Occurred()) SWIG_fail; | |
30951 | } | |
30952 | Py_INCREF(Py_None); resultobj = Py_None; | |
30953 | { | |
30954 | if (temp2) | |
30955 | delete arg2; | |
30956 | } | |
30957 | return resultobj; | |
30958 | fail: | |
30959 | { | |
30960 | if (temp2) | |
30961 | delete arg2; | |
30962 | } | |
30963 | return NULL; | |
30964 | } | |
30965 | ||
30966 | ||
c32bde28 | 30967 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30968 | PyObject *resultobj; |
30969 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30970 | wxString *result; | |
30971 | PyObject * obj0 = 0 ; | |
30972 | char *kwnames[] = { | |
30973 | (char *) "self", NULL | |
30974 | }; | |
30975 | ||
30976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
30977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30979 | { | |
30980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30981 | { | |
30982 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
30983 | result = (wxString *) &_result_ref; | |
30984 | } | |
30985 | ||
30986 | wxPyEndAllowThreads(__tstate); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | } | |
30989 | { | |
30990 | #if wxUSE_UNICODE | |
30991 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30992 | #else | |
30993 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30994 | #endif | |
30995 | } | |
30996 | return resultobj; | |
30997 | fail: | |
30998 | return NULL; | |
30999 | } | |
31000 | ||
31001 | ||
c32bde28 | 31002 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31003 | PyObject *resultobj; |
31004 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
31005 | wxString *arg2 = 0 ; | |
ae8162c8 | 31006 | bool temp2 = false ; |
d55e5bfc RD |
31007 | PyObject * obj0 = 0 ; |
31008 | PyObject * obj1 = 0 ; | |
31009 | char *kwnames[] = { | |
31010 | (char *) "self",(char *) "target", NULL | |
31011 | }; | |
31012 | ||
31013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
31014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
31015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31016 | { | |
31017 | arg2 = wxString_in_helper(obj1); | |
31018 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31019 | temp2 = true; |
d55e5bfc RD |
31020 | } |
31021 | { | |
31022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31023 | (arg1)->SetTarget((wxString const &)*arg2); | |
31024 | ||
31025 | wxPyEndAllowThreads(__tstate); | |
31026 | if (PyErr_Occurred()) SWIG_fail; | |
31027 | } | |
31028 | Py_INCREF(Py_None); resultobj = Py_None; | |
31029 | { | |
31030 | if (temp2) | |
31031 | delete arg2; | |
31032 | } | |
31033 | return resultobj; | |
31034 | fail: | |
31035 | { | |
31036 | if (temp2) | |
31037 | delete arg2; | |
31038 | } | |
31039 | return NULL; | |
31040 | } | |
31041 | ||
31042 | ||
c32bde28 | 31043 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31044 | PyObject *obj; |
31045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31046 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
31047 | Py_INCREF(obj); | |
31048 | return Py_BuildValue((char *)""); | |
31049 | } | |
c32bde28 | 31050 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31051 | PyObject *resultobj; |
31052 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 31053 | bool arg2 = (bool) true ; |
d55e5bfc RD |
31054 | wxContextHelp *result; |
31055 | PyObject * obj0 = 0 ; | |
31056 | PyObject * obj1 = 0 ; | |
31057 | char *kwnames[] = { | |
31058 | (char *) "window",(char *) "doNow", NULL | |
31059 | }; | |
31060 | ||
31061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
31062 | if (obj0) { | |
31063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
31064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31065 | } | |
31066 | if (obj1) { | |
c32bde28 | 31067 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
31068 | if (PyErr_Occurred()) SWIG_fail; |
31069 | } | |
31070 | { | |
0439c23b | 31071 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31073 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
31074 | ||
31075 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31076 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31077 | } |
31078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
31079 | return resultobj; | |
31080 | fail: | |
31081 | return NULL; | |
31082 | } | |
31083 | ||
31084 | ||
c32bde28 | 31085 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31086 | PyObject *resultobj; |
31087 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
31088 | PyObject * obj0 = 0 ; | |
31089 | char *kwnames[] = { | |
31090 | (char *) "self", NULL | |
31091 | }; | |
31092 | ||
31093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
31094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
31095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31096 | { | |
31097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31098 | delete arg1; | |
31099 | ||
31100 | wxPyEndAllowThreads(__tstate); | |
31101 | if (PyErr_Occurred()) SWIG_fail; | |
31102 | } | |
31103 | Py_INCREF(Py_None); resultobj = Py_None; | |
31104 | return resultobj; | |
31105 | fail: | |
31106 | return NULL; | |
31107 | } | |
31108 | ||
31109 | ||
c32bde28 | 31110 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31111 | PyObject *resultobj; |
31112 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
31113 | wxWindow *arg2 = (wxWindow *) NULL ; | |
31114 | bool result; | |
31115 | PyObject * obj0 = 0 ; | |
31116 | PyObject * obj1 = 0 ; | |
31117 | char *kwnames[] = { | |
31118 | (char *) "self",(char *) "window", NULL | |
31119 | }; | |
31120 | ||
31121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
31122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
31123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31124 | if (obj1) { | |
31125 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31127 | } | |
31128 | { | |
31129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31130 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
31131 | ||
31132 | wxPyEndAllowThreads(__tstate); | |
31133 | if (PyErr_Occurred()) SWIG_fail; | |
31134 | } | |
31135 | { | |
31136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31137 | } | |
31138 | return resultobj; | |
31139 | fail: | |
31140 | return NULL; | |
31141 | } | |
31142 | ||
31143 | ||
c32bde28 | 31144 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31145 | PyObject *resultobj; |
31146 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
31147 | bool result; | |
31148 | PyObject * obj0 = 0 ; | |
31149 | char *kwnames[] = { | |
31150 | (char *) "self", NULL | |
31151 | }; | |
31152 | ||
31153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
31154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
31155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31156 | { | |
31157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31158 | result = (bool)(arg1)->EndContextHelp(); | |
31159 | ||
31160 | wxPyEndAllowThreads(__tstate); | |
31161 | if (PyErr_Occurred()) SWIG_fail; | |
31162 | } | |
31163 | { | |
31164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31165 | } | |
31166 | return resultobj; | |
31167 | fail: | |
31168 | return NULL; | |
31169 | } | |
31170 | ||
31171 | ||
c32bde28 | 31172 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31173 | PyObject *obj; |
31174 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31175 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
31176 | Py_INCREF(obj); | |
31177 | return Py_BuildValue((char *)""); | |
31178 | } | |
c32bde28 | 31179 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31180 | PyObject *resultobj; |
31181 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31182 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
31183 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
31184 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31185 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31186 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31187 | long arg5 = (long) wxBU_AUTODRAW ; | |
31188 | wxContextHelpButton *result; | |
31189 | wxPoint temp3 ; | |
31190 | wxSize temp4 ; | |
31191 | PyObject * obj0 = 0 ; | |
31192 | PyObject * obj1 = 0 ; | |
31193 | PyObject * obj2 = 0 ; | |
31194 | PyObject * obj3 = 0 ; | |
31195 | PyObject * obj4 = 0 ; | |
31196 | char *kwnames[] = { | |
31197 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
31198 | }; | |
31199 | ||
31200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
31202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31203 | if (obj1) { | |
c32bde28 | 31204 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31205 | if (PyErr_Occurred()) SWIG_fail; |
31206 | } | |
31207 | if (obj2) { | |
31208 | { | |
31209 | arg3 = &temp3; | |
31210 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31211 | } | |
31212 | } | |
31213 | if (obj3) { | |
31214 | { | |
31215 | arg4 = &temp4; | |
31216 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31217 | } | |
31218 | } | |
31219 | if (obj4) { | |
c32bde28 | 31220 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
31221 | if (PyErr_Occurred()) SWIG_fail; |
31222 | } | |
31223 | { | |
0439c23b | 31224 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31226 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
31227 | ||
31228 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31229 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31230 | } |
31231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
31232 | return resultobj; | |
31233 | fail: | |
31234 | return NULL; | |
31235 | } | |
31236 | ||
31237 | ||
c32bde28 | 31238 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31239 | PyObject *obj; |
31240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31241 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
31242 | Py_INCREF(obj); | |
31243 | return Py_BuildValue((char *)""); | |
31244 | } | |
c32bde28 | 31245 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31246 | PyObject *resultobj; |
31247 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31248 | wxHelpProvider *result; | |
31249 | PyObject * obj0 = 0 ; | |
31250 | char *kwnames[] = { | |
31251 | (char *) "helpProvider", NULL | |
31252 | }; | |
31253 | ||
31254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
31255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31257 | { | |
31258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31259 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
31260 | ||
31261 | wxPyEndAllowThreads(__tstate); | |
31262 | if (PyErr_Occurred()) SWIG_fail; | |
31263 | } | |
31264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
31265 | return resultobj; | |
31266 | fail: | |
31267 | return NULL; | |
31268 | } | |
31269 | ||
31270 | ||
c32bde28 | 31271 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31272 | PyObject *resultobj; |
31273 | wxHelpProvider *result; | |
31274 | char *kwnames[] = { | |
31275 | NULL | |
31276 | }; | |
31277 | ||
31278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
31279 | { | |
31280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31281 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
31282 | ||
31283 | wxPyEndAllowThreads(__tstate); | |
31284 | if (PyErr_Occurred()) SWIG_fail; | |
31285 | } | |
31286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
31287 | return resultobj; | |
31288 | fail: | |
31289 | return NULL; | |
31290 | } | |
31291 | ||
31292 | ||
c32bde28 | 31293 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31294 | PyObject *resultobj; |
31295 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31296 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31297 | wxString result; | |
31298 | PyObject * obj0 = 0 ; | |
31299 | PyObject * obj1 = 0 ; | |
31300 | char *kwnames[] = { | |
31301 | (char *) "self",(char *) "window", NULL | |
31302 | }; | |
31303 | ||
31304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
31305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31309 | { | |
31310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31311 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
31312 | ||
31313 | wxPyEndAllowThreads(__tstate); | |
31314 | if (PyErr_Occurred()) SWIG_fail; | |
31315 | } | |
31316 | { | |
31317 | #if wxUSE_UNICODE | |
31318 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31319 | #else | |
31320 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31321 | #endif | |
31322 | } | |
31323 | return resultobj; | |
31324 | fail: | |
31325 | return NULL; | |
31326 | } | |
31327 | ||
31328 | ||
c32bde28 | 31329 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31330 | PyObject *resultobj; |
31331 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31332 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31333 | bool result; | |
31334 | PyObject * obj0 = 0 ; | |
31335 | PyObject * obj1 = 0 ; | |
31336 | char *kwnames[] = { | |
31337 | (char *) "self",(char *) "window", NULL | |
31338 | }; | |
31339 | ||
31340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
31341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31345 | { | |
31346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31347 | result = (bool)(arg1)->ShowHelp(arg2); | |
31348 | ||
31349 | wxPyEndAllowThreads(__tstate); | |
31350 | if (PyErr_Occurred()) SWIG_fail; | |
31351 | } | |
31352 | { | |
31353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31354 | } | |
31355 | return resultobj; | |
31356 | fail: | |
31357 | return NULL; | |
31358 | } | |
31359 | ||
31360 | ||
c32bde28 | 31361 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31362 | PyObject *resultobj; |
31363 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31364 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31365 | wxString *arg3 = 0 ; | |
ae8162c8 | 31366 | bool temp3 = false ; |
d55e5bfc RD |
31367 | PyObject * obj0 = 0 ; |
31368 | PyObject * obj1 = 0 ; | |
31369 | PyObject * obj2 = 0 ; | |
31370 | char *kwnames[] = { | |
31371 | (char *) "self",(char *) "window",(char *) "text", NULL | |
31372 | }; | |
31373 | ||
31374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31377 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31379 | { | |
31380 | arg3 = wxString_in_helper(obj2); | |
31381 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31382 | temp3 = true; |
d55e5bfc RD |
31383 | } |
31384 | { | |
31385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31386 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
31387 | ||
31388 | wxPyEndAllowThreads(__tstate); | |
31389 | if (PyErr_Occurred()) SWIG_fail; | |
31390 | } | |
31391 | Py_INCREF(Py_None); resultobj = Py_None; | |
31392 | { | |
31393 | if (temp3) | |
31394 | delete arg3; | |
31395 | } | |
31396 | return resultobj; | |
31397 | fail: | |
31398 | { | |
31399 | if (temp3) | |
31400 | delete arg3; | |
31401 | } | |
31402 | return NULL; | |
31403 | } | |
31404 | ||
31405 | ||
c32bde28 | 31406 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31407 | PyObject *resultobj; |
31408 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31409 | int arg2 ; | |
31410 | wxString *arg3 = 0 ; | |
ae8162c8 | 31411 | bool temp3 = false ; |
d55e5bfc RD |
31412 | PyObject * obj0 = 0 ; |
31413 | PyObject * obj1 = 0 ; | |
31414 | PyObject * obj2 = 0 ; | |
31415 | char *kwnames[] = { | |
31416 | (char *) "self",(char *) "id",(char *) "text", NULL | |
31417 | }; | |
31418 | ||
31419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31422 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31423 | if (PyErr_Occurred()) SWIG_fail; |
31424 | { | |
31425 | arg3 = wxString_in_helper(obj2); | |
31426 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31427 | temp3 = true; |
d55e5bfc RD |
31428 | } |
31429 | { | |
31430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31431 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
31432 | ||
31433 | wxPyEndAllowThreads(__tstate); | |
31434 | if (PyErr_Occurred()) SWIG_fail; | |
31435 | } | |
31436 | Py_INCREF(Py_None); resultobj = Py_None; | |
31437 | { | |
31438 | if (temp3) | |
31439 | delete arg3; | |
31440 | } | |
31441 | return resultobj; | |
31442 | fail: | |
31443 | { | |
31444 | if (temp3) | |
31445 | delete arg3; | |
31446 | } | |
31447 | return NULL; | |
31448 | } | |
31449 | ||
31450 | ||
c32bde28 | 31451 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31452 | PyObject *resultobj; |
31453 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31454 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31455 | PyObject * obj0 = 0 ; | |
31456 | PyObject * obj1 = 0 ; | |
31457 | char *kwnames[] = { | |
31458 | (char *) "self",(char *) "window", NULL | |
31459 | }; | |
31460 | ||
31461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
31462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31466 | { | |
31467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31468 | (arg1)->RemoveHelp(arg2); | |
31469 | ||
31470 | wxPyEndAllowThreads(__tstate); | |
31471 | if (PyErr_Occurred()) SWIG_fail; | |
31472 | } | |
31473 | Py_INCREF(Py_None); resultobj = Py_None; | |
31474 | return resultobj; | |
31475 | fail: | |
31476 | return NULL; | |
31477 | } | |
31478 | ||
31479 | ||
c32bde28 | 31480 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31481 | PyObject *resultobj; |
31482 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31483 | PyObject * obj0 = 0 ; | |
31484 | char *kwnames[] = { | |
31485 | (char *) "self", NULL | |
31486 | }; | |
31487 | ||
31488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
31489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31491 | { | |
31492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31493 | wxHelpProvider_Destroy(arg1); | |
31494 | ||
31495 | wxPyEndAllowThreads(__tstate); | |
31496 | if (PyErr_Occurred()) SWIG_fail; | |
31497 | } | |
31498 | Py_INCREF(Py_None); resultobj = Py_None; | |
31499 | return resultobj; | |
31500 | fail: | |
31501 | return NULL; | |
31502 | } | |
31503 | ||
31504 | ||
c32bde28 | 31505 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31506 | PyObject *obj; |
31507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31508 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
31509 | Py_INCREF(obj); | |
31510 | return Py_BuildValue((char *)""); | |
31511 | } | |
c32bde28 | 31512 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31513 | PyObject *resultobj; |
31514 | wxSimpleHelpProvider *result; | |
31515 | char *kwnames[] = { | |
31516 | NULL | |
31517 | }; | |
31518 | ||
31519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
31520 | { | |
31521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31522 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
31523 | ||
31524 | wxPyEndAllowThreads(__tstate); | |
31525 | if (PyErr_Occurred()) SWIG_fail; | |
31526 | } | |
31527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
31528 | return resultobj; | |
31529 | fail: | |
31530 | return NULL; | |
31531 | } | |
31532 | ||
31533 | ||
c32bde28 | 31534 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31535 | PyObject *obj; |
31536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31537 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
31538 | Py_INCREF(obj); | |
31539 | return Py_BuildValue((char *)""); | |
31540 | } | |
c32bde28 | 31541 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31542 | PyObject *resultobj; |
31543 | wxBitmap *arg1 = 0 ; | |
31544 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31545 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31546 | wxGenericDragImage *result; | |
31547 | PyObject * obj0 = 0 ; | |
31548 | PyObject * obj1 = 0 ; | |
31549 | char *kwnames[] = { | |
31550 | (char *) "image",(char *) "cursor", NULL | |
31551 | }; | |
31552 | ||
31553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
31554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
31555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31556 | SWIG_fail; | |
31557 | if (arg1 == NULL) { | |
31558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31559 | SWIG_fail; | |
31560 | } | |
31561 | if (obj1) { | |
31562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
31563 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31564 | SWIG_fail; | |
31565 | if (arg2 == NULL) { | |
31566 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31567 | SWIG_fail; | |
31568 | } | |
31569 | } | |
31570 | { | |
0439c23b | 31571 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31573 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
31574 | ||
31575 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31576 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31577 | } |
31578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
31579 | return resultobj; | |
31580 | fail: | |
31581 | return NULL; | |
31582 | } | |
31583 | ||
31584 | ||
c32bde28 | 31585 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31586 | PyObject *resultobj; |
31587 | wxIcon *arg1 = 0 ; | |
31588 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31589 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31590 | wxGenericDragImage *result; | |
31591 | PyObject * obj0 = 0 ; | |
31592 | PyObject * obj1 = 0 ; | |
31593 | char *kwnames[] = { | |
31594 | (char *) "image",(char *) "cursor", NULL | |
31595 | }; | |
31596 | ||
31597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
31598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
31599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31600 | SWIG_fail; | |
31601 | if (arg1 == NULL) { | |
31602 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31603 | SWIG_fail; | |
31604 | } | |
31605 | if (obj1) { | |
31606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
31607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31608 | SWIG_fail; | |
31609 | if (arg2 == NULL) { | |
31610 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31611 | SWIG_fail; | |
31612 | } | |
31613 | } | |
31614 | { | |
0439c23b | 31615 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31617 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
31618 | ||
31619 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31620 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31621 | } |
31622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
31623 | return resultobj; | |
31624 | fail: | |
31625 | return NULL; | |
31626 | } | |
31627 | ||
31628 | ||
c32bde28 | 31629 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31630 | PyObject *resultobj; |
31631 | wxString *arg1 = 0 ; | |
31632 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31633 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31634 | wxGenericDragImage *result; | |
ae8162c8 | 31635 | bool temp1 = false ; |
d55e5bfc RD |
31636 | PyObject * obj0 = 0 ; |
31637 | PyObject * obj1 = 0 ; | |
31638 | char *kwnames[] = { | |
31639 | (char *) "str",(char *) "cursor", NULL | |
31640 | }; | |
31641 | ||
31642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
31643 | { | |
31644 | arg1 = wxString_in_helper(obj0); | |
31645 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 31646 | temp1 = true; |
d55e5bfc RD |
31647 | } |
31648 | if (obj1) { | |
31649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
31650 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31651 | SWIG_fail; | |
31652 | if (arg2 == NULL) { | |
31653 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31654 | SWIG_fail; | |
31655 | } | |
31656 | } | |
31657 | { | |
0439c23b | 31658 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31660 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
31661 | ||
31662 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31663 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31664 | } |
31665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
31666 | { | |
31667 | if (temp1) | |
31668 | delete arg1; | |
31669 | } | |
31670 | return resultobj; | |
31671 | fail: | |
31672 | { | |
31673 | if (temp1) | |
31674 | delete arg1; | |
31675 | } | |
31676 | return NULL; | |
31677 | } | |
31678 | ||
31679 | ||
c32bde28 | 31680 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31681 | PyObject *resultobj; |
31682 | wxPyTreeCtrl *arg1 = 0 ; | |
31683 | wxTreeItemId *arg2 = 0 ; | |
31684 | wxGenericDragImage *result; | |
31685 | PyObject * obj0 = 0 ; | |
31686 | PyObject * obj1 = 0 ; | |
31687 | char *kwnames[] = { | |
31688 | (char *) "treeCtrl",(char *) "id", NULL | |
31689 | }; | |
31690 | ||
31691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
31692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
31693 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31694 | SWIG_fail; | |
31695 | if (arg1 == NULL) { | |
31696 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31697 | SWIG_fail; | |
31698 | } | |
31699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
31700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31701 | SWIG_fail; | |
31702 | if (arg2 == NULL) { | |
31703 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31704 | SWIG_fail; | |
31705 | } | |
31706 | { | |
0439c23b | 31707 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31709 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
31710 | ||
31711 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31712 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31713 | } |
31714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
31715 | return resultobj; | |
31716 | fail: | |
31717 | return NULL; | |
31718 | } | |
31719 | ||
31720 | ||
c32bde28 | 31721 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31722 | PyObject *resultobj; |
31723 | wxPyListCtrl *arg1 = 0 ; | |
31724 | long arg2 ; | |
31725 | wxGenericDragImage *result; | |
31726 | PyObject * obj0 = 0 ; | |
31727 | PyObject * obj1 = 0 ; | |
31728 | char *kwnames[] = { | |
31729 | (char *) "listCtrl",(char *) "id", NULL | |
31730 | }; | |
31731 | ||
31732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
31733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
31734 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31735 | SWIG_fail; | |
31736 | if (arg1 == NULL) { | |
31737 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31738 | SWIG_fail; | |
31739 | } | |
c32bde28 | 31740 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
31741 | if (PyErr_Occurred()) SWIG_fail; |
31742 | { | |
0439c23b | 31743 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31745 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
31746 | ||
31747 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31748 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31749 | } |
31750 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
31751 | return resultobj; | |
31752 | fail: | |
31753 | return NULL; | |
31754 | } | |
31755 | ||
31756 | ||
c32bde28 | 31757 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31758 | PyObject *resultobj; |
31759 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31760 | PyObject * obj0 = 0 ; | |
31761 | char *kwnames[] = { | |
31762 | (char *) "self", NULL | |
31763 | }; | |
31764 | ||
31765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
31766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31768 | { | |
31769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31770 | delete arg1; | |
31771 | ||
31772 | wxPyEndAllowThreads(__tstate); | |
31773 | if (PyErr_Occurred()) SWIG_fail; | |
31774 | } | |
31775 | Py_INCREF(Py_None); resultobj = Py_None; | |
31776 | return resultobj; | |
31777 | fail: | |
31778 | return NULL; | |
31779 | } | |
31780 | ||
31781 | ||
c32bde28 | 31782 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31783 | PyObject *resultobj; |
31784 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31785 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
31786 | PyObject * obj0 = 0 ; | |
31787 | PyObject * obj1 = 0 ; | |
31788 | char *kwnames[] = { | |
31789 | (char *) "self",(char *) "bitmap", NULL | |
31790 | }; | |
31791 | ||
31792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
31793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31797 | { | |
31798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31799 | (arg1)->SetBackingBitmap(arg2); | |
31800 | ||
31801 | wxPyEndAllowThreads(__tstate); | |
31802 | if (PyErr_Occurred()) SWIG_fail; | |
31803 | } | |
31804 | Py_INCREF(Py_None); resultobj = Py_None; | |
31805 | return resultobj; | |
31806 | fail: | |
31807 | return NULL; | |
31808 | } | |
31809 | ||
31810 | ||
c32bde28 | 31811 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31812 | PyObject *resultobj; |
31813 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31814 | wxPoint *arg2 = 0 ; | |
31815 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 31816 | bool arg4 = (bool) false ; |
d55e5bfc RD |
31817 | wxRect *arg5 = (wxRect *) NULL ; |
31818 | bool result; | |
31819 | wxPoint temp2 ; | |
31820 | PyObject * obj0 = 0 ; | |
31821 | PyObject * obj1 = 0 ; | |
31822 | PyObject * obj2 = 0 ; | |
31823 | PyObject * obj3 = 0 ; | |
31824 | PyObject * obj4 = 0 ; | |
31825 | char *kwnames[] = { | |
31826 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
31827 | }; | |
31828 | ||
31829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31832 | { | |
31833 | arg2 = &temp2; | |
31834 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31835 | } | |
31836 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
31837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31838 | if (obj3) { | |
c32bde28 | 31839 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
31840 | if (PyErr_Occurred()) SWIG_fail; |
31841 | } | |
31842 | if (obj4) { | |
31843 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, | |
31844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31845 | } | |
31846 | { | |
31847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31848 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
31849 | ||
31850 | wxPyEndAllowThreads(__tstate); | |
31851 | if (PyErr_Occurred()) SWIG_fail; | |
31852 | } | |
31853 | { | |
31854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31855 | } | |
31856 | return resultobj; | |
31857 | fail: | |
31858 | return NULL; | |
31859 | } | |
31860 | ||
31861 | ||
c32bde28 | 31862 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31863 | PyObject *resultobj; |
31864 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31865 | wxPoint *arg2 = 0 ; | |
31866 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31867 | wxWindow *arg4 = (wxWindow *) 0 ; | |
31868 | bool result; | |
31869 | wxPoint temp2 ; | |
31870 | PyObject * obj0 = 0 ; | |
31871 | PyObject * obj1 = 0 ; | |
31872 | PyObject * obj2 = 0 ; | |
31873 | PyObject * obj3 = 0 ; | |
31874 | char *kwnames[] = { | |
31875 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
31876 | }; | |
31877 | ||
31878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31881 | { | |
31882 | arg2 = &temp2; | |
31883 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31884 | } | |
31885 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
31886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31887 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
31888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31889 | { | |
31890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31891 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
31892 | ||
31893 | wxPyEndAllowThreads(__tstate); | |
31894 | if (PyErr_Occurred()) SWIG_fail; | |
31895 | } | |
31896 | { | |
31897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31898 | } | |
31899 | return resultobj; | |
31900 | fail: | |
31901 | return NULL; | |
31902 | } | |
31903 | ||
31904 | ||
c32bde28 | 31905 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31906 | PyObject *resultobj; |
31907 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31908 | bool result; | |
31909 | PyObject * obj0 = 0 ; | |
31910 | char *kwnames[] = { | |
31911 | (char *) "self", NULL | |
31912 | }; | |
31913 | ||
31914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
31915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31917 | { | |
31918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31919 | result = (bool)(arg1)->EndDrag(); | |
31920 | ||
31921 | wxPyEndAllowThreads(__tstate); | |
31922 | if (PyErr_Occurred()) SWIG_fail; | |
31923 | } | |
31924 | { | |
31925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31926 | } | |
31927 | return resultobj; | |
31928 | fail: | |
31929 | return NULL; | |
31930 | } | |
31931 | ||
31932 | ||
c32bde28 | 31933 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31934 | PyObject *resultobj; |
31935 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31936 | wxPoint *arg2 = 0 ; | |
31937 | bool result; | |
31938 | wxPoint temp2 ; | |
31939 | PyObject * obj0 = 0 ; | |
31940 | PyObject * obj1 = 0 ; | |
31941 | char *kwnames[] = { | |
31942 | (char *) "self",(char *) "pt", NULL | |
31943 | }; | |
31944 | ||
31945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
31946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31948 | { | |
31949 | arg2 = &temp2; | |
31950 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31951 | } | |
31952 | { | |
31953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31954 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
31955 | ||
31956 | wxPyEndAllowThreads(__tstate); | |
31957 | if (PyErr_Occurred()) SWIG_fail; | |
31958 | } | |
31959 | { | |
31960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31961 | } | |
31962 | return resultobj; | |
31963 | fail: | |
31964 | return NULL; | |
31965 | } | |
31966 | ||
31967 | ||
c32bde28 | 31968 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31969 | PyObject *resultobj; |
31970 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31971 | bool result; | |
31972 | PyObject * obj0 = 0 ; | |
31973 | char *kwnames[] = { | |
31974 | (char *) "self", NULL | |
31975 | }; | |
31976 | ||
31977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
31978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31980 | { | |
31981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31982 | result = (bool)(arg1)->Show(); | |
31983 | ||
31984 | wxPyEndAllowThreads(__tstate); | |
31985 | if (PyErr_Occurred()) SWIG_fail; | |
31986 | } | |
31987 | { | |
31988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31989 | } | |
31990 | return resultobj; | |
31991 | fail: | |
31992 | return NULL; | |
31993 | } | |
31994 | ||
31995 | ||
c32bde28 | 31996 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31997 | PyObject *resultobj; |
31998 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31999 | bool result; | |
32000 | PyObject * obj0 = 0 ; | |
32001 | char *kwnames[] = { | |
32002 | (char *) "self", NULL | |
32003 | }; | |
32004 | ||
32005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
32006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
32007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32008 | { | |
32009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32010 | result = (bool)(arg1)->Hide(); | |
32011 | ||
32012 | wxPyEndAllowThreads(__tstate); | |
32013 | if (PyErr_Occurred()) SWIG_fail; | |
32014 | } | |
32015 | { | |
32016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32017 | } | |
32018 | return resultobj; | |
32019 | fail: | |
32020 | return NULL; | |
32021 | } | |
32022 | ||
32023 | ||
c32bde28 | 32024 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32025 | PyObject *resultobj; |
32026 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
32027 | wxPoint *arg2 = 0 ; | |
32028 | wxRect result; | |
32029 | wxPoint temp2 ; | |
32030 | PyObject * obj0 = 0 ; | |
32031 | PyObject * obj1 = 0 ; | |
32032 | char *kwnames[] = { | |
32033 | (char *) "self",(char *) "pos", NULL | |
32034 | }; | |
32035 | ||
32036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
32037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
32038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32039 | { | |
32040 | arg2 = &temp2; | |
32041 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
32042 | } | |
32043 | { | |
32044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32045 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
32046 | ||
32047 | wxPyEndAllowThreads(__tstate); | |
32048 | if (PyErr_Occurred()) SWIG_fail; | |
32049 | } | |
32050 | { | |
32051 | wxRect * resultptr; | |
32052 | resultptr = new wxRect((wxRect &) result); | |
32053 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
32054 | } | |
32055 | return resultobj; | |
32056 | fail: | |
32057 | return NULL; | |
32058 | } | |
32059 | ||
32060 | ||
c32bde28 | 32061 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32062 | PyObject *resultobj; |
32063 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
32064 | wxDC *arg2 = 0 ; | |
32065 | wxPoint *arg3 = 0 ; | |
32066 | bool result; | |
32067 | wxPoint temp3 ; | |
32068 | PyObject * obj0 = 0 ; | |
32069 | PyObject * obj1 = 0 ; | |
32070 | PyObject * obj2 = 0 ; | |
32071 | char *kwnames[] = { | |
32072 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
32073 | }; | |
32074 | ||
32075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
32077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
32079 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32080 | SWIG_fail; | |
32081 | if (arg2 == NULL) { | |
32082 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32083 | SWIG_fail; | |
32084 | } | |
32085 | { | |
32086 | arg3 = &temp3; | |
32087 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32088 | } | |
32089 | { | |
32090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32091 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
32092 | ||
32093 | wxPyEndAllowThreads(__tstate); | |
32094 | if (PyErr_Occurred()) SWIG_fail; | |
32095 | } | |
32096 | { | |
32097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32098 | } | |
32099 | return resultobj; | |
32100 | fail: | |
32101 | return NULL; | |
32102 | } | |
32103 | ||
32104 | ||
c32bde28 | 32105 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32106 | PyObject *resultobj; |
32107 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
32108 | wxDC *arg2 = 0 ; | |
32109 | wxMemoryDC *arg3 = 0 ; | |
32110 | wxRect *arg4 = 0 ; | |
32111 | wxRect *arg5 = 0 ; | |
32112 | bool result; | |
32113 | wxRect temp4 ; | |
32114 | wxRect temp5 ; | |
32115 | PyObject * obj0 = 0 ; | |
32116 | PyObject * obj1 = 0 ; | |
32117 | PyObject * obj2 = 0 ; | |
32118 | PyObject * obj3 = 0 ; | |
32119 | PyObject * obj4 = 0 ; | |
32120 | char *kwnames[] = { | |
32121 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
32122 | }; | |
32123 | ||
32124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
32125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
32126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
32128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32129 | SWIG_fail; | |
32130 | if (arg2 == NULL) { | |
32131 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32132 | SWIG_fail; | |
32133 | } | |
32134 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, | |
32135 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32136 | SWIG_fail; | |
32137 | if (arg3 == NULL) { | |
32138 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32139 | SWIG_fail; | |
32140 | } | |
32141 | { | |
32142 | arg4 = &temp4; | |
32143 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
32144 | } | |
32145 | { | |
32146 | arg5 = &temp5; | |
32147 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
32148 | } | |
32149 | { | |
32150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32151 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
32152 | ||
32153 | wxPyEndAllowThreads(__tstate); | |
32154 | if (PyErr_Occurred()) SWIG_fail; | |
32155 | } | |
32156 | { | |
32157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32158 | } | |
32159 | return resultobj; | |
32160 | fail: | |
32161 | return NULL; | |
32162 | } | |
32163 | ||
32164 | ||
c32bde28 | 32165 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32166 | PyObject *resultobj; |
32167 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
32168 | wxPoint *arg2 = 0 ; | |
32169 | wxPoint *arg3 = 0 ; | |
32170 | bool arg4 ; | |
32171 | bool arg5 ; | |
32172 | bool result; | |
32173 | wxPoint temp2 ; | |
32174 | wxPoint temp3 ; | |
32175 | PyObject * obj0 = 0 ; | |
32176 | PyObject * obj1 = 0 ; | |
32177 | PyObject * obj2 = 0 ; | |
32178 | PyObject * obj3 = 0 ; | |
32179 | PyObject * obj4 = 0 ; | |
32180 | char *kwnames[] = { | |
32181 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
32182 | }; | |
32183 | ||
32184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
32185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
32186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32187 | { | |
32188 | arg2 = &temp2; | |
32189 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
32190 | } | |
32191 | { | |
32192 | arg3 = &temp3; | |
32193 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32194 | } | |
c32bde28 | 32195 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc | 32196 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32197 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
32198 | if (PyErr_Occurred()) SWIG_fail; |
32199 | { | |
32200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32201 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
32202 | ||
32203 | wxPyEndAllowThreads(__tstate); | |
32204 | if (PyErr_Occurred()) SWIG_fail; | |
32205 | } | |
32206 | { | |
32207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32208 | } | |
32209 | return resultobj; | |
32210 | fail: | |
32211 | return NULL; | |
32212 | } | |
32213 | ||
32214 | ||
c32bde28 | 32215 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32216 | PyObject *obj; |
32217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32218 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
32219 | Py_INCREF(obj); | |
32220 | return Py_BuildValue((char *)""); | |
32221 | } | |
32222 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
32223 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL }, |
32224 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32225 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32226 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32227 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32228 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32229 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL }, | |
32230 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32231 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32232 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32233 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32234 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32235 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32236 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32237 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32238 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32239 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32240 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32241 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32242 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32243 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32244 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL }, | |
32245 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32246 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32247 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32248 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32249 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32250 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32251 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32252 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32253 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32254 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32255 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32256 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL }, | |
32257 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32258 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32259 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32260 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32261 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32262 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32263 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32264 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL }, | |
32265 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32266 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32267 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32268 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32269 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32270 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32271 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32272 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32273 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32274 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32275 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32276 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32277 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32278 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
f78cc896 | 32279 | { (char *)"ComboBox_GetMark", (PyCFunction) _wrap_ComboBox_GetMark, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
32280 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, |
32281 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32282 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32283 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32284 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b519803b RD |
32285 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, |
32286 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32287 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32288 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32289 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32290 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32291 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32292 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32293 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
32294 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, |
32295 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL }, | |
32296 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32297 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32298 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32299 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32300 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32301 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32302 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32303 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32304 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32305 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32306 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32307 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32308 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32309 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL }, | |
32310 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32311 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32312 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32313 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32314 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL }, | |
32315 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32316 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32317 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32318 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32319 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32320 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32321 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL }, | |
32322 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32323 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32324 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32325 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32326 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL }, | |
32327 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32328 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32329 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32330 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32331 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32332 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32333 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32334 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL }, | |
32335 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32336 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32337 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32338 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32339 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32340 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32341 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32342 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32343 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32344 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32345 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32346 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32347 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32348 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32349 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32350 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32351 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32352 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32353 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32354 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32355 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32356 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32357 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL }, | |
32358 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32359 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32360 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32361 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32362 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32363 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32364 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32365 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32366 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL }, | |
32367 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32368 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32369 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32370 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32371 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32372 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32373 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32374 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32375 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32376 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32377 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32378 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32379 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32380 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32381 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32382 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32383 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32384 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32385 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32386 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32387 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32388 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32389 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32390 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32391 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32392 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32393 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32394 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32395 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32396 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32397 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL }, | |
32398 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32399 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32400 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32401 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32402 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32403 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32404 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32405 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32406 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32407 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32408 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32409 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32410 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32411 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32412 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32413 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32414 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32415 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32416 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32417 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32418 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32419 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32420 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32421 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32422 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32423 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32424 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32425 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32426 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32427 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32428 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32429 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32430 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32431 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32432 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32433 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32434 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32435 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32436 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32437 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32438 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32439 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32440 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32441 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32442 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32443 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32444 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32445 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32446 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32447 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32448 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32449 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32450 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32451 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32452 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32453 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32454 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32455 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL }, | |
32456 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32457 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32458 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32459 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32460 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL }, | |
32461 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32462 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32463 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32464 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32465 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32466 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32467 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32468 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32469 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32470 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32471 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32472 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL }, | |
32473 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32474 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32475 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32476 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32477 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32478 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32479 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32480 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32481 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32482 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32483 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32484 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32485 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL }, | |
32486 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32487 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32488 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32489 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32490 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32491 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32492 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32493 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32494 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32495 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32496 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32497 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL }, | |
32498 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32499 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32500 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32501 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL }, | |
32502 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32503 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32504 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32505 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32506 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32507 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32508 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32509 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32510 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32511 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32512 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32513 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32514 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32515 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32516 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32517 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32518 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32519 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL }, | |
32520 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32521 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32522 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32523 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32524 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32525 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32526 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL }, | |
32527 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32528 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32529 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32530 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32531 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32532 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32533 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32534 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32535 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32536 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32537 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32538 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32539 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32540 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32541 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32542 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32543 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32544 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32545 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32546 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32547 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32548 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32549 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32550 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32551 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32552 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL }, | |
32553 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32554 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32555 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32556 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32557 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32558 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32559 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32560 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL }, | |
8ac8dba0 RD |
32561 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL }, |
32562 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32563 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32564 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32565 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32566 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32567 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32568 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32569 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32570 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32571 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32572 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32573 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32574 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32575 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32576 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32577 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32578 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32579 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32580 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32581 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32582 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL }, | |
32583 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32584 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32585 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32586 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32587 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32588 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
32589 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL }, |
32590 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32591 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32592 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32593 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32594 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32595 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32596 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
32597 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, |
32598 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL }, | |
32599 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32600 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL }, | |
32601 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32602 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32603 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32604 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1fbf26be | 32605 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
32606 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL }, |
32607 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32608 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL }, | |
ae8162c8 RD |
32609 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL }, |
32610 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32611 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32612 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32613 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32614 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL }, | |
32615 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32616 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
32617 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL }, |
32618 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32619 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32620 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32621 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL }, | |
32622 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32623 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32624 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32625 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32626 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL }, | |
32627 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32628 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32629 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32630 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32631 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32632 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32633 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32634 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32635 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32636 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32637 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32638 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32639 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32640 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32641 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32642 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32643 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32644 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32645 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32646 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32647 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32648 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32649 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32650 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32651 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32652 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32653 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32654 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32655 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32656 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL }, | |
32657 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32658 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32659 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32660 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32661 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32662 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32663 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32664 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32665 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32666 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32667 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32668 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32669 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32670 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32671 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32672 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32673 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32674 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32675 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32676 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32677 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32678 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32679 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32680 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32681 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32682 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32683 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32684 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32685 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32686 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32687 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32688 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32689 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32690 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32691 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32692 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32693 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32694 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32695 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32696 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32697 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32698 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32699 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32700 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32701 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL }, | |
32702 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32703 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32704 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32705 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32706 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32707 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL }, | |
32708 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32709 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32710 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32711 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32712 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32713 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32714 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32715 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32716 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32717 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32718 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32719 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL }, | |
32720 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32721 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32722 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32723 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32724 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32725 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32726 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32727 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32728 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32729 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32730 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32731 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32732 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32733 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32734 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32735 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32736 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32737 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32738 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32739 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32740 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32741 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32742 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32743 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32744 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32745 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32746 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32747 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32748 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32749 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32750 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32751 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32752 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32753 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32754 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32755 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32756 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32757 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32758 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32759 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32760 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32761 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32762 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32763 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32764 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32765 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32766 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32767 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32768 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32769 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32770 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32771 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL }, | |
32772 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32773 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32774 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32775 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32776 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32777 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32778 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32779 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32780 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32781 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32782 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32783 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32784 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32785 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32786 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32787 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32788 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32789 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32790 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32791 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32792 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32793 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32794 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32795 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32796 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32797 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32798 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL }, | |
32799 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32800 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32801 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32802 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32803 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32804 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32805 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32806 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32807 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32808 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32809 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32810 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32811 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32812 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32813 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32814 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32815 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32816 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32817 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32818 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32819 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32820 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32821 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32822 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32823 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32824 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32825 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32826 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32827 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32828 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32829 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32830 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32831 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32832 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32833 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32834 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32835 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32836 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32837 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32838 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32839 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32840 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32841 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32842 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32843 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32844 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32845 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32846 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32847 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32848 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32849 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32850 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32851 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32852 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32853 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32854 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32855 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32856 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32857 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32858 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32859 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32860 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32861 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32862 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32863 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32864 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32865 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32866 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32867 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32868 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32869 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32870 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL }, | |
32871 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32872 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32873 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32874 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32875 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32876 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32877 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32878 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32879 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32880 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32881 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32882 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL }, | |
32883 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32884 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32885 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32886 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32887 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32888 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32889 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32890 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL }, | |
32891 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32892 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32893 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32894 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32895 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32896 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32897 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL }, | |
32898 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32899 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32900 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32901 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32902 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32903 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32904 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32905 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32906 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32907 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32908 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32909 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32910 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32911 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32912 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32913 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL }, | |
32914 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32915 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32916 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32917 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32918 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32919 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32920 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32921 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32922 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32923 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32924 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32925 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32926 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32927 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32928 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32929 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32930 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32931 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32932 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32933 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32934 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32935 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32936 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32937 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32938 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32939 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32940 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32941 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32942 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32943 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32944 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32945 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32946 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32947 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32948 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32949 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32950 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32951 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32952 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32953 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32954 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32955 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32956 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32957 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32958 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32959 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32960 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32961 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32962 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32963 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32964 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32965 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32966 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32967 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32968 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32969 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32970 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32971 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32972 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32973 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32974 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32975 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32976 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32977 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32978 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32979 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32980 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32981 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32982 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32983 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32984 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32985 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32986 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32987 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32988 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32989 | { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32990 | { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32991 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32992 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL }, | |
32993 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32994 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32995 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32996 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32997 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32998 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32999 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33000 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33001 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33002 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33003 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33004 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33005 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33006 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33007 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33008 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33009 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33010 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33011 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33012 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33013 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33014 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL }, | |
33015 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33016 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33017 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33018 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33019 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL }, | |
33020 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33021 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33022 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33023 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33024 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33025 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33026 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33027 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33028 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33029 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33030 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33031 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33032 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33033 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33034 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33035 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33036 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33037 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33038 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33039 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33040 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33041 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33042 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33043 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33044 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33045 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL }, | |
33046 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33047 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33048 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33049 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33050 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33051 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33052 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33053 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL }, | |
33054 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33055 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33056 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33057 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33058 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL }, | |
33059 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33060 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL }, | |
33061 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33062 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33063 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33064 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33065 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33066 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33067 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33068 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33069 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL }, | |
33070 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33071 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL }, | |
33072 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33073 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33074 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33075 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33076 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33077 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33078 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33079 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33080 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33081 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33082 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33083 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33084 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33085 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33086 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33087 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33088 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
33089 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL }, | |
33090 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
33091 | }; |
33092 | ||
33093 | ||
33094 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
33095 | ||
d55e5bfc RD |
33096 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { |
33097 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
33098 | } | |
33099 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
33100 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33101 | } | |
33102 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
33103 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33104 | } | |
33105 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
33106 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
33107 | } | |
33108 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
33109 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33110 | } | |
33111 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
33112 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
33113 | } | |
33114 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
33115 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
33116 | } | |
33117 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
33118 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
33119 | } | |
33120 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
33121 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33122 | } | |
33123 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
33124 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
33125 | } | |
33126 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
33127 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
33128 | } | |
33129 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
33130 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
33131 | } | |
33132 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
33133 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
33134 | } | |
8ac8dba0 RD |
33135 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
33136 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
33137 | } | |
d55e5bfc RD |
33138 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
33139 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33140 | } | |
33141 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
33142 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
33143 | } | |
33144 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
33145 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
33146 | } | |
33147 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
33148 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
33149 | } | |
33150 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
33151 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33152 | } | |
d55e5bfc RD |
33153 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
33154 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
33155 | } | |
33156 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
33157 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33158 | } | |
33159 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
33160 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
33161 | } | |
33162 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 33163 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
33164 | } |
33165 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 33166 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 33167 | } |
ae8162c8 | 33168 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
8ac8dba0 | 33169 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
ae8162c8 | 33170 | } |
d55e5bfc RD |
33171 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
33172 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
33173 | } | |
33174 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
33175 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
33176 | } | |
33177 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
33178 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33179 | } | |
33180 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
33181 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33182 | } | |
33183 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
33184 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
33185 | } | |
33186 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
33187 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
33188 | } | |
33189 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
33190 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
33191 | } | |
33192 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
33193 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
33194 | } | |
33195 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
33196 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
33197 | } | |
33198 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
33199 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
33200 | } | |
33201 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
33202 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
33203 | } | |
33204 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
33205 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33206 | } | |
33207 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
33208 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33209 | } | |
33210 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
33211 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33212 | } | |
33213 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
33214 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33215 | } | |
33216 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
33217 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33218 | } | |
33219 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
33220 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
33221 | } | |
33222 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
33223 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
33224 | } | |
33225 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
33226 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33227 | } | |
33228 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
33229 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
33230 | } | |
33231 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
33232 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
33233 | } | |
33234 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
33235 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33236 | } | |
33237 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
33238 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33239 | } | |
33240 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
33241 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33242 | } | |
33243 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
33244 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
33245 | } | |
33246 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
33247 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
33248 | } | |
33249 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
33250 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33251 | } | |
33252 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
33253 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
33254 | } | |
33255 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
33256 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33257 | } | |
33258 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
33259 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
33260 | } | |
33261 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
33262 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
33263 | } | |
33264 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
33265 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
33266 | } | |
33267 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
33268 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33269 | } | |
33270 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
33271 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
33272 | } | |
8ac8dba0 RD |
33273 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
33274 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d55e5bfc RD |
33275 | } |
33276 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
33277 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
33278 | } | |
ae8162c8 RD |
33279 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
33280 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d55e5bfc | 33281 | } |
ae8162c8 RD |
33282 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
33283 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d55e5bfc | 33284 | } |
ae8162c8 RD |
33285 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
33286 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d55e5bfc | 33287 | } |
ae8162c8 RD |
33288 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
33289 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
33290 | } | |
33291 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
33292 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d55e5bfc RD |
33293 | } |
33294 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
33295 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
33296 | } | |
ae8162c8 RD |
33297 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
33298 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
d55e5bfc | 33299 | } |
ae8162c8 RD |
33300 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
33301 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d55e5bfc RD |
33302 | } |
33303 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
33304 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
33305 | } | |
ae8162c8 RD |
33306 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
33307 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d55e5bfc RD |
33308 | } |
33309 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
33310 | return (void *)((wxControl *) ((wxGauge *) x)); | |
33311 | } | |
ae8162c8 RD |
33312 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
33313 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d55e5bfc | 33314 | } |
ae8162c8 | 33315 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
8ac8dba0 | 33316 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d55e5bfc | 33317 | } |
ae8162c8 | 33318 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
8ac8dba0 | 33319 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc | 33320 | } |
ae8162c8 RD |
33321 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
33322 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d55e5bfc | 33323 | } |
ae8162c8 RD |
33324 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
33325 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d55e5bfc RD |
33326 | } |
33327 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
33328 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
33329 | } | |
ae8162c8 RD |
33330 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
33331 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
33332 | } | |
33333 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
33334 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
33335 | } | |
33336 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
33337 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33338 | } | |
33339 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
33340 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
33341 | } | |
d55e5bfc | 33342 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
8ac8dba0 | 33343 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc | 33344 | } |
ae8162c8 RD |
33345 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
33346 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d55e5bfc | 33347 | } |
ae8162c8 RD |
33348 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
33349 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d55e5bfc | 33350 | } |
ae8162c8 RD |
33351 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
33352 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d55e5bfc | 33353 | } |
ae8162c8 RD |
33354 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
33355 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d55e5bfc RD |
33356 | } |
33357 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
33358 | return (void *)((wxControl *) ((wxSlider *) x)); | |
33359 | } | |
ae8162c8 RD |
33360 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
33361 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d55e5bfc | 33362 | } |
ae8162c8 RD |
33363 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
33364 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d55e5bfc | 33365 | } |
ae8162c8 RD |
33366 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
33367 | return (void *)((wxControl *) ((wxButton *) x)); | |
d55e5bfc | 33368 | } |
ae8162c8 RD |
33369 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
33370 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
33371 | } | |
33372 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
33373 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d55e5bfc RD |
33374 | } |
33375 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
33376 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
33377 | } | |
33378 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
33379 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
33380 | } | |
33381 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
33382 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33383 | } | |
8ac8dba0 RD |
33384 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
33385 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
33386 | } | |
d55e5bfc RD |
33387 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
33388 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33389 | } | |
d55e5bfc RD |
33390 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
33391 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
33392 | } | |
33393 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
33394 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33395 | } | |
33396 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 33397 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
33398 | } |
33399 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 33400 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 33401 | } |
ae8162c8 | 33402 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 RD |
33403 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
33404 | } | |
33405 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
33406 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
33407 | } | |
33408 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
33409 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
ae8162c8 | 33410 | } |
8ac8dba0 RD |
33411 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
33412 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d55e5bfc RD |
33413 | } |
33414 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
33415 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
33416 | } | |
8ac8dba0 RD |
33417 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
33418 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
33419 | } | |
d55e5bfc RD |
33420 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
33421 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
33422 | } | |
33423 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
33424 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
33425 | } | |
33426 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
33427 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33428 | } | |
33429 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
33430 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
33431 | } | |
33432 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
33433 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
33434 | } | |
33435 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
33436 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
33437 | } | |
33438 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
33439 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
33440 | } | |
33441 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
33442 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
33443 | } | |
33444 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
33445 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
33446 | } | |
d55e5bfc RD |
33447 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
33448 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
33449 | } | |
ae8162c8 RD |
33450 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
33451 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
33452 | } | |
d55e5bfc RD |
33453 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
33454 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33455 | } | |
33456 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
33457 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
33458 | } | |
33459 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
33460 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
33461 | } | |
33462 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
33463 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
33464 | } | |
33465 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
33466 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
33467 | } | |
33468 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
33469 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33470 | } | |
33471 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
33472 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
33473 | } | |
33474 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
33475 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
33476 | } | |
ae8162c8 | 33477 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 33478 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
ae8162c8 | 33479 | } |
d55e5bfc | 33480 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 33481 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
33482 | } |
33483 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
33484 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
33485 | } | |
33486 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
33487 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
33488 | } | |
33489 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
33490 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
33491 | } | |
33492 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
33493 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33494 | } | |
33495 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
33496 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33497 | } | |
33498 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
33499 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33500 | } | |
33501 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
8ac8dba0 | 33502 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
33503 | } |
33504 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
33505 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
33506 | } | |
33507 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
33508 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33509 | } | |
33510 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
33511 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
33512 | } | |
33513 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
33514 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
33515 | } | |
33516 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
33517 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
33518 | } | |
33519 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
33520 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
33521 | } | |
33522 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
33523 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
33524 | } | |
33525 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
33526 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
33527 | } | |
33528 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
33529 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33530 | } | |
33531 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
33532 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33533 | } | |
33534 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
33535 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
33536 | } | |
33537 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
33538 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
33539 | } | |
d55e5bfc RD |
33540 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
33541 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
33542 | } | |
33543 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
33544 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33545 | } | |
33546 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
33547 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33548 | } | |
33549 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
33550 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
33551 | } | |
33552 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
33553 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
33554 | } | |
33555 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
33556 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
33557 | } | |
33558 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
33559 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
33560 | } | |
33561 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
33562 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
33563 | } | |
33564 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
33565 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
33566 | } | |
33567 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
33568 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33569 | } | |
d55e5bfc RD |
33570 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
33571 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33572 | } | |
33573 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
33574 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
33575 | } | |
33576 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
33577 | return (void *)((wxObject *) ((wxSizer *) x)); | |
33578 | } | |
33579 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
33580 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33581 | } | |
33582 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
33583 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
33584 | } | |
33585 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
33586 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
33587 | } | |
33588 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
33589 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33590 | } | |
33591 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
33592 | return (void *)((wxObject *) ((wxEvent *) x)); | |
33593 | } | |
33594 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
33595 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33596 | } | |
33597 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
33598 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
33599 | } | |
33600 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
33601 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
33602 | } | |
33603 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
33604 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
33605 | } | |
33606 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
33607 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
33608 | } | |
33609 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
33610 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33611 | } | |
33612 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
33613 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
33614 | } | |
33615 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
33616 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
33617 | } | |
33618 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
33619 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33620 | } | |
33621 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
33622 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33623 | } | |
33624 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
33625 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33626 | } | |
33627 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
33628 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33629 | } | |
33630 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
33631 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
33632 | } | |
33633 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33634 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33635 | } | |
33636 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
33637 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
33638 | } | |
33639 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
33640 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
33641 | } | |
33642 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
33643 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
33644 | } | |
33645 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
33646 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
33647 | } | |
33648 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
33649 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
33650 | } | |
33651 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33652 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33653 | } | |
33654 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
33655 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33656 | } | |
33657 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33658 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33659 | } | |
33660 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33661 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33662 | } | |
33663 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
33664 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33665 | } | |
33666 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
33667 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
33668 | } | |
33669 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
8ac8dba0 | 33670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
33671 | } |
33672 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33673 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33674 | } | |
33675 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33676 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33677 | } | |
ae8162c8 | 33678 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
8ac8dba0 | 33679 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
ae8162c8 | 33680 | } |
d55e5bfc | 33681 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
8ac8dba0 | 33682 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
33683 | } |
33684 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33685 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33686 | } | |
33687 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
33688 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
33689 | } | |
33690 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
33691 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
33692 | } | |
33693 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33694 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33695 | } | |
33696 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
33697 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33698 | } | |
33699 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33700 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33701 | } | |
33702 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33703 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33704 | } | |
33705 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33706 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
33707 | } | |
33708 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
33709 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
33710 | } | |
33711 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
33712 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
33713 | } | |
33714 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
33715 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
33716 | } | |
33717 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
33718 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
33719 | } | |
33720 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
33721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
33722 | } | |
33723 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
33724 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
33725 | } | |
8ac8dba0 RD |
33726 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
33727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
33728 | } | |
d55e5bfc RD |
33729 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
33730 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
33731 | } | |
33732 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
33733 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
33734 | } | |
33735 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
33736 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
33737 | } | |
33738 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
33739 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
33740 | } | |
33741 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
33742 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
33743 | } | |
33744 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
33745 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
33746 | } | |
33747 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
33748 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
33749 | } | |
33750 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
33751 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
33752 | } | |
33753 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
33754 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
33755 | } | |
33756 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
33757 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
33758 | } | |
33759 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
33760 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
33761 | } | |
33762 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
33763 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
33764 | } | |
33765 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
33766 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
33767 | } | |
33768 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
33769 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
33770 | } | |
33771 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
33772 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33773 | } | |
33774 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
33775 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33776 | } | |
d55e5bfc RD |
33777 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
33778 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
33779 | } | |
33780 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
33781 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33782 | } | |
33783 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
33784 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
33785 | } | |
33786 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
33787 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33788 | } | |
33789 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
33790 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33791 | } | |
33792 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
33793 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
33794 | } | |
33795 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
33796 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
33797 | } | |
33798 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
33799 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
33800 | } | |
33801 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
33802 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
33803 | } | |
33804 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
33805 | return (void *)((wxObject *) ((wxListItem *) x)); | |
33806 | } | |
33807 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33808 | return (void *)((wxObject *) ((wxImage *) x)); | |
33809 | } | |
33810 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
33811 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
33812 | } | |
33813 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33814 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33815 | } | |
33816 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
33817 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33818 | } | |
33819 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
33820 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
33821 | } | |
33822 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
33823 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
33824 | } | |
33825 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 33826 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
33827 | } |
33828 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 33829 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 33830 | } |
ae8162c8 | 33831 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
8ac8dba0 | 33832 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
ae8162c8 | 33833 | } |
d55e5bfc RD |
33834 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
33835 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33836 | } | |
33837 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
33838 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33839 | } | |
33840 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
33841 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
33842 | } | |
33843 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
33844 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
33845 | } | |
33846 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
33847 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
33848 | } | |
33849 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
33850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
33851 | } | |
33852 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
33853 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
33854 | } | |
33855 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
33856 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33857 | } | |
33858 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
33859 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
33860 | } | |
33861 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
33862 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
33863 | } | |
33864 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
33865 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
33866 | } | |
33867 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
33868 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
33869 | } | |
33870 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
33871 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
33872 | } | |
8ac8dba0 RD |
33873 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
33874 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
33875 | } | |
d55e5bfc RD |
33876 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
33877 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33878 | } | |
33879 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
33880 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33881 | } | |
33882 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
33883 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
33884 | } | |
33885 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
33886 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
33887 | } | |
33888 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
33889 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
33890 | } | |
33891 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
33892 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
33893 | } | |
33894 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
33895 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33896 | } | |
33897 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
33898 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33899 | } | |
33900 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
33901 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
33902 | } | |
33903 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
33904 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33905 | } | |
33906 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33907 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33908 | } | |
33909 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33910 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33911 | } | |
33912 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
33913 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
33914 | } | |
d55e5bfc RD |
33915 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
33916 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33917 | } | |
8ac8dba0 RD |
33918 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
33919 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
33920 | } | |
d55e5bfc RD |
33921 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
33922 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33923 | } | |
33924 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
33925 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
33926 | } | |
33927 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
33928 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
33929 | } | |
d55e5bfc RD |
33930 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
33931 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33932 | } | |
33933 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
33934 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
33935 | } | |
33936 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
33937 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33938 | } | |
33939 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
33940 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
33941 | } | |
33942 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
33943 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
33944 | } | |
ae8162c8 RD |
33945 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
33946 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
33947 | } | |
d55e5bfc RD |
33948 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
33949 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
33950 | } | |
33951 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
33952 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
33953 | } | |
33954 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33955 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33956 | } | |
33957 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
33958 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
33959 | } | |
33960 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
33961 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
33962 | } | |
ae8162c8 | 33963 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
8ac8dba0 | 33964 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
ae8162c8 | 33965 | } |
d55e5bfc | 33966 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
8ac8dba0 | 33967 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
33968 | } |
33969 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
33970 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
33971 | } | |
33972 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
33973 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
33974 | } | |
33975 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
33976 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
33977 | } | |
33978 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
33979 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33980 | } | |
33981 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
33982 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33983 | } | |
33984 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
33985 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33986 | } | |
33987 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
33988 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33989 | } | |
33990 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
8ac8dba0 | 33991 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
33992 | } |
33993 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
33994 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
33995 | } | |
33996 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
33997 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
33998 | } | |
33999 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
34000 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
34001 | } | |
34002 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
34003 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
34004 | } | |
34005 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
34006 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
34007 | } | |
34008 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
34009 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
34010 | } | |
34011 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
34012 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
34013 | } | |
34014 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
34015 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
34016 | } | |
34017 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
34018 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
34019 | } | |
34020 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
34021 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
34022 | } | |
8ac8dba0 RD |
34023 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
34024 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
34025 | } | |
34026 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
34027 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
34028 | } | |
34029 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
34030 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
34031 | } | |
d55e5bfc RD |
34032 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
34033 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
34034 | } | |
d55e5bfc RD |
34035 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
34036 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
34037 | } | |
34038 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
34039 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
34040 | } | |
34041 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
34042 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
34043 | } | |
34044 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
34045 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
34046 | } | |
34047 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
34048 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
34049 | } | |
ae8162c8 | 34050 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
8ac8dba0 | 34051 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
ae8162c8 | 34052 | } |
d55e5bfc | 34053 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
8ac8dba0 | 34054 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc RD |
34055 | } |
34056 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 34057 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc | 34058 | } |
d55e5bfc RD |
34059 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
34060 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
34061 | } | |
ae8162c8 RD |
34062 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
34063 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
34064 | } | |
8ac8dba0 RD |
34065 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
34066 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
34067 | } | |
d55e5bfc RD |
34068 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
34069 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
34070 | } | |
34071 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
34072 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
34073 | } | |
34074 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
34075 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
34076 | } | |
34077 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
34078 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
34079 | } | |
34080 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
34081 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
34082 | } | |
34083 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
34084 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
34085 | } | |
34086 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
34087 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
34088 | } | |
34089 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
34090 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
34091 | } | |
34092 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
34093 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
34094 | } | |
34095 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
34096 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
34097 | } | |
34098 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
34099 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
34100 | } | |
34101 | 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}}; | |
d55e5bfc RD |
34102 | 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}}; |
34103 | 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}}; | |
34104 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8ac8dba0 | 34105 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
34106 | 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}}; |
34107 | 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}}; | |
34108 | 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}}; | |
34109 | 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}}; | |
34110 | 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}}; | |
34111 | 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}}; | |
34112 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8ac8dba0 | 34113 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
34114 | 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}}; |
34115 | 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}}; | |
34116 | 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}}; | |
34117 | 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}}; | |
34118 | 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}}; | |
34119 | 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}}; | |
34120 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 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}}; | |
34121 | 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}}; | |
34122 | 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}}; | |
34123 | 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}}; | |
34124 | 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}}; | |
34125 | 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}}; | |
34126 | 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}}; | |
34127 | 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}}; | |
34128 | 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}}; | |
34129 | 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}}; | |
34130 | 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}}; | |
34131 | 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}}; | |
ae8162c8 | 34132 | static swig_type_info _swigt__p_wxChoicebook[] = {{"_p_wxChoicebook", 0, "wxChoicebook *", 0, 0, 0, 0},{"_p_wxChoicebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
8ac8dba0 | 34133 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
34134 | 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}}; |
34135 | 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}}; | |
34136 | 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}}; | |
34137 | 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}}; | |
34138 | 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}}; | |
34139 | 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}}; | |
34140 | 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}}; | |
34141 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8ac8dba0 RD |
34142 | static swig_type_info _swigt__p_wxBookCtrlBase[] = {{"_p_wxBookCtrlBase", 0, "wxBookCtrlBase *", 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
34143 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
34144 | 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}}; |
34145 | 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}}; | |
34146 | 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}}; | |
d55e5bfc RD |
34147 | 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}}; |
34148 | 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}}; | |
34149 | 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}}; | |
34150 | 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}}; | |
34151 | 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}}; | |
34152 | 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}}; | |
34153 | 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}}; | |
34154 | 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}}; | |
34155 | 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}}; | |
34156 | 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}}; | |
34157 | 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}}; | |
34158 | 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}}; | |
34159 | 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}}; | |
34160 | 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}}; | |
34161 | 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}}; | |
34162 | 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}}; | |
34163 | 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}}; | |
34164 | 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}}; | |
34165 | 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}}; | |
34166 | 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}}; | |
34167 | 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}}; | |
ae8162c8 | 34168 | static swig_type_info _swigt__p_wxChoicebookEvent[] = {{"_p_wxChoicebookEvent", 0, "wxChoicebookEvent *", 0, 0, 0, 0},{"_p_wxChoicebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
34169 | 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}}; |
34170 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8ac8dba0 | 34171 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
34172 | 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}}; |
34173 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8ac8dba0 | 34174 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
34175 | 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}}; |
34176 | 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}}; | |
34177 | 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}}; | |
34178 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
8ac8dba0 RD |
34179 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent[] = {{"_p_wxBookCtrlBaseEvent", 0, "wxBookCtrlBaseEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
34180 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
34181 | 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}}; |
34182 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 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}}; | |
34183 | 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}}; | |
34184 | 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}}; | |
34185 | 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}}; | |
34186 | 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}}; | |
34187 | 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}}; | |
34188 | ||
34189 | static swig_type_info *swig_types_initial[] = { | |
34190 | _swigt__p_wxTextUrlEvent, | |
d55e5bfc RD |
34191 | _swigt__p_wxSizer, |
34192 | _swigt__p_wxCheckBox, | |
34193 | _swigt__p_wxPyTreeCtrl, | |
34194 | _swigt__p_wxEvent, | |
34195 | _swigt__p_wxGenericDirCtrl, | |
34196 | _swigt__p_bool, | |
34197 | _swigt__p_wxPyTreeItemData, | |
34198 | _swigt__p_wxItemContainer, | |
34199 | _swigt__p_wxPyListCtrl, | |
34200 | _swigt__p_wxDirFilterListCtrl, | |
34201 | _swigt__p_wxStaticLine, | |
34202 | _swigt__p_wxControl, | |
34203 | _swigt__p_wxPyControl, | |
34204 | _swigt__p_wxGauge, | |
34205 | _swigt__p_wxToolBarBase, | |
34206 | _swigt__p_wxFont, | |
34207 | _swigt__p_wxToggleButton, | |
34208 | _swigt__p_wxRadioButton, | |
34209 | _swigt__p_wxChoice, | |
34210 | _swigt__p_wxMemoryDC, | |
34211 | _swigt__p_wxListItemAttr, | |
34212 | _swigt__p_void, | |
34213 | _swigt__p_int, | |
34214 | _swigt__p_wxSize, | |
34215 | _swigt__p_wxDC, | |
34216 | _swigt__p_wxListView, | |
34217 | _swigt__p_wxIcon, | |
34218 | _swigt__p_wxVisualAttributes, | |
34219 | _swigt__p_wxTextCtrl, | |
34220 | _swigt__p_wxNotebook, | |
ae8162c8 | 34221 | _swigt__p_wxChoicebook, |
d55e5bfc RD |
34222 | _swigt__p_wxNotifyEvent, |
34223 | _swigt__p_wxArrayString, | |
34224 | _swigt__p_wxListbook, | |
34225 | _swigt__p_wxStaticBitmap, | |
34226 | _swigt__p_wxSlider, | |
34227 | _swigt__p_wxStaticBox, | |
34228 | _swigt__p_wxArrayInt, | |
34229 | _swigt__p_wxContextHelp, | |
34230 | _swigt__p_long, | |
8ac8dba0 | 34231 | _swigt__p_wxBookCtrlBase, |
d55e5bfc RD |
34232 | _swigt__p_wxEvtHandler, |
34233 | _swigt__p_wxListEvent, | |
34234 | _swigt__p_wxCheckListBox, | |
34235 | _swigt__p_wxListBox, | |
d55e5bfc RD |
34236 | _swigt__p_wxSpinButton, |
34237 | _swigt__p_wxButton, | |
34238 | _swigt__p_wxBitmapButton, | |
34239 | _swigt__p_wxRect, | |
34240 | _swigt__p_wxContextHelpButton, | |
34241 | _swigt__p_wxRadioBox, | |
34242 | _swigt__p_wxScrollBar, | |
34243 | _swigt__p_char, | |
34244 | _swigt__p_wxTreeItemId, | |
34245 | _swigt__p_wxComboBox, | |
34246 | _swigt__p_wxHelpEvent, | |
34247 | _swigt__p_wxListItem, | |
34248 | _swigt__p_wxNotebookSizer, | |
34249 | _swigt__p_wxSpinEvent, | |
34250 | _swigt__p_wxGenericDragImage, | |
34251 | _swigt__p_wxSpinCtrl, | |
34252 | _swigt__p_wxImageList, | |
34253 | _swigt__p_wxHelpProvider, | |
34254 | _swigt__p_wxTextAttr, | |
34255 | _swigt__p_wxSimpleHelpProvider, | |
34256 | _swigt__p_wxPoint, | |
ae8162c8 | 34257 | _swigt__p_wxChoicebookEvent, |
d55e5bfc RD |
34258 | _swigt__p_wxListbookEvent, |
34259 | _swigt__p_wxNotebookEvent, | |
34260 | _swigt__p_wxObject, | |
34261 | _swigt__p_wxCursor, | |
34262 | _swigt__p_wxKeyEvent, | |
34263 | _swigt__p_wxWindow, | |
34264 | _swigt__p_wxString, | |
34265 | _swigt__p_wxBitmap, | |
34266 | _swigt__p_wxTreeEvent, | |
34267 | _swigt__p_wxMouseEvent, | |
8ac8dba0 | 34268 | _swigt__p_wxBookCtrlBaseEvent, |
d55e5bfc RD |
34269 | _swigt__p_wxCommandEvent, |
34270 | _swigt__p_wxStaticText, | |
34271 | _swigt__p_wxControlWithItems, | |
34272 | _swigt__p_wxToolBarToolBase, | |
34273 | _swigt__p_wxColour, | |
34274 | _swigt__p_wxToolBar, | |
34275 | _swigt__p_wxBookCtrlSizer, | |
34276 | _swigt__p_wxValidator, | |
34277 | 0 | |
34278 | }; | |
34279 | ||
34280 | ||
34281 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
34282 | ||
34283 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 34284 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
34285 | |
34286 | #ifdef __cplusplus | |
34287 | } | |
34288 | #endif | |
34289 | ||
34290 | #ifdef __cplusplus | |
34291 | extern "C" | |
34292 | #endif | |
34293 | SWIGEXPORT(void) SWIG_init(void) { | |
34294 | static PyObject *SWIG_globals = 0; | |
34295 | static int typeinit = 0; | |
34296 | PyObject *m, *d; | |
34297 | int i; | |
34298 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
34299 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
34300 | d = PyModule_GetDict(m); | |
34301 | ||
34302 | if (!typeinit) { | |
34303 | for (i = 0; swig_types_initial[i]; i++) { | |
34304 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
34305 | } | |
34306 | typeinit = 1; | |
34307 | } | |
34308 | SWIG_InstallConstants(d,swig_const_table); | |
34309 | ||
34310 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
34311 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
c32bde28 RD |
34312 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT)); |
34313 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP)); | |
34314 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT)); | |
34315 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM)); | |
8fb0e70a | 34316 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)wxBU_ALIGN_MASK)); |
c32bde28 RD |
34317 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT)); |
34318 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW)); | |
d55e5bfc | 34319 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
c32bde28 RD |
34320 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE)); |
34321 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE)); | |
34322 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
34323 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED)); | |
34324 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED)); | |
34325 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED)); | |
d55e5bfc RD |
34326 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
34327 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
34328 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
c32bde28 RD |
34329 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL)); |
34330 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL)); | |
34331 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH)); | |
34332 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR)); | |
d55e5bfc RD |
34333 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
34334 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
34335 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
34336 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
34337 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
c32bde28 RD |
34338 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL)); |
34339 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL)); | |
34340 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY)); | |
34341 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE)); | |
34342 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB)); | |
34343 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT)); | |
34344 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER)); | |
34345 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT)); | |
34346 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE)); | |
34347 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH)); | |
34348 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER)); | |
34349 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD)); | |
34350 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL)); | |
34351 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL)); | |
34352 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP)); | |
34353 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP)); | |
34354 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP)); | |
34355 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2)); | |
34356 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
34357 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT)); | |
34358 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE)); | |
34359 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER)); | |
34360 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT)); | |
34361 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
34362 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
34363 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
34364 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE)); | |
34365 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE)); | |
34366 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
34367 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC)); | |
34368 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
34369 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT)); | |
34370 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT)); | |
34371 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT)); | |
34372 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
34373 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS)); | |
34374 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN)); | |
34375 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE)); | |
34376 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT)); | |
34377 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW)); | |
34378 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND)); | |
d55e5bfc RD |
34379 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
34380 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
34381 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
34382 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
34383 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
34384 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
34385 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
c32bde28 RD |
34386 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL)); |
34387 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL)); | |
34388 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS)); | |
34389 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP)); | |
d55e5bfc RD |
34390 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
34391 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
34392 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
34393 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
34394 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
34395 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
34396 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
c32bde28 RD |
34397 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH)); |
34398 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP)); | |
34399 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT)); | |
34400 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT)); | |
34401 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM)); | |
34402 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE)); | |
34403 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE)); | |
34404 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON)); | |
34405 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL)); | |
34406 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM)); | |
d55e5bfc RD |
34407 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
34408 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
34409 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT)); |
34410 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP)); | |
34411 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM)); | |
34412 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT)); | |
34413 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT)); | |
34414 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK)); | |
d55e5bfc RD |
34415 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
34416 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
ae8162c8 RD |
34417 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)wxCHB_DEFAULT)); |
34418 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)wxCHB_TOP)); | |
34419 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)wxCHB_BOTTOM)); | |
34420 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)wxCHB_LEFT)); | |
34421 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)wxCHB_RIGHT)); | |
34422 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)wxCHB_ALIGN_MASK)); | |
34423 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
34424 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
34425 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON)); |
34426 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR)); | |
34427 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL)); | |
34428 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL)); | |
34429 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL)); | |
34430 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS)); | |
34431 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT)); | |
34432 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE)); | |
34433 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS)); | |
34434 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT)); | |
34435 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER)); | |
34436 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN)); | |
34437 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT)); | |
34438 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT)); | |
d55e5bfc | 34439 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
c32bde28 RD |
34440 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES)); |
34441 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES)); | |
34442 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON)); | |
34443 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON)); | |
34444 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST)); | |
34445 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT)); | |
34446 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP)); | |
34447 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT)); | |
34448 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE)); | |
34449 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL)); | |
34450 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS)); | |
34451 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER)); | |
34452 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER)); | |
34453 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL)); | |
34454 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING)); | |
34455 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING)); | |
34456 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE)); | |
34457 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN)); | |
34458 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT)); | |
34459 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE)); | |
34460 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT)); | |
34461 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE)); | |
34462 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA)); | |
34463 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM)); | |
34464 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH)); | |
34465 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT)); | |
34466 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE)); | |
34467 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED)); | |
34468 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED)); | |
34469 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED)); | |
34470 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT)); | |
34471 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED)); | |
34472 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED)); | |
34473 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE)); | |
34474 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED)); | |
34475 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE)); | |
34476 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE)); | |
34477 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW)); | |
34478 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE)); | |
34479 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON)); | |
34480 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL)); | |
34481 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
34482 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
34483 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT)); | |
34484 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT)); | |
34485 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM)); | |
34486 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE)); | |
34487 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL)); | |
34488 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW)); | |
34489 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT)); | |
34490 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT)); | |
34491 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT)); | |
34492 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT)); | |
34493 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP)); | |
34494 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
34495 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT)); | |
34496 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT)); | |
34497 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE)); | |
34498 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER)); | |
34499 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE)); | |
34500 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER)); | |
34501 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS)); | |
34502 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON)); | |
34503 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL)); | |
34504 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP)); | |
34505 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN)); | |
34506 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT)); | |
34507 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT)); | |
d55e5bfc RD |
34508 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
34509 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
34510 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
34511 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
34512 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
34513 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
34514 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
34515 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
34516 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
34517 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
34518 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
34519 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
34520 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
34521 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
34522 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
34523 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
34524 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
34525 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
34526 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
34527 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
34528 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
34529 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
34530 | ||
34531 | // Map renamed classes back to their common name for OOR | |
34532 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
34533 | ||
34534 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
c32bde28 RD |
34535 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS)); |
34536 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS)); | |
34537 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES)); | |
34538 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT)); | |
34539 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE)); | |
34540 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE)); | |
34541 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED)); | |
34542 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
34543 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS)); | |
34544 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT)); | |
34545 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES)); | |
34546 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
34547 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE)); | |
34548 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS)); | |
34549 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS)); | |
34550 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS)); | |
34551 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal)); | |
34552 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected)); | |
34553 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded)); | |
34554 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded)); | |
34555 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max)); | |
34556 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE)); | |
34557 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW)); | |
34558 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE)); | |
34559 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
34560 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON)); | |
34561 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT)); | |
34562 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL)); | |
34563 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
34564 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
34565 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT)); | |
34566 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT)); | |
34567 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
34568 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
34569 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM)); | |
d55e5bfc RD |
34570 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
34571 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
34572 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
34573 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
34574 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
34575 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
34576 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
34577 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
34578 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
34579 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
34580 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
34581 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
34582 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
34583 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
34584 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
34585 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
34586 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
34587 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
34588 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
34589 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
34590 | ||
34591 | // Map renamed classes back to their common name for OOR | |
34592 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
34593 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
34594 | ||
34595 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
c32bde28 RD |
34596 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY)); |
34597 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST)); | |
34598 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS)); | |
34599 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL)); | |
34600 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS)); | |
34601 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP)); | |
34602 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP)); | |
d55e5bfc RD |
34603 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
34604 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
34605 | ||
34606 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
34607 | ||
34608 | } | |
34609 |