]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
9d1d5697 | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
58203fa6 RD |
212 | #define SWIGTYPE_p_wxCheckBox swig_types[3] |
213 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
214 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
215 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
216 | #define SWIGTYPE_p_bool swig_types[7] | |
217 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
218 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
74a57fcd RD |
219 | #define SWIGTYPE_p_wxPyListCtrl swig_types[10] |
220 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] | |
58203fa6 RD |
221 | #define SWIGTYPE_p_wxStaticLine swig_types[12] |
222 | #define SWIGTYPE_p_wxControl swig_types[13] | |
223 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
224 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
225 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
226 | #define SWIGTYPE_p_wxFont swig_types[17] | |
227 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
228 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
229 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
230 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
231 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
232 | #define SWIGTYPE_p_void swig_types[23] | |
233 | #define SWIGTYPE_p_int swig_types[24] | |
234 | #define SWIGTYPE_p_wxSize swig_types[25] | |
235 | #define SWIGTYPE_p_wxDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxListView swig_types[27] | |
237 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
74a57fcd RD |
238 | #define SWIGTYPE_p_wxVisualAttributes swig_types[29] |
239 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
240 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
241 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
242 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
243 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
244 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
245 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
246 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
247 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
248 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
249 | #define SWIGTYPE_p_long swig_types[40] | |
250 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
251 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
58203fa6 | 252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] |
74a57fcd RD |
253 | #define SWIGTYPE_p_wxListBox swig_types[44] |
254 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
255 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
256 | #define SWIGTYPE_p_wxButton swig_types[47] | |
257 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
260 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
261 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
262 | #define SWIGTYPE_p_char swig_types[53] | |
263 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
264 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
265 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
266 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
267 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
268 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
269 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
270 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
271 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
272 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
273 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
274 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
275 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
276 | #define SWIGTYPE_p_wxListbookEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxNotebookEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxObject swig_types[69] | |
279 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
280 | #define SWIGTYPE_p_wxKeyEvent swig_types[71] | |
281 | #define SWIGTYPE_p_wxWindow swig_types[72] | |
282 | #define SWIGTYPE_p_wxString swig_types[73] | |
283 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
284 | #define SWIGTYPE_p_wxTreeEvent swig_types[75] | |
285 | #define SWIGTYPE_p_wxMouseEvent swig_types[76] | |
286 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
287 | #define SWIGTYPE_p_wxStaticText swig_types[78] | |
288 | #define SWIGTYPE_p_wxControlWithItems swig_types[79] | |
289 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
291 | #define SWIGTYPE_p_wxToolBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] | |
293 | #define SWIGTYPE_p_wxValidator swig_types[84] | |
294 | static swig_type_info *swig_types[86]; | |
d14a1e28 RD |
295 | |
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
54f9ee45 | 300 | @(target):= _controls_.so |
d14a1e28 | 301 | ------------------------------------------------*/ |
54f9ee45 | 302 | #define SWIG_init init_controls_ |
d14a1e28 | 303 | |
54f9ee45 | 304 | #define SWIG_name "_controls_" |
d14a1e28 | 305 | |
15afbcd0 | 306 | /* Auxiliar swig macros */ |
994141e6 | 307 | |
994141e6 | 308 | #ifdef __cplusplus |
15afbcd0 | 309 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 310 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
311 | #define swig_new_array(type, size) (new type[(size)]) |
312 | #define swig_delete_array(cptr) delete[] cptr | |
313 | #define swig_const_cast(type,a) const_cast<type>(a) | |
314 | #define swig_static_cast(type,a) static_cast<type>(a) | |
315 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 316 | |
994141e6 | 317 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 319 | #else |
15afbcd0 | 320 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
321 | #endif |
322 | ||
15afbcd0 RD |
323 | #else /* C case */ |
324 | ||
325 | #define SWIGSTATICINLINE(a) static a | |
326 | #define SWIGSTATIC(a) static a | |
327 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
328 | #define swig_delete_array(cptr) free((char*)cptr) | |
329 | #define swig_const_cast(type,a) (type)(a) | |
330 | #define swig_static_cast(type,a) (type)(a) | |
331 | #define swig_reinterpret_cast(type,a) (type)(a) | |
332 | #define swig_numeric_cast(type,a) (type)(a) | |
333 | ||
334 | #endif /* __cplusplus */ | |
994141e6 RD |
335 | |
336 | ||
15afbcd0 RD |
337 | #define SWIG_FromSignedChar PyInt_FromLong |
338 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
339 | #define SWIG_FromShort PyInt_FromLong | |
340 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
341 | #define SWIG_FromInt PyInt_FromLong | |
342 | #define SWIG_FromLong PyInt_FromLong | |
343 | #define SWIG_FromFloat PyFloat_FromDouble | |
344 | #define SWIG_FromDouble PyFloat_FromDouble | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
347 | |
348 | ||
d14a1e28 RD |
349 | #include "wx/wxPython/wxPython.h" |
350 | #include "wx/wxPython/pyclasses.h" | |
351 | ||
b2dc1044 RD |
352 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
353 | static const wxString wxPyEmptyString(wxEmptyString); | |
354 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4d5c3d91 RD |
355 | |
356 | const wxArrayString wxPyEmptyStringArray; | |
357 | ||
b2dc1044 | 358 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
994141e6 | 359 | |
15afbcd0 RD |
360 | #include <limits.h> |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
69223c70 RD |
390 | if (PyNumber_Check(obj)) |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
15afbcd0 RD |
399 | } |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 405 | { |
15afbcd0 RD |
406 | return swig_numeric_cast(int, |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
994141e6 | 409 | } |
15afbcd0 RD |
410 | #else |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
994141e6 RD |
413 | |
414 | ||
15afbcd0 RD |
415 | SWIGSTATICINLINE(int) |
416 | SWIG_CheckInt(PyObject* obj) | |
994141e6 | 417 | { |
15afbcd0 RD |
418 | SWIG_AsInt(obj); |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
994141e6 RD |
438 | } |
439 | ||
b2dc1044 | 440 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
994141e6 | 441 | |
15afbcd0 RD |
442 | SWIGSTATICINLINE(bool) |
443 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
444 | { |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
15afbcd0 RD |
448 | |
449 | SWIGSTATICINLINE(int) | |
450 | SWIG_CheckBool(PyObject* obj) | |
451 | { | |
452 | SWIG_AsBool(obj); | |
453 | if (PyErr_Occurred()) { | |
454 | PyErr_Clear(); | |
455 | return 0; | |
456 | } else { | |
457 | return 1; | |
458 | } | |
459 | } | |
460 | ||
b2dc1044 RD |
461 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
462 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
463 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
464 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
465 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
466 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
467 | |
468 | #include <wx/checklst.h> | |
469 | ||
d14a1e28 | 470 | |
b2dc1044 | 471 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
472 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
473 | if (clientData) { | |
474 | wxPyClientData* data = new wxPyClientData(clientData); | |
475 | self->Insert(item, pos, data); | |
476 | } else | |
477 | self->Insert(item, pos); | |
478 | } | |
479 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
480 | wxArrayInt lst; | |
481 | self->GetSelections(lst); | |
482 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
483 | for(size_t i=0; i<lst.GetCount(); i++) { | |
484 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
485 | } | |
486 | return tup; | |
487 | } | |
c3eb6258 RD |
488 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
489 | #ifdef __WXMSW__ | |
490 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
491 | self->GetItem(item)->SetTextColour(c); | |
492 | #endif | |
493 | } | |
494 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
495 | #ifdef __WXMSW__ | |
496 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
497 | self->GetItem(item)->SetBackgroundColour(c); | |
498 | #endif | |
499 | } | |
500 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
501 | #ifdef __WXMSW__ | |
502 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
503 | self->GetItem(item)->SetFont(f); | |
504 | #endif | |
505 | } | |
b2dc1044 | 506 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
507 | |
508 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
509 | PyObject* o2; | |
510 | PyObject* o3; | |
511 | ||
512 | if (!target) { | |
513 | target = o; | |
514 | } else if (target == Py_None) { | |
515 | Py_DECREF(Py_None); | |
516 | target = o; | |
517 | } else { | |
518 | if (!PyTuple_Check(target)) { | |
519 | o2 = target; | |
520 | target = PyTuple_New(1); | |
521 | PyTuple_SetItem(target, 0, o2); | |
522 | } | |
523 | o3 = PyTuple_New(1); | |
524 | PyTuple_SetItem(o3, 0, o); | |
525 | ||
526 | o2 = target; | |
527 | target = PySequence_Concat(o2, o3); | |
528 | Py_DECREF(o2); | |
529 | Py_DECREF(o3); | |
530 | } | |
531 | return target; | |
532 | } | |
533 | ||
15afbcd0 RD |
534 | |
535 | SWIGSTATICINLINE(unsigned long) | |
536 | SWIG_AsUnsignedLong(PyObject * obj) | |
537 | { | |
538 | if (PyLong_Check(obj)) { | |
539 | return PyLong_AsUnsignedLong(obj); | |
540 | } else { | |
69223c70 | 541 | long i = SWIG_AsLong(obj); |
15afbcd0 | 542 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 543 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
544 | } |
545 | return i; | |
546 | } | |
547 | } | |
548 | ||
549 | ||
550 | SWIGSTATICINLINE(int) | |
551 | SWIG_CheckUnsignedLong(PyObject* obj) | |
552 | { | |
553 | SWIG_AsUnsignedLong(obj); | |
554 | if (PyErr_Occurred()) { | |
555 | PyErr_Clear(); | |
556 | return 0; | |
557 | } else { | |
558 | return 1; | |
559 | } | |
560 | } | |
561 | ||
d14a1e28 RD |
562 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
563 | self->AppendText(text); | |
564 | } | |
565 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
566 | return self->GetValue().Mid(from, to - from); | |
567 | } | |
b2dc1044 RD |
568 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
569 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 570 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
571 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
572 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
573 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
574 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
575 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
576 | ||
577 | #include <wx/slider.h> | |
578 | ||
d14a1e28 | 579 | |
b2dc1044 | 580 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 581 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 582 | |
15afbcd0 RD |
583 | #if !wxUSE_TOGGLEBTN |
584 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
585 | |
586 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
587 | ||
588 | class wxToggleButton : public wxControl | |
589 | { | |
590 | public: | |
591 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
592 | const wxPoint&, const wxSize&, long, | |
593 | const wxValidator&, const wxString&) | |
39f61e25 | 594 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
595 | |
596 | wxToggleButton() | |
39f61e25 | 597 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
598 | }; |
599 | #endif | |
600 | ||
b2dc1044 | 601 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
994141e6 | 602 | |
15afbcd0 RD |
603 | SWIGSTATICINLINE(PyObject* ) |
604 | SWIG_FromUnsignedLong(unsigned long value) | |
994141e6 | 605 | { |
15afbcd0 RD |
606 | return (value > LONG_MAX) ? |
607 | PyLong_FromUnsignedLong(value) | |
608 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
994141e6 RD |
609 | } |
610 | ||
b2dc1044 | 611 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
612 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
613 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
614 | if (udata) { | |
615 | Py_INCREF(udata->m_obj); | |
616 | return udata->m_obj; | |
617 | } else { | |
618 | Py_INCREF(Py_None); | |
619 | return Py_None; | |
620 | } | |
621 | } | |
622 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
623 | self->SetClientData(new wxPyUserData(clientData)); | |
624 | } | |
625 | wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
626 | wxPyUserData* udata = NULL; | |
627 | if (clientData && clientData != Py_None) | |
628 | udata = new wxPyUserData(clientData); | |
629 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
630 | shortHelp, longHelp, udata); | |
631 | } | |
632 | wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
633 | wxPyUserData* udata = NULL; | |
634 | if (clientData && clientData != Py_None) | |
635 | udata = new wxPyUserData(clientData); | |
636 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
637 | shortHelp, longHelp, udata); | |
638 | } | |
639 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
640 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
641 | if (udata) { | |
642 | Py_INCREF(udata->m_obj); | |
643 | return udata->m_obj; | |
644 | } else { | |
645 | Py_INCREF(Py_None); | |
646 | return Py_None; | |
647 | } | |
648 | } | |
649 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
650 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
651 | } | |
652 | ||
653 | #include <wx/listctrl.h> | |
654 | ||
d14a1e28 | 655 | |
33b885b9 | 656 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
657 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
658 | // Python aware sorting function for wxPyListCtrl | |
659 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
660 | int retval = 0; | |
661 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 662 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
663 | |
664 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
665 | PyObject* result = PyEval_CallObject(func, args); | |
666 | Py_DECREF(args); | |
667 | if (result) { | |
668 | retval = PyInt_AsLong(result); | |
669 | Py_DECREF(result); | |
670 | } | |
671 | ||
4f89f6a3 | 672 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
673 | return retval; |
674 | } | |
675 | ||
676 | // C++ Version of a Python aware class | |
677 | class wxPyListCtrl : public wxListCtrl { | |
678 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
679 | public: | |
680 | wxPyListCtrl() : wxListCtrl() {} | |
681 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
682 | const wxPoint& pos, | |
683 | const wxSize& size, | |
684 | long style, | |
685 | const wxValidator& validator, | |
686 | const wxString& name) : | |
687 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
688 | ||
689 | bool Create(wxWindow* parent, wxWindowID id, | |
690 | const wxPoint& pos, | |
691 | const wxSize& size, | |
692 | long style, | |
693 | const wxValidator& validator, | |
694 | const wxString& name) { | |
695 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
696 | } | |
697 | ||
698 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
699 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
700 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
701 | ||
702 | PYPRIVATE; | |
703 | }; | |
704 | ||
705 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
706 | ||
707 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
708 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
709 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
710 | ||
711 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
712 | wxListItem item; | |
713 | item.SetMask( wxLIST_MASK_STATE | | |
714 | wxLIST_MASK_TEXT | | |
715 | wxLIST_MASK_IMAGE | | |
716 | wxLIST_MASK_DATA | | |
717 | wxLIST_SET_ITEM | | |
718 | wxLIST_MASK_WIDTH | | |
719 | wxLIST_MASK_FORMAT | |
720 | ); | |
721 | if (self->GetColumn(col, item)) | |
722 | return new wxListItem(item); | |
723 | else | |
724 | return NULL; | |
725 | } | |
726 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
727 | wxListItem* info = new wxListItem; | |
728 | info->m_itemId = itemId; | |
729 | info->m_col = col; | |
730 | info->m_mask = 0xFFFF; | |
731 | self->GetItem(*info); | |
732 | return info; | |
733 | } | |
734 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
735 | wxPoint pos; | |
736 | self->GetItemPosition(item, pos); | |
737 | return pos; | |
738 | } | |
739 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
740 | wxRect rect; | |
741 | self->GetItemRect(item, rect, code); | |
742 | return rect; | |
743 | } | |
744 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
745 | if (!PyCallable_Check(func)) | |
e811c8ce | 746 | return False; |
d14a1e28 RD |
747 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
748 | } | |
749 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
750 | ||
751 | ||
752 | ||
753 | return (wxWindow*)self->m_mainWin; | |
754 | ||
755 | } | |
756 | ||
757 | #include <wx/treectrl.h> | |
758 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 759 | |
33b885b9 | 760 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
22faec7d RD |
761 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
762 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
763 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
764 | // C++ version of Python aware wxTreeCtrl | |
765 | class wxPyTreeCtrl : public wxTreeCtrl { | |
766 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
767 | public: | |
768 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
769 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
770 | const wxPoint& pos, | |
771 | const wxSize& size, | |
772 | long style, | |
773 | const wxValidator& validator, | |
774 | const wxString& name) : | |
775 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
776 | ||
777 | bool Create(wxWindow *parent, wxWindowID id, | |
778 | const wxPoint& pos, | |
779 | const wxSize& size, | |
780 | long style, | |
781 | const wxValidator& validator, | |
782 | const wxString& name) { | |
783 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
784 | } | |
785 | ||
786 | ||
787 | int OnCompareItems(const wxTreeItemId& item1, | |
788 | const wxTreeItemId& item2) { | |
789 | int rval = 0; | |
790 | bool found; | |
4f89f6a3 | 791 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 792 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
e811c8ce RD |
793 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
794 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
795 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
796 | Py_DECREF(o1); | |
797 | Py_DECREF(o2); | |
798 | } | |
4f89f6a3 | 799 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
800 | if (! found) |
801 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
802 | return rval; | |
803 | } | |
804 | PYPRIVATE; | |
805 | }; | |
806 | ||
807 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
808 | ||
809 | ||
994141e6 | 810 | |
15afbcd0 RD |
811 | #if UINT_MAX < LONG_MAX |
812 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
813 | #else | |
814 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
815 | #endif | |
816 | ||
817 | ||
818 | SWIGSTATICINLINE(unsigned long) | |
819 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
820 | unsigned long max_value) | |
821 | { | |
822 | if (!PyErr_Occurred()) { | |
823 | if (value > max_value) { | |
824 | PyObject *err = | |
825 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
826 | value, type, max_value); | |
827 | PyErr_SetObject(PyExc_OverflowError, err); | |
828 | Py_DECREF(err); | |
829 | } | |
830 | } | |
831 | return value; | |
832 | } | |
994141e6 RD |
833 | |
834 | ||
15afbcd0 RD |
835 | #if UINT_MAX != ULONG_MAX |
836 | SWIGSTATICINLINE(unsigned int) | |
837 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 838 | { |
15afbcd0 RD |
839 | return swig_numeric_cast(unsigned int, |
840 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
841 | "unsigned int", UINT_MAX)); | |
842 | } | |
843 | #else | |
844 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
845 | #endif | |
846 | ||
847 | ||
848 | SWIGSTATICINLINE(int) | |
849 | SWIG_CheckUnsignedInt(PyObject* obj) | |
850 | { | |
851 | SWIG_AsUnsignedInt(obj); | |
852 | if (PyErr_Occurred()) { | |
853 | PyErr_Clear(); | |
854 | return 0; | |
855 | } else { | |
856 | return 1; | |
857 | } | |
994141e6 RD |
858 | } |
859 | ||
d14a1e28 RD |
860 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
861 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
862 | if (data == NULL) { | |
863 | data = new wxPyTreeItemData(); | |
864 | data->SetId(item); // set the id | |
865 | self->SetItemData(item, data); | |
866 | } | |
867 | return data; | |
868 | } | |
869 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
870 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
871 | if (data == NULL) { | |
872 | data = new wxPyTreeItemData(); | |
873 | data->SetId(item); // set the id | |
874 | self->SetItemData(item, data); | |
875 | } | |
876 | return data->GetData(); | |
877 | } | |
878 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
879 | data->SetId(item); // set the id | |
880 | self->SetItemData(item, data); | |
881 | } | |
882 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
883 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
884 | if (data == NULL) { | |
885 | data = new wxPyTreeItemData(obj); | |
886 | data->SetId(item); // set the id | |
887 | self->SetItemData(item, data); | |
888 | } else | |
889 | data->SetData(obj); | |
890 | } | |
891 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 892 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
893 | PyObject* rval = PyList_New(0); |
894 | wxArrayTreeItemIds array; | |
895 | size_t num, x; | |
896 | num = self->GetSelections(array); | |
897 | for (x=0; x < num; x++) { | |
898 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
e811c8ce | 899 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
900 | PyList_Append(rval, item); |
901 | } | |
4f89f6a3 | 902 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
903 | return rval; |
904 | } | |
905 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
906 | void* cookie = 0; |
907 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 908 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 909 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
910 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
911 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 912 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
913 | return tup; |
914 | } | |
58203fa6 RD |
915 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
916 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 917 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 918 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
919 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
920 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 921 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
922 | return tup; |
923 | } | |
924 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
925 | wxRect rect; | |
926 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 927 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 928 | wxRect* r = new wxRect(rect); |
e811c8ce | 929 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
4f89f6a3 | 930 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
931 | return val; |
932 | } | |
933 | else | |
934 | RETURN_NONE(); | |
935 | } | |
b2dc1044 | 936 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
937 | // C++ version of Python aware wxControl |
938 | class wxPyControl : public wxControl | |
939 | { | |
940 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
941 | public: | |
942 | wxPyControl() : wxControl() {} | |
943 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
944 | const wxPoint& pos = wxDefaultPosition, | |
945 | const wxSize& size = wxDefaultSize, | |
946 | long style = 0, | |
947 | const wxValidator& validator=wxDefaultValidator, | |
948 | const wxString& name = wxPyControlNameStr) | |
949 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
950 | ||
db3e571a | 951 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
952 | |
953 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
954 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
955 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
956 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
957 | ||
958 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
959 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
960 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
961 | ||
962 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
963 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
964 | ||
965 | DEC_PYCALLBACK__(InitDialog); | |
966 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
967 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
968 | DEC_PYCALLBACK_BOOL_(Validate); | |
969 | ||
970 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
971 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
972 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
973 | ||
974 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
975 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
976 | ||
db3e571a | 977 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
1cb4a8aa | 978 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
db3e571a | 979 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 980 | |
d14a1e28 RD |
981 | PYPRIVATE; |
982 | }; | |
983 | ||
984 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
985 | ||
986 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
987 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
988 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
989 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
990 | ||
991 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
992 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
993 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
994 | ||
995 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
996 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
997 | ||
998 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
999 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1000 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1001 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1002 | ||
1003 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1004 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1005 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1006 | ||
1007 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1008 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1009 | ||
db3e571a | 1010 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
1cb4a8aa | 1011 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
db3e571a | 1012 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 RD |
1013 | |
1014 | ||
1015 | ||
1016 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
1017 | |
1018 | #include <wx/generic/dragimgg.h> | |
1019 | ||
d14a1e28 RD |
1020 | #ifdef __cplusplus |
1021 | extern "C" { | |
1022 | #endif | |
b2dc1044 RD |
1023 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
1024 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1025 | return 1; | |
1026 | } | |
1027 | ||
1028 | ||
1029 | static PyObject *_wrap_ButtonNameStr_get() { | |
1030 | PyObject *pyobj; | |
1031 | ||
1032 | { | |
1033 | #if wxUSE_UNICODE | |
1034 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1035 | #else | |
1036 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1037 | #endif | |
1038 | } | |
1039 | return pyobj; | |
1040 | } | |
1041 | ||
1042 | ||
d14a1e28 RD |
1043 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
1044 | PyObject *resultobj; | |
1045 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1046 | int arg2 ; |
d14a1e28 RD |
1047 | wxString *arg3 = 0 ; |
1048 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1049 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1050 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1051 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1052 | long arg6 = (long) 0 ; | |
1053 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1054 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1055 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1056 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1057 | wxButton *result; | |
e811c8ce | 1058 | bool temp3 = False ; |
d14a1e28 RD |
1059 | wxPoint temp4 ; |
1060 | wxSize temp5 ; | |
e811c8ce | 1061 | bool temp8 = False ; |
d14a1e28 | 1062 | PyObject * obj0 = 0 ; |
994141e6 | 1063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1064 | PyObject * obj2 = 0 ; |
1065 | PyObject * obj3 = 0 ; | |
1066 | PyObject * obj4 = 0 ; | |
994141e6 | 1067 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1068 | PyObject * obj6 = 0 ; |
1069 | PyObject * obj7 = 0 ; | |
1070 | char *kwnames[] = { | |
1071 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1072 | }; | |
1073 | ||
994141e6 | 1074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1077 | arg2 = (int) SWIG_AsInt(obj1); | |
1078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1079 | { |
1080 | arg3 = wxString_in_helper(obj2); | |
1081 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 1082 | temp3 = True; |
d14a1e28 RD |
1083 | } |
1084 | if (obj3) { | |
1085 | { | |
1086 | arg4 = &temp4; | |
1087 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1088 | } | |
1089 | } | |
1090 | if (obj4) { | |
1091 | { | |
1092 | arg5 = &temp5; | |
1093 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1094 | } | |
1095 | } | |
994141e6 | 1096 | if (obj5) { |
15afbcd0 RD |
1097 | arg6 = (long) SWIG_AsLong(obj5); |
1098 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1099 | } |
d14a1e28 | 1100 | if (obj6) { |
15afbcd0 RD |
1101 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1102 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1103 | SWIG_fail; | |
d14a1e28 | 1104 | if (arg7 == NULL) { |
15afbcd0 RD |
1105 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1106 | SWIG_fail; | |
d14a1e28 RD |
1107 | } |
1108 | } | |
1109 | if (obj7) { | |
1110 | { | |
1111 | arg8 = wxString_in_helper(obj7); | |
1112 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1113 | temp8 = True; |
d14a1e28 RD |
1114 | } |
1115 | } | |
1116 | { | |
1117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1118 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1119 | ||
1120 | wxPyEndAllowThreads(__tstate); | |
1121 | if (PyErr_Occurred()) SWIG_fail; | |
1122 | } | |
1123 | { | |
1124 | resultobj = wxPyMake_wxObject(result); | |
1125 | } | |
1126 | { | |
1127 | if (temp3) | |
1128 | delete arg3; | |
1129 | } | |
1130 | { | |
1131 | if (temp8) | |
1132 | delete arg8; | |
1133 | } | |
1134 | return resultobj; | |
1135 | fail: | |
1136 | { | |
1137 | if (temp3) | |
1138 | delete arg3; | |
1139 | } | |
1140 | { | |
1141 | if (temp8) | |
1142 | delete arg8; | |
1143 | } | |
1144 | return NULL; | |
1145 | } | |
1146 | ||
1147 | ||
1148 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1149 | PyObject *resultobj; | |
1150 | wxButton *result; | |
1151 | char *kwnames[] = { | |
1152 | NULL | |
1153 | }; | |
1154 | ||
1155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1156 | { | |
1157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1158 | result = (wxButton *)new wxButton(); | |
1159 | ||
1160 | wxPyEndAllowThreads(__tstate); | |
1161 | if (PyErr_Occurred()) SWIG_fail; | |
1162 | } | |
1163 | { | |
1164 | resultobj = wxPyMake_wxObject(result); | |
1165 | } | |
1166 | return resultobj; | |
1167 | fail: | |
1168 | return NULL; | |
1169 | } | |
1170 | ||
1171 | ||
1172 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1173 | PyObject *resultobj; | |
1174 | wxButton *arg1 = (wxButton *) 0 ; | |
1175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1176 | int arg3 ; |
d14a1e28 RD |
1177 | wxString *arg4 = 0 ; |
1178 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1179 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1180 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1181 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1182 | long arg7 = (long) 0 ; | |
1183 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1184 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1185 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1186 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1187 | bool result; | |
e811c8ce | 1188 | bool temp4 = False ; |
d14a1e28 RD |
1189 | wxPoint temp5 ; |
1190 | wxSize temp6 ; | |
e811c8ce | 1191 | bool temp9 = False ; |
d14a1e28 RD |
1192 | PyObject * obj0 = 0 ; |
1193 | PyObject * obj1 = 0 ; | |
994141e6 | 1194 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1195 | PyObject * obj3 = 0 ; |
1196 | PyObject * obj4 = 0 ; | |
1197 | PyObject * obj5 = 0 ; | |
994141e6 | 1198 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1199 | PyObject * obj7 = 0 ; |
1200 | PyObject * obj8 = 0 ; | |
1201 | char *kwnames[] = { | |
1202 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1203 | }; | |
1204 | ||
994141e6 | 1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1210 | arg3 = (int) SWIG_AsInt(obj2); | |
1211 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1212 | { |
1213 | arg4 = wxString_in_helper(obj3); | |
1214 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 1215 | temp4 = True; |
d14a1e28 RD |
1216 | } |
1217 | if (obj4) { | |
1218 | { | |
1219 | arg5 = &temp5; | |
1220 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1221 | } | |
1222 | } | |
1223 | if (obj5) { | |
1224 | { | |
1225 | arg6 = &temp6; | |
1226 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1227 | } | |
1228 | } | |
994141e6 | 1229 | if (obj6) { |
15afbcd0 RD |
1230 | arg7 = (long) SWIG_AsLong(obj6); |
1231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1232 | } |
d14a1e28 | 1233 | if (obj7) { |
15afbcd0 RD |
1234 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1235 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1236 | SWIG_fail; | |
d14a1e28 | 1237 | if (arg8 == NULL) { |
15afbcd0 RD |
1238 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1239 | SWIG_fail; | |
d14a1e28 RD |
1240 | } |
1241 | } | |
1242 | if (obj8) { | |
1243 | { | |
1244 | arg9 = wxString_in_helper(obj8); | |
1245 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1246 | temp9 = True; |
d14a1e28 RD |
1247 | } |
1248 | } | |
1249 | { | |
1250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1251 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1252 | ||
1253 | wxPyEndAllowThreads(__tstate); | |
1254 | if (PyErr_Occurred()) SWIG_fail; | |
1255 | } | |
4f89f6a3 RD |
1256 | { |
1257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1258 | } | |
d14a1e28 RD |
1259 | { |
1260 | if (temp4) | |
1261 | delete arg4; | |
1262 | } | |
1263 | { | |
1264 | if (temp9) | |
1265 | delete arg9; | |
1266 | } | |
1267 | return resultobj; | |
1268 | fail: | |
1269 | { | |
1270 | if (temp4) | |
1271 | delete arg4; | |
1272 | } | |
1273 | { | |
1274 | if (temp9) | |
1275 | delete arg9; | |
1276 | } | |
1277 | return NULL; | |
1278 | } | |
1279 | ||
1280 | ||
1281 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1282 | PyObject *resultobj; | |
1283 | wxButton *arg1 = (wxButton *) 0 ; | |
1284 | PyObject * obj0 = 0 ; | |
1285 | char *kwnames[] = { | |
1286 | (char *) "self", NULL | |
1287 | }; | |
1288 | ||
1289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1292 | { |
1293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1294 | (arg1)->SetDefault(); | |
1295 | ||
1296 | wxPyEndAllowThreads(__tstate); | |
1297 | if (PyErr_Occurred()) SWIG_fail; | |
1298 | } | |
1299 | Py_INCREF(Py_None); resultobj = Py_None; | |
1300 | return resultobj; | |
1301 | fail: | |
1302 | return NULL; | |
1303 | } | |
1304 | ||
1305 | ||
1306 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1307 | PyObject *resultobj; | |
1308 | wxSize result; | |
1309 | char *kwnames[] = { | |
1310 | NULL | |
1311 | }; | |
1312 | ||
1313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1314 | { | |
1315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1316 | result = wxButton::GetDefaultSize(); | |
1317 | ||
1318 | wxPyEndAllowThreads(__tstate); | |
1319 | if (PyErr_Occurred()) SWIG_fail; | |
1320 | } | |
1321 | { | |
1322 | wxSize * resultptr; | |
1323 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1325 | } |
1326 | return resultobj; | |
1327 | fail: | |
1328 | return NULL; | |
1329 | } | |
1330 | ||
1331 | ||
22bfe96c RD |
1332 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1333 | PyObject *resultobj; | |
1334 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1335 | wxVisualAttributes result; | |
1336 | PyObject * obj0 = 0 ; | |
1337 | char *kwnames[] = { | |
1338 | (char *) "variant", NULL | |
1339 | }; | |
1340 | ||
1341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1342 | if (obj0) { | |
1343 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1344 | if (PyErr_Occurred()) SWIG_fail; | |
1345 | } | |
1346 | { | |
1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1348 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1349 | ||
1350 | wxPyEndAllowThreads(__tstate); | |
1351 | if (PyErr_Occurred()) SWIG_fail; | |
1352 | } | |
1353 | { | |
1354 | wxVisualAttributes * resultptr; | |
1355 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1356 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1357 | } | |
1358 | return resultobj; | |
1359 | fail: | |
1360 | return NULL; | |
1361 | } | |
1362 | ||
1363 | ||
d14a1e28 RD |
1364 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { |
1365 | PyObject *obj; | |
1366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1367 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1368 | Py_INCREF(obj); | |
1369 | return Py_BuildValue((char *)""); | |
1370 | } | |
1371 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1372 | PyObject *resultobj; | |
1373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1374 | int arg2 ; |
d14a1e28 RD |
1375 | wxBitmap *arg3 = 0 ; |
1376 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1377 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1378 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1379 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1380 | long arg6 = (long) wxBU_AUTODRAW ; | |
1381 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1382 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1383 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1384 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1385 | wxBitmapButton *result; | |
1386 | wxPoint temp4 ; | |
1387 | wxSize temp5 ; | |
e811c8ce | 1388 | bool temp8 = False ; |
d14a1e28 | 1389 | PyObject * obj0 = 0 ; |
994141e6 | 1390 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1391 | PyObject * obj2 = 0 ; |
1392 | PyObject * obj3 = 0 ; | |
1393 | PyObject * obj4 = 0 ; | |
994141e6 | 1394 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1395 | PyObject * obj6 = 0 ; |
1396 | PyObject * obj7 = 0 ; | |
1397 | char *kwnames[] = { | |
1398 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1399 | }; | |
1400 | ||
994141e6 | 1401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1404 | arg2 = (int) SWIG_AsInt(obj1); | |
1405 | if (PyErr_Occurred()) SWIG_fail; | |
1406 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1407 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1408 | SWIG_fail; | |
d14a1e28 | 1409 | if (arg3 == NULL) { |
15afbcd0 RD |
1410 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1411 | SWIG_fail; | |
d14a1e28 RD |
1412 | } |
1413 | if (obj3) { | |
1414 | { | |
1415 | arg4 = &temp4; | |
1416 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1417 | } | |
1418 | } | |
1419 | if (obj4) { | |
1420 | { | |
1421 | arg5 = &temp5; | |
1422 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1423 | } | |
1424 | } | |
994141e6 | 1425 | if (obj5) { |
15afbcd0 RD |
1426 | arg6 = (long) SWIG_AsLong(obj5); |
1427 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1428 | } |
d14a1e28 | 1429 | if (obj6) { |
15afbcd0 RD |
1430 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1431 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1432 | SWIG_fail; | |
d14a1e28 | 1433 | if (arg7 == NULL) { |
15afbcd0 RD |
1434 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1435 | SWIG_fail; | |
d14a1e28 RD |
1436 | } |
1437 | } | |
1438 | if (obj7) { | |
1439 | { | |
1440 | arg8 = wxString_in_helper(obj7); | |
1441 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1442 | temp8 = True; |
d14a1e28 RD |
1443 | } |
1444 | } | |
1445 | { | |
1446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1447 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1448 | ||
1449 | wxPyEndAllowThreads(__tstate); | |
1450 | if (PyErr_Occurred()) SWIG_fail; | |
1451 | } | |
1452 | { | |
1453 | resultobj = wxPyMake_wxObject(result); | |
1454 | } | |
1455 | { | |
1456 | if (temp8) | |
1457 | delete arg8; | |
1458 | } | |
1459 | return resultobj; | |
1460 | fail: | |
1461 | { | |
1462 | if (temp8) | |
1463 | delete arg8; | |
1464 | } | |
1465 | return NULL; | |
1466 | } | |
1467 | ||
1468 | ||
1469 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1470 | PyObject *resultobj; | |
1471 | wxBitmapButton *result; | |
1472 | char *kwnames[] = { | |
1473 | NULL | |
1474 | }; | |
1475 | ||
1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1477 | { | |
1478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1479 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1480 | ||
1481 | wxPyEndAllowThreads(__tstate); | |
1482 | if (PyErr_Occurred()) SWIG_fail; | |
1483 | } | |
1484 | { | |
1485 | resultobj = wxPyMake_wxObject(result); | |
1486 | } | |
1487 | return resultobj; | |
1488 | fail: | |
1489 | return NULL; | |
1490 | } | |
1491 | ||
1492 | ||
1493 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1494 | PyObject *resultobj; | |
1495 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1496 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1497 | int arg3 ; |
d14a1e28 RD |
1498 | wxBitmap *arg4 = 0 ; |
1499 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1500 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1501 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1502 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1503 | long arg7 = (long) wxBU_AUTODRAW ; | |
1504 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1505 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1506 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1507 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1508 | bool result; | |
1509 | wxPoint temp5 ; | |
1510 | wxSize temp6 ; | |
e811c8ce | 1511 | bool temp9 = False ; |
d14a1e28 RD |
1512 | PyObject * obj0 = 0 ; |
1513 | PyObject * obj1 = 0 ; | |
994141e6 | 1514 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1515 | PyObject * obj3 = 0 ; |
1516 | PyObject * obj4 = 0 ; | |
1517 | PyObject * obj5 = 0 ; | |
994141e6 | 1518 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1519 | PyObject * obj7 = 0 ; |
1520 | PyObject * obj8 = 0 ; | |
1521 | char *kwnames[] = { | |
1522 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1523 | }; | |
1524 | ||
994141e6 | 1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1530 | arg3 = (int) SWIG_AsInt(obj2); | |
1531 | if (PyErr_Occurred()) SWIG_fail; | |
1532 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1534 | SWIG_fail; | |
d14a1e28 | 1535 | if (arg4 == NULL) { |
15afbcd0 RD |
1536 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1537 | SWIG_fail; | |
d14a1e28 RD |
1538 | } |
1539 | if (obj4) { | |
1540 | { | |
1541 | arg5 = &temp5; | |
1542 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1543 | } | |
1544 | } | |
1545 | if (obj5) { | |
1546 | { | |
1547 | arg6 = &temp6; | |
1548 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1549 | } | |
1550 | } | |
994141e6 | 1551 | if (obj6) { |
15afbcd0 RD |
1552 | arg7 = (long) SWIG_AsLong(obj6); |
1553 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1554 | } |
d14a1e28 | 1555 | if (obj7) { |
15afbcd0 RD |
1556 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1557 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1558 | SWIG_fail; | |
d14a1e28 | 1559 | if (arg8 == NULL) { |
15afbcd0 RD |
1560 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1561 | SWIG_fail; | |
d14a1e28 RD |
1562 | } |
1563 | } | |
1564 | if (obj8) { | |
1565 | { | |
1566 | arg9 = wxString_in_helper(obj8); | |
1567 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1568 | temp9 = True; |
d14a1e28 RD |
1569 | } |
1570 | } | |
1571 | { | |
1572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1573 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1574 | ||
1575 | wxPyEndAllowThreads(__tstate); | |
1576 | if (PyErr_Occurred()) SWIG_fail; | |
1577 | } | |
4f89f6a3 RD |
1578 | { |
1579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1580 | } | |
d14a1e28 RD |
1581 | { |
1582 | if (temp9) | |
1583 | delete arg9; | |
1584 | } | |
1585 | return resultobj; | |
1586 | fail: | |
1587 | { | |
1588 | if (temp9) | |
1589 | delete arg9; | |
1590 | } | |
1591 | return NULL; | |
1592 | } | |
1593 | ||
1594 | ||
1595 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1596 | PyObject *resultobj; | |
1597 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1598 | wxBitmap result; | |
1599 | PyObject * obj0 = 0 ; | |
1600 | char *kwnames[] = { | |
1601 | (char *) "self", NULL | |
1602 | }; | |
1603 | ||
1604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1607 | { |
1608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1609 | result = (arg1)->GetBitmapLabel(); | |
1610 | ||
1611 | wxPyEndAllowThreads(__tstate); | |
1612 | if (PyErr_Occurred()) SWIG_fail; | |
1613 | } | |
1614 | { | |
1615 | wxBitmap * resultptr; | |
1616 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1617 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1618 | } |
1619 | return resultobj; | |
1620 | fail: | |
1621 | return NULL; | |
1622 | } | |
1623 | ||
1624 | ||
1625 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1626 | PyObject *resultobj; | |
1627 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1628 | wxBitmap result; | |
1629 | PyObject * obj0 = 0 ; | |
1630 | char *kwnames[] = { | |
1631 | (char *) "self", NULL | |
1632 | }; | |
1633 | ||
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1637 | { |
1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1639 | result = (arg1)->GetBitmapDisabled(); | |
1640 | ||
1641 | wxPyEndAllowThreads(__tstate); | |
1642 | if (PyErr_Occurred()) SWIG_fail; | |
1643 | } | |
1644 | { | |
1645 | wxBitmap * resultptr; | |
1646 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1648 | } |
1649 | return resultobj; | |
1650 | fail: | |
1651 | return NULL; | |
1652 | } | |
1653 | ||
1654 | ||
1655 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject *resultobj; | |
1657 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1658 | wxBitmap result; | |
1659 | PyObject * obj0 = 0 ; | |
1660 | char *kwnames[] = { | |
1661 | (char *) "self", NULL | |
1662 | }; | |
1663 | ||
1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1667 | { |
1668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1669 | result = (arg1)->GetBitmapFocus(); | |
1670 | ||
1671 | wxPyEndAllowThreads(__tstate); | |
1672 | if (PyErr_Occurred()) SWIG_fail; | |
1673 | } | |
1674 | { | |
1675 | wxBitmap * resultptr; | |
1676 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1678 | } |
1679 | return resultobj; | |
1680 | fail: | |
1681 | return NULL; | |
1682 | } | |
1683 | ||
1684 | ||
1685 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject *resultobj; | |
1687 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1688 | wxBitmap result; | |
1689 | PyObject * obj0 = 0 ; | |
1690 | char *kwnames[] = { | |
1691 | (char *) "self", NULL | |
1692 | }; | |
1693 | ||
1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1697 | { |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | result = (arg1)->GetBitmapSelected(); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
1704 | { | |
1705 | wxBitmap * resultptr; | |
1706 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1707 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1708 | } |
1709 | return resultobj; | |
1710 | fail: | |
1711 | return NULL; | |
1712 | } | |
1713 | ||
1714 | ||
1715 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1716 | PyObject *resultobj; | |
1717 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1718 | wxBitmap *arg2 = 0 ; | |
1719 | PyObject * obj0 = 0 ; | |
1720 | PyObject * obj1 = 0 ; | |
1721 | char *kwnames[] = { | |
1722 | (char *) "self",(char *) "bitmap", NULL | |
1723 | }; | |
1724 | ||
1725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1730 | SWIG_fail; | |
d14a1e28 | 1731 | if (arg2 == NULL) { |
15afbcd0 RD |
1732 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1733 | SWIG_fail; | |
d14a1e28 RD |
1734 | } |
1735 | { | |
1736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1737 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1738 | ||
1739 | wxPyEndAllowThreads(__tstate); | |
1740 | if (PyErr_Occurred()) SWIG_fail; | |
1741 | } | |
1742 | Py_INCREF(Py_None); resultobj = Py_None; | |
1743 | return resultobj; | |
1744 | fail: | |
1745 | return NULL; | |
1746 | } | |
1747 | ||
1748 | ||
1749 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1750 | PyObject *resultobj; | |
1751 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1752 | wxBitmap *arg2 = 0 ; | |
1753 | PyObject * obj0 = 0 ; | |
1754 | PyObject * obj1 = 0 ; | |
1755 | char *kwnames[] = { | |
1756 | (char *) "self",(char *) "bitmap", NULL | |
1757 | }; | |
1758 | ||
1759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1763 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1764 | SWIG_fail; | |
d14a1e28 | 1765 | if (arg2 == NULL) { |
15afbcd0 RD |
1766 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1767 | SWIG_fail; | |
d14a1e28 RD |
1768 | } |
1769 | { | |
1770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1771 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1772 | ||
1773 | wxPyEndAllowThreads(__tstate); | |
1774 | if (PyErr_Occurred()) SWIG_fail; | |
1775 | } | |
1776 | Py_INCREF(Py_None); resultobj = Py_None; | |
1777 | return resultobj; | |
1778 | fail: | |
1779 | return NULL; | |
1780 | } | |
1781 | ||
1782 | ||
1783 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1784 | PyObject *resultobj; | |
1785 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1786 | wxBitmap *arg2 = 0 ; | |
1787 | PyObject * obj0 = 0 ; | |
1788 | PyObject * obj1 = 0 ; | |
1789 | char *kwnames[] = { | |
1790 | (char *) "self",(char *) "bitmap", NULL | |
1791 | }; | |
1792 | ||
1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1797 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1798 | SWIG_fail; | |
d14a1e28 | 1799 | if (arg2 == NULL) { |
15afbcd0 RD |
1800 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1801 | SWIG_fail; | |
d14a1e28 RD |
1802 | } |
1803 | { | |
1804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1805 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1806 | ||
1807 | wxPyEndAllowThreads(__tstate); | |
1808 | if (PyErr_Occurred()) SWIG_fail; | |
1809 | } | |
1810 | Py_INCREF(Py_None); resultobj = Py_None; | |
1811 | return resultobj; | |
1812 | fail: | |
1813 | return NULL; | |
1814 | } | |
1815 | ||
1816 | ||
1817 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1818 | PyObject *resultobj; | |
1819 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1820 | wxBitmap *arg2 = 0 ; | |
1821 | PyObject * obj0 = 0 ; | |
1822 | PyObject * obj1 = 0 ; | |
1823 | char *kwnames[] = { | |
1824 | (char *) "self",(char *) "bitmap", NULL | |
1825 | }; | |
1826 | ||
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1831 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1832 | SWIG_fail; | |
d14a1e28 | 1833 | if (arg2 == NULL) { |
15afbcd0 RD |
1834 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1835 | SWIG_fail; | |
d14a1e28 RD |
1836 | } |
1837 | { | |
1838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1839 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1840 | ||
1841 | wxPyEndAllowThreads(__tstate); | |
1842 | if (PyErr_Occurred()) SWIG_fail; | |
1843 | } | |
1844 | Py_INCREF(Py_None); resultobj = Py_None; | |
1845 | return resultobj; | |
1846 | fail: | |
1847 | return NULL; | |
1848 | } | |
1849 | ||
1850 | ||
1851 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1852 | PyObject *resultobj; | |
1853 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1854 | int arg2 ; | |
1855 | int arg3 ; | |
1856 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1857 | PyObject * obj1 = 0 ; |
1858 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1859 | char *kwnames[] = { |
1860 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1861 | }; | |
1862 | ||
994141e6 | 1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
1864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1866 | arg2 = (int) SWIG_AsInt(obj1); | |
1867 | if (PyErr_Occurred()) SWIG_fail; | |
1868 | arg3 = (int) SWIG_AsInt(obj2); | |
1869 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1870 | { |
1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1872 | (arg1)->SetMargins(arg2,arg3); | |
1873 | ||
1874 | wxPyEndAllowThreads(__tstate); | |
1875 | if (PyErr_Occurred()) SWIG_fail; | |
1876 | } | |
1877 | Py_INCREF(Py_None); resultobj = Py_None; | |
1878 | return resultobj; | |
1879 | fail: | |
1880 | return NULL; | |
1881 | } | |
1882 | ||
1883 | ||
1884 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1885 | PyObject *resultobj; | |
1886 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1887 | int result; | |
1888 | PyObject * obj0 = 0 ; | |
1889 | char *kwnames[] = { | |
1890 | (char *) "self", NULL | |
1891 | }; | |
1892 | ||
1893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1896 | { |
1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1898 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1899 | ||
1900 | wxPyEndAllowThreads(__tstate); | |
1901 | if (PyErr_Occurred()) SWIG_fail; | |
1902 | } | |
15afbcd0 | 1903 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1904 | return resultobj; |
1905 | fail: | |
1906 | return NULL; | |
1907 | } | |
1908 | ||
1909 | ||
1910 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1911 | PyObject *resultobj; | |
1912 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1913 | int result; | |
1914 | PyObject * obj0 = 0 ; | |
1915 | char *kwnames[] = { | |
1916 | (char *) "self", NULL | |
1917 | }; | |
1918 | ||
1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1922 | { |
1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1924 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1925 | ||
1926 | wxPyEndAllowThreads(__tstate); | |
1927 | if (PyErr_Occurred()) SWIG_fail; | |
1928 | } | |
15afbcd0 | 1929 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1930 | return resultobj; |
1931 | fail: | |
1932 | return NULL; | |
1933 | } | |
1934 | ||
1935 | ||
1936 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1937 | PyObject *obj; | |
1938 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1939 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1940 | Py_INCREF(obj); | |
1941 | return Py_BuildValue((char *)""); | |
1942 | } | |
b2dc1044 RD |
1943 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1944 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1945 | return 1; | |
1946 | } | |
1947 | ||
1948 | ||
1949 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1950 | PyObject *pyobj; | |
1951 | ||
1952 | { | |
1953 | #if wxUSE_UNICODE | |
1954 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1955 | #else | |
1956 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1957 | #endif | |
1958 | } | |
1959 | return pyobj; | |
1960 | } | |
1961 | ||
1962 | ||
d14a1e28 RD |
1963 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1964 | PyObject *resultobj; | |
1965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1966 | int arg2 ; |
d14a1e28 RD |
1967 | wxString *arg3 = 0 ; |
1968 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1969 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1970 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1971 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1972 | long arg6 = (long) 0 ; | |
1973 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1974 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1975 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1976 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1977 | wxCheckBox *result; | |
e811c8ce | 1978 | bool temp3 = False ; |
d14a1e28 RD |
1979 | wxPoint temp4 ; |
1980 | wxSize temp5 ; | |
e811c8ce | 1981 | bool temp8 = False ; |
d14a1e28 | 1982 | PyObject * obj0 = 0 ; |
994141e6 | 1983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1984 | PyObject * obj2 = 0 ; |
1985 | PyObject * obj3 = 0 ; | |
1986 | PyObject * obj4 = 0 ; | |
994141e6 | 1987 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1988 | PyObject * obj6 = 0 ; |
1989 | PyObject * obj7 = 0 ; | |
1990 | char *kwnames[] = { | |
1991 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1992 | }; | |
1993 | ||
994141e6 | 1994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1997 | arg2 = (int) SWIG_AsInt(obj1); | |
1998 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1999 | { |
2000 | arg3 = wxString_in_helper(obj2); | |
2001 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2002 | temp3 = True; |
d14a1e28 RD |
2003 | } |
2004 | if (obj3) { | |
2005 | { | |
2006 | arg4 = &temp4; | |
2007 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2008 | } | |
2009 | } | |
2010 | if (obj4) { | |
2011 | { | |
2012 | arg5 = &temp5; | |
2013 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2014 | } | |
2015 | } | |
994141e6 | 2016 | if (obj5) { |
15afbcd0 RD |
2017 | arg6 = (long) SWIG_AsLong(obj5); |
2018 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2019 | } |
d14a1e28 | 2020 | if (obj6) { |
15afbcd0 RD |
2021 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2022 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2023 | SWIG_fail; | |
d14a1e28 | 2024 | if (arg7 == NULL) { |
15afbcd0 RD |
2025 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2026 | SWIG_fail; | |
d14a1e28 RD |
2027 | } |
2028 | } | |
2029 | if (obj7) { | |
2030 | { | |
2031 | arg8 = wxString_in_helper(obj7); | |
2032 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2033 | temp8 = True; |
d14a1e28 RD |
2034 | } |
2035 | } | |
2036 | { | |
2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2038 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2039 | ||
2040 | wxPyEndAllowThreads(__tstate); | |
2041 | if (PyErr_Occurred()) SWIG_fail; | |
2042 | } | |
15afbcd0 | 2043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2044 | { |
2045 | if (temp3) | |
2046 | delete arg3; | |
2047 | } | |
2048 | { | |
2049 | if (temp8) | |
2050 | delete arg8; | |
2051 | } | |
2052 | return resultobj; | |
2053 | fail: | |
2054 | { | |
2055 | if (temp3) | |
2056 | delete arg3; | |
2057 | } | |
2058 | { | |
2059 | if (temp8) | |
2060 | delete arg8; | |
2061 | } | |
2062 | return NULL; | |
2063 | } | |
2064 | ||
2065 | ||
2066 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2067 | PyObject *resultobj; | |
2068 | wxCheckBox *result; | |
2069 | char *kwnames[] = { | |
2070 | NULL | |
2071 | }; | |
2072 | ||
2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2074 | { | |
2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2076 | result = (wxCheckBox *)new wxCheckBox(); | |
2077 | ||
2078 | wxPyEndAllowThreads(__tstate); | |
2079 | if (PyErr_Occurred()) SWIG_fail; | |
2080 | } | |
15afbcd0 | 2081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2082 | return resultobj; |
2083 | fail: | |
2084 | return NULL; | |
2085 | } | |
2086 | ||
2087 | ||
2088 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2089 | PyObject *resultobj; | |
2090 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2091 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2092 | int arg3 ; |
d14a1e28 RD |
2093 | wxString *arg4 = 0 ; |
2094 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2095 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2096 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2097 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2098 | long arg7 = (long) 0 ; | |
2099 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2100 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2101 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2102 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2103 | bool result; | |
e811c8ce | 2104 | bool temp4 = False ; |
d14a1e28 RD |
2105 | wxPoint temp5 ; |
2106 | wxSize temp6 ; | |
e811c8ce | 2107 | bool temp9 = False ; |
d14a1e28 RD |
2108 | PyObject * obj0 = 0 ; |
2109 | PyObject * obj1 = 0 ; | |
994141e6 | 2110 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2111 | PyObject * obj3 = 0 ; |
2112 | PyObject * obj4 = 0 ; | |
2113 | PyObject * obj5 = 0 ; | |
994141e6 | 2114 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2115 | PyObject * obj7 = 0 ; |
2116 | PyObject * obj8 = 0 ; | |
2117 | char *kwnames[] = { | |
2118 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2119 | }; | |
2120 | ||
994141e6 | 2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2126 | arg3 = (int) SWIG_AsInt(obj2); | |
2127 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2128 | { |
2129 | arg4 = wxString_in_helper(obj3); | |
2130 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2131 | temp4 = True; |
d14a1e28 RD |
2132 | } |
2133 | if (obj4) { | |
2134 | { | |
2135 | arg5 = &temp5; | |
2136 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2137 | } | |
2138 | } | |
2139 | if (obj5) { | |
2140 | { | |
2141 | arg6 = &temp6; | |
2142 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2143 | } | |
2144 | } | |
994141e6 | 2145 | if (obj6) { |
15afbcd0 RD |
2146 | arg7 = (long) SWIG_AsLong(obj6); |
2147 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2148 | } |
d14a1e28 | 2149 | if (obj7) { |
15afbcd0 RD |
2150 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2151 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2152 | SWIG_fail; | |
d14a1e28 | 2153 | if (arg8 == NULL) { |
15afbcd0 RD |
2154 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2155 | SWIG_fail; | |
d14a1e28 RD |
2156 | } |
2157 | } | |
2158 | if (obj8) { | |
2159 | { | |
2160 | arg9 = wxString_in_helper(obj8); | |
2161 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2162 | temp9 = True; |
d14a1e28 RD |
2163 | } |
2164 | } | |
2165 | { | |
2166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2167 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2168 | ||
2169 | wxPyEndAllowThreads(__tstate); | |
2170 | if (PyErr_Occurred()) SWIG_fail; | |
2171 | } | |
4f89f6a3 RD |
2172 | { |
2173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2174 | } | |
d14a1e28 RD |
2175 | { |
2176 | if (temp4) | |
2177 | delete arg4; | |
2178 | } | |
2179 | { | |
2180 | if (temp9) | |
2181 | delete arg9; | |
2182 | } | |
2183 | return resultobj; | |
2184 | fail: | |
2185 | { | |
2186 | if (temp4) | |
2187 | delete arg4; | |
2188 | } | |
2189 | { | |
2190 | if (temp9) | |
2191 | delete arg9; | |
2192 | } | |
2193 | return NULL; | |
2194 | } | |
2195 | ||
2196 | ||
2197 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2198 | PyObject *resultobj; | |
2199 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2200 | bool result; | |
2201 | PyObject * obj0 = 0 ; | |
2202 | char *kwnames[] = { | |
2203 | (char *) "self", NULL | |
2204 | }; | |
2205 | ||
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2209 | { |
2210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2211 | result = (bool)(arg1)->GetValue(); | |
2212 | ||
2213 | wxPyEndAllowThreads(__tstate); | |
2214 | if (PyErr_Occurred()) SWIG_fail; | |
2215 | } | |
4f89f6a3 RD |
2216 | { |
2217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2218 | } | |
d14a1e28 RD |
2219 | return resultobj; |
2220 | fail: | |
2221 | return NULL; | |
2222 | } | |
2223 | ||
2224 | ||
2225 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2226 | PyObject *resultobj; | |
2227 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2228 | bool result; | |
2229 | PyObject * obj0 = 0 ; | |
2230 | char *kwnames[] = { | |
2231 | (char *) "self", NULL | |
2232 | }; | |
2233 | ||
2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2237 | { |
2238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2239 | result = (bool)(arg1)->IsChecked(); | |
2240 | ||
2241 | wxPyEndAllowThreads(__tstate); | |
2242 | if (PyErr_Occurred()) SWIG_fail; | |
2243 | } | |
4f89f6a3 RD |
2244 | { |
2245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2246 | } | |
d14a1e28 RD |
2247 | return resultobj; |
2248 | fail: | |
2249 | return NULL; | |
2250 | } | |
2251 | ||
2252 | ||
2253 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2254 | PyObject *resultobj; | |
2255 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2256 | bool arg2 ; | |
2257 | PyObject * obj0 = 0 ; | |
2258 | PyObject * obj1 = 0 ; | |
2259 | char *kwnames[] = { | |
2260 | (char *) "self",(char *) "state", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2266 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2267 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2268 | { |
2269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2270 | (arg1)->SetValue(arg2); | |
2271 | ||
2272 | wxPyEndAllowThreads(__tstate); | |
2273 | if (PyErr_Occurred()) SWIG_fail; | |
2274 | } | |
2275 | Py_INCREF(Py_None); resultobj = Py_None; | |
2276 | return resultobj; | |
2277 | fail: | |
2278 | return NULL; | |
2279 | } | |
2280 | ||
2281 | ||
2282 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2283 | PyObject *resultobj; | |
2284 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2285 | int result; | |
2286 | PyObject * obj0 = 0 ; | |
2287 | char *kwnames[] = { | |
2288 | (char *) "self", NULL | |
2289 | }; | |
2290 | ||
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2294 | { |
2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2296 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2297 | ||
2298 | wxPyEndAllowThreads(__tstate); | |
2299 | if (PyErr_Occurred()) SWIG_fail; | |
2300 | } | |
15afbcd0 | 2301 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2302 | return resultobj; |
2303 | fail: | |
2304 | return NULL; | |
2305 | } | |
2306 | ||
2307 | ||
2308 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2309 | PyObject *resultobj; | |
2310 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2311 | int arg2 ; | |
2312 | PyObject * obj0 = 0 ; | |
994141e6 | 2313 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2314 | char *kwnames[] = { |
2315 | (char *) "self",(char *) "state", NULL | |
2316 | }; | |
2317 | ||
994141e6 | 2318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2321 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2322 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2323 | { |
2324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2325 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2326 | ||
2327 | wxPyEndAllowThreads(__tstate); | |
2328 | if (PyErr_Occurred()) SWIG_fail; | |
2329 | } | |
2330 | Py_INCREF(Py_None); resultobj = Py_None; | |
2331 | return resultobj; | |
2332 | fail: | |
2333 | return NULL; | |
2334 | } | |
2335 | ||
2336 | ||
2337 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2338 | PyObject *resultobj; | |
2339 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2340 | bool result; | |
2341 | PyObject * obj0 = 0 ; | |
2342 | char *kwnames[] = { | |
2343 | (char *) "self", NULL | |
2344 | }; | |
2345 | ||
2346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2349 | { |
2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2351 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2352 | ||
2353 | wxPyEndAllowThreads(__tstate); | |
2354 | if (PyErr_Occurred()) SWIG_fail; | |
2355 | } | |
4f89f6a3 RD |
2356 | { |
2357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2358 | } | |
d14a1e28 RD |
2359 | return resultobj; |
2360 | fail: | |
2361 | return NULL; | |
2362 | } | |
2363 | ||
2364 | ||
2365 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2366 | PyObject *resultobj; | |
2367 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2368 | bool result; | |
2369 | PyObject * obj0 = 0 ; | |
2370 | char *kwnames[] = { | |
2371 | (char *) "self", NULL | |
2372 | }; | |
2373 | ||
2374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2377 | { |
2378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2379 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2380 | ||
2381 | wxPyEndAllowThreads(__tstate); | |
2382 | if (PyErr_Occurred()) SWIG_fail; | |
2383 | } | |
4f89f6a3 RD |
2384 | { |
2385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2386 | } | |
d14a1e28 RD |
2387 | return resultobj; |
2388 | fail: | |
2389 | return NULL; | |
2390 | } | |
2391 | ||
2392 | ||
22bfe96c RD |
2393 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2394 | PyObject *resultobj; | |
2395 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2396 | wxVisualAttributes result; | |
2397 | PyObject * obj0 = 0 ; | |
2398 | char *kwnames[] = { | |
2399 | (char *) "variant", NULL | |
2400 | }; | |
2401 | ||
2402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2403 | if (obj0) { | |
2404 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2405 | if (PyErr_Occurred()) SWIG_fail; | |
2406 | } | |
2407 | { | |
2408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2409 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2410 | ||
2411 | wxPyEndAllowThreads(__tstate); | |
2412 | if (PyErr_Occurred()) SWIG_fail; | |
2413 | } | |
2414 | { | |
2415 | wxVisualAttributes * resultptr; | |
2416 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2418 | } | |
2419 | return resultobj; | |
2420 | fail: | |
2421 | return NULL; | |
2422 | } | |
2423 | ||
2424 | ||
d14a1e28 RD |
2425 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { |
2426 | PyObject *obj; | |
2427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2428 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2429 | Py_INCREF(obj); | |
2430 | return Py_BuildValue((char *)""); | |
2431 | } | |
b2dc1044 RD |
2432 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
2433 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2434 | return 1; | |
2435 | } | |
2436 | ||
2437 | ||
2438 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2439 | PyObject *pyobj; | |
2440 | ||
2441 | { | |
2442 | #if wxUSE_UNICODE | |
2443 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2444 | #else | |
2445 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2446 | #endif | |
2447 | } | |
2448 | return pyobj; | |
2449 | } | |
2450 | ||
2451 | ||
d14a1e28 RD |
2452 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2453 | PyObject *resultobj; | |
2454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2455 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2456 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2457 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2458 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2459 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2460 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2461 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2462 | long arg6 = (long) 0 ; | |
2463 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2464 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2465 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2466 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2467 | wxChoice *result; |
2468 | wxPoint temp3 ; | |
2469 | wxSize temp4 ; | |
3adfb63b | 2470 | bool temp5 = False ; |
e811c8ce | 2471 | bool temp8 = False ; |
d14a1e28 | 2472 | PyObject * obj0 = 0 ; |
994141e6 | 2473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2474 | PyObject * obj2 = 0 ; |
2475 | PyObject * obj3 = 0 ; | |
2476 | PyObject * obj4 = 0 ; | |
994141e6 | 2477 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2478 | PyObject * obj6 = 0 ; |
2479 | PyObject * obj7 = 0 ; | |
2480 | char *kwnames[] = { | |
2481 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2482 | }; | |
2483 | ||
a95a7133 | 2484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2487 | if (obj1) { |
2488 | arg2 = (int) SWIG_AsInt(obj1); | |
2489 | if (PyErr_Occurred()) SWIG_fail; | |
2490 | } | |
d14a1e28 RD |
2491 | if (obj2) { |
2492 | { | |
2493 | arg3 = &temp3; | |
2494 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2495 | } | |
2496 | } | |
2497 | if (obj3) { | |
2498 | { | |
2499 | arg4 = &temp4; | |
2500 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2501 | } | |
2502 | } | |
2503 | if (obj4) { | |
2504 | { | |
4d5c3d91 RD |
2505 | if (! PySequence_Check(obj4)) { |
2506 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2507 | SWIG_fail; | |
2508 | } | |
2509 | arg5 = new wxArrayString; | |
3adfb63b | 2510 | temp5 = True; |
4d5c3d91 RD |
2511 | int i, len=PySequence_Length(obj4); |
2512 | for (i=0; i<len; i++) { | |
2513 | PyObject* item = PySequence_GetItem(obj4, i); | |
2514 | #if wxUSE_UNICODE | |
2515 | PyObject* str = PyObject_Unicode(item); | |
2516 | #else | |
2517 | PyObject* str = PyObject_Str(item); | |
2518 | #endif | |
74a57fcd | 2519 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2520 | arg5->Add(Py2wxString(str)); |
2521 | Py_DECREF(item); | |
2522 | Py_DECREF(str); | |
2523 | } | |
d14a1e28 RD |
2524 | } |
2525 | } | |
994141e6 | 2526 | if (obj5) { |
15afbcd0 RD |
2527 | arg6 = (long) SWIG_AsLong(obj5); |
2528 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2529 | } |
d14a1e28 | 2530 | if (obj6) { |
15afbcd0 RD |
2531 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2533 | SWIG_fail; | |
4d5c3d91 | 2534 | if (arg7 == NULL) { |
15afbcd0 RD |
2535 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2536 | SWIG_fail; | |
d14a1e28 RD |
2537 | } |
2538 | } | |
2539 | if (obj7) { | |
2540 | { | |
4d5c3d91 RD |
2541 | arg8 = wxString_in_helper(obj7); |
2542 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2543 | temp8 = True; |
d14a1e28 RD |
2544 | } |
2545 | } | |
2546 | { | |
2547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2548 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2549 | |
2550 | wxPyEndAllowThreads(__tstate); | |
2551 | if (PyErr_Occurred()) SWIG_fail; | |
2552 | } | |
15afbcd0 | 2553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2554 | { |
3adfb63b | 2555 | if (temp5) delete arg5; |
d14a1e28 RD |
2556 | } |
2557 | { | |
2558 | if (temp8) | |
4d5c3d91 | 2559 | delete arg8; |
d14a1e28 RD |
2560 | } |
2561 | return resultobj; | |
2562 | fail: | |
2563 | { | |
3adfb63b | 2564 | if (temp5) delete arg5; |
d14a1e28 RD |
2565 | } |
2566 | { | |
2567 | if (temp8) | |
4d5c3d91 | 2568 | delete arg8; |
d14a1e28 RD |
2569 | } |
2570 | return NULL; | |
2571 | } | |
2572 | ||
2573 | ||
2574 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2575 | PyObject *resultobj; | |
2576 | wxChoice *result; | |
2577 | char *kwnames[] = { | |
2578 | NULL | |
2579 | }; | |
2580 | ||
2581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2582 | { | |
2583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2584 | result = (wxChoice *)new wxChoice(); | |
2585 | ||
2586 | wxPyEndAllowThreads(__tstate); | |
2587 | if (PyErr_Occurred()) SWIG_fail; | |
2588 | } | |
15afbcd0 | 2589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2590 | return resultobj; |
2591 | fail: | |
2592 | return NULL; | |
2593 | } | |
2594 | ||
2595 | ||
2596 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2597 | PyObject *resultobj; | |
2598 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2599 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 2600 | int arg3 = (int) -1 ; |
d14a1e28 RD |
2601 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2602 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2603 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2604 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2605 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2606 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2607 | long arg7 = (long) 0 ; | |
2608 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2609 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2610 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2611 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2612 | bool result; |
2613 | wxPoint temp4 ; | |
2614 | wxSize temp5 ; | |
3adfb63b | 2615 | bool temp6 = False ; |
e811c8ce | 2616 | bool temp9 = False ; |
d14a1e28 RD |
2617 | PyObject * obj0 = 0 ; |
2618 | PyObject * obj1 = 0 ; | |
994141e6 | 2619 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2620 | PyObject * obj3 = 0 ; |
2621 | PyObject * obj4 = 0 ; | |
2622 | PyObject * obj5 = 0 ; | |
994141e6 | 2623 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2624 | PyObject * obj7 = 0 ; |
2625 | PyObject * obj8 = 0 ; | |
2626 | char *kwnames[] = { | |
2627 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2628 | }; | |
2629 | ||
a95a7133 | 2630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2633 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2635 | if (obj2) { |
2636 | arg3 = (int) SWIG_AsInt(obj2); | |
2637 | if (PyErr_Occurred()) SWIG_fail; | |
2638 | } | |
d14a1e28 RD |
2639 | if (obj3) { |
2640 | { | |
2641 | arg4 = &temp4; | |
2642 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2643 | } | |
2644 | } | |
2645 | if (obj4) { | |
2646 | { | |
2647 | arg5 = &temp5; | |
2648 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2649 | } | |
2650 | } | |
2651 | if (obj5) { | |
2652 | { | |
4d5c3d91 RD |
2653 | if (! PySequence_Check(obj5)) { |
2654 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2655 | SWIG_fail; | |
2656 | } | |
2657 | arg6 = new wxArrayString; | |
3adfb63b | 2658 | temp6 = True; |
4d5c3d91 RD |
2659 | int i, len=PySequence_Length(obj5); |
2660 | for (i=0; i<len; i++) { | |
2661 | PyObject* item = PySequence_GetItem(obj5, i); | |
2662 | #if wxUSE_UNICODE | |
2663 | PyObject* str = PyObject_Unicode(item); | |
2664 | #else | |
2665 | PyObject* str = PyObject_Str(item); | |
2666 | #endif | |
74a57fcd | 2667 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2668 | arg6->Add(Py2wxString(str)); |
2669 | Py_DECREF(item); | |
2670 | Py_DECREF(str); | |
2671 | } | |
d14a1e28 RD |
2672 | } |
2673 | } | |
994141e6 | 2674 | if (obj6) { |
15afbcd0 RD |
2675 | arg7 = (long) SWIG_AsLong(obj6); |
2676 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2677 | } |
d14a1e28 | 2678 | if (obj7) { |
15afbcd0 RD |
2679 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2680 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2681 | SWIG_fail; | |
4d5c3d91 | 2682 | if (arg8 == NULL) { |
15afbcd0 RD |
2683 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2684 | SWIG_fail; | |
d14a1e28 RD |
2685 | } |
2686 | } | |
2687 | if (obj8) { | |
2688 | { | |
4d5c3d91 RD |
2689 | arg9 = wxString_in_helper(obj8); |
2690 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2691 | temp9 = True; |
d14a1e28 RD |
2692 | } |
2693 | } | |
2694 | { | |
2695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2696 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2697 | |
2698 | wxPyEndAllowThreads(__tstate); | |
2699 | if (PyErr_Occurred()) SWIG_fail; | |
2700 | } | |
4f89f6a3 RD |
2701 | { |
2702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2703 | } | |
d14a1e28 | 2704 | { |
3adfb63b | 2705 | if (temp6) delete arg6; |
d14a1e28 RD |
2706 | } |
2707 | { | |
2708 | if (temp9) | |
4d5c3d91 | 2709 | delete arg9; |
d14a1e28 RD |
2710 | } |
2711 | return resultobj; | |
2712 | fail: | |
2713 | { | |
3adfb63b | 2714 | if (temp6) delete arg6; |
d14a1e28 RD |
2715 | } |
2716 | { | |
2717 | if (temp9) | |
4d5c3d91 | 2718 | delete arg9; |
d14a1e28 RD |
2719 | } |
2720 | return NULL; | |
2721 | } | |
2722 | ||
2723 | ||
d14a1e28 RD |
2724 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2725 | PyObject *resultobj; | |
2726 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2727 | int arg2 ; | |
2728 | PyObject * obj0 = 0 ; | |
994141e6 | 2729 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2730 | char *kwnames[] = { |
2731 | (char *) "self",(char *) "n", NULL | |
2732 | }; | |
2733 | ||
994141e6 | 2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2737 | arg2 = (int const) SWIG_AsInt(obj1); | |
2738 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2739 | { |
2740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2741 | (arg1)->SetSelection(arg2); | |
2742 | ||
2743 | wxPyEndAllowThreads(__tstate); | |
2744 | if (PyErr_Occurred()) SWIG_fail; | |
2745 | } | |
2746 | Py_INCREF(Py_None); resultobj = Py_None; | |
2747 | return resultobj; | |
2748 | fail: | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
2753 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2754 | PyObject *resultobj; | |
2755 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2756 | wxString *arg2 = 0 ; | |
121b9a67 | 2757 | bool result; |
e811c8ce | 2758 | bool temp2 = False ; |
d14a1e28 RD |
2759 | PyObject * obj0 = 0 ; |
2760 | PyObject * obj1 = 0 ; | |
2761 | char *kwnames[] = { | |
2762 | (char *) "self",(char *) "string", NULL | |
2763 | }; | |
2764 | ||
2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2768 | { |
2769 | arg2 = wxString_in_helper(obj1); | |
2770 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2771 | temp2 = True; |
d14a1e28 RD |
2772 | } |
2773 | { | |
2774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2775 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
2776 | |
2777 | wxPyEndAllowThreads(__tstate); | |
2778 | if (PyErr_Occurred()) SWIG_fail; | |
2779 | } | |
121b9a67 RD |
2780 | { |
2781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2782 | } | |
d14a1e28 RD |
2783 | { |
2784 | if (temp2) | |
2785 | delete arg2; | |
2786 | } | |
2787 | return resultobj; | |
2788 | fail: | |
2789 | { | |
2790 | if (temp2) | |
2791 | delete arg2; | |
2792 | } | |
2793 | return NULL; | |
2794 | } | |
2795 | ||
2796 | ||
2797 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2798 | PyObject *resultobj; | |
2799 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2800 | int arg2 ; | |
2801 | wxString *arg3 = 0 ; | |
e811c8ce | 2802 | bool temp3 = False ; |
d14a1e28 | 2803 | PyObject * obj0 = 0 ; |
994141e6 | 2804 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2805 | PyObject * obj2 = 0 ; |
2806 | char *kwnames[] = { | |
fcafa8a9 | 2807 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2808 | }; |
2809 | ||
994141e6 | 2810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2813 | arg2 = (int) SWIG_AsInt(obj1); | |
2814 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2815 | { |
2816 | arg3 = wxString_in_helper(obj2); | |
2817 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2818 | temp3 = True; |
d14a1e28 RD |
2819 | } |
2820 | { | |
2821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2822 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2823 | ||
2824 | wxPyEndAllowThreads(__tstate); | |
2825 | if (PyErr_Occurred()) SWIG_fail; | |
2826 | } | |
2827 | Py_INCREF(Py_None); resultobj = Py_None; | |
2828 | { | |
2829 | if (temp3) | |
2830 | delete arg3; | |
2831 | } | |
2832 | return resultobj; | |
2833 | fail: | |
2834 | { | |
2835 | if (temp3) | |
2836 | delete arg3; | |
2837 | } | |
2838 | return NULL; | |
2839 | } | |
2840 | ||
2841 | ||
22bfe96c RD |
2842 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2843 | PyObject *resultobj; | |
2844 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2845 | wxVisualAttributes result; | |
2846 | PyObject * obj0 = 0 ; | |
2847 | char *kwnames[] = { | |
2848 | (char *) "variant", NULL | |
2849 | }; | |
2850 | ||
2851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2852 | if (obj0) { | |
2853 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | { | |
2857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2858 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2859 | ||
2860 | wxPyEndAllowThreads(__tstate); | |
2861 | if (PyErr_Occurred()) SWIG_fail; | |
2862 | } | |
2863 | { | |
2864 | wxVisualAttributes * resultptr; | |
2865 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2867 | } | |
2868 | return resultobj; | |
2869 | fail: | |
2870 | return NULL; | |
2871 | } | |
2872 | ||
2873 | ||
d14a1e28 RD |
2874 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { |
2875 | PyObject *obj; | |
2876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2877 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2878 | Py_INCREF(obj); | |
2879 | return Py_BuildValue((char *)""); | |
2880 | } | |
b2dc1044 RD |
2881 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2882 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2883 | return 1; | |
2884 | } | |
2885 | ||
2886 | ||
2887 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2888 | PyObject *pyobj; | |
2889 | ||
2890 | { | |
2891 | #if wxUSE_UNICODE | |
2892 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2893 | #else | |
2894 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2895 | #endif | |
2896 | } | |
2897 | return pyobj; | |
2898 | } | |
2899 | ||
2900 | ||
d14a1e28 RD |
2901 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2902 | PyObject *resultobj; | |
2903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2904 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2905 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2906 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2907 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2908 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2909 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2910 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2911 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2912 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2913 | long arg7 = (long) 0 ; | |
2914 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2915 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2916 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2917 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2918 | wxComboBox *result; |
e811c8ce | 2919 | bool temp3 = False ; |
d14a1e28 RD |
2920 | wxPoint temp4 ; |
2921 | wxSize temp5 ; | |
3adfb63b | 2922 | bool temp6 = False ; |
e811c8ce | 2923 | bool temp9 = False ; |
d14a1e28 | 2924 | PyObject * obj0 = 0 ; |
994141e6 | 2925 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2926 | PyObject * obj2 = 0 ; |
2927 | PyObject * obj3 = 0 ; | |
2928 | PyObject * obj4 = 0 ; | |
2929 | PyObject * obj5 = 0 ; | |
994141e6 | 2930 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2931 | PyObject * obj7 = 0 ; |
2932 | PyObject * obj8 = 0 ; | |
2933 | char *kwnames[] = { | |
2934 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2935 | }; | |
2936 | ||
a95a7133 | 2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2940 | if (obj1) { |
2941 | arg2 = (int) SWIG_AsInt(obj1); | |
2942 | if (PyErr_Occurred()) SWIG_fail; | |
2943 | } | |
d14a1e28 RD |
2944 | if (obj2) { |
2945 | { | |
2946 | arg3 = wxString_in_helper(obj2); | |
2947 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2948 | temp3 = True; |
d14a1e28 RD |
2949 | } |
2950 | } | |
2951 | if (obj3) { | |
2952 | { | |
2953 | arg4 = &temp4; | |
2954 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2955 | } | |
2956 | } | |
2957 | if (obj4) { | |
2958 | { | |
2959 | arg5 = &temp5; | |
2960 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2961 | } | |
2962 | } | |
2963 | if (obj5) { | |
2964 | { | |
4d5c3d91 RD |
2965 | if (! PySequence_Check(obj5)) { |
2966 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2967 | SWIG_fail; | |
2968 | } | |
2969 | arg6 = new wxArrayString; | |
3adfb63b | 2970 | temp6 = True; |
4d5c3d91 RD |
2971 | int i, len=PySequence_Length(obj5); |
2972 | for (i=0; i<len; i++) { | |
2973 | PyObject* item = PySequence_GetItem(obj5, i); | |
2974 | #if wxUSE_UNICODE | |
2975 | PyObject* str = PyObject_Unicode(item); | |
2976 | #else | |
2977 | PyObject* str = PyObject_Str(item); | |
2978 | #endif | |
74a57fcd | 2979 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2980 | arg6->Add(Py2wxString(str)); |
2981 | Py_DECREF(item); | |
2982 | Py_DECREF(str); | |
2983 | } | |
d14a1e28 RD |
2984 | } |
2985 | } | |
994141e6 | 2986 | if (obj6) { |
15afbcd0 RD |
2987 | arg7 = (long) SWIG_AsLong(obj6); |
2988 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2989 | } |
d14a1e28 | 2990 | if (obj7) { |
15afbcd0 RD |
2991 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2992 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2993 | SWIG_fail; | |
4d5c3d91 | 2994 | if (arg8 == NULL) { |
15afbcd0 RD |
2995 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2996 | SWIG_fail; | |
d14a1e28 RD |
2997 | } |
2998 | } | |
2999 | if (obj8) { | |
3000 | { | |
4d5c3d91 RD |
3001 | arg9 = wxString_in_helper(obj8); |
3002 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3003 | temp9 = True; |
d14a1e28 RD |
3004 | } |
3005 | } | |
3006 | { | |
3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3008 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
3009 | |
3010 | wxPyEndAllowThreads(__tstate); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
15afbcd0 | 3013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3014 | { |
3015 | if (temp3) | |
3016 | delete arg3; | |
3017 | } | |
3018 | { | |
3adfb63b | 3019 | if (temp6) delete arg6; |
d14a1e28 RD |
3020 | } |
3021 | { | |
3022 | if (temp9) | |
4d5c3d91 | 3023 | delete arg9; |
d14a1e28 RD |
3024 | } |
3025 | return resultobj; | |
3026 | fail: | |
3027 | { | |
3028 | if (temp3) | |
3029 | delete arg3; | |
3030 | } | |
3031 | { | |
3adfb63b | 3032 | if (temp6) delete arg6; |
d14a1e28 RD |
3033 | } |
3034 | { | |
3035 | if (temp9) | |
4d5c3d91 | 3036 | delete arg9; |
d14a1e28 RD |
3037 | } |
3038 | return NULL; | |
3039 | } | |
3040 | ||
3041 | ||
3042 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3043 | PyObject *resultobj; | |
3044 | wxComboBox *result; | |
3045 | char *kwnames[] = { | |
3046 | NULL | |
3047 | }; | |
3048 | ||
3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3050 | { | |
3051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3052 | result = (wxComboBox *)new wxComboBox(); | |
3053 | ||
3054 | wxPyEndAllowThreads(__tstate); | |
3055 | if (PyErr_Occurred()) SWIG_fail; | |
3056 | } | |
15afbcd0 | 3057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3058 | return resultobj; |
3059 | fail: | |
3060 | return NULL; | |
3061 | } | |
3062 | ||
3063 | ||
3064 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3065 | PyObject *resultobj; | |
3066 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3068 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3069 | wxString const &arg4_defvalue = wxPyEmptyString ; |
3070 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3071 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3072 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3073 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3074 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
3075 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
3076 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3077 | long arg8 = (long) 0 ; | |
3078 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3079 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 3080 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 3081 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 3082 | bool result; |
e811c8ce | 3083 | bool temp4 = False ; |
d14a1e28 RD |
3084 | wxPoint temp5 ; |
3085 | wxSize temp6 ; | |
3adfb63b | 3086 | bool temp7 = False ; |
e811c8ce | 3087 | bool temp10 = False ; |
d14a1e28 RD |
3088 | PyObject * obj0 = 0 ; |
3089 | PyObject * obj1 = 0 ; | |
994141e6 | 3090 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3091 | PyObject * obj3 = 0 ; |
3092 | PyObject * obj4 = 0 ; | |
3093 | PyObject * obj5 = 0 ; | |
3094 | PyObject * obj6 = 0 ; | |
994141e6 | 3095 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
3096 | PyObject * obj8 = 0 ; |
3097 | PyObject * obj9 = 0 ; | |
3098 | char *kwnames[] = { | |
3099 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3100 | }; | |
3101 | ||
a95a7133 | 3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
3103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
3107 | if (obj2) { |
3108 | arg3 = (int) SWIG_AsInt(obj2); | |
3109 | if (PyErr_Occurred()) SWIG_fail; | |
3110 | } | |
d14a1e28 RD |
3111 | if (obj3) { |
3112 | { | |
3113 | arg4 = wxString_in_helper(obj3); | |
3114 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3115 | temp4 = True; |
d14a1e28 RD |
3116 | } |
3117 | } | |
3118 | if (obj4) { | |
3119 | { | |
3120 | arg5 = &temp5; | |
3121 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3122 | } | |
3123 | } | |
3124 | if (obj5) { | |
3125 | { | |
3126 | arg6 = &temp6; | |
3127 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3128 | } | |
3129 | } | |
3130 | if (obj6) { | |
3131 | { | |
4d5c3d91 RD |
3132 | if (! PySequence_Check(obj6)) { |
3133 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3134 | SWIG_fail; | |
3135 | } | |
3136 | arg7 = new wxArrayString; | |
3adfb63b | 3137 | temp7 = True; |
4d5c3d91 RD |
3138 | int i, len=PySequence_Length(obj6); |
3139 | for (i=0; i<len; i++) { | |
3140 | PyObject* item = PySequence_GetItem(obj6, i); | |
3141 | #if wxUSE_UNICODE | |
3142 | PyObject* str = PyObject_Unicode(item); | |
3143 | #else | |
3144 | PyObject* str = PyObject_Str(item); | |
3145 | #endif | |
74a57fcd | 3146 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3147 | arg7->Add(Py2wxString(str)); |
3148 | Py_DECREF(item); | |
3149 | Py_DECREF(str); | |
3150 | } | |
d14a1e28 RD |
3151 | } |
3152 | } | |
994141e6 | 3153 | if (obj7) { |
15afbcd0 RD |
3154 | arg8 = (long) SWIG_AsLong(obj7); |
3155 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3156 | } |
d14a1e28 | 3157 | if (obj8) { |
15afbcd0 RD |
3158 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3160 | SWIG_fail; | |
4d5c3d91 | 3161 | if (arg9 == NULL) { |
15afbcd0 RD |
3162 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3163 | SWIG_fail; | |
d14a1e28 RD |
3164 | } |
3165 | } | |
3166 | if (obj9) { | |
3167 | { | |
4d5c3d91 RD |
3168 | arg10 = wxString_in_helper(obj9); |
3169 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 3170 | temp10 = True; |
d14a1e28 RD |
3171 | } |
3172 | } | |
3173 | { | |
3174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3175 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); |
d14a1e28 RD |
3176 | |
3177 | wxPyEndAllowThreads(__tstate); | |
3178 | if (PyErr_Occurred()) SWIG_fail; | |
3179 | } | |
4f89f6a3 RD |
3180 | { |
3181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3182 | } | |
d14a1e28 RD |
3183 | { |
3184 | if (temp4) | |
3185 | delete arg4; | |
3186 | } | |
3187 | { | |
3adfb63b | 3188 | if (temp7) delete arg7; |
d14a1e28 RD |
3189 | } |
3190 | { | |
3191 | if (temp10) | |
4d5c3d91 | 3192 | delete arg10; |
d14a1e28 RD |
3193 | } |
3194 | return resultobj; | |
3195 | fail: | |
3196 | { | |
3197 | if (temp4) | |
3198 | delete arg4; | |
3199 | } | |
3200 | { | |
3adfb63b | 3201 | if (temp7) delete arg7; |
d14a1e28 RD |
3202 | } |
3203 | { | |
3204 | if (temp10) | |
4d5c3d91 | 3205 | delete arg10; |
d14a1e28 RD |
3206 | } |
3207 | return NULL; | |
3208 | } | |
3209 | ||
3210 | ||
3211 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3212 | PyObject *resultobj; | |
3213 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3214 | wxString result; | |
3215 | PyObject * obj0 = 0 ; | |
3216 | char *kwnames[] = { | |
3217 | (char *) "self", NULL | |
3218 | }; | |
3219 | ||
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3223 | { |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3225 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3226 | ||
3227 | wxPyEndAllowThreads(__tstate); | |
3228 | if (PyErr_Occurred()) SWIG_fail; | |
3229 | } | |
3230 | { | |
3231 | #if wxUSE_UNICODE | |
3232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3233 | #else | |
3234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3235 | #endif | |
3236 | } | |
3237 | return resultobj; | |
3238 | fail: | |
3239 | return NULL; | |
3240 | } | |
3241 | ||
3242 | ||
3243 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3244 | PyObject *resultobj; | |
3245 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3246 | wxString *arg2 = 0 ; | |
e811c8ce | 3247 | bool temp2 = False ; |
d14a1e28 RD |
3248 | PyObject * obj0 = 0 ; |
3249 | PyObject * obj1 = 0 ; | |
3250 | char *kwnames[] = { | |
3251 | (char *) "self",(char *) "value", NULL | |
3252 | }; | |
3253 | ||
3254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3257 | { |
3258 | arg2 = wxString_in_helper(obj1); | |
3259 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3260 | temp2 = True; |
d14a1e28 RD |
3261 | } |
3262 | { | |
3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3264 | (arg1)->SetValue((wxString const &)*arg2); | |
3265 | ||
3266 | wxPyEndAllowThreads(__tstate); | |
3267 | if (PyErr_Occurred()) SWIG_fail; | |
3268 | } | |
3269 | Py_INCREF(Py_None); resultobj = Py_None; | |
3270 | { | |
3271 | if (temp2) | |
3272 | delete arg2; | |
3273 | } | |
3274 | return resultobj; | |
3275 | fail: | |
3276 | { | |
3277 | if (temp2) | |
3278 | delete arg2; | |
3279 | } | |
3280 | return NULL; | |
3281 | } | |
3282 | ||
3283 | ||
3284 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject *resultobj; | |
3286 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3287 | PyObject * obj0 = 0 ; | |
3288 | char *kwnames[] = { | |
3289 | (char *) "self", NULL | |
3290 | }; | |
3291 | ||
3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3295 | { |
3296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3297 | (arg1)->Copy(); | |
3298 | ||
3299 | wxPyEndAllowThreads(__tstate); | |
3300 | if (PyErr_Occurred()) SWIG_fail; | |
3301 | } | |
3302 | Py_INCREF(Py_None); resultobj = Py_None; | |
3303 | return resultobj; | |
3304 | fail: | |
3305 | return NULL; | |
3306 | } | |
3307 | ||
3308 | ||
3309 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3310 | PyObject *resultobj; | |
3311 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3312 | PyObject * obj0 = 0 ; | |
3313 | char *kwnames[] = { | |
3314 | (char *) "self", NULL | |
3315 | }; | |
3316 | ||
3317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3320 | { |
3321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3322 | (arg1)->Cut(); | |
3323 | ||
3324 | wxPyEndAllowThreads(__tstate); | |
3325 | if (PyErr_Occurred()) SWIG_fail; | |
3326 | } | |
3327 | Py_INCREF(Py_None); resultobj = Py_None; | |
3328 | return resultobj; | |
3329 | fail: | |
3330 | return NULL; | |
3331 | } | |
3332 | ||
3333 | ||
3334 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3335 | PyObject *resultobj; | |
3336 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3337 | PyObject * obj0 = 0 ; | |
3338 | char *kwnames[] = { | |
3339 | (char *) "self", NULL | |
3340 | }; | |
3341 | ||
3342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3345 | { |
3346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3347 | (arg1)->Paste(); | |
3348 | ||
3349 | wxPyEndAllowThreads(__tstate); | |
3350 | if (PyErr_Occurred()) SWIG_fail; | |
3351 | } | |
3352 | Py_INCREF(Py_None); resultobj = Py_None; | |
3353 | return resultobj; | |
3354 | fail: | |
3355 | return NULL; | |
3356 | } | |
3357 | ||
3358 | ||
3359 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3360 | PyObject *resultobj; | |
3361 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3362 | long arg2 ; | |
3363 | PyObject * obj0 = 0 ; | |
994141e6 | 3364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3365 | char *kwnames[] = { |
3366 | (char *) "self",(char *) "pos", NULL | |
3367 | }; | |
3368 | ||
994141e6 | 3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3372 | arg2 = (long) SWIG_AsLong(obj1); | |
3373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3374 | { |
3375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3376 | (arg1)->SetInsertionPoint(arg2); | |
3377 | ||
3378 | wxPyEndAllowThreads(__tstate); | |
3379 | if (PyErr_Occurred()) SWIG_fail; | |
3380 | } | |
3381 | Py_INCREF(Py_None); resultobj = Py_None; | |
3382 | return resultobj; | |
3383 | fail: | |
3384 | return NULL; | |
3385 | } | |
3386 | ||
3387 | ||
3388 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3389 | PyObject *resultobj; | |
3390 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3391 | long result; | |
3392 | PyObject * obj0 = 0 ; | |
3393 | char *kwnames[] = { | |
3394 | (char *) "self", NULL | |
3395 | }; | |
3396 | ||
3397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3400 | { |
3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3402 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3403 | ||
3404 | wxPyEndAllowThreads(__tstate); | |
3405 | if (PyErr_Occurred()) SWIG_fail; | |
3406 | } | |
15afbcd0 | 3407 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3408 | return resultobj; |
3409 | fail: | |
3410 | return NULL; | |
3411 | } | |
3412 | ||
3413 | ||
3414 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3415 | PyObject *resultobj; | |
3416 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3417 | long result; | |
3418 | PyObject * obj0 = 0 ; | |
3419 | char *kwnames[] = { | |
3420 | (char *) "self", NULL | |
3421 | }; | |
3422 | ||
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3426 | { |
3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3428 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3429 | ||
3430 | wxPyEndAllowThreads(__tstate); | |
3431 | if (PyErr_Occurred()) SWIG_fail; | |
3432 | } | |
15afbcd0 | 3433 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3434 | return resultobj; |
3435 | fail: | |
3436 | return NULL; | |
3437 | } | |
3438 | ||
3439 | ||
3440 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3441 | PyObject *resultobj; | |
3442 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3443 | long arg2 ; | |
3444 | long arg3 ; | |
3445 | wxString *arg4 = 0 ; | |
e811c8ce | 3446 | bool temp4 = False ; |
d14a1e28 | 3447 | PyObject * obj0 = 0 ; |
994141e6 RD |
3448 | PyObject * obj1 = 0 ; |
3449 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3450 | PyObject * obj3 = 0 ; |
3451 | char *kwnames[] = { | |
3452 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3453 | }; | |
3454 | ||
994141e6 | 3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3458 | arg2 = (long) SWIG_AsLong(obj1); | |
3459 | if (PyErr_Occurred()) SWIG_fail; | |
3460 | arg3 = (long) SWIG_AsLong(obj2); | |
3461 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3462 | { |
3463 | arg4 = wxString_in_helper(obj3); | |
3464 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3465 | temp4 = True; |
d14a1e28 RD |
3466 | } |
3467 | { | |
3468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3469 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3470 | ||
3471 | wxPyEndAllowThreads(__tstate); | |
3472 | if (PyErr_Occurred()) SWIG_fail; | |
3473 | } | |
3474 | Py_INCREF(Py_None); resultobj = Py_None; | |
3475 | { | |
3476 | if (temp4) | |
3477 | delete arg4; | |
3478 | } | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | { | |
3482 | if (temp4) | |
3483 | delete arg4; | |
3484 | } | |
3485 | return NULL; | |
3486 | } | |
3487 | ||
3488 | ||
fd3f2efe RD |
3489 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3490 | PyObject *resultobj; | |
3491 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3492 | int arg2 ; | |
3493 | PyObject * obj0 = 0 ; | |
994141e6 | 3494 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3495 | char *kwnames[] = { |
3496 | (char *) "self",(char *) "n", NULL | |
3497 | }; | |
3498 | ||
994141e6 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3502 | arg2 = (int) SWIG_AsInt(obj1); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
fd3f2efe RD |
3504 | { |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | (arg1)->SetSelection(arg2); | |
3507 | ||
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | Py_INCREF(Py_None); resultobj = Py_None; | |
3512 | return resultobj; | |
3513 | fail: | |
3514 | return NULL; | |
3515 | } | |
3516 | ||
3517 | ||
d14a1e28 RD |
3518 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3519 | PyObject *resultobj; | |
3520 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3521 | long arg2 ; | |
3522 | long arg3 ; | |
3523 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3524 | PyObject * obj1 = 0 ; |
3525 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3526 | char *kwnames[] = { |
3527 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3528 | }; | |
3529 | ||
994141e6 | 3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3533 | arg2 = (long) SWIG_AsLong(obj1); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | arg3 = (long) SWIG_AsLong(obj2); | |
3536 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3537 | { |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3539 | (arg1)->SetSelection(arg2,arg3); | |
3540 | ||
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
3543 | } | |
3544 | Py_INCREF(Py_None); resultobj = Py_None; | |
3545 | return resultobj; | |
3546 | fail: | |
3547 | return NULL; | |
3548 | } | |
3549 | ||
3550 | ||
121b9a67 RD |
3551 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3552 | PyObject *resultobj; | |
3553 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3554 | wxString *arg2 = 0 ; | |
3555 | bool result; | |
3556 | bool temp2 = False ; | |
3557 | PyObject * obj0 = 0 ; | |
3558 | PyObject * obj1 = 0 ; | |
3559 | char *kwnames[] = { | |
3560 | (char *) "self",(char *) "string", NULL | |
3561 | }; | |
3562 | ||
3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3566 | { | |
3567 | arg2 = wxString_in_helper(obj1); | |
3568 | if (arg2 == NULL) SWIG_fail; | |
3569 | temp2 = True; | |
3570 | } | |
3571 | { | |
3572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3573 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3574 | ||
3575 | wxPyEndAllowThreads(__tstate); | |
3576 | if (PyErr_Occurred()) SWIG_fail; | |
3577 | } | |
3578 | { | |
3579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3580 | } | |
3581 | { | |
3582 | if (temp2) | |
3583 | delete arg2; | |
3584 | } | |
3585 | return resultobj; | |
3586 | fail: | |
3587 | { | |
3588 | if (temp2) | |
3589 | delete arg2; | |
3590 | } | |
3591 | return NULL; | |
3592 | } | |
3593 | ||
3594 | ||
3595 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3596 | PyObject *resultobj; | |
3597 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3598 | int arg2 ; | |
3599 | wxString *arg3 = 0 ; | |
3600 | bool temp3 = False ; | |
3601 | PyObject * obj0 = 0 ; | |
3602 | PyObject * obj1 = 0 ; | |
3603 | PyObject * obj2 = 0 ; | |
3604 | char *kwnames[] = { | |
3605 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3606 | }; | |
3607 | ||
3608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3611 | arg2 = (int) SWIG_AsInt(obj1); | |
3612 | if (PyErr_Occurred()) SWIG_fail; | |
3613 | { | |
3614 | arg3 = wxString_in_helper(obj2); | |
3615 | if (arg3 == NULL) SWIG_fail; | |
3616 | temp3 = True; | |
3617 | } | |
3618 | { | |
3619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3620 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3621 | ||
3622 | wxPyEndAllowThreads(__tstate); | |
3623 | if (PyErr_Occurred()) SWIG_fail; | |
3624 | } | |
3625 | Py_INCREF(Py_None); resultobj = Py_None; | |
3626 | { | |
3627 | if (temp3) | |
3628 | delete arg3; | |
3629 | } | |
3630 | return resultobj; | |
3631 | fail: | |
3632 | { | |
3633 | if (temp3) | |
3634 | delete arg3; | |
3635 | } | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
d14a1e28 RD |
3640 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3641 | PyObject *resultobj; | |
3642 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3643 | bool arg2 ; | |
3644 | PyObject * obj0 = 0 ; | |
3645 | PyObject * obj1 = 0 ; | |
3646 | char *kwnames[] = { | |
3647 | (char *) "self",(char *) "editable", NULL | |
3648 | }; | |
3649 | ||
3650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3653 | arg2 = (bool) SWIG_AsBool(obj1); | |
3654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3655 | { |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3657 | (arg1)->SetEditable(arg2); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
3660 | if (PyErr_Occurred()) SWIG_fail; | |
3661 | } | |
3662 | Py_INCREF(Py_None); resultobj = Py_None; | |
3663 | return resultobj; | |
3664 | fail: | |
3665 | return NULL; | |
3666 | } | |
3667 | ||
3668 | ||
3669 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3670 | PyObject *resultobj; | |
3671 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3672 | PyObject * obj0 = 0 ; | |
3673 | char *kwnames[] = { | |
3674 | (char *) "self", NULL | |
3675 | }; | |
3676 | ||
3677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3680 | { |
3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3682 | (arg1)->SetInsertionPointEnd(); | |
3683 | ||
3684 | wxPyEndAllowThreads(__tstate); | |
3685 | if (PyErr_Occurred()) SWIG_fail; | |
3686 | } | |
3687 | Py_INCREF(Py_None); resultobj = Py_None; | |
3688 | return resultobj; | |
3689 | fail: | |
3690 | return NULL; | |
3691 | } | |
3692 | ||
3693 | ||
3694 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3695 | PyObject *resultobj; | |
3696 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3697 | long arg2 ; | |
3698 | long arg3 ; | |
3699 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3700 | PyObject * obj1 = 0 ; |
3701 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3702 | char *kwnames[] = { |
3703 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3704 | }; | |
3705 | ||
994141e6 | 3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3709 | arg2 = (long) SWIG_AsLong(obj1); | |
3710 | if (PyErr_Occurred()) SWIG_fail; | |
3711 | arg3 = (long) SWIG_AsLong(obj2); | |
3712 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3713 | { |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3715 | (arg1)->Remove(arg2,arg3); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
3720 | Py_INCREF(Py_None); resultobj = Py_None; | |
3721 | return resultobj; | |
3722 | fail: | |
3723 | return NULL; | |
3724 | } | |
3725 | ||
3726 | ||
22bfe96c RD |
3727 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3728 | PyObject *resultobj; | |
3729 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3730 | wxVisualAttributes result; | |
3731 | PyObject * obj0 = 0 ; | |
3732 | char *kwnames[] = { | |
3733 | (char *) "variant", NULL | |
3734 | }; | |
3735 | ||
3736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3737 | if (obj0) { | |
3738 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3739 | if (PyErr_Occurred()) SWIG_fail; | |
3740 | } | |
3741 | { | |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | { | |
3749 | wxVisualAttributes * resultptr; | |
3750 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3751 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3752 | } | |
3753 | return resultobj; | |
3754 | fail: | |
3755 | return NULL; | |
3756 | } | |
3757 | ||
3758 | ||
d14a1e28 RD |
3759 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { |
3760 | PyObject *obj; | |
3761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3762 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3763 | Py_INCREF(obj); | |
3764 | return Py_BuildValue((char *)""); | |
3765 | } | |
b2dc1044 RD |
3766 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3767 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3768 | return 1; | |
3769 | } | |
3770 | ||
3771 | ||
3772 | static PyObject *_wrap_GaugeNameStr_get() { | |
3773 | PyObject *pyobj; | |
3774 | ||
3775 | { | |
3776 | #if wxUSE_UNICODE | |
3777 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3778 | #else | |
3779 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3780 | #endif | |
3781 | } | |
3782 | return pyobj; | |
3783 | } | |
3784 | ||
3785 | ||
d14a1e28 RD |
3786 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3787 | PyObject *resultobj; | |
3788 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3789 | int arg2 ; |
d14a1e28 RD |
3790 | int arg3 ; |
3791 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3792 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3793 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3794 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3795 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3796 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3797 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3798 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3799 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3800 | wxGauge *result; | |
3801 | wxPoint temp4 ; | |
3802 | wxSize temp5 ; | |
e811c8ce | 3803 | bool temp8 = False ; |
d14a1e28 | 3804 | PyObject * obj0 = 0 ; |
994141e6 RD |
3805 | PyObject * obj1 = 0 ; |
3806 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3807 | PyObject * obj3 = 0 ; |
3808 | PyObject * obj4 = 0 ; | |
994141e6 | 3809 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3810 | PyObject * obj6 = 0 ; |
3811 | PyObject * obj7 = 0 ; | |
3812 | char *kwnames[] = { | |
3813 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3814 | }; | |
3815 | ||
994141e6 | 3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
3817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3819 | arg2 = (int) SWIG_AsInt(obj1); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | arg3 = (int) SWIG_AsInt(obj2); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3823 | if (obj3) { |
3824 | { | |
3825 | arg4 = &temp4; | |
3826 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3827 | } | |
3828 | } | |
3829 | if (obj4) { | |
3830 | { | |
3831 | arg5 = &temp5; | |
3832 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3833 | } | |
3834 | } | |
994141e6 | 3835 | if (obj5) { |
15afbcd0 RD |
3836 | arg6 = (long) SWIG_AsLong(obj5); |
3837 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3838 | } |
d14a1e28 | 3839 | if (obj6) { |
15afbcd0 RD |
3840 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
3841 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3842 | SWIG_fail; | |
d14a1e28 | 3843 | if (arg7 == NULL) { |
15afbcd0 RD |
3844 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3845 | SWIG_fail; | |
d14a1e28 RD |
3846 | } |
3847 | } | |
3848 | if (obj7) { | |
3849 | { | |
3850 | arg8 = wxString_in_helper(obj7); | |
3851 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3852 | temp8 = True; |
d14a1e28 RD |
3853 | } |
3854 | } | |
3855 | { | |
3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3857 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3858 | ||
3859 | wxPyEndAllowThreads(__tstate); | |
3860 | if (PyErr_Occurred()) SWIG_fail; | |
3861 | } | |
15afbcd0 | 3862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3863 | { |
3864 | if (temp8) | |
3865 | delete arg8; | |
3866 | } | |
3867 | return resultobj; | |
3868 | fail: | |
3869 | { | |
3870 | if (temp8) | |
3871 | delete arg8; | |
3872 | } | |
3873 | return NULL; | |
3874 | } | |
3875 | ||
3876 | ||
3877 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3878 | PyObject *resultobj; | |
3879 | wxGauge *result; | |
3880 | char *kwnames[] = { | |
3881 | NULL | |
3882 | }; | |
3883 | ||
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | result = (wxGauge *)new wxGauge(); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
15afbcd0 | 3892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3893 | return resultobj; |
3894 | fail: | |
3895 | return NULL; | |
3896 | } | |
3897 | ||
3898 | ||
3899 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject *resultobj; | |
3901 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3902 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3903 | int arg3 ; |
d14a1e28 RD |
3904 | int arg4 ; |
3905 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3906 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3907 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3908 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3909 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3910 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3911 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3912 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3913 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3914 | bool result; | |
3915 | wxPoint temp5 ; | |
3916 | wxSize temp6 ; | |
e811c8ce | 3917 | bool temp9 = False ; |
d14a1e28 RD |
3918 | PyObject * obj0 = 0 ; |
3919 | PyObject * obj1 = 0 ; | |
994141e6 RD |
3920 | PyObject * obj2 = 0 ; |
3921 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3922 | PyObject * obj4 = 0 ; |
3923 | PyObject * obj5 = 0 ; | |
994141e6 | 3924 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3925 | PyObject * obj7 = 0 ; |
3926 | PyObject * obj8 = 0 ; | |
3927 | char *kwnames[] = { | |
3928 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3929 | }; | |
3930 | ||
994141e6 | 3931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
3932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3934 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3936 | arg3 = (int) SWIG_AsInt(obj2); | |
3937 | if (PyErr_Occurred()) SWIG_fail; | |
3938 | arg4 = (int) SWIG_AsInt(obj3); | |
3939 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3940 | if (obj4) { |
3941 | { | |
3942 | arg5 = &temp5; | |
3943 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3944 | } | |
3945 | } | |
3946 | if (obj5) { | |
3947 | { | |
3948 | arg6 = &temp6; | |
3949 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3950 | } | |
3951 | } | |
994141e6 | 3952 | if (obj6) { |
15afbcd0 RD |
3953 | arg7 = (long) SWIG_AsLong(obj6); |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3955 | } |
d14a1e28 | 3956 | if (obj7) { |
15afbcd0 RD |
3957 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3958 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3959 | SWIG_fail; | |
d14a1e28 | 3960 | if (arg8 == NULL) { |
15afbcd0 RD |
3961 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3962 | SWIG_fail; | |
d14a1e28 RD |
3963 | } |
3964 | } | |
3965 | if (obj8) { | |
3966 | { | |
3967 | arg9 = wxString_in_helper(obj8); | |
3968 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3969 | temp9 = True; |
d14a1e28 RD |
3970 | } |
3971 | } | |
3972 | { | |
3973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3974 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3975 | ||
3976 | wxPyEndAllowThreads(__tstate); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
3978 | } | |
4f89f6a3 RD |
3979 | { |
3980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3981 | } | |
d14a1e28 RD |
3982 | { |
3983 | if (temp9) | |
3984 | delete arg9; | |
3985 | } | |
3986 | return resultobj; | |
3987 | fail: | |
3988 | { | |
3989 | if (temp9) | |
3990 | delete arg9; | |
3991 | } | |
3992 | return NULL; | |
3993 | } | |
3994 | ||
3995 | ||
3996 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3997 | PyObject *resultobj; | |
3998 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3999 | int arg2 ; | |
4000 | PyObject * obj0 = 0 ; | |
994141e6 | 4001 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4002 | char *kwnames[] = { |
4003 | (char *) "self",(char *) "range", NULL | |
4004 | }; | |
4005 | ||
994141e6 | 4006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4009 | arg2 = (int) SWIG_AsInt(obj1); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4011 | { |
4012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4013 | (arg1)->SetRange(arg2); | |
4014 | ||
4015 | wxPyEndAllowThreads(__tstate); | |
4016 | if (PyErr_Occurred()) SWIG_fail; | |
4017 | } | |
4018 | Py_INCREF(Py_None); resultobj = Py_None; | |
4019 | return resultobj; | |
4020 | fail: | |
4021 | return NULL; | |
4022 | } | |
4023 | ||
4024 | ||
4025 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4026 | PyObject *resultobj; | |
4027 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4028 | int result; | |
4029 | PyObject * obj0 = 0 ; | |
4030 | char *kwnames[] = { | |
4031 | (char *) "self", NULL | |
4032 | }; | |
4033 | ||
4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4037 | { |
4038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4039 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4040 | ||
4041 | wxPyEndAllowThreads(__tstate); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
4043 | } | |
15afbcd0 | 4044 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4045 | return resultobj; |
4046 | fail: | |
4047 | return NULL; | |
4048 | } | |
4049 | ||
4050 | ||
4051 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4052 | PyObject *resultobj; | |
4053 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4054 | int arg2 ; | |
4055 | PyObject * obj0 = 0 ; | |
994141e6 | 4056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4057 | char *kwnames[] = { |
4058 | (char *) "self",(char *) "pos", NULL | |
4059 | }; | |
4060 | ||
994141e6 | 4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4064 | arg2 = (int) SWIG_AsInt(obj1); | |
4065 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4066 | { |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | (arg1)->SetValue(arg2); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | Py_INCREF(Py_None); resultobj = Py_None; | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
4080 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4081 | PyObject *resultobj; | |
4082 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4083 | int result; | |
4084 | PyObject * obj0 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "self", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4092 | { |
4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4094 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4095 | ||
4096 | wxPyEndAllowThreads(__tstate); | |
4097 | if (PyErr_Occurred()) SWIG_fail; | |
4098 | } | |
15afbcd0 | 4099 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4100 | return resultobj; |
4101 | fail: | |
4102 | return NULL; | |
4103 | } | |
4104 | ||
4105 | ||
4106 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4107 | PyObject *resultobj; | |
4108 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4109 | bool result; | |
4110 | PyObject * obj0 = 0 ; | |
4111 | char *kwnames[] = { | |
4112 | (char *) "self", NULL | |
4113 | }; | |
4114 | ||
4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4118 | { |
4119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4120 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4121 | ||
4122 | wxPyEndAllowThreads(__tstate); | |
4123 | if (PyErr_Occurred()) SWIG_fail; | |
4124 | } | |
4f89f6a3 RD |
4125 | { |
4126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4127 | } | |
d14a1e28 RD |
4128 | return resultobj; |
4129 | fail: | |
4130 | return NULL; | |
4131 | } | |
4132 | ||
4133 | ||
4134 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4135 | PyObject *resultobj; | |
4136 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4137 | int arg2 ; | |
4138 | PyObject * obj0 = 0 ; | |
994141e6 | 4139 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4140 | char *kwnames[] = { |
4141 | (char *) "self",(char *) "w", NULL | |
4142 | }; | |
4143 | ||
994141e6 | 4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4147 | arg2 = (int) SWIG_AsInt(obj1); | |
4148 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4149 | { |
4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4151 | (arg1)->SetShadowWidth(arg2); | |
4152 | ||
4153 | wxPyEndAllowThreads(__tstate); | |
4154 | if (PyErr_Occurred()) SWIG_fail; | |
4155 | } | |
4156 | Py_INCREF(Py_None); resultobj = Py_None; | |
4157 | return resultobj; | |
4158 | fail: | |
4159 | return NULL; | |
4160 | } | |
4161 | ||
4162 | ||
4163 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4164 | PyObject *resultobj; | |
4165 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4166 | int result; | |
4167 | PyObject * obj0 = 0 ; | |
4168 | char *kwnames[] = { | |
4169 | (char *) "self", NULL | |
4170 | }; | |
4171 | ||
4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4175 | { |
4176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4177 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4178 | ||
4179 | wxPyEndAllowThreads(__tstate); | |
4180 | if (PyErr_Occurred()) SWIG_fail; | |
4181 | } | |
15afbcd0 | 4182 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4183 | return resultobj; |
4184 | fail: | |
4185 | return NULL; | |
4186 | } | |
4187 | ||
4188 | ||
4189 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4190 | PyObject *resultobj; | |
4191 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4192 | int arg2 ; | |
4193 | PyObject * obj0 = 0 ; | |
994141e6 | 4194 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4195 | char *kwnames[] = { |
4196 | (char *) "self",(char *) "w", NULL | |
4197 | }; | |
4198 | ||
994141e6 | 4199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4202 | arg2 = (int) SWIG_AsInt(obj1); | |
4203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4204 | { |
4205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4206 | (arg1)->SetBezelFace(arg2); | |
4207 | ||
4208 | wxPyEndAllowThreads(__tstate); | |
4209 | if (PyErr_Occurred()) SWIG_fail; | |
4210 | } | |
4211 | Py_INCREF(Py_None); resultobj = Py_None; | |
4212 | return resultobj; | |
4213 | fail: | |
4214 | return NULL; | |
4215 | } | |
4216 | ||
4217 | ||
4218 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4219 | PyObject *resultobj; | |
4220 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4221 | int result; | |
4222 | PyObject * obj0 = 0 ; | |
4223 | char *kwnames[] = { | |
4224 | (char *) "self", NULL | |
4225 | }; | |
4226 | ||
4227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4230 | { |
4231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4232 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4233 | ||
4234 | wxPyEndAllowThreads(__tstate); | |
4235 | if (PyErr_Occurred()) SWIG_fail; | |
4236 | } | |
15afbcd0 | 4237 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4238 | return resultobj; |
4239 | fail: | |
4240 | return NULL; | |
4241 | } | |
4242 | ||
4243 | ||
22bfe96c RD |
4244 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4245 | PyObject *resultobj; | |
4246 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4247 | wxVisualAttributes result; | |
4248 | PyObject * obj0 = 0 ; | |
4249 | char *kwnames[] = { | |
4250 | (char *) "variant", NULL | |
4251 | }; | |
4252 | ||
4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4254 | if (obj0) { | |
4255 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4256 | if (PyErr_Occurred()) SWIG_fail; | |
4257 | } | |
4258 | { | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | { | |
4266 | wxVisualAttributes * resultptr; | |
4267 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4268 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4269 | } | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
d14a1e28 RD |
4276 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { |
4277 | PyObject *obj; | |
4278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4279 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4280 | Py_INCREF(obj); | |
4281 | return Py_BuildValue((char *)""); | |
4282 | } | |
b2dc1044 RD |
4283 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
4284 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4285 | return 1; | |
4286 | } | |
4287 | ||
4288 | ||
4289 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4290 | PyObject *pyobj; | |
4291 | ||
4292 | { | |
4293 | #if wxUSE_UNICODE | |
4294 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4295 | #else | |
4296 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4297 | #endif | |
4298 | } | |
4299 | return pyobj; | |
4300 | } | |
4301 | ||
4302 | ||
4303 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4304 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4305 | return 1; | |
4306 | } | |
4307 | ||
4308 | ||
4309 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4310 | PyObject *pyobj; | |
4311 | ||
4312 | { | |
4313 | #if wxUSE_UNICODE | |
4314 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4315 | #else | |
4316 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4317 | #endif | |
4318 | } | |
4319 | return pyobj; | |
4320 | } | |
4321 | ||
4322 | ||
4323 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4324 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4325 | return 1; | |
4326 | } | |
4327 | ||
4328 | ||
4329 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4330 | PyObject *pyobj; | |
4331 | ||
4332 | { | |
4333 | #if wxUSE_UNICODE | |
4334 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4335 | #else | |
4336 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4337 | #endif | |
4338 | } | |
4339 | return pyobj; | |
4340 | } | |
4341 | ||
4342 | ||
d14a1e28 RD |
4343 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4344 | PyObject *resultobj; | |
4345 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4346 | int arg2 ; |
d14a1e28 RD |
4347 | wxString *arg3 = 0 ; |
4348 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4349 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4350 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4351 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4352 | long arg6 = (long) 0 ; | |
4353 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4354 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4355 | wxStaticBox *result; | |
e811c8ce | 4356 | bool temp3 = False ; |
d14a1e28 RD |
4357 | wxPoint temp4 ; |
4358 | wxSize temp5 ; | |
e811c8ce | 4359 | bool temp7 = False ; |
d14a1e28 | 4360 | PyObject * obj0 = 0 ; |
994141e6 | 4361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4362 | PyObject * obj2 = 0 ; |
4363 | PyObject * obj3 = 0 ; | |
4364 | PyObject * obj4 = 0 ; | |
994141e6 | 4365 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4366 | PyObject * obj6 = 0 ; |
4367 | char *kwnames[] = { | |
4368 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4369 | }; | |
4370 | ||
994141e6 | 4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4374 | arg2 = (int) SWIG_AsInt(obj1); | |
4375 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4376 | { |
4377 | arg3 = wxString_in_helper(obj2); | |
4378 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 4379 | temp3 = True; |
d14a1e28 RD |
4380 | } |
4381 | if (obj3) { | |
4382 | { | |
4383 | arg4 = &temp4; | |
4384 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4385 | } | |
4386 | } | |
4387 | if (obj4) { | |
4388 | { | |
4389 | arg5 = &temp5; | |
4390 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4391 | } | |
4392 | } | |
994141e6 | 4393 | if (obj5) { |
15afbcd0 RD |
4394 | arg6 = (long) SWIG_AsLong(obj5); |
4395 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4396 | } |
d14a1e28 RD |
4397 | if (obj6) { |
4398 | { | |
4399 | arg7 = wxString_in_helper(obj6); | |
4400 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4401 | temp7 = True; |
d14a1e28 RD |
4402 | } |
4403 | } | |
4404 | { | |
4405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4406 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4407 | ||
4408 | wxPyEndAllowThreads(__tstate); | |
4409 | if (PyErr_Occurred()) SWIG_fail; | |
4410 | } | |
4411 | { | |
4412 | resultobj = wxPyMake_wxObject(result); | |
4413 | } | |
4414 | { | |
4415 | if (temp3) | |
4416 | delete arg3; | |
4417 | } | |
4418 | { | |
4419 | if (temp7) | |
4420 | delete arg7; | |
4421 | } | |
4422 | return resultobj; | |
4423 | fail: | |
4424 | { | |
4425 | if (temp3) | |
4426 | delete arg3; | |
4427 | } | |
4428 | { | |
4429 | if (temp7) | |
4430 | delete arg7; | |
4431 | } | |
4432 | return NULL; | |
4433 | } | |
4434 | ||
4435 | ||
4436 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4437 | PyObject *resultobj; | |
4438 | wxStaticBox *result; | |
4439 | char *kwnames[] = { | |
4440 | NULL | |
4441 | }; | |
4442 | ||
4443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4444 | { | |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | result = (wxStaticBox *)new wxStaticBox(); | |
4447 | ||
4448 | wxPyEndAllowThreads(__tstate); | |
4449 | if (PyErr_Occurred()) SWIG_fail; | |
4450 | } | |
4451 | { | |
4452 | resultobj = wxPyMake_wxObject(result); | |
4453 | } | |
4454 | return resultobj; | |
4455 | fail: | |
4456 | return NULL; | |
4457 | } | |
4458 | ||
4459 | ||
4460 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4461 | PyObject *resultobj; | |
4462 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4463 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4464 | int arg3 ; |
d14a1e28 RD |
4465 | wxString *arg4 = 0 ; |
4466 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4467 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4468 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4469 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4470 | long arg7 = (long) 0 ; | |
4471 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4472 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4473 | bool result; | |
e811c8ce | 4474 | bool temp4 = False ; |
d14a1e28 RD |
4475 | wxPoint temp5 ; |
4476 | wxSize temp6 ; | |
e811c8ce | 4477 | bool temp8 = False ; |
d14a1e28 RD |
4478 | PyObject * obj0 = 0 ; |
4479 | PyObject * obj1 = 0 ; | |
994141e6 | 4480 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4481 | PyObject * obj3 = 0 ; |
4482 | PyObject * obj4 = 0 ; | |
4483 | PyObject * obj5 = 0 ; | |
994141e6 | 4484 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4485 | PyObject * obj7 = 0 ; |
4486 | char *kwnames[] = { | |
4487 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4488 | }; | |
4489 | ||
994141e6 | 4490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4493 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4495 | arg3 = (int) SWIG_AsInt(obj2); | |
4496 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4497 | { |
4498 | arg4 = wxString_in_helper(obj3); | |
4499 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 4500 | temp4 = True; |
d14a1e28 RD |
4501 | } |
4502 | if (obj4) { | |
4503 | { | |
4504 | arg5 = &temp5; | |
4505 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4506 | } | |
4507 | } | |
4508 | if (obj5) { | |
4509 | { | |
4510 | arg6 = &temp6; | |
4511 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4512 | } | |
4513 | } | |
994141e6 | 4514 | if (obj6) { |
15afbcd0 RD |
4515 | arg7 = (long) SWIG_AsLong(obj6); |
4516 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4517 | } |
d14a1e28 RD |
4518 | if (obj7) { |
4519 | { | |
4520 | arg8 = wxString_in_helper(obj7); | |
4521 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4522 | temp8 = True; |
d14a1e28 RD |
4523 | } |
4524 | } | |
4525 | { | |
4526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4527 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4528 | ||
4529 | wxPyEndAllowThreads(__tstate); | |
4530 | if (PyErr_Occurred()) SWIG_fail; | |
4531 | } | |
4f89f6a3 RD |
4532 | { |
4533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4534 | } | |
d14a1e28 RD |
4535 | { |
4536 | if (temp4) | |
4537 | delete arg4; | |
4538 | } | |
4539 | { | |
4540 | if (temp8) | |
4541 | delete arg8; | |
4542 | } | |
4543 | return resultobj; | |
4544 | fail: | |
4545 | { | |
4546 | if (temp4) | |
4547 | delete arg4; | |
4548 | } | |
4549 | { | |
4550 | if (temp8) | |
4551 | delete arg8; | |
4552 | } | |
4553 | return NULL; | |
4554 | } | |
4555 | ||
4556 | ||
22bfe96c RD |
4557 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4558 | PyObject *resultobj; | |
4559 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4560 | wxVisualAttributes result; | |
4561 | PyObject * obj0 = 0 ; | |
4562 | char *kwnames[] = { | |
4563 | (char *) "variant", NULL | |
4564 | }; | |
4565 | ||
4566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4567 | if (obj0) { | |
4568 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4569 | if (PyErr_Occurred()) SWIG_fail; | |
4570 | } | |
4571 | { | |
4572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4573 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4574 | ||
4575 | wxPyEndAllowThreads(__tstate); | |
4576 | if (PyErr_Occurred()) SWIG_fail; | |
4577 | } | |
4578 | { | |
4579 | wxVisualAttributes * resultptr; | |
4580 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4582 | } | |
4583 | return resultobj; | |
4584 | fail: | |
4585 | return NULL; | |
4586 | } | |
4587 | ||
4588 | ||
d14a1e28 RD |
4589 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { |
4590 | PyObject *obj; | |
4591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4592 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4593 | Py_INCREF(obj); | |
4594 | return Py_BuildValue((char *)""); | |
4595 | } | |
4596 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject *resultobj; | |
4598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4599 | int arg2 ; |
d14a1e28 RD |
4600 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4601 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4602 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4603 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4604 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4605 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4606 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4607 | wxStaticLine *result; | |
4608 | wxPoint temp3 ; | |
4609 | wxSize temp4 ; | |
e811c8ce | 4610 | bool temp6 = False ; |
d14a1e28 | 4611 | PyObject * obj0 = 0 ; |
994141e6 | 4612 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4613 | PyObject * obj2 = 0 ; |
4614 | PyObject * obj3 = 0 ; | |
994141e6 | 4615 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4616 | PyObject * obj5 = 0 ; |
4617 | char *kwnames[] = { | |
4618 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4619 | }; | |
4620 | ||
994141e6 | 4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
4622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4624 | arg2 = (int) SWIG_AsInt(obj1); | |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4626 | if (obj2) { |
4627 | { | |
4628 | arg3 = &temp3; | |
4629 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4630 | } | |
4631 | } | |
4632 | if (obj3) { | |
4633 | { | |
4634 | arg4 = &temp4; | |
4635 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4636 | } | |
4637 | } | |
994141e6 | 4638 | if (obj4) { |
15afbcd0 RD |
4639 | arg5 = (long) SWIG_AsLong(obj4); |
4640 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4641 | } |
d14a1e28 RD |
4642 | if (obj5) { |
4643 | { | |
4644 | arg6 = wxString_in_helper(obj5); | |
4645 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 4646 | temp6 = True; |
d14a1e28 RD |
4647 | } |
4648 | } | |
4649 | { | |
4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4651 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4652 | ||
4653 | wxPyEndAllowThreads(__tstate); | |
4654 | if (PyErr_Occurred()) SWIG_fail; | |
4655 | } | |
15afbcd0 | 4656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4657 | { |
4658 | if (temp6) | |
4659 | delete arg6; | |
4660 | } | |
4661 | return resultobj; | |
4662 | fail: | |
4663 | { | |
4664 | if (temp6) | |
4665 | delete arg6; | |
4666 | } | |
4667 | return NULL; | |
4668 | } | |
4669 | ||
4670 | ||
4671 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4672 | PyObject *resultobj; | |
4673 | wxStaticLine *result; | |
4674 | char *kwnames[] = { | |
4675 | NULL | |
4676 | }; | |
4677 | ||
4678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4679 | { | |
4680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4681 | result = (wxStaticLine *)new wxStaticLine(); | |
4682 | ||
4683 | wxPyEndAllowThreads(__tstate); | |
4684 | if (PyErr_Occurred()) SWIG_fail; | |
4685 | } | |
15afbcd0 | 4686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4687 | return resultobj; |
4688 | fail: | |
4689 | return NULL; | |
4690 | } | |
4691 | ||
4692 | ||
4693 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4694 | PyObject *resultobj; | |
4695 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4696 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4697 | int arg3 ; |
d14a1e28 RD |
4698 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4699 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4700 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4701 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4702 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4703 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4704 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4705 | bool result; | |
4706 | wxPoint temp4 ; | |
4707 | wxSize temp5 ; | |
e811c8ce | 4708 | bool temp7 = False ; |
d14a1e28 RD |
4709 | PyObject * obj0 = 0 ; |
4710 | PyObject * obj1 = 0 ; | |
994141e6 | 4711 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4712 | PyObject * obj3 = 0 ; |
4713 | PyObject * obj4 = 0 ; | |
994141e6 | 4714 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4715 | PyObject * obj6 = 0 ; |
4716 | char *kwnames[] = { | |
4717 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4718 | }; | |
4719 | ||
994141e6 | 4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4723 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4725 | arg3 = (int) SWIG_AsInt(obj2); | |
4726 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4727 | if (obj3) { |
4728 | { | |
4729 | arg4 = &temp4; | |
4730 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4731 | } | |
4732 | } | |
4733 | if (obj4) { | |
4734 | { | |
4735 | arg5 = &temp5; | |
4736 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4737 | } | |
4738 | } | |
994141e6 | 4739 | if (obj5) { |
15afbcd0 RD |
4740 | arg6 = (long) SWIG_AsLong(obj5); |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4742 | } |
d14a1e28 RD |
4743 | if (obj6) { |
4744 | { | |
4745 | arg7 = wxString_in_helper(obj6); | |
4746 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4747 | temp7 = True; |
d14a1e28 RD |
4748 | } |
4749 | } | |
4750 | { | |
4751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4752 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4753 | ||
4754 | wxPyEndAllowThreads(__tstate); | |
4755 | if (PyErr_Occurred()) SWIG_fail; | |
4756 | } | |
4f89f6a3 RD |
4757 | { |
4758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4759 | } | |
d14a1e28 RD |
4760 | { |
4761 | if (temp7) | |
4762 | delete arg7; | |
4763 | } | |
4764 | return resultobj; | |
4765 | fail: | |
4766 | { | |
4767 | if (temp7) | |
4768 | delete arg7; | |
4769 | } | |
4770 | return NULL; | |
4771 | } | |
4772 | ||
4773 | ||
4774 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4775 | PyObject *resultobj; | |
4776 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4777 | bool result; | |
4778 | PyObject * obj0 = 0 ; | |
4779 | char *kwnames[] = { | |
4780 | (char *) "self", NULL | |
4781 | }; | |
4782 | ||
4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4786 | { |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
4f89f6a3 RD |
4793 | { |
4794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4795 | } | |
d14a1e28 RD |
4796 | return resultobj; |
4797 | fail: | |
4798 | return NULL; | |
4799 | } | |
4800 | ||
4801 | ||
4802 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4803 | PyObject *resultobj; | |
4804 | int result; | |
4805 | char *kwnames[] = { | |
4806 | NULL | |
4807 | }; | |
4808 | ||
4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | result = (int)wxStaticLine::GetDefaultSize(); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
4816 | } | |
15afbcd0 | 4817 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4818 | return resultobj; |
4819 | fail: | |
4820 | return NULL; | |
4821 | } | |
4822 | ||
4823 | ||
22bfe96c RD |
4824 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4825 | PyObject *resultobj; | |
4826 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4827 | wxVisualAttributes result; | |
4828 | PyObject * obj0 = 0 ; | |
4829 | char *kwnames[] = { | |
4830 | (char *) "variant", NULL | |
4831 | }; | |
4832 | ||
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4834 | if (obj0) { | |
4835 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4836 | if (PyErr_Occurred()) SWIG_fail; | |
4837 | } | |
4838 | { | |
4839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4840 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4841 | ||
4842 | wxPyEndAllowThreads(__tstate); | |
4843 | if (PyErr_Occurred()) SWIG_fail; | |
4844 | } | |
4845 | { | |
4846 | wxVisualAttributes * resultptr; | |
4847 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4849 | } | |
4850 | return resultobj; | |
4851 | fail: | |
4852 | return NULL; | |
4853 | } | |
4854 | ||
4855 | ||
d14a1e28 RD |
4856 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { |
4857 | PyObject *obj; | |
4858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4859 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4860 | Py_INCREF(obj); | |
4861 | return Py_BuildValue((char *)""); | |
4862 | } | |
4863 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject *resultobj; | |
4865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4866 | int arg2 ; |
d14a1e28 RD |
4867 | wxString *arg3 = 0 ; |
4868 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4869 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4870 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4871 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4872 | long arg6 = (long) 0 ; | |
4873 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4874 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4875 | wxStaticText *result; | |
e811c8ce | 4876 | bool temp3 = False ; |
d14a1e28 RD |
4877 | wxPoint temp4 ; |
4878 | wxSize temp5 ; | |
e811c8ce | 4879 | bool temp7 = False ; |
d14a1e28 | 4880 | PyObject * obj0 = 0 ; |
994141e6 | 4881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4882 | PyObject * obj2 = 0 ; |
4883 | PyObject * obj3 = 0 ; | |
4884 | PyObject * obj4 = 0 ; | |
994141e6 | 4885 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4886 | PyObject * obj6 = 0 ; |
4887 | char *kwnames[] = { | |
4888 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4889 | }; | |
4890 | ||
994141e6 | 4891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4894 | arg2 = (int) SWIG_AsInt(obj1); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4896 | { |
4897 | arg3 = wxString_in_helper(obj2); | |
4898 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 4899 | temp3 = True; |
d14a1e28 RD |
4900 | } |
4901 | if (obj3) { | |
4902 | { | |
4903 | arg4 = &temp4; | |
4904 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4905 | } | |
4906 | } | |
4907 | if (obj4) { | |
4908 | { | |
4909 | arg5 = &temp5; | |
4910 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4911 | } | |
4912 | } | |
994141e6 | 4913 | if (obj5) { |
15afbcd0 RD |
4914 | arg6 = (long) SWIG_AsLong(obj5); |
4915 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4916 | } |
d14a1e28 RD |
4917 | if (obj6) { |
4918 | { | |
4919 | arg7 = wxString_in_helper(obj6); | |
4920 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4921 | temp7 = True; |
d14a1e28 RD |
4922 | } |
4923 | } | |
4924 | { | |
4925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4926 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4927 | ||
4928 | wxPyEndAllowThreads(__tstate); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
4930 | } | |
15afbcd0 | 4931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4932 | { |
4933 | if (temp3) | |
4934 | delete arg3; | |
4935 | } | |
4936 | { | |
4937 | if (temp7) | |
4938 | delete arg7; | |
4939 | } | |
4940 | return resultobj; | |
4941 | fail: | |
4942 | { | |
4943 | if (temp3) | |
4944 | delete arg3; | |
4945 | } | |
4946 | { | |
4947 | if (temp7) | |
4948 | delete arg7; | |
4949 | } | |
4950 | return NULL; | |
4951 | } | |
4952 | ||
4953 | ||
4954 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4955 | PyObject *resultobj; | |
4956 | wxStaticText *result; | |
4957 | char *kwnames[] = { | |
4958 | NULL | |
4959 | }; | |
4960 | ||
4961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4962 | { | |
4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4964 | result = (wxStaticText *)new wxStaticText(); | |
4965 | ||
4966 | wxPyEndAllowThreads(__tstate); | |
4967 | if (PyErr_Occurred()) SWIG_fail; | |
4968 | } | |
15afbcd0 | 4969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4970 | return resultobj; |
4971 | fail: | |
4972 | return NULL; | |
4973 | } | |
4974 | ||
4975 | ||
4976 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4977 | PyObject *resultobj; | |
4978 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4979 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4980 | int arg3 ; |
d14a1e28 RD |
4981 | wxString *arg4 = 0 ; |
4982 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4983 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4984 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4985 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4986 | long arg7 = (long) 0 ; | |
4987 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4988 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4989 | bool result; | |
e811c8ce | 4990 | bool temp4 = False ; |
d14a1e28 RD |
4991 | wxPoint temp5 ; |
4992 | wxSize temp6 ; | |
e811c8ce | 4993 | bool temp8 = False ; |
d14a1e28 RD |
4994 | PyObject * obj0 = 0 ; |
4995 | PyObject * obj1 = 0 ; | |
994141e6 | 4996 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4997 | PyObject * obj3 = 0 ; |
4998 | PyObject * obj4 = 0 ; | |
4999 | PyObject * obj5 = 0 ; | |
994141e6 | 5000 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5001 | PyObject * obj7 = 0 ; |
5002 | char *kwnames[] = { | |
5003 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5004 | }; | |
5005 | ||
994141e6 | 5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5009 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5011 | arg3 = (int) SWIG_AsInt(obj2); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5013 | { |
5014 | arg4 = wxString_in_helper(obj3); | |
5015 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 5016 | temp4 = True; |
d14a1e28 RD |
5017 | } |
5018 | if (obj4) { | |
5019 | { | |
5020 | arg5 = &temp5; | |
5021 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5022 | } | |
5023 | } | |
5024 | if (obj5) { | |
5025 | { | |
5026 | arg6 = &temp6; | |
5027 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5028 | } | |
5029 | } | |
994141e6 | 5030 | if (obj6) { |
15afbcd0 RD |
5031 | arg7 = (long) SWIG_AsLong(obj6); |
5032 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5033 | } |
d14a1e28 RD |
5034 | if (obj7) { |
5035 | { | |
5036 | arg8 = wxString_in_helper(obj7); | |
5037 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5038 | temp8 = True; |
d14a1e28 RD |
5039 | } |
5040 | } | |
5041 | { | |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5043 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
5047 | } | |
4f89f6a3 RD |
5048 | { |
5049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5050 | } | |
d14a1e28 RD |
5051 | { |
5052 | if (temp4) | |
5053 | delete arg4; | |
5054 | } | |
5055 | { | |
5056 | if (temp8) | |
5057 | delete arg8; | |
5058 | } | |
5059 | return resultobj; | |
5060 | fail: | |
5061 | { | |
5062 | if (temp4) | |
5063 | delete arg4; | |
5064 | } | |
5065 | { | |
5066 | if (temp8) | |
5067 | delete arg8; | |
5068 | } | |
5069 | return NULL; | |
5070 | } | |
5071 | ||
5072 | ||
22bfe96c RD |
5073 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5074 | PyObject *resultobj; | |
5075 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5076 | wxVisualAttributes result; | |
5077 | PyObject * obj0 = 0 ; | |
5078 | char *kwnames[] = { | |
5079 | (char *) "variant", NULL | |
5080 | }; | |
5081 | ||
5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5083 | if (obj0) { | |
5084 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5085 | if (PyErr_Occurred()) SWIG_fail; | |
5086 | } | |
5087 | { | |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5090 | ||
5091 | wxPyEndAllowThreads(__tstate); | |
5092 | if (PyErr_Occurred()) SWIG_fail; | |
5093 | } | |
5094 | { | |
5095 | wxVisualAttributes * resultptr; | |
5096 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5097 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5098 | } | |
5099 | return resultobj; | |
5100 | fail: | |
5101 | return NULL; | |
5102 | } | |
5103 | ||
5104 | ||
d14a1e28 RD |
5105 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { |
5106 | PyObject *obj; | |
5107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5108 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5109 | Py_INCREF(obj); | |
5110 | return Py_BuildValue((char *)""); | |
5111 | } | |
5112 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5113 | PyObject *resultobj; | |
5114 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5115 | int arg2 ; |
d14a1e28 RD |
5116 | wxBitmap *arg3 = 0 ; |
5117 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5118 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5119 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5120 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5121 | long arg6 = (long) 0 ; | |
5122 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5123 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5124 | wxStaticBitmap *result; | |
5125 | wxPoint temp4 ; | |
5126 | wxSize temp5 ; | |
e811c8ce | 5127 | bool temp7 = False ; |
d14a1e28 | 5128 | PyObject * obj0 = 0 ; |
994141e6 | 5129 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5130 | PyObject * obj2 = 0 ; |
5131 | PyObject * obj3 = 0 ; | |
5132 | PyObject * obj4 = 0 ; | |
994141e6 | 5133 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5134 | PyObject * obj6 = 0 ; |
5135 | char *kwnames[] = { | |
5136 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5137 | }; | |
5138 | ||
994141e6 | 5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5142 | arg2 = (int) SWIG_AsInt(obj1); | |
5143 | if (PyErr_Occurred()) SWIG_fail; | |
5144 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5145 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5146 | SWIG_fail; | |
d14a1e28 | 5147 | if (arg3 == NULL) { |
15afbcd0 RD |
5148 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5149 | SWIG_fail; | |
d14a1e28 RD |
5150 | } |
5151 | if (obj3) { | |
5152 | { | |
5153 | arg4 = &temp4; | |
5154 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5155 | } | |
5156 | } | |
5157 | if (obj4) { | |
5158 | { | |
5159 | arg5 = &temp5; | |
5160 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5161 | } | |
5162 | } | |
994141e6 | 5163 | if (obj5) { |
15afbcd0 RD |
5164 | arg6 = (long) SWIG_AsLong(obj5); |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5166 | } |
d14a1e28 RD |
5167 | if (obj6) { |
5168 | { | |
5169 | arg7 = wxString_in_helper(obj6); | |
5170 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5171 | temp7 = True; |
d14a1e28 RD |
5172 | } |
5173 | } | |
5174 | { | |
5175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5176 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5177 | ||
5178 | wxPyEndAllowThreads(__tstate); | |
5179 | if (PyErr_Occurred()) SWIG_fail; | |
5180 | } | |
15afbcd0 | 5181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5182 | { |
5183 | if (temp7) | |
5184 | delete arg7; | |
5185 | } | |
5186 | return resultobj; | |
5187 | fail: | |
5188 | { | |
5189 | if (temp7) | |
5190 | delete arg7; | |
5191 | } | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
5196 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5197 | PyObject *resultobj; | |
5198 | wxStaticBitmap *result; | |
5199 | char *kwnames[] = { | |
5200 | NULL | |
5201 | }; | |
5202 | ||
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5204 | { | |
5205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5206 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5207 | ||
5208 | wxPyEndAllowThreads(__tstate); | |
5209 | if (PyErr_Occurred()) SWIG_fail; | |
5210 | } | |
15afbcd0 | 5211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5212 | return resultobj; |
5213 | fail: | |
5214 | return NULL; | |
5215 | } | |
5216 | ||
5217 | ||
5218 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5219 | PyObject *resultobj; | |
5220 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5221 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5222 | int arg3 ; |
d14a1e28 RD |
5223 | wxBitmap *arg4 = 0 ; |
5224 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5225 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5226 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5227 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5228 | long arg7 = (long) 0 ; | |
5229 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5230 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5231 | bool result; | |
5232 | wxPoint temp5 ; | |
5233 | wxSize temp6 ; | |
e811c8ce | 5234 | bool temp8 = False ; |
d14a1e28 RD |
5235 | PyObject * obj0 = 0 ; |
5236 | PyObject * obj1 = 0 ; | |
994141e6 | 5237 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5238 | PyObject * obj3 = 0 ; |
5239 | PyObject * obj4 = 0 ; | |
5240 | PyObject * obj5 = 0 ; | |
994141e6 | 5241 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5242 | PyObject * obj7 = 0 ; |
5243 | char *kwnames[] = { | |
5244 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5245 | }; | |
5246 | ||
994141e6 | 5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5252 | arg3 = (int) SWIG_AsInt(obj2); | |
5253 | if (PyErr_Occurred()) SWIG_fail; | |
5254 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5255 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5256 | SWIG_fail; | |
d14a1e28 | 5257 | if (arg4 == NULL) { |
15afbcd0 RD |
5258 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5259 | SWIG_fail; | |
d14a1e28 RD |
5260 | } |
5261 | if (obj4) { | |
5262 | { | |
5263 | arg5 = &temp5; | |
5264 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5265 | } | |
5266 | } | |
5267 | if (obj5) { | |
5268 | { | |
5269 | arg6 = &temp6; | |
5270 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5271 | } | |
5272 | } | |
994141e6 | 5273 | if (obj6) { |
15afbcd0 RD |
5274 | arg7 = (long) SWIG_AsLong(obj6); |
5275 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5276 | } |
d14a1e28 RD |
5277 | if (obj7) { |
5278 | { | |
5279 | arg8 = wxString_in_helper(obj7); | |
5280 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5281 | temp8 = True; |
d14a1e28 RD |
5282 | } |
5283 | } | |
5284 | { | |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5286 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
4f89f6a3 RD |
5291 | { |
5292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5293 | } | |
d14a1e28 RD |
5294 | { |
5295 | if (temp8) | |
5296 | delete arg8; | |
5297 | } | |
5298 | return resultobj; | |
5299 | fail: | |
5300 | { | |
5301 | if (temp8) | |
5302 | delete arg8; | |
5303 | } | |
5304 | return NULL; | |
5305 | } | |
5306 | ||
5307 | ||
5308 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5309 | PyObject *resultobj; | |
5310 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5311 | wxBitmap result; | |
5312 | PyObject * obj0 = 0 ; | |
5313 | char *kwnames[] = { | |
5314 | (char *) "self", NULL | |
5315 | }; | |
5316 | ||
5317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5320 | { |
5321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5322 | result = (arg1)->GetBitmap(); | |
5323 | ||
5324 | wxPyEndAllowThreads(__tstate); | |
5325 | if (PyErr_Occurred()) SWIG_fail; | |
5326 | } | |
5327 | { | |
5328 | wxBitmap * resultptr; | |
5329 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5331 | } |
5332 | return resultobj; | |
5333 | fail: | |
5334 | return NULL; | |
5335 | } | |
5336 | ||
5337 | ||
5338 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject *resultobj; | |
5340 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5341 | wxBitmap *arg2 = 0 ; | |
5342 | PyObject * obj0 = 0 ; | |
5343 | PyObject * obj1 = 0 ; | |
5344 | char *kwnames[] = { | |
5345 | (char *) "self",(char *) "bitmap", NULL | |
5346 | }; | |
5347 | ||
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5352 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5353 | SWIG_fail; | |
d14a1e28 | 5354 | if (arg2 == NULL) { |
15afbcd0 RD |
5355 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5356 | SWIG_fail; | |
d14a1e28 RD |
5357 | } |
5358 | { | |
5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5360 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5361 | ||
5362 | wxPyEndAllowThreads(__tstate); | |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
5364 | } | |
5365 | Py_INCREF(Py_None); resultobj = Py_None; | |
5366 | return resultobj; | |
5367 | fail: | |
5368 | return NULL; | |
5369 | } | |
5370 | ||
5371 | ||
5372 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5373 | PyObject *resultobj; | |
5374 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5375 | wxIcon *arg2 = 0 ; | |
5376 | PyObject * obj0 = 0 ; | |
5377 | PyObject * obj1 = 0 ; | |
5378 | char *kwnames[] = { | |
5379 | (char *) "self",(char *) "icon", NULL | |
5380 | }; | |
5381 | ||
5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5385 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5386 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5387 | SWIG_fail; | |
d14a1e28 | 5388 | if (arg2 == NULL) { |
15afbcd0 RD |
5389 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5390 | SWIG_fail; | |
d14a1e28 RD |
5391 | } |
5392 | { | |
5393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5394 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5395 | ||
5396 | wxPyEndAllowThreads(__tstate); | |
5397 | if (PyErr_Occurred()) SWIG_fail; | |
5398 | } | |
5399 | Py_INCREF(Py_None); resultobj = Py_None; | |
5400 | return resultobj; | |
5401 | fail: | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
22bfe96c RD |
5406 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5407 | PyObject *resultobj; | |
5408 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5409 | wxVisualAttributes result; | |
5410 | PyObject * obj0 = 0 ; | |
5411 | char *kwnames[] = { | |
5412 | (char *) "variant", NULL | |
5413 | }; | |
5414 | ||
5415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5416 | if (obj0) { | |
5417 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5418 | if (PyErr_Occurred()) SWIG_fail; | |
5419 | } | |
5420 | { | |
5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5422 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5423 | ||
5424 | wxPyEndAllowThreads(__tstate); | |
5425 | if (PyErr_Occurred()) SWIG_fail; | |
5426 | } | |
5427 | { | |
5428 | wxVisualAttributes * resultptr; | |
5429 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5430 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5431 | } | |
5432 | return resultobj; | |
5433 | fail: | |
5434 | return NULL; | |
5435 | } | |
5436 | ||
5437 | ||
d14a1e28 RD |
5438 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { |
5439 | PyObject *obj; | |
5440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5441 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5442 | Py_INCREF(obj); | |
5443 | return Py_BuildValue((char *)""); | |
5444 | } | |
b2dc1044 RD |
5445 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
5446 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5447 | return 1; | |
5448 | } | |
5449 | ||
5450 | ||
5451 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5452 | PyObject *pyobj; | |
5453 | ||
5454 | { | |
5455 | #if wxUSE_UNICODE | |
5456 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5457 | #else | |
5458 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5459 | #endif | |
5460 | } | |
5461 | return pyobj; | |
5462 | } | |
5463 | ||
5464 | ||
d14a1e28 RD |
5465 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5466 | PyObject *resultobj; | |
5467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5468 | int arg2 ; |
d14a1e28 RD |
5469 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5470 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5471 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5472 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5473 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5474 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5475 | long arg6 = (long) 0 ; | |
5476 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5477 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5478 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5479 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5480 | wxListBox *result; |
5481 | wxPoint temp3 ; | |
5482 | wxSize temp4 ; | |
3adfb63b | 5483 | bool temp5 = False ; |
e811c8ce | 5484 | bool temp8 = False ; |
d14a1e28 | 5485 | PyObject * obj0 = 0 ; |
994141e6 | 5486 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5487 | PyObject * obj2 = 0 ; |
5488 | PyObject * obj3 = 0 ; | |
5489 | PyObject * obj4 = 0 ; | |
994141e6 | 5490 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5491 | PyObject * obj6 = 0 ; |
5492 | PyObject * obj7 = 0 ; | |
5493 | char *kwnames[] = { | |
5494 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5495 | }; | |
5496 | ||
994141e6 | 5497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5500 | arg2 = (int) SWIG_AsInt(obj1); | |
5501 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5502 | if (obj2) { |
5503 | { | |
5504 | arg3 = &temp3; | |
5505 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5506 | } | |
5507 | } | |
5508 | if (obj3) { | |
5509 | { | |
5510 | arg4 = &temp4; | |
5511 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5512 | } | |
5513 | } | |
5514 | if (obj4) { | |
5515 | { | |
4d5c3d91 RD |
5516 | if (! PySequence_Check(obj4)) { |
5517 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5518 | SWIG_fail; | |
5519 | } | |
5520 | arg5 = new wxArrayString; | |
3adfb63b | 5521 | temp5 = True; |
4d5c3d91 RD |
5522 | int i, len=PySequence_Length(obj4); |
5523 | for (i=0; i<len; i++) { | |
5524 | PyObject* item = PySequence_GetItem(obj4, i); | |
5525 | #if wxUSE_UNICODE | |
5526 | PyObject* str = PyObject_Unicode(item); | |
5527 | #else | |
5528 | PyObject* str = PyObject_Str(item); | |
5529 | #endif | |
74a57fcd | 5530 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5531 | arg5->Add(Py2wxString(str)); |
5532 | Py_DECREF(item); | |
5533 | Py_DECREF(str); | |
5534 | } | |
d14a1e28 RD |
5535 | } |
5536 | } | |
994141e6 | 5537 | if (obj5) { |
15afbcd0 RD |
5538 | arg6 = (long) SWIG_AsLong(obj5); |
5539 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5540 | } |
d14a1e28 | 5541 | if (obj6) { |
15afbcd0 RD |
5542 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5543 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5544 | SWIG_fail; | |
4d5c3d91 | 5545 | if (arg7 == NULL) { |
15afbcd0 RD |
5546 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5547 | SWIG_fail; | |
d14a1e28 RD |
5548 | } |
5549 | } | |
5550 | if (obj7) { | |
5551 | { | |
4d5c3d91 RD |
5552 | arg8 = wxString_in_helper(obj7); |
5553 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5554 | temp8 = True; |
d14a1e28 RD |
5555 | } |
5556 | } | |
5557 | { | |
5558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5559 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5560 | |
5561 | wxPyEndAllowThreads(__tstate); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | } | |
15afbcd0 | 5564 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5565 | { |
3adfb63b | 5566 | if (temp5) delete arg5; |
d14a1e28 RD |
5567 | } |
5568 | { | |
5569 | if (temp8) | |
4d5c3d91 | 5570 | delete arg8; |
d14a1e28 RD |
5571 | } |
5572 | return resultobj; | |
5573 | fail: | |
5574 | { | |
3adfb63b | 5575 | if (temp5) delete arg5; |
d14a1e28 RD |
5576 | } |
5577 | { | |
5578 | if (temp8) | |
4d5c3d91 | 5579 | delete arg8; |
d14a1e28 RD |
5580 | } |
5581 | return NULL; | |
5582 | } | |
5583 | ||
5584 | ||
5585 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5586 | PyObject *resultobj; | |
5587 | wxListBox *result; | |
5588 | char *kwnames[] = { | |
5589 | NULL | |
5590 | }; | |
5591 | ||
5592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5593 | { | |
5594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5595 | result = (wxListBox *)new wxListBox(); | |
5596 | ||
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
15afbcd0 | 5600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5601 | return resultobj; |
5602 | fail: | |
5603 | return NULL; | |
5604 | } | |
5605 | ||
5606 | ||
5607 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5608 | PyObject *resultobj; | |
5609 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5610 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5611 | int arg3 ; |
d14a1e28 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 ; | |
4d5c3d91 RD |
5616 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5617 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5618 | long arg7 = (long) 0 ; | |
5619 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5620 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5621 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5622 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5623 | bool result; |
5624 | wxPoint temp4 ; | |
5625 | wxSize temp5 ; | |
3adfb63b | 5626 | bool temp6 = False ; |
e811c8ce | 5627 | bool temp9 = False ; |
d14a1e28 RD |
5628 | PyObject * obj0 = 0 ; |
5629 | PyObject * obj1 = 0 ; | |
994141e6 | 5630 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5631 | PyObject * obj3 = 0 ; |
5632 | PyObject * obj4 = 0 ; | |
5633 | PyObject * obj5 = 0 ; | |
994141e6 | 5634 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5635 | PyObject * obj7 = 0 ; |
5636 | PyObject * obj8 = 0 ; | |
5637 | char *kwnames[] = { | |
5638 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5639 | }; | |
5640 | ||
994141e6 | 5641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
5642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5646 | arg3 = (int) SWIG_AsInt(obj2); | |
5647 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5648 | if (obj3) { |
5649 | { | |
5650 | arg4 = &temp4; | |
5651 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5652 | } | |
5653 | } | |
5654 | if (obj4) { | |
5655 | { | |
5656 | arg5 = &temp5; | |
5657 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5658 | } | |
5659 | } | |
5660 | if (obj5) { | |
5661 | { | |
4d5c3d91 RD |
5662 | if (! PySequence_Check(obj5)) { |
5663 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5664 | SWIG_fail; | |
5665 | } | |
5666 | arg6 = new wxArrayString; | |
3adfb63b | 5667 | temp6 = True; |
4d5c3d91 RD |
5668 | int i, len=PySequence_Length(obj5); |
5669 | for (i=0; i<len; i++) { | |
5670 | PyObject* item = PySequence_GetItem(obj5, i); | |
5671 | #if wxUSE_UNICODE | |
5672 | PyObject* str = PyObject_Unicode(item); | |
5673 | #else | |
5674 | PyObject* str = PyObject_Str(item); | |
5675 | #endif | |
74a57fcd | 5676 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5677 | arg6->Add(Py2wxString(str)); |
5678 | Py_DECREF(item); | |
5679 | Py_DECREF(str); | |
5680 | } | |
d14a1e28 RD |
5681 | } |
5682 | } | |
994141e6 | 5683 | if (obj6) { |
15afbcd0 RD |
5684 | arg7 = (long) SWIG_AsLong(obj6); |
5685 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5686 | } |
d14a1e28 | 5687 | if (obj7) { |
15afbcd0 RD |
5688 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5690 | SWIG_fail; | |
4d5c3d91 | 5691 | if (arg8 == NULL) { |
15afbcd0 RD |
5692 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5693 | SWIG_fail; | |
d14a1e28 RD |
5694 | } |
5695 | } | |
5696 | if (obj8) { | |
5697 | { | |
4d5c3d91 RD |
5698 | arg9 = wxString_in_helper(obj8); |
5699 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5700 | temp9 = True; |
d14a1e28 RD |
5701 | } |
5702 | } | |
5703 | { | |
5704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5705 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5706 | |
5707 | wxPyEndAllowThreads(__tstate); | |
5708 | if (PyErr_Occurred()) SWIG_fail; | |
5709 | } | |
4f89f6a3 RD |
5710 | { |
5711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5712 | } | |
d14a1e28 | 5713 | { |
3adfb63b | 5714 | if (temp6) delete arg6; |
d14a1e28 RD |
5715 | } |
5716 | { | |
5717 | if (temp9) | |
4d5c3d91 | 5718 | delete arg9; |
d14a1e28 RD |
5719 | } |
5720 | return resultobj; | |
5721 | fail: | |
5722 | { | |
3adfb63b | 5723 | if (temp6) delete arg6; |
d14a1e28 RD |
5724 | } |
5725 | { | |
5726 | if (temp9) | |
4d5c3d91 | 5727 | delete arg9; |
d14a1e28 RD |
5728 | } |
5729 | return NULL; | |
5730 | } | |
5731 | ||
5732 | ||
5733 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5734 | PyObject *resultobj; | |
5735 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5736 | wxString *arg2 = 0 ; | |
5737 | int arg3 ; | |
5738 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 5739 | bool temp2 = False ; |
d14a1e28 RD |
5740 | PyObject * obj0 = 0 ; |
5741 | PyObject * obj1 = 0 ; | |
994141e6 | 5742 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5743 | PyObject * obj3 = 0 ; |
5744 | char *kwnames[] = { | |
5745 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5746 | }; | |
5747 | ||
994141e6 | 5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5751 | { |
5752 | arg2 = wxString_in_helper(obj1); | |
5753 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5754 | temp2 = True; |
d14a1e28 | 5755 | } |
15afbcd0 RD |
5756 | arg3 = (int) SWIG_AsInt(obj2); |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5758 | if (obj3) { |
5759 | arg4 = obj3; | |
5760 | } | |
5761 | { | |
5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5763 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5764 | ||
5765 | wxPyEndAllowThreads(__tstate); | |
5766 | if (PyErr_Occurred()) SWIG_fail; | |
5767 | } | |
5768 | Py_INCREF(Py_None); resultobj = Py_None; | |
5769 | { | |
5770 | if (temp2) | |
5771 | delete arg2; | |
5772 | } | |
5773 | return resultobj; | |
5774 | fail: | |
5775 | { | |
5776 | if (temp2) | |
5777 | delete arg2; | |
5778 | } | |
5779 | return NULL; | |
5780 | } | |
5781 | ||
5782 | ||
5783 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5784 | PyObject *resultobj; | |
5785 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5786 | wxArrayString *arg2 = 0 ; | |
5787 | int arg3 ; | |
3adfb63b | 5788 | bool temp2 = False ; |
d14a1e28 RD |
5789 | PyObject * obj0 = 0 ; |
5790 | PyObject * obj1 = 0 ; | |
994141e6 | 5791 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5792 | char *kwnames[] = { |
5793 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5794 | }; | |
5795 | ||
994141e6 | 5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5799 | { |
5800 | if (! PySequence_Check(obj1)) { | |
5801 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5802 | SWIG_fail; | |
5803 | } | |
5804 | arg2 = new wxArrayString; | |
3adfb63b | 5805 | temp2 = True; |
d14a1e28 RD |
5806 | int i, len=PySequence_Length(obj1); |
5807 | for (i=0; i<len; i++) { | |
5808 | PyObject* item = PySequence_GetItem(obj1, i); | |
5809 | #if wxUSE_UNICODE | |
5810 | PyObject* str = PyObject_Unicode(item); | |
5811 | #else | |
5812 | PyObject* str = PyObject_Str(item); | |
5813 | #endif | |
74a57fcd | 5814 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5815 | arg2->Add(Py2wxString(str)); |
5816 | Py_DECREF(item); | |
5817 | Py_DECREF(str); | |
5818 | } | |
5819 | } | |
15afbcd0 RD |
5820 | arg3 = (int) SWIG_AsInt(obj2); |
5821 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5822 | { |
5823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5824 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5825 | ||
5826 | wxPyEndAllowThreads(__tstate); | |
5827 | if (PyErr_Occurred()) SWIG_fail; | |
5828 | } | |
5829 | Py_INCREF(Py_None); resultobj = Py_None; | |
5830 | { | |
3adfb63b | 5831 | if (temp2) delete arg2; |
d14a1e28 RD |
5832 | } |
5833 | return resultobj; | |
5834 | fail: | |
5835 | { | |
3adfb63b | 5836 | if (temp2) delete arg2; |
d14a1e28 RD |
5837 | } |
5838 | return NULL; | |
5839 | } | |
5840 | ||
5841 | ||
5842 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5843 | PyObject *resultobj; | |
5844 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5845 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 5846 | bool temp2 = False ; |
d14a1e28 RD |
5847 | PyObject * obj0 = 0 ; |
5848 | PyObject * obj1 = 0 ; | |
5849 | char *kwnames[] = { | |
5850 | (char *) "self",(char *) "items", NULL | |
5851 | }; | |
5852 | ||
5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5856 | { |
5857 | if (! PySequence_Check(obj1)) { | |
5858 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5859 | SWIG_fail; | |
5860 | } | |
5861 | arg2 = new wxArrayString; | |
3adfb63b | 5862 | temp2 = True; |
d14a1e28 RD |
5863 | int i, len=PySequence_Length(obj1); |
5864 | for (i=0; i<len; i++) { | |
5865 | PyObject* item = PySequence_GetItem(obj1, i); | |
5866 | #if wxUSE_UNICODE | |
5867 | PyObject* str = PyObject_Unicode(item); | |
5868 | #else | |
5869 | PyObject* str = PyObject_Str(item); | |
5870 | #endif | |
74a57fcd | 5871 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5872 | arg2->Add(Py2wxString(str)); |
5873 | Py_DECREF(item); | |
5874 | Py_DECREF(str); | |
5875 | } | |
5876 | } | |
5877 | { | |
5878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5879 | (arg1)->Set((wxArrayString const &)*arg2); | |
5880 | ||
5881 | wxPyEndAllowThreads(__tstate); | |
5882 | if (PyErr_Occurred()) SWIG_fail; | |
5883 | } | |
5884 | Py_INCREF(Py_None); resultobj = Py_None; | |
5885 | { | |
3adfb63b | 5886 | if (temp2) delete arg2; |
d14a1e28 RD |
5887 | } |
5888 | return resultobj; | |
5889 | fail: | |
5890 | { | |
3adfb63b | 5891 | if (temp2) delete arg2; |
d14a1e28 RD |
5892 | } |
5893 | return NULL; | |
5894 | } | |
5895 | ||
5896 | ||
5897 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject *resultobj; | |
5899 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5900 | int arg2 ; | |
5901 | bool result; | |
5902 | PyObject * obj0 = 0 ; | |
994141e6 | 5903 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5904 | char *kwnames[] = { |
5905 | (char *) "self",(char *) "n", NULL | |
5906 | }; | |
5907 | ||
994141e6 | 5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5911 | arg2 = (int) SWIG_AsInt(obj1); | |
5912 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5913 | { |
5914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5915 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5916 | ||
5917 | wxPyEndAllowThreads(__tstate); | |
5918 | if (PyErr_Occurred()) SWIG_fail; | |
5919 | } | |
4f89f6a3 RD |
5920 | { |
5921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5922 | } | |
d14a1e28 RD |
5923 | return resultobj; |
5924 | fail: | |
5925 | return NULL; | |
5926 | } | |
5927 | ||
5928 | ||
5929 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5930 | PyObject *resultobj; | |
5931 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5932 | int arg2 ; | |
e811c8ce | 5933 | bool arg3 = (bool) True ; |
d14a1e28 | 5934 | PyObject * obj0 = 0 ; |
994141e6 | 5935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5936 | PyObject * obj2 = 0 ; |
5937 | char *kwnames[] = { | |
5938 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5939 | }; | |
5940 | ||
994141e6 | 5941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5944 | arg2 = (int) SWIG_AsInt(obj1); | |
5945 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 5946 | if (obj2) { |
15afbcd0 RD |
5947 | arg3 = (bool) SWIG_AsBool(obj2); |
5948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5949 | } |
5950 | { | |
5951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5952 | (arg1)->SetSelection(arg2,arg3); | |
5953 | ||
5954 | wxPyEndAllowThreads(__tstate); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
5956 | } | |
5957 | Py_INCREF(Py_None); resultobj = Py_None; | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
5961 | } | |
5962 | ||
5963 | ||
5964 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject *resultobj; | |
5966 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5967 | int arg2 ; | |
5968 | PyObject * obj0 = 0 ; | |
994141e6 | 5969 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5970 | char *kwnames[] = { |
5971 | (char *) "self",(char *) "n", NULL | |
5972 | }; | |
5973 | ||
994141e6 | 5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5977 | arg2 = (int) SWIG_AsInt(obj1); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5979 | { |
5980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5981 | (arg1)->Select(arg2); | |
5982 | ||
5983 | wxPyEndAllowThreads(__tstate); | |
5984 | if (PyErr_Occurred()) SWIG_fail; | |
5985 | } | |
5986 | Py_INCREF(Py_None); resultobj = Py_None; | |
5987 | return resultobj; | |
5988 | fail: | |
5989 | return NULL; | |
5990 | } | |
5991 | ||
5992 | ||
5993 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5994 | PyObject *resultobj; | |
5995 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5996 | int arg2 ; | |
5997 | PyObject * obj0 = 0 ; | |
994141e6 | 5998 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5999 | char *kwnames[] = { |
6000 | (char *) "self",(char *) "n", NULL | |
6001 | }; | |
6002 | ||
994141e6 | 6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6006 | arg2 = (int) SWIG_AsInt(obj1); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6008 | { |
6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6010 | (arg1)->Deselect(arg2); | |
6011 | ||
6012 | wxPyEndAllowThreads(__tstate); | |
6013 | if (PyErr_Occurred()) SWIG_fail; | |
6014 | } | |
6015 | Py_INCREF(Py_None); resultobj = Py_None; | |
6016 | return resultobj; | |
6017 | fail: | |
6018 | return NULL; | |
6019 | } | |
6020 | ||
6021 | ||
6022 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6023 | PyObject *resultobj; | |
6024 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6025 | int arg2 = (int) -1 ; | |
6026 | PyObject * obj0 = 0 ; | |
994141e6 | 6027 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6028 | char *kwnames[] = { |
6029 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6030 | }; | |
6031 | ||
994141e6 | 6032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6035 | if (obj1) { |
15afbcd0 RD |
6036 | arg2 = (int) SWIG_AsInt(obj1); |
6037 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6038 | } |
d14a1e28 RD |
6039 | { |
6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6041 | (arg1)->DeselectAll(arg2); | |
6042 | ||
6043 | wxPyEndAllowThreads(__tstate); | |
6044 | if (PyErr_Occurred()) SWIG_fail; | |
6045 | } | |
6046 | Py_INCREF(Py_None); resultobj = Py_None; | |
6047 | return resultobj; | |
6048 | fail: | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
6053 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6054 | PyObject *resultobj; | |
6055 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6056 | wxString *arg2 = 0 ; | |
e811c8ce | 6057 | bool arg3 = (bool) True ; |
d14a1e28 | 6058 | bool result; |
e811c8ce | 6059 | bool temp2 = False ; |
d14a1e28 RD |
6060 | PyObject * obj0 = 0 ; |
6061 | PyObject * obj1 = 0 ; | |
6062 | PyObject * obj2 = 0 ; | |
6063 | char *kwnames[] = { | |
6064 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6065 | }; | |
6066 | ||
6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6070 | { |
6071 | arg2 = wxString_in_helper(obj1); | |
6072 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6073 | temp2 = True; |
d14a1e28 RD |
6074 | } |
6075 | if (obj2) { | |
15afbcd0 RD |
6076 | arg3 = (bool) SWIG_AsBool(obj2); |
6077 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6078 | } |
6079 | { | |
6080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6081 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6082 | ||
6083 | wxPyEndAllowThreads(__tstate); | |
6084 | if (PyErr_Occurred()) SWIG_fail; | |
6085 | } | |
4f89f6a3 RD |
6086 | { |
6087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6088 | } | |
d14a1e28 RD |
6089 | { |
6090 | if (temp2) | |
6091 | delete arg2; | |
6092 | } | |
6093 | return resultobj; | |
6094 | fail: | |
6095 | { | |
6096 | if (temp2) | |
6097 | delete arg2; | |
6098 | } | |
6099 | return NULL; | |
6100 | } | |
6101 | ||
6102 | ||
6103 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6104 | PyObject *resultobj; | |
6105 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6106 | PyObject *result; | |
6107 | PyObject * obj0 = 0 ; | |
6108 | char *kwnames[] = { | |
6109 | (char *) "self", NULL | |
6110 | }; | |
6111 | ||
6112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6115 | { |
6116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6117 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6118 | ||
6119 | wxPyEndAllowThreads(__tstate); | |
6120 | if (PyErr_Occurred()) SWIG_fail; | |
6121 | } | |
6122 | resultobj = result; | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
6129 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj; | |
6131 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6132 | int arg2 ; | |
6133 | PyObject * obj0 = 0 ; | |
994141e6 | 6134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6135 | char *kwnames[] = { |
6136 | (char *) "self",(char *) "n", NULL | |
6137 | }; | |
6138 | ||
994141e6 | 6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6142 | arg2 = (int) SWIG_AsInt(obj1); | |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6144 | { |
6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6146 | (arg1)->SetFirstItem(arg2); | |
6147 | ||
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
6151 | Py_INCREF(Py_None); resultobj = Py_None; | |
6152 | return resultobj; | |
6153 | fail: | |
6154 | return NULL; | |
6155 | } | |
6156 | ||
6157 | ||
6158 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6159 | PyObject *resultobj; | |
6160 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6161 | wxString *arg2 = 0 ; | |
e811c8ce | 6162 | bool temp2 = False ; |
d14a1e28 RD |
6163 | PyObject * obj0 = 0 ; |
6164 | PyObject * obj1 = 0 ; | |
6165 | char *kwnames[] = { | |
6166 | (char *) "self",(char *) "s", NULL | |
6167 | }; | |
6168 | ||
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6172 | { |
6173 | arg2 = wxString_in_helper(obj1); | |
6174 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6175 | temp2 = True; |
d14a1e28 RD |
6176 | } |
6177 | { | |
6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6179 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6180 | ||
6181 | wxPyEndAllowThreads(__tstate); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
6184 | Py_INCREF(Py_None); resultobj = Py_None; | |
6185 | { | |
6186 | if (temp2) | |
6187 | delete arg2; | |
6188 | } | |
6189 | return resultobj; | |
6190 | fail: | |
6191 | { | |
6192 | if (temp2) | |
6193 | delete arg2; | |
6194 | } | |
6195 | return NULL; | |
6196 | } | |
6197 | ||
6198 | ||
6199 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6200 | PyObject *resultobj; | |
6201 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6202 | int arg2 ; | |
6203 | PyObject * obj0 = 0 ; | |
994141e6 | 6204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6205 | char *kwnames[] = { |
6206 | (char *) "self",(char *) "n", NULL | |
6207 | }; | |
6208 | ||
994141e6 | 6209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6212 | arg2 = (int) SWIG_AsInt(obj1); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6214 | { |
6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6216 | (arg1)->EnsureVisible(arg2); | |
6217 | ||
6218 | wxPyEndAllowThreads(__tstate); | |
6219 | if (PyErr_Occurred()) SWIG_fail; | |
6220 | } | |
6221 | Py_INCREF(Py_None); resultobj = Py_None; | |
6222 | return resultobj; | |
6223 | fail: | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
6228 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6229 | PyObject *resultobj; | |
6230 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6231 | wxString *arg2 = 0 ; | |
e811c8ce | 6232 | bool temp2 = False ; |
d14a1e28 RD |
6233 | PyObject * obj0 = 0 ; |
6234 | PyObject * obj1 = 0 ; | |
6235 | char *kwnames[] = { | |
6236 | (char *) "self",(char *) "s", NULL | |
6237 | }; | |
6238 | ||
6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6242 | { |
6243 | arg2 = wxString_in_helper(obj1); | |
6244 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6245 | temp2 = True; |
d14a1e28 RD |
6246 | } |
6247 | { | |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6249 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6250 | ||
6251 | wxPyEndAllowThreads(__tstate); | |
6252 | if (PyErr_Occurred()) SWIG_fail; | |
6253 | } | |
6254 | Py_INCREF(Py_None); resultobj = Py_None; | |
6255 | { | |
6256 | if (temp2) | |
6257 | delete arg2; | |
6258 | } | |
6259 | return resultobj; | |
6260 | fail: | |
6261 | { | |
6262 | if (temp2) | |
6263 | delete arg2; | |
6264 | } | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj; | |
6271 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6272 | bool result; | |
6273 | PyObject * obj0 = 0 ; | |
6274 | char *kwnames[] = { | |
6275 | (char *) "self", NULL | |
6276 | }; | |
6277 | ||
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6281 | { |
6282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6283 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6284 | ||
6285 | wxPyEndAllowThreads(__tstate); | |
6286 | if (PyErr_Occurred()) SWIG_fail; | |
6287 | } | |
4f89f6a3 RD |
6288 | { |
6289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6290 | } | |
d14a1e28 RD |
6291 | return resultobj; |
6292 | fail: | |
6293 | return NULL; | |
6294 | } | |
6295 | ||
6296 | ||
c3eb6258 RD |
6297 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
6298 | PyObject *resultobj; | |
6299 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6300 | int arg2 ; | |
6301 | wxColour *arg3 = 0 ; | |
6302 | wxColour temp3 ; | |
6303 | PyObject * obj0 = 0 ; | |
6304 | PyObject * obj1 = 0 ; | |
6305 | PyObject * obj2 = 0 ; | |
6306 | char *kwnames[] = { | |
6307 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6308 | }; | |
6309 | ||
6310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6313 | arg2 = (int) SWIG_AsInt(obj1); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6315 | { |
6316 | arg3 = &temp3; | |
6317 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6318 | } | |
6319 | { | |
6320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6321 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6322 | ||
6323 | wxPyEndAllowThreads(__tstate); | |
6324 | if (PyErr_Occurred()) SWIG_fail; | |
6325 | } | |
6326 | Py_INCREF(Py_None); resultobj = Py_None; | |
6327 | return resultobj; | |
6328 | fail: | |
6329 | return NULL; | |
6330 | } | |
6331 | ||
6332 | ||
6333 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6334 | PyObject *resultobj; | |
6335 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6336 | int arg2 ; | |
6337 | wxColour *arg3 = 0 ; | |
6338 | wxColour temp3 ; | |
6339 | PyObject * obj0 = 0 ; | |
6340 | PyObject * obj1 = 0 ; | |
6341 | PyObject * obj2 = 0 ; | |
6342 | char *kwnames[] = { | |
6343 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6349 | arg2 = (int) SWIG_AsInt(obj1); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6351 | { |
6352 | arg3 = &temp3; | |
6353 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6354 | } | |
6355 | { | |
6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6357 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6358 | ||
6359 | wxPyEndAllowThreads(__tstate); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | } | |
6362 | Py_INCREF(Py_None); resultobj = Py_None; | |
6363 | return resultobj; | |
6364 | fail: | |
6365 | return NULL; | |
6366 | } | |
6367 | ||
6368 | ||
6369 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6370 | PyObject *resultobj; | |
6371 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6372 | int arg2 ; | |
6373 | wxFont *arg3 = 0 ; | |
6374 | PyObject * obj0 = 0 ; | |
6375 | PyObject * obj1 = 0 ; | |
6376 | PyObject * obj2 = 0 ; | |
6377 | char *kwnames[] = { | |
6378 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6379 | }; | |
6380 | ||
6381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6384 | arg2 = (int) SWIG_AsInt(obj1); | |
6385 | if (PyErr_Occurred()) SWIG_fail; | |
6386 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6387 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6388 | SWIG_fail; | |
c3eb6258 | 6389 | if (arg3 == NULL) { |
15afbcd0 RD |
6390 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6391 | SWIG_fail; | |
c3eb6258 RD |
6392 | } |
6393 | { | |
6394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6395 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6396 | ||
6397 | wxPyEndAllowThreads(__tstate); | |
6398 | if (PyErr_Occurred()) SWIG_fail; | |
6399 | } | |
6400 | Py_INCREF(Py_None); resultobj = Py_None; | |
6401 | return resultobj; | |
6402 | fail: | |
6403 | return NULL; | |
6404 | } | |
6405 | ||
6406 | ||
74a57fcd RD |
6407 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6408 | PyObject *resultobj; | |
6409 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6410 | wxVisualAttributes result; | |
6411 | PyObject * obj0 = 0 ; | |
6412 | char *kwnames[] = { | |
6413 | (char *) "variant", NULL | |
6414 | }; | |
6415 | ||
6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6417 | if (obj0) { | |
6418 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | { | |
6422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6423 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6424 | ||
6425 | wxPyEndAllowThreads(__tstate); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
6428 | { | |
6429 | wxVisualAttributes * resultptr; | |
6430 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6432 | } | |
6433 | return resultobj; | |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
d14a1e28 RD |
6439 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
6440 | PyObject *obj; | |
6441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6442 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6443 | Py_INCREF(obj); | |
6444 | return Py_BuildValue((char *)""); | |
6445 | } | |
6446 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject *resultobj; | |
6448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 6449 | int arg2 ; |
d14a1e28 RD |
6450 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6451 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6452 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6453 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
6454 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6455 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6456 | long arg6 = (long) 0 ; | |
6457 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6458 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6459 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6460 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6461 | wxCheckListBox *result; |
6462 | wxPoint temp3 ; | |
6463 | wxSize temp4 ; | |
3adfb63b | 6464 | bool temp5 = False ; |
e811c8ce | 6465 | bool temp8 = False ; |
d14a1e28 | 6466 | PyObject * obj0 = 0 ; |
994141e6 | 6467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6468 | PyObject * obj2 = 0 ; |
6469 | PyObject * obj3 = 0 ; | |
6470 | PyObject * obj4 = 0 ; | |
994141e6 | 6471 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6472 | PyObject * obj6 = 0 ; |
6473 | PyObject * obj7 = 0 ; | |
6474 | char *kwnames[] = { | |
6475 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6476 | }; | |
6477 | ||
994141e6 | 6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
6479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6481 | arg2 = (int) SWIG_AsInt(obj1); | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6483 | if (obj2) { |
6484 | { | |
6485 | arg3 = &temp3; | |
6486 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6487 | } | |
6488 | } | |
6489 | if (obj3) { | |
6490 | { | |
6491 | arg4 = &temp4; | |
6492 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6493 | } | |
6494 | } | |
6495 | if (obj4) { | |
6496 | { | |
4d5c3d91 RD |
6497 | if (! PySequence_Check(obj4)) { |
6498 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6499 | SWIG_fail; | |
6500 | } | |
6501 | arg5 = new wxArrayString; | |
3adfb63b | 6502 | temp5 = True; |
4d5c3d91 RD |
6503 | int i, len=PySequence_Length(obj4); |
6504 | for (i=0; i<len; i++) { | |
6505 | PyObject* item = PySequence_GetItem(obj4, i); | |
6506 | #if wxUSE_UNICODE | |
6507 | PyObject* str = PyObject_Unicode(item); | |
6508 | #else | |
6509 | PyObject* str = PyObject_Str(item); | |
6510 | #endif | |
74a57fcd | 6511 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6512 | arg5->Add(Py2wxString(str)); |
6513 | Py_DECREF(item); | |
6514 | Py_DECREF(str); | |
6515 | } | |
d14a1e28 RD |
6516 | } |
6517 | } | |
994141e6 | 6518 | if (obj5) { |
15afbcd0 RD |
6519 | arg6 = (long) SWIG_AsLong(obj5); |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6521 | } |
d14a1e28 | 6522 | if (obj6) { |
15afbcd0 RD |
6523 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6524 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6525 | SWIG_fail; | |
4d5c3d91 | 6526 | if (arg7 == NULL) { |
15afbcd0 RD |
6527 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6528 | SWIG_fail; | |
d14a1e28 RD |
6529 | } |
6530 | } | |
6531 | if (obj7) { | |
6532 | { | |
4d5c3d91 RD |
6533 | arg8 = wxString_in_helper(obj7); |
6534 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6535 | temp8 = True; |
d14a1e28 RD |
6536 | } |
6537 | } | |
6538 | { | |
6539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6540 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6541 | |
6542 | wxPyEndAllowThreads(__tstate); | |
6543 | if (PyErr_Occurred()) SWIG_fail; | |
6544 | } | |
15afbcd0 | 6545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6546 | { |
3adfb63b | 6547 | if (temp5) delete arg5; |
d14a1e28 RD |
6548 | } |
6549 | { | |
6550 | if (temp8) | |
4d5c3d91 | 6551 | delete arg8; |
d14a1e28 RD |
6552 | } |
6553 | return resultobj; | |
6554 | fail: | |
6555 | { | |
3adfb63b | 6556 | if (temp5) delete arg5; |
d14a1e28 RD |
6557 | } |
6558 | { | |
6559 | if (temp8) | |
4d5c3d91 | 6560 | delete arg8; |
d14a1e28 RD |
6561 | } |
6562 | return NULL; | |
6563 | } | |
6564 | ||
6565 | ||
6566 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6567 | PyObject *resultobj; | |
6568 | wxCheckListBox *result; | |
6569 | char *kwnames[] = { | |
6570 | NULL | |
6571 | }; | |
6572 | ||
6573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6574 | { | |
6575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6576 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6577 | ||
6578 | wxPyEndAllowThreads(__tstate); | |
6579 | if (PyErr_Occurred()) SWIG_fail; | |
6580 | } | |
15afbcd0 | 6581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6582 | return resultobj; |
6583 | fail: | |
6584 | return NULL; | |
6585 | } | |
6586 | ||
6587 | ||
6588 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6589 | PyObject *resultobj; | |
6590 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6591 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 6592 | int arg3 ; |
d14a1e28 RD |
6593 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6594 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6595 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6596 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
6597 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6598 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6599 | long arg7 = (long) 0 ; | |
6600 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6601 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6602 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6603 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6604 | bool result; |
6605 | wxPoint temp4 ; | |
6606 | wxSize temp5 ; | |
3adfb63b | 6607 | bool temp6 = False ; |
e811c8ce | 6608 | bool temp9 = False ; |
d14a1e28 RD |
6609 | PyObject * obj0 = 0 ; |
6610 | PyObject * obj1 = 0 ; | |
994141e6 | 6611 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6612 | PyObject * obj3 = 0 ; |
6613 | PyObject * obj4 = 0 ; | |
6614 | PyObject * obj5 = 0 ; | |
994141e6 | 6615 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6616 | PyObject * obj7 = 0 ; |
6617 | PyObject * obj8 = 0 ; | |
6618 | char *kwnames[] = { | |
6619 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6620 | }; | |
6621 | ||
994141e6 | 6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
6623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6627 | arg3 = (int) SWIG_AsInt(obj2); | |
6628 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6629 | if (obj3) { |
6630 | { | |
6631 | arg4 = &temp4; | |
6632 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6633 | } | |
6634 | } | |
6635 | if (obj4) { | |
6636 | { | |
6637 | arg5 = &temp5; | |
6638 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6639 | } | |
6640 | } | |
6641 | if (obj5) { | |
6642 | { | |
4d5c3d91 RD |
6643 | if (! PySequence_Check(obj5)) { |
6644 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6645 | SWIG_fail; | |
6646 | } | |
6647 | arg6 = new wxArrayString; | |
3adfb63b | 6648 | temp6 = True; |
4d5c3d91 RD |
6649 | int i, len=PySequence_Length(obj5); |
6650 | for (i=0; i<len; i++) { | |
6651 | PyObject* item = PySequence_GetItem(obj5, i); | |
6652 | #if wxUSE_UNICODE | |
6653 | PyObject* str = PyObject_Unicode(item); | |
6654 | #else | |
6655 | PyObject* str = PyObject_Str(item); | |
6656 | #endif | |
74a57fcd | 6657 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6658 | arg6->Add(Py2wxString(str)); |
6659 | Py_DECREF(item); | |
6660 | Py_DECREF(str); | |
6661 | } | |
d14a1e28 RD |
6662 | } |
6663 | } | |
994141e6 | 6664 | if (obj6) { |
15afbcd0 RD |
6665 | arg7 = (long) SWIG_AsLong(obj6); |
6666 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6667 | } |
d14a1e28 | 6668 | if (obj7) { |
15afbcd0 RD |
6669 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6671 | SWIG_fail; | |
4d5c3d91 | 6672 | if (arg8 == NULL) { |
15afbcd0 RD |
6673 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6674 | SWIG_fail; | |
d14a1e28 RD |
6675 | } |
6676 | } | |
6677 | if (obj8) { | |
6678 | { | |
4d5c3d91 RD |
6679 | arg9 = wxString_in_helper(obj8); |
6680 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6681 | temp9 = True; |
d14a1e28 RD |
6682 | } |
6683 | } | |
6684 | { | |
6685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6686 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6687 | |
6688 | wxPyEndAllowThreads(__tstate); | |
6689 | if (PyErr_Occurred()) SWIG_fail; | |
6690 | } | |
4f89f6a3 RD |
6691 | { |
6692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6693 | } | |
d14a1e28 | 6694 | { |
3adfb63b | 6695 | if (temp6) delete arg6; |
d14a1e28 RD |
6696 | } |
6697 | { | |
6698 | if (temp9) | |
4d5c3d91 | 6699 | delete arg9; |
d14a1e28 RD |
6700 | } |
6701 | return resultobj; | |
6702 | fail: | |
6703 | { | |
3adfb63b | 6704 | if (temp6) delete arg6; |
d14a1e28 RD |
6705 | } |
6706 | { | |
6707 | if (temp9) | |
4d5c3d91 | 6708 | delete arg9; |
d14a1e28 RD |
6709 | } |
6710 | return NULL; | |
6711 | } | |
6712 | ||
6713 | ||
6714 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6715 | PyObject *resultobj; | |
6716 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6717 | int arg2 ; | |
6718 | bool result; | |
6719 | PyObject * obj0 = 0 ; | |
994141e6 | 6720 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6721 | char *kwnames[] = { |
6722 | (char *) "self",(char *) "index", NULL | |
6723 | }; | |
6724 | ||
994141e6 | 6725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6728 | arg2 = (int) SWIG_AsInt(obj1); | |
6729 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6730 | { |
6731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6732 | result = (bool)(arg1)->IsChecked(arg2); | |
6733 | ||
6734 | wxPyEndAllowThreads(__tstate); | |
6735 | if (PyErr_Occurred()) SWIG_fail; | |
6736 | } | |
4f89f6a3 RD |
6737 | { |
6738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6739 | } | |
d14a1e28 RD |
6740 | return resultobj; |
6741 | fail: | |
6742 | return NULL; | |
6743 | } | |
6744 | ||
6745 | ||
6746 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6747 | PyObject *resultobj; | |
6748 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6749 | int arg2 ; | |
e811c8ce | 6750 | int arg3 = (int) True ; |
d14a1e28 | 6751 | PyObject * obj0 = 0 ; |
994141e6 RD |
6752 | PyObject * obj1 = 0 ; |
6753 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6754 | char *kwnames[] = { |
6755 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6756 | }; | |
6757 | ||
994141e6 | 6758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6761 | arg2 = (int) SWIG_AsInt(obj1); | |
6762 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6763 | if (obj2) { |
15afbcd0 RD |
6764 | arg3 = (int) SWIG_AsInt(obj2); |
6765 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6766 | } |
d14a1e28 RD |
6767 | { |
6768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6769 | (arg1)->Check(arg2,arg3); | |
6770 | ||
6771 | wxPyEndAllowThreads(__tstate); | |
6772 | if (PyErr_Occurred()) SWIG_fail; | |
6773 | } | |
6774 | Py_INCREF(Py_None); resultobj = Py_None; | |
6775 | return resultobj; | |
6776 | fail: | |
6777 | return NULL; | |
6778 | } | |
6779 | ||
6780 | ||
6781 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6782 | PyObject *resultobj; | |
6783 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6784 | int result; | |
6785 | PyObject * obj0 = 0 ; | |
6786 | char *kwnames[] = { | |
6787 | (char *) "self", NULL | |
6788 | }; | |
6789 | ||
6790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6793 | { |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6795 | result = (int)(arg1)->GetItemHeight(); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
15afbcd0 | 6800 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6801 | return resultobj; |
6802 | fail: | |
6803 | return NULL; | |
6804 | } | |
6805 | ||
6806 | ||
6807 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject *resultobj; | |
6809 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6810 | wxPoint *arg2 = 0 ; | |
6811 | int result; | |
6812 | wxPoint temp2 ; | |
6813 | PyObject * obj0 = 0 ; | |
6814 | PyObject * obj1 = 0 ; | |
6815 | char *kwnames[] = { | |
6816 | (char *) "self",(char *) "pt", NULL | |
6817 | }; | |
6818 | ||
6819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6822 | { |
6823 | arg2 = &temp2; | |
6824 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6825 | } | |
6826 | { | |
6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6828 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6829 | ||
6830 | wxPyEndAllowThreads(__tstate); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
6832 | } | |
15afbcd0 | 6833 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6834 | return resultobj; |
6835 | fail: | |
6836 | return NULL; | |
6837 | } | |
6838 | ||
6839 | ||
6840 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject *resultobj; | |
6842 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
6843 | int arg2 ; |
6844 | int arg3 ; | |
d14a1e28 RD |
6845 | int result; |
6846 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6847 | PyObject * obj1 = 0 ; |
6848 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6849 | char *kwnames[] = { |
6850 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6851 | }; | |
6852 | ||
994141e6 | 6853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6856 | arg2 = (int) SWIG_AsInt(obj1); | |
6857 | if (PyErr_Occurred()) SWIG_fail; | |
6858 | arg3 = (int) SWIG_AsInt(obj2); | |
6859 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6860 | { |
6861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6862 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6863 | ||
6864 | wxPyEndAllowThreads(__tstate); | |
6865 | if (PyErr_Occurred()) SWIG_fail; | |
6866 | } | |
15afbcd0 | 6867 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6868 | return resultobj; |
6869 | fail: | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
6874 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6875 | PyObject *obj; | |
6876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6877 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6878 | Py_INCREF(obj); | |
6879 | return Py_BuildValue((char *)""); | |
6880 | } | |
b2dc1044 RD |
6881 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
6882 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6883 | return 1; | |
6884 | } | |
6885 | ||
6886 | ||
6887 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6888 | PyObject *pyobj; | |
6889 | ||
6890 | { | |
6891 | #if wxUSE_UNICODE | |
6892 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6893 | #else | |
6894 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6895 | #endif | |
6896 | } | |
6897 | return pyobj; | |
6898 | } | |
6899 | ||
6900 | ||
d14a1e28 RD |
6901 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6902 | PyObject *resultobj; | |
6903 | wxTextAttr *result; | |
6904 | ||
6905 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6906 | { | |
6907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6908 | result = (wxTextAttr *)new wxTextAttr(); | |
6909 | ||
6910 | wxPyEndAllowThreads(__tstate); | |
6911 | if (PyErr_Occurred()) SWIG_fail; | |
6912 | } | |
15afbcd0 | 6913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6914 | return resultobj; |
6915 | fail: | |
6916 | return NULL; | |
6917 | } | |
6918 | ||
6919 | ||
6920 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6921 | PyObject *resultobj; | |
6922 | wxColour *arg1 = 0 ; | |
6923 | wxColour const &arg2_defvalue = wxNullColour ; | |
6924 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6925 | wxFont const &arg3_defvalue = wxNullFont ; | |
6926 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6927 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6928 | wxTextAttr *result; | |
6929 | wxColour temp1 ; | |
6930 | wxColour temp2 ; | |
6931 | PyObject * obj0 = 0 ; | |
6932 | PyObject * obj1 = 0 ; | |
6933 | PyObject * obj2 = 0 ; | |
994141e6 | 6934 | PyObject * obj3 = 0 ; |
d14a1e28 | 6935 | |
994141e6 | 6936 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6937 | { |
6938 | arg1 = &temp1; | |
6939 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6940 | } | |
6941 | if (obj1) { | |
6942 | { | |
6943 | arg2 = &temp2; | |
6944 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6945 | } | |
6946 | } | |
6947 | if (obj2) { | |
15afbcd0 RD |
6948 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
6949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6950 | SWIG_fail; | |
d14a1e28 | 6951 | if (arg3 == NULL) { |
15afbcd0 RD |
6952 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6953 | SWIG_fail; | |
d14a1e28 RD |
6954 | } |
6955 | } | |
994141e6 | 6956 | if (obj3) { |
15afbcd0 RD |
6957 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); |
6958 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6959 | } |
d14a1e28 RD |
6960 | { |
6961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6962 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6963 | ||
6964 | wxPyEndAllowThreads(__tstate); | |
6965 | if (PyErr_Occurred()) SWIG_fail; | |
6966 | } | |
15afbcd0 | 6967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6968 | return resultobj; |
6969 | fail: | |
6970 | return NULL; | |
6971 | } | |
6972 | ||
6973 | ||
6974 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6975 | int argc; | |
6976 | PyObject *argv[5]; | |
6977 | int ii; | |
6978 | ||
6979 | argc = PyObject_Length(args); | |
6980 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6981 | argv[ii] = PyTuple_GetItem(args,ii); | |
6982 | } | |
6983 | if (argc == 0) { | |
6984 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6985 | } | |
6986 | if ((argc >= 1) && (argc <= 4)) { | |
6987 | int _v; | |
6988 | { | |
6989 | _v = wxColour_typecheck(argv[0]); | |
6990 | } | |
6991 | if (_v) { | |
6992 | if (argc <= 1) { | |
6993 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6994 | } | |
6995 | { | |
6996 | _v = wxColour_typecheck(argv[1]); | |
6997 | } | |
6998 | if (_v) { | |
6999 | if (argc <= 2) { | |
7000 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
7001 | } | |
7002 | { | |
7003 | void *ptr; | |
15afbcd0 | 7004 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { |
d14a1e28 RD |
7005 | _v = 0; |
7006 | PyErr_Clear(); | |
7007 | } else { | |
7008 | _v = 1; | |
7009 | } | |
7010 | } | |
7011 | if (_v) { | |
7012 | if (argc <= 3) { | |
7013 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
7014 | } | |
15afbcd0 | 7015 | _v = SWIG_CheckInt(argv[3]); |
994141e6 RD |
7016 | if (_v) { |
7017 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
7018 | } | |
d14a1e28 RD |
7019 | } |
7020 | } | |
7021 | } | |
7022 | } | |
7023 | ||
7024 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
7025 | return NULL; | |
7026 | } | |
7027 | ||
7028 | ||
994141e6 | 7029 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7030 | PyObject *resultobj; |
7031 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7032 | PyObject * obj0 = 0 ; | |
7033 | char *kwnames[] = { | |
7034 | (char *) "self", NULL | |
7035 | }; | |
7036 | ||
994141e6 | 7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7040 | { |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 7042 | delete arg1; |
d14a1e28 RD |
7043 | |
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
7047 | Py_INCREF(Py_None); resultobj = Py_None; | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | return NULL; | |
7051 | } | |
7052 | ||
7053 | ||
994141e6 RD |
7054 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
7055 | PyObject *resultobj; | |
7056 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7057 | PyObject * obj0 = 0 ; | |
7058 | char *kwnames[] = { | |
7059 | (char *) "self", NULL | |
7060 | }; | |
7061 | ||
7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
7065 | { |
7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7067 | (arg1)->Init(); | |
7068 | ||
7069 | wxPyEndAllowThreads(__tstate); | |
7070 | if (PyErr_Occurred()) SWIG_fail; | |
7071 | } | |
7072 | Py_INCREF(Py_None); resultobj = Py_None; | |
7073 | return resultobj; | |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
7079 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
7080 | PyObject *resultobj; |
7081 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7082 | wxColour *arg2 = 0 ; | |
7083 | wxColour temp2 ; | |
7084 | PyObject * obj0 = 0 ; | |
7085 | PyObject * obj1 = 0 ; | |
7086 | char *kwnames[] = { | |
7087 | (char *) "self",(char *) "colText", NULL | |
7088 | }; | |
7089 | ||
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7093 | { |
7094 | arg2 = &temp2; | |
7095 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7096 | } | |
7097 | { | |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | Py_INCREF(Py_None); resultobj = Py_None; | |
7105 | return resultobj; | |
7106 | fail: | |
7107 | return NULL; | |
7108 | } | |
7109 | ||
7110 | ||
7111 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject *resultobj; | |
7113 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7114 | wxColour *arg2 = 0 ; | |
7115 | wxColour temp2 ; | |
7116 | PyObject * obj0 = 0 ; | |
7117 | PyObject * obj1 = 0 ; | |
7118 | char *kwnames[] = { | |
7119 | (char *) "self",(char *) "colBack", NULL | |
7120 | }; | |
7121 | ||
7122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7125 | { |
7126 | arg2 = &temp2; | |
7127 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7128 | } | |
7129 | { | |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7131 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7132 | ||
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | Py_INCREF(Py_None); resultobj = Py_None; | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | return NULL; | |
7140 | } | |
7141 | ||
7142 | ||
7143 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject *resultobj; | |
7145 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7146 | wxFont *arg2 = 0 ; | |
7147 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7148 | PyObject * obj0 = 0 ; | |
7149 | PyObject * obj1 = 0 ; | |
994141e6 | 7150 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7151 | char *kwnames[] = { |
7152 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7153 | }; | |
7154 | ||
994141e6 | 7155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7160 | SWIG_fail; | |
d14a1e28 | 7161 | if (arg2 == NULL) { |
15afbcd0 RD |
7162 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7163 | SWIG_fail; | |
d14a1e28 | 7164 | } |
994141e6 | 7165 | if (obj2) { |
15afbcd0 RD |
7166 | arg3 = (long) SWIG_AsLong(obj2); |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7168 | } |
d14a1e28 RD |
7169 | { |
7170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7171 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7172 | ||
7173 | wxPyEndAllowThreads(__tstate); | |
7174 | if (PyErr_Occurred()) SWIG_fail; | |
7175 | } | |
7176 | Py_INCREF(Py_None); resultobj = Py_None; | |
7177 | return resultobj; | |
7178 | fail: | |
7179 | return NULL; | |
7180 | } | |
7181 | ||
7182 | ||
7183 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7184 | PyObject *resultobj; | |
7185 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7186 | int arg2 ; | |
7187 | PyObject * obj0 = 0 ; | |
994141e6 | 7188 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7189 | char *kwnames[] = { |
7190 | (char *) "self",(char *) "alignment", NULL | |
7191 | }; | |
7192 | ||
994141e6 | 7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7196 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
7197 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7198 | { |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7201 | ||
7202 | wxPyEndAllowThreads(__tstate); | |
7203 | if (PyErr_Occurred()) SWIG_fail; | |
7204 | } | |
7205 | Py_INCREF(Py_None); resultobj = Py_None; | |
7206 | return resultobj; | |
7207 | fail: | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7215 | wxArrayInt *arg2 = 0 ; | |
3adfb63b | 7216 | bool temp2 = False ; |
d14a1e28 RD |
7217 | PyObject * obj0 = 0 ; |
7218 | PyObject * obj1 = 0 ; | |
7219 | char *kwnames[] = { | |
7220 | (char *) "self",(char *) "tabs", NULL | |
7221 | }; | |
7222 | ||
7223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7226 | { |
7227 | if (! PySequence_Check(obj1)) { | |
7228 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7229 | SWIG_fail; | |
7230 | } | |
7231 | arg2 = new wxArrayInt; | |
3adfb63b | 7232 | temp2 = True; |
d14a1e28 RD |
7233 | int i, len=PySequence_Length(obj1); |
7234 | for (i=0; i<len; i++) { | |
7235 | PyObject* item = PySequence_GetItem(obj1, i); | |
7236 | PyObject* number = PyNumber_Int(item); | |
7237 | arg2->Add(PyInt_AS_LONG(number)); | |
7238 | Py_DECREF(item); | |
7239 | Py_DECREF(number); | |
7240 | } | |
7241 | } | |
7242 | { | |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
7249 | Py_INCREF(Py_None); resultobj = Py_None; | |
7250 | { | |
3adfb63b | 7251 | if (temp2) delete arg2; |
d14a1e28 RD |
7252 | } |
7253 | return resultobj; | |
7254 | fail: | |
7255 | { | |
3adfb63b | 7256 | if (temp2) delete arg2; |
d14a1e28 RD |
7257 | } |
7258 | return NULL; | |
7259 | } | |
7260 | ||
7261 | ||
7262 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7263 | PyObject *resultobj; | |
7264 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7265 | int arg2 ; | |
7266 | PyObject * obj0 = 0 ; | |
994141e6 | 7267 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7268 | char *kwnames[] = { |
7269 | (char *) "self",(char *) "indent", NULL | |
7270 | }; | |
7271 | ||
994141e6 | 7272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7275 | arg2 = (int) SWIG_AsInt(obj1); | |
7276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7277 | { |
7278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7279 | (arg1)->SetLeftIndent(arg2); | |
7280 | ||
7281 | wxPyEndAllowThreads(__tstate); | |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
7284 | Py_INCREF(Py_None); resultobj = Py_None; | |
7285 | return resultobj; | |
7286 | fail: | |
7287 | return NULL; | |
7288 | } | |
7289 | ||
7290 | ||
7291 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7292 | PyObject *resultobj; | |
7293 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7294 | int arg2 ; | |
7295 | PyObject * obj0 = 0 ; | |
994141e6 | 7296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7297 | char *kwnames[] = { |
7298 | (char *) "self",(char *) "indent", NULL | |
7299 | }; | |
7300 | ||
994141e6 | 7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7304 | arg2 = (int) SWIG_AsInt(obj1); | |
7305 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7306 | { |
7307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7308 | (arg1)->SetRightIndent(arg2); | |
7309 | ||
7310 | wxPyEndAllowThreads(__tstate); | |
7311 | if (PyErr_Occurred()) SWIG_fail; | |
7312 | } | |
7313 | Py_INCREF(Py_None); resultobj = Py_None; | |
7314 | return resultobj; | |
7315 | fail: | |
7316 | return NULL; | |
7317 | } | |
7318 | ||
7319 | ||
7320 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7321 | PyObject *resultobj; | |
7322 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7323 | long arg2 ; | |
7324 | PyObject * obj0 = 0 ; | |
994141e6 | 7325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7326 | char *kwnames[] = { |
7327 | (char *) "self",(char *) "flags", NULL | |
7328 | }; | |
7329 | ||
994141e6 | 7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7333 | arg2 = (long) SWIG_AsLong(obj1); | |
7334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7335 | { |
7336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7337 | (arg1)->SetFlags(arg2); | |
7338 | ||
7339 | wxPyEndAllowThreads(__tstate); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
7341 | } | |
7342 | Py_INCREF(Py_None); resultobj = Py_None; | |
7343 | return resultobj; | |
7344 | fail: | |
7345 | return NULL; | |
7346 | } | |
7347 | ||
7348 | ||
7349 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7350 | PyObject *resultobj; | |
7351 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7352 | bool result; | |
7353 | PyObject * obj0 = 0 ; | |
7354 | char *kwnames[] = { | |
7355 | (char *) "self", NULL | |
7356 | }; | |
7357 | ||
7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7361 | { |
7362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7363 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7364 | ||
7365 | wxPyEndAllowThreads(__tstate); | |
7366 | if (PyErr_Occurred()) SWIG_fail; | |
7367 | } | |
4f89f6a3 RD |
7368 | { |
7369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7370 | } | |
d14a1e28 RD |
7371 | return resultobj; |
7372 | fail: | |
7373 | return NULL; | |
7374 | } | |
7375 | ||
7376 | ||
7377 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7378 | PyObject *resultobj; | |
7379 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7380 | bool result; | |
7381 | PyObject * obj0 = 0 ; | |
7382 | char *kwnames[] = { | |
7383 | (char *) "self", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7389 | { |
7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7391 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7392 | ||
7393 | wxPyEndAllowThreads(__tstate); | |
7394 | if (PyErr_Occurred()) SWIG_fail; | |
7395 | } | |
4f89f6a3 RD |
7396 | { |
7397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7398 | } | |
d14a1e28 RD |
7399 | return resultobj; |
7400 | fail: | |
7401 | return NULL; | |
7402 | } | |
7403 | ||
7404 | ||
7405 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7406 | PyObject *resultobj; | |
7407 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7408 | bool result; | |
7409 | PyObject * obj0 = 0 ; | |
7410 | char *kwnames[] = { | |
7411 | (char *) "self", NULL | |
7412 | }; | |
7413 | ||
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7417 | { |
7418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7419 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7420 | ||
7421 | wxPyEndAllowThreads(__tstate); | |
7422 | if (PyErr_Occurred()) SWIG_fail; | |
7423 | } | |
4f89f6a3 RD |
7424 | { |
7425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7426 | } | |
d14a1e28 RD |
7427 | return resultobj; |
7428 | fail: | |
7429 | return NULL; | |
7430 | } | |
7431 | ||
7432 | ||
7433 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7434 | PyObject *resultobj; | |
7435 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7436 | bool result; | |
7437 | PyObject * obj0 = 0 ; | |
7438 | char *kwnames[] = { | |
7439 | (char *) "self", NULL | |
7440 | }; | |
7441 | ||
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7445 | { |
7446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7447 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7448 | ||
7449 | wxPyEndAllowThreads(__tstate); | |
7450 | if (PyErr_Occurred()) SWIG_fail; | |
7451 | } | |
4f89f6a3 RD |
7452 | { |
7453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7454 | } | |
d14a1e28 RD |
7455 | return resultobj; |
7456 | fail: | |
7457 | return NULL; | |
7458 | } | |
7459 | ||
7460 | ||
7461 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7462 | PyObject *resultobj; | |
7463 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7464 | bool result; | |
7465 | PyObject * obj0 = 0 ; | |
7466 | char *kwnames[] = { | |
7467 | (char *) "self", NULL | |
7468 | }; | |
7469 | ||
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7473 | { |
7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7475 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7476 | ||
7477 | wxPyEndAllowThreads(__tstate); | |
7478 | if (PyErr_Occurred()) SWIG_fail; | |
7479 | } | |
4f89f6a3 RD |
7480 | { |
7481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7482 | } | |
d14a1e28 RD |
7483 | return resultobj; |
7484 | fail: | |
7485 | return NULL; | |
7486 | } | |
7487 | ||
7488 | ||
7489 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7490 | PyObject *resultobj; | |
7491 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7492 | bool result; | |
7493 | PyObject * obj0 = 0 ; | |
7494 | char *kwnames[] = { | |
7495 | (char *) "self", NULL | |
7496 | }; | |
7497 | ||
7498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7501 | { |
7502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7503 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7504 | ||
7505 | wxPyEndAllowThreads(__tstate); | |
7506 | if (PyErr_Occurred()) SWIG_fail; | |
7507 | } | |
4f89f6a3 RD |
7508 | { |
7509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7510 | } | |
d14a1e28 RD |
7511 | return resultobj; |
7512 | fail: | |
7513 | return NULL; | |
7514 | } | |
7515 | ||
7516 | ||
7517 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7518 | PyObject *resultobj; | |
7519 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7520 | bool result; | |
7521 | PyObject * obj0 = 0 ; | |
7522 | char *kwnames[] = { | |
7523 | (char *) "self", NULL | |
7524 | }; | |
7525 | ||
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7529 | { |
7530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7531 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7532 | ||
7533 | wxPyEndAllowThreads(__tstate); | |
7534 | if (PyErr_Occurred()) SWIG_fail; | |
7535 | } | |
4f89f6a3 RD |
7536 | { |
7537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7538 | } | |
d14a1e28 RD |
7539 | return resultobj; |
7540 | fail: | |
7541 | return NULL; | |
7542 | } | |
7543 | ||
7544 | ||
7545 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7546 | PyObject *resultobj; | |
7547 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7548 | long arg2 ; | |
7549 | bool result; | |
7550 | PyObject * obj0 = 0 ; | |
994141e6 | 7551 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7552 | char *kwnames[] = { |
7553 | (char *) "self",(char *) "flag", NULL | |
7554 | }; | |
7555 | ||
994141e6 | 7556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7559 | arg2 = (long) SWIG_AsLong(obj1); | |
7560 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7561 | { |
7562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7563 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7564 | ||
7565 | wxPyEndAllowThreads(__tstate); | |
7566 | if (PyErr_Occurred()) SWIG_fail; | |
7567 | } | |
4f89f6a3 RD |
7568 | { |
7569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7570 | } | |
d14a1e28 RD |
7571 | return resultobj; |
7572 | fail: | |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
7577 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7578 | PyObject *resultobj; | |
7579 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7580 | wxColour *result; | |
7581 | PyObject * obj0 = 0 ; | |
7582 | char *kwnames[] = { | |
7583 | (char *) "self", NULL | |
7584 | }; | |
7585 | ||
7586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7589 | { |
7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7591 | { | |
7592 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7593 | result = (wxColour *) &_result_ref; | |
7594 | } | |
7595 | ||
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
15afbcd0 | 7599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7600 | return resultobj; |
7601 | fail: | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
7606 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7607 | PyObject *resultobj; | |
7608 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7609 | wxColour *result; | |
7610 | PyObject * obj0 = 0 ; | |
7611 | char *kwnames[] = { | |
7612 | (char *) "self", NULL | |
7613 | }; | |
7614 | ||
7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7618 | { |
7619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7620 | { | |
7621 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7622 | result = (wxColour *) &_result_ref; | |
7623 | } | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
15afbcd0 | 7628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7629 | return resultobj; |
7630 | fail: | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
7635 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7636 | PyObject *resultobj; | |
7637 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7638 | wxFont *result; | |
7639 | PyObject * obj0 = 0 ; | |
7640 | char *kwnames[] = { | |
7641 | (char *) "self", NULL | |
7642 | }; | |
7643 | ||
7644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7647 | { |
7648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7649 | { | |
7650 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7651 | result = (wxFont *) &_result_ref; | |
7652 | } | |
7653 | ||
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
4276dc52 RD |
7657 | { |
7658 | wxFont* resultptr = new wxFont(*result); | |
7659 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7660 | } | |
d14a1e28 RD |
7661 | return resultobj; |
7662 | fail: | |
7663 | return NULL; | |
7664 | } | |
7665 | ||
7666 | ||
7667 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7668 | PyObject *resultobj; | |
7669 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7670 | int result; | |
7671 | PyObject * obj0 = 0 ; | |
7672 | char *kwnames[] = { | |
7673 | (char *) "self", NULL | |
7674 | }; | |
7675 | ||
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7679 | { |
7680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7681 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7682 | ||
7683 | wxPyEndAllowThreads(__tstate); | |
7684 | if (PyErr_Occurred()) SWIG_fail; | |
7685 | } | |
15afbcd0 | 7686 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7687 | return resultobj; |
7688 | fail: | |
7689 | return NULL; | |
7690 | } | |
7691 | ||
7692 | ||
7693 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7694 | PyObject *resultobj; | |
7695 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7696 | wxArrayInt *result; | |
7697 | PyObject * obj0 = 0 ; | |
7698 | char *kwnames[] = { | |
7699 | (char *) "self", NULL | |
7700 | }; | |
7701 | ||
7702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7705 | { |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | { | |
7708 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7709 | result = (wxArrayInt *) &_result_ref; | |
7710 | } | |
7711 | ||
7712 | wxPyEndAllowThreads(__tstate); | |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
7714 | } | |
7715 | { | |
7716 | resultobj = PyList_New(0); | |
7717 | size_t idx; | |
7718 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7719 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7720 | PyList_Append(resultobj, val); | |
7721 | Py_DECREF(val); | |
7722 | } | |
7723 | } | |
7724 | return resultobj; | |
7725 | fail: | |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
7730 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7731 | PyObject *resultobj; | |
7732 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7733 | long result; | |
7734 | PyObject * obj0 = 0 ; | |
7735 | char *kwnames[] = { | |
7736 | (char *) "self", NULL | |
7737 | }; | |
7738 | ||
7739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7742 | { |
7743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7744 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7745 | ||
7746 | wxPyEndAllowThreads(__tstate); | |
7747 | if (PyErr_Occurred()) SWIG_fail; | |
7748 | } | |
15afbcd0 | 7749 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7750 | return resultobj; |
7751 | fail: | |
7752 | return NULL; | |
7753 | } | |
7754 | ||
7755 | ||
7756 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7757 | PyObject *resultobj; | |
7758 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7759 | long result; | |
7760 | PyObject * obj0 = 0 ; | |
7761 | char *kwnames[] = { | |
7762 | (char *) "self", NULL | |
7763 | }; | |
7764 | ||
7765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7768 | { |
7769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7770 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7771 | ||
7772 | wxPyEndAllowThreads(__tstate); | |
7773 | if (PyErr_Occurred()) SWIG_fail; | |
7774 | } | |
15afbcd0 | 7775 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7776 | return resultobj; |
7777 | fail: | |
7778 | return NULL; | |
7779 | } | |
7780 | ||
7781 | ||
7782 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7783 | PyObject *resultobj; | |
7784 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7785 | long result; | |
7786 | PyObject * obj0 = 0 ; | |
7787 | char *kwnames[] = { | |
7788 | (char *) "self", NULL | |
7789 | }; | |
7790 | ||
7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7794 | { |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
15afbcd0 | 7801 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7802 | return resultobj; |
7803 | fail: | |
7804 | return NULL; | |
7805 | } | |
7806 | ||
7807 | ||
7808 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7809 | PyObject *resultobj; | |
7810 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7811 | bool result; | |
7812 | PyObject * obj0 = 0 ; | |
7813 | char *kwnames[] = { | |
7814 | (char *) "self", NULL | |
7815 | }; | |
7816 | ||
7817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7820 | { |
7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7822 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7823 | ||
7824 | wxPyEndAllowThreads(__tstate); | |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
7826 | } | |
4f89f6a3 RD |
7827 | { |
7828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7829 | } | |
d14a1e28 RD |
7830 | return resultobj; |
7831 | fail: | |
7832 | return NULL; | |
7833 | } | |
7834 | ||
7835 | ||
7836 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject *resultobj; | |
7838 | wxTextAttr *arg1 = 0 ; | |
7839 | wxTextAttr *arg2 = 0 ; | |
7840 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7841 | wxTextAttr result; | |
7842 | PyObject * obj0 = 0 ; | |
7843 | PyObject * obj1 = 0 ; | |
7844 | PyObject * obj2 = 0 ; | |
7845 | char *kwnames[] = { | |
7846 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7847 | }; | |
7848 | ||
7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7852 | SWIG_fail; | |
d14a1e28 | 7853 | if (arg1 == NULL) { |
15afbcd0 RD |
7854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7855 | SWIG_fail; | |
d14a1e28 | 7856 | } |
15afbcd0 RD |
7857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
7858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7859 | SWIG_fail; | |
d14a1e28 | 7860 | if (arg2 == NULL) { |
15afbcd0 RD |
7861 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7862 | SWIG_fail; | |
d14a1e28 | 7863 | } |
15afbcd0 RD |
7864 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
7865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7866 | { |
7867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7868 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7869 | ||
7870 | wxPyEndAllowThreads(__tstate); | |
7871 | if (PyErr_Occurred()) SWIG_fail; | |
7872 | } | |
7873 | { | |
7874 | wxTextAttr * resultptr; | |
7875 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
15afbcd0 | 7876 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7877 | } |
7878 | return resultobj; | |
7879 | fail: | |
7880 | return NULL; | |
7881 | } | |
7882 | ||
7883 | ||
7884 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7885 | PyObject *obj; | |
7886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7887 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7888 | Py_INCREF(obj); | |
7889 | return Py_BuildValue((char *)""); | |
7890 | } | |
7891 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7892 | PyObject *resultobj; | |
7893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 7894 | int arg2 ; |
d14a1e28 RD |
7895 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7896 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7897 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7898 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7899 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7900 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7901 | long arg6 = (long) 0 ; | |
7902 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7903 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7904 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7905 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7906 | wxTextCtrl *result; | |
e811c8ce | 7907 | bool temp3 = False ; |
d14a1e28 RD |
7908 | wxPoint temp4 ; |
7909 | wxSize temp5 ; | |
e811c8ce | 7910 | bool temp8 = False ; |
d14a1e28 | 7911 | PyObject * obj0 = 0 ; |
994141e6 | 7912 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7913 | PyObject * obj2 = 0 ; |
7914 | PyObject * obj3 = 0 ; | |
7915 | PyObject * obj4 = 0 ; | |
994141e6 | 7916 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7917 | PyObject * obj6 = 0 ; |
7918 | PyObject * obj7 = 0 ; | |
7919 | char *kwnames[] = { | |
7920 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7921 | }; | |
7922 | ||
994141e6 | 7923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
7924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7926 | arg2 = (int) SWIG_AsInt(obj1); | |
7927 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7928 | if (obj2) { |
7929 | { | |
7930 | arg3 = wxString_in_helper(obj2); | |
7931 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7932 | temp3 = True; |
d14a1e28 RD |
7933 | } |
7934 | } | |
7935 | if (obj3) { | |
7936 | { | |
7937 | arg4 = &temp4; | |
7938 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7939 | } | |
7940 | } | |
7941 | if (obj4) { | |
7942 | { | |
7943 | arg5 = &temp5; | |
7944 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7945 | } | |
7946 | } | |
994141e6 | 7947 | if (obj5) { |
15afbcd0 RD |
7948 | arg6 = (long) SWIG_AsLong(obj5); |
7949 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7950 | } |
d14a1e28 | 7951 | if (obj6) { |
15afbcd0 RD |
7952 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
7953 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7954 | SWIG_fail; | |
d14a1e28 | 7955 | if (arg7 == NULL) { |
15afbcd0 RD |
7956 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7957 | SWIG_fail; | |
d14a1e28 RD |
7958 | } |
7959 | } | |
7960 | if (obj7) { | |
7961 | { | |
7962 | arg8 = wxString_in_helper(obj7); | |
7963 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 7964 | temp8 = True; |
d14a1e28 RD |
7965 | } |
7966 | } | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
7974 | { | |
7975 | resultobj = wxPyMake_wxObject(result); | |
7976 | } | |
7977 | { | |
7978 | if (temp3) | |
7979 | delete arg3; | |
7980 | } | |
7981 | { | |
7982 | if (temp8) | |
7983 | delete arg8; | |
7984 | } | |
7985 | return resultobj; | |
7986 | fail: | |
7987 | { | |
7988 | if (temp3) | |
7989 | delete arg3; | |
7990 | } | |
7991 | { | |
7992 | if (temp8) | |
7993 | delete arg8; | |
7994 | } | |
7995 | return NULL; | |
7996 | } | |
7997 | ||
7998 | ||
7999 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8000 | PyObject *resultobj; | |
8001 | wxTextCtrl *result; | |
8002 | char *kwnames[] = { | |
8003 | NULL | |
8004 | }; | |
8005 | ||
8006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8007 | { | |
8008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8009 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8010 | ||
8011 | wxPyEndAllowThreads(__tstate); | |
8012 | if (PyErr_Occurred()) SWIG_fail; | |
8013 | } | |
8014 | { | |
8015 | resultobj = wxPyMake_wxObject(result); | |
8016 | } | |
8017 | return resultobj; | |
8018 | fail: | |
8019 | return NULL; | |
8020 | } | |
8021 | ||
8022 | ||
8023 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8024 | PyObject *resultobj; | |
8025 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8026 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8027 | int arg3 ; |
d14a1e28 RD |
8028 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8029 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8030 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8031 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8032 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8033 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8034 | long arg7 = (long) 0 ; | |
8035 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8036 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8037 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8038 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8039 | bool result; | |
e811c8ce | 8040 | bool temp4 = False ; |
d14a1e28 RD |
8041 | wxPoint temp5 ; |
8042 | wxSize temp6 ; | |
e811c8ce | 8043 | bool temp9 = False ; |
d14a1e28 RD |
8044 | PyObject * obj0 = 0 ; |
8045 | PyObject * obj1 = 0 ; | |
994141e6 | 8046 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8047 | PyObject * obj3 = 0 ; |
8048 | PyObject * obj4 = 0 ; | |
8049 | PyObject * obj5 = 0 ; | |
994141e6 | 8050 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8051 | PyObject * obj7 = 0 ; |
8052 | PyObject * obj8 = 0 ; | |
8053 | char *kwnames[] = { | |
8054 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8055 | }; | |
8056 | ||
994141e6 | 8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
8058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8060 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8062 | arg3 = (int) SWIG_AsInt(obj2); | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8064 | if (obj3) { |
8065 | { | |
8066 | arg4 = wxString_in_helper(obj3); | |
8067 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8068 | temp4 = True; |
d14a1e28 RD |
8069 | } |
8070 | } | |
8071 | if (obj4) { | |
8072 | { | |
8073 | arg5 = &temp5; | |
8074 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8075 | } | |
8076 | } | |
8077 | if (obj5) { | |
8078 | { | |
8079 | arg6 = &temp6; | |
8080 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8081 | } | |
8082 | } | |
994141e6 | 8083 | if (obj6) { |
15afbcd0 RD |
8084 | arg7 = (long) SWIG_AsLong(obj6); |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8086 | } |
d14a1e28 | 8087 | if (obj7) { |
15afbcd0 RD |
8088 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
8089 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8090 | SWIG_fail; | |
d14a1e28 | 8091 | if (arg8 == NULL) { |
15afbcd0 RD |
8092 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8093 | SWIG_fail; | |
d14a1e28 RD |
8094 | } |
8095 | } | |
8096 | if (obj8) { | |
8097 | { | |
8098 | arg9 = wxString_in_helper(obj8); | |
8099 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 8100 | temp9 = True; |
d14a1e28 RD |
8101 | } |
8102 | } | |
8103 | { | |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
4f89f6a3 RD |
8110 | { |
8111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8112 | } | |
d14a1e28 RD |
8113 | { |
8114 | if (temp4) | |
8115 | delete arg4; | |
8116 | } | |
8117 | { | |
8118 | if (temp9) | |
8119 | delete arg9; | |
8120 | } | |
8121 | return resultobj; | |
8122 | fail: | |
8123 | { | |
8124 | if (temp4) | |
8125 | delete arg4; | |
8126 | } | |
8127 | { | |
8128 | if (temp9) | |
8129 | delete arg9; | |
8130 | } | |
8131 | return NULL; | |
8132 | } | |
8133 | ||
8134 | ||
8135 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8136 | PyObject *resultobj; | |
8137 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8138 | wxString result; | |
8139 | PyObject * obj0 = 0 ; | |
8140 | char *kwnames[] = { | |
8141 | (char *) "self", NULL | |
8142 | }; | |
8143 | ||
8144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8147 | { |
8148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8149 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8150 | ||
8151 | wxPyEndAllowThreads(__tstate); | |
8152 | if (PyErr_Occurred()) SWIG_fail; | |
8153 | } | |
8154 | { | |
8155 | #if wxUSE_UNICODE | |
8156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8157 | #else | |
8158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8159 | #endif | |
8160 | } | |
8161 | return resultobj; | |
8162 | fail: | |
8163 | return NULL; | |
8164 | } | |
8165 | ||
8166 | ||
8167 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8168 | PyObject *resultobj; | |
8169 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8170 | wxString *arg2 = 0 ; | |
e811c8ce | 8171 | bool temp2 = False ; |
d14a1e28 RD |
8172 | PyObject * obj0 = 0 ; |
8173 | PyObject * obj1 = 0 ; | |
8174 | char *kwnames[] = { | |
8175 | (char *) "self",(char *) "value", NULL | |
8176 | }; | |
8177 | ||
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8181 | { |
8182 | arg2 = wxString_in_helper(obj1); | |
8183 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8184 | temp2 = True; |
d14a1e28 RD |
8185 | } |
8186 | { | |
8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8188 | (arg1)->SetValue((wxString const &)*arg2); | |
8189 | ||
8190 | wxPyEndAllowThreads(__tstate); | |
8191 | if (PyErr_Occurred()) SWIG_fail; | |
8192 | } | |
8193 | Py_INCREF(Py_None); resultobj = Py_None; | |
8194 | { | |
8195 | if (temp2) | |
8196 | delete arg2; | |
8197 | } | |
8198 | return resultobj; | |
8199 | fail: | |
8200 | { | |
8201 | if (temp2) | |
8202 | delete arg2; | |
8203 | } | |
8204 | return NULL; | |
8205 | } | |
8206 | ||
8207 | ||
8208 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8209 | PyObject *resultobj; | |
8210 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8211 | long arg2 ; | |
8212 | long arg3 ; | |
8213 | wxString result; | |
8214 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8215 | PyObject * obj1 = 0 ; |
8216 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8217 | char *kwnames[] = { |
8218 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8219 | }; | |
8220 | ||
994141e6 | 8221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8224 | arg2 = (long) SWIG_AsLong(obj1); | |
8225 | if (PyErr_Occurred()) SWIG_fail; | |
8226 | arg3 = (long) SWIG_AsLong(obj2); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8228 | { |
8229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8230 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8231 | ||
8232 | wxPyEndAllowThreads(__tstate); | |
8233 | if (PyErr_Occurred()) SWIG_fail; | |
8234 | } | |
8235 | { | |
8236 | #if wxUSE_UNICODE | |
8237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8238 | #else | |
8239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8240 | #endif | |
8241 | } | |
8242 | return resultobj; | |
8243 | fail: | |
8244 | return NULL; | |
8245 | } | |
8246 | ||
8247 | ||
8248 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8249 | PyObject *resultobj; | |
8250 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8251 | long arg2 ; | |
8252 | int result; | |
8253 | PyObject * obj0 = 0 ; | |
994141e6 | 8254 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8255 | char *kwnames[] = { |
8256 | (char *) "self",(char *) "lineNo", NULL | |
8257 | }; | |
8258 | ||
994141e6 | 8259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8262 | arg2 = (long) SWIG_AsLong(obj1); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8264 | { |
8265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8266 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8267 | ||
8268 | wxPyEndAllowThreads(__tstate); | |
8269 | if (PyErr_Occurred()) SWIG_fail; | |
8270 | } | |
15afbcd0 | 8271 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8272 | return resultobj; |
8273 | fail: | |
8274 | return NULL; | |
8275 | } | |
8276 | ||
8277 | ||
8278 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8279 | PyObject *resultobj; | |
8280 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8281 | long arg2 ; | |
8282 | wxString result; | |
8283 | PyObject * obj0 = 0 ; | |
994141e6 | 8284 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8285 | char *kwnames[] = { |
8286 | (char *) "self",(char *) "lineNo", NULL | |
8287 | }; | |
8288 | ||
994141e6 | 8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8292 | arg2 = (long) SWIG_AsLong(obj1); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8294 | { |
8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8296 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8297 | ||
8298 | wxPyEndAllowThreads(__tstate); | |
8299 | if (PyErr_Occurred()) SWIG_fail; | |
8300 | } | |
8301 | { | |
8302 | #if wxUSE_UNICODE | |
8303 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8304 | #else | |
8305 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8306 | #endif | |
8307 | } | |
8308 | return resultobj; | |
8309 | fail: | |
8310 | return NULL; | |
8311 | } | |
8312 | ||
8313 | ||
8314 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8315 | PyObject *resultobj; | |
8316 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8317 | int result; | |
8318 | PyObject * obj0 = 0 ; | |
8319 | char *kwnames[] = { | |
8320 | (char *) "self", NULL | |
8321 | }; | |
8322 | ||
8323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8326 | { |
8327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8328 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8329 | ||
8330 | wxPyEndAllowThreads(__tstate); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
15afbcd0 | 8333 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8334 | return resultobj; |
8335 | fail: | |
8336 | return NULL; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8341 | PyObject *resultobj; | |
8342 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8343 | bool result; | |
8344 | PyObject * obj0 = 0 ; | |
8345 | char *kwnames[] = { | |
8346 | (char *) "self", NULL | |
8347 | }; | |
8348 | ||
8349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8352 | { |
8353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8354 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8355 | ||
8356 | wxPyEndAllowThreads(__tstate); | |
8357 | if (PyErr_Occurred()) SWIG_fail; | |
8358 | } | |
4f89f6a3 RD |
8359 | { |
8360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8361 | } | |
d14a1e28 RD |
8362 | return resultobj; |
8363 | fail: | |
8364 | return NULL; | |
8365 | } | |
8366 | ||
8367 | ||
8368 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8369 | PyObject *resultobj; | |
8370 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8371 | bool result; | |
8372 | PyObject * obj0 = 0 ; | |
8373 | char *kwnames[] = { | |
8374 | (char *) "self", NULL | |
8375 | }; | |
8376 | ||
8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8380 | { |
8381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8382 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8383 | ||
8384 | wxPyEndAllowThreads(__tstate); | |
8385 | if (PyErr_Occurred()) SWIG_fail; | |
8386 | } | |
4f89f6a3 RD |
8387 | { |
8388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8389 | } | |
d14a1e28 RD |
8390 | return resultobj; |
8391 | fail: | |
8392 | return NULL; | |
8393 | } | |
8394 | ||
8395 | ||
8396 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8397 | PyObject *resultobj; | |
8398 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8399 | bool result; | |
8400 | PyObject * obj0 = 0 ; | |
8401 | char *kwnames[] = { | |
8402 | (char *) "self", NULL | |
8403 | }; | |
8404 | ||
8405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8408 | { |
8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8410 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8411 | ||
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
4f89f6a3 RD |
8415 | { |
8416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8417 | } | |
d14a1e28 RD |
8418 | return resultobj; |
8419 | fail: | |
8420 | return NULL; | |
8421 | } | |
8422 | ||
8423 | ||
8424 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8425 | PyObject *resultobj; | |
8426 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8427 | bool result; | |
8428 | PyObject * obj0 = 0 ; | |
8429 | char *kwnames[] = { | |
8430 | (char *) "self", NULL | |
8431 | }; | |
8432 | ||
8433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8436 | { |
8437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8438 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8439 | ||
8440 | wxPyEndAllowThreads(__tstate); | |
8441 | if (PyErr_Occurred()) SWIG_fail; | |
8442 | } | |
4f89f6a3 RD |
8443 | { |
8444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8445 | } | |
d14a1e28 RD |
8446 | return resultobj; |
8447 | fail: | |
8448 | return NULL; | |
8449 | } | |
8450 | ||
8451 | ||
8452 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8453 | PyObject *resultobj; | |
8454 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8455 | long *arg2 = (long *) 0 ; | |
8456 | long *arg3 = (long *) 0 ; | |
8457 | long temp2 ; | |
8458 | long temp3 ; | |
8459 | PyObject * obj0 = 0 ; | |
8460 | char *kwnames[] = { | |
8461 | (char *) "self", NULL | |
8462 | }; | |
8463 | ||
8464 | arg2 = &temp2; | |
8465 | arg3 = &temp3; | |
8466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8469 | { |
8470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8471 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8472 | ||
8473 | wxPyEndAllowThreads(__tstate); | |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
8475 | } | |
8476 | Py_INCREF(Py_None); resultobj = Py_None; | |
8477 | { | |
8478 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8479 | resultobj = t_output_helper(resultobj,o); | |
8480 | } | |
8481 | { | |
8482 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8483 | resultobj = t_output_helper(resultobj,o); | |
8484 | } | |
8485 | return resultobj; | |
8486 | fail: | |
8487 | return NULL; | |
8488 | } | |
8489 | ||
8490 | ||
8491 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject *resultobj; | |
8493 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8494 | wxString result; | |
8495 | PyObject * obj0 = 0 ; | |
8496 | char *kwnames[] = { | |
8497 | (char *) "self", NULL | |
8498 | }; | |
8499 | ||
8500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8503 | { |
8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8505 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8506 | ||
8507 | wxPyEndAllowThreads(__tstate); | |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | } | |
8510 | { | |
8511 | #if wxUSE_UNICODE | |
8512 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8513 | #else | |
8514 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8515 | #endif | |
8516 | } | |
8517 | return resultobj; | |
8518 | fail: | |
8519 | return NULL; | |
8520 | } | |
8521 | ||
8522 | ||
8523 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8524 | PyObject *resultobj; | |
8525 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8526 | PyObject * obj0 = 0 ; | |
8527 | char *kwnames[] = { | |
8528 | (char *) "self", NULL | |
8529 | }; | |
8530 | ||
8531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8534 | { |
8535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8536 | (arg1)->Clear(); | |
8537 | ||
8538 | wxPyEndAllowThreads(__tstate); | |
8539 | if (PyErr_Occurred()) SWIG_fail; | |
8540 | } | |
8541 | Py_INCREF(Py_None); resultobj = Py_None; | |
8542 | return resultobj; | |
8543 | fail: | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
8548 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8549 | PyObject *resultobj; | |
8550 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8551 | long arg2 ; | |
8552 | long arg3 ; | |
8553 | wxString *arg4 = 0 ; | |
e811c8ce | 8554 | bool temp4 = False ; |
d14a1e28 | 8555 | PyObject * obj0 = 0 ; |
994141e6 RD |
8556 | PyObject * obj1 = 0 ; |
8557 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8558 | PyObject * obj3 = 0 ; |
8559 | char *kwnames[] = { | |
8560 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8561 | }; | |
8562 | ||
994141e6 | 8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8566 | arg2 = (long) SWIG_AsLong(obj1); | |
8567 | if (PyErr_Occurred()) SWIG_fail; | |
8568 | arg3 = (long) SWIG_AsLong(obj2); | |
8569 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8570 | { |
8571 | arg4 = wxString_in_helper(obj3); | |
8572 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8573 | temp4 = True; |
d14a1e28 RD |
8574 | } |
8575 | { | |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8578 | ||
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
8582 | Py_INCREF(Py_None); resultobj = Py_None; | |
8583 | { | |
8584 | if (temp4) | |
8585 | delete arg4; | |
8586 | } | |
8587 | return resultobj; | |
8588 | fail: | |
8589 | { | |
8590 | if (temp4) | |
8591 | delete arg4; | |
8592 | } | |
8593 | return NULL; | |
8594 | } | |
8595 | ||
8596 | ||
8597 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8598 | PyObject *resultobj; | |
8599 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8600 | long arg2 ; | |
8601 | long arg3 ; | |
8602 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8603 | PyObject * obj1 = 0 ; |
8604 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8605 | char *kwnames[] = { |
8606 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8607 | }; | |
8608 | ||
994141e6 | 8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8612 | arg2 = (long) SWIG_AsLong(obj1); | |
8613 | if (PyErr_Occurred()) SWIG_fail; | |
8614 | arg3 = (long) SWIG_AsLong(obj2); | |
8615 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8616 | { |
8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8618 | (arg1)->Remove(arg2,arg3); | |
8619 | ||
8620 | wxPyEndAllowThreads(__tstate); | |
8621 | if (PyErr_Occurred()) SWIG_fail; | |
8622 | } | |
8623 | Py_INCREF(Py_None); resultobj = Py_None; | |
8624 | return resultobj; | |
8625 | fail: | |
8626 | return NULL; | |
8627 | } | |
8628 | ||
8629 | ||
8630 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8631 | PyObject *resultobj; | |
8632 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8633 | wxString *arg2 = 0 ; | |
8634 | bool result; | |
e811c8ce | 8635 | bool temp2 = False ; |
d14a1e28 RD |
8636 | PyObject * obj0 = 0 ; |
8637 | PyObject * obj1 = 0 ; | |
8638 | char *kwnames[] = { | |
8639 | (char *) "self",(char *) "file", NULL | |
8640 | }; | |
8641 | ||
8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8645 | { |
8646 | arg2 = wxString_in_helper(obj1); | |
8647 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8648 | temp2 = True; |
d14a1e28 RD |
8649 | } |
8650 | { | |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8652 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8653 | ||
8654 | wxPyEndAllowThreads(__tstate); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
4f89f6a3 RD |
8657 | { |
8658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8659 | } | |
d14a1e28 RD |
8660 | { |
8661 | if (temp2) | |
8662 | delete arg2; | |
8663 | } | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | { | |
8667 | if (temp2) | |
8668 | delete arg2; | |
8669 | } | |
8670 | return NULL; | |
8671 | } | |
8672 | ||
8673 | ||
8674 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8675 | PyObject *resultobj; | |
8676 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8677 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8678 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8679 | bool result; | |
e811c8ce | 8680 | bool temp2 = False ; |
d14a1e28 RD |
8681 | PyObject * obj0 = 0 ; |
8682 | PyObject * obj1 = 0 ; | |
8683 | char *kwnames[] = { | |
8684 | (char *) "self",(char *) "file", NULL | |
8685 | }; | |
8686 | ||
8687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8690 | if (obj1) { |
8691 | { | |
8692 | arg2 = wxString_in_helper(obj1); | |
8693 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8694 | temp2 = True; |
d14a1e28 RD |
8695 | } |
8696 | } | |
8697 | { | |
8698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8699 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8700 | ||
8701 | wxPyEndAllowThreads(__tstate); | |
8702 | if (PyErr_Occurred()) SWIG_fail; | |
8703 | } | |
4f89f6a3 RD |
8704 | { |
8705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8706 | } | |
d14a1e28 RD |
8707 | { |
8708 | if (temp2) | |
8709 | delete arg2; | |
8710 | } | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | { | |
8714 | if (temp2) | |
8715 | delete arg2; | |
8716 | } | |
8717 | return NULL; | |
8718 | } | |
8719 | ||
8720 | ||
8721 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8722 | PyObject *resultobj; | |
8723 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8724 | PyObject * obj0 = 0 ; | |
8725 | char *kwnames[] = { | |
8726 | (char *) "self", NULL | |
8727 | }; | |
8728 | ||
8729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8732 | { |
8733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8734 | (arg1)->MarkDirty(); | |
8735 | ||
8736 | wxPyEndAllowThreads(__tstate); | |
8737 | if (PyErr_Occurred()) SWIG_fail; | |
8738 | } | |
8739 | Py_INCREF(Py_None); resultobj = Py_None; | |
8740 | return resultobj; | |
8741 | fail: | |
8742 | return NULL; | |
8743 | } | |
8744 | ||
8745 | ||
8746 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8747 | PyObject *resultobj; | |
8748 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8749 | PyObject * obj0 = 0 ; | |
8750 | char *kwnames[] = { | |
8751 | (char *) "self", NULL | |
8752 | }; | |
8753 | ||
8754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8757 | { |
8758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8759 | (arg1)->DiscardEdits(); | |
8760 | ||
8761 | wxPyEndAllowThreads(__tstate); | |
8762 | if (PyErr_Occurred()) SWIG_fail; | |
8763 | } | |
8764 | Py_INCREF(Py_None); resultobj = Py_None; | |
8765 | return resultobj; | |
8766 | fail: | |
8767 | return NULL; | |
8768 | } | |
8769 | ||
8770 | ||
8771 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8772 | PyObject *resultobj; | |
8773 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8774 | unsigned long arg2 ; | |
8775 | PyObject * obj0 = 0 ; | |
8776 | PyObject * obj1 = 0 ; | |
8777 | char *kwnames[] = { | |
8778 | (char *) "self",(char *) "len", NULL | |
8779 | }; | |
8780 | ||
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8784 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8785 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8786 | { |
8787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8788 | (arg1)->SetMaxLength(arg2); | |
8789 | ||
8790 | wxPyEndAllowThreads(__tstate); | |
8791 | if (PyErr_Occurred()) SWIG_fail; | |
8792 | } | |
8793 | Py_INCREF(Py_None); resultobj = Py_None; | |
8794 | return resultobj; | |
8795 | fail: | |
8796 | return NULL; | |
8797 | } | |
8798 | ||
8799 | ||
8800 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8801 | PyObject *resultobj; | |
8802 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8803 | wxString *arg2 = 0 ; | |
e811c8ce | 8804 | bool temp2 = False ; |
d14a1e28 RD |
8805 | PyObject * obj0 = 0 ; |
8806 | PyObject * obj1 = 0 ; | |
8807 | char *kwnames[] = { | |
8808 | (char *) "self",(char *) "text", NULL | |
8809 | }; | |
8810 | ||
8811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8814 | { |
8815 | arg2 = wxString_in_helper(obj1); | |
8816 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8817 | temp2 = True; |
d14a1e28 RD |
8818 | } |
8819 | { | |
8820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8821 | (arg1)->WriteText((wxString const &)*arg2); | |
8822 | ||
8823 | wxPyEndAllowThreads(__tstate); | |
8824 | if (PyErr_Occurred()) SWIG_fail; | |
8825 | } | |
8826 | Py_INCREF(Py_None); resultobj = Py_None; | |
8827 | { | |
8828 | if (temp2) | |
8829 | delete arg2; | |
8830 | } | |
8831 | return resultobj; | |
8832 | fail: | |
8833 | { | |
8834 | if (temp2) | |
8835 | delete arg2; | |
8836 | } | |
8837 | return NULL; | |
8838 | } | |
8839 | ||
8840 | ||
8841 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8842 | PyObject *resultobj; | |
8843 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8844 | wxString *arg2 = 0 ; | |
e811c8ce | 8845 | bool temp2 = False ; |
d14a1e28 RD |
8846 | PyObject * obj0 = 0 ; |
8847 | PyObject * obj1 = 0 ; | |
8848 | char *kwnames[] = { | |
8849 | (char *) "self",(char *) "text", NULL | |
8850 | }; | |
8851 | ||
8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8855 | { |
8856 | arg2 = wxString_in_helper(obj1); | |
8857 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8858 | temp2 = True; |
d14a1e28 RD |
8859 | } |
8860 | { | |
8861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8862 | (arg1)->AppendText((wxString const &)*arg2); | |
8863 | ||
8864 | wxPyEndAllowThreads(__tstate); | |
8865 | if (PyErr_Occurred()) SWIG_fail; | |
8866 | } | |
8867 | Py_INCREF(Py_None); resultobj = Py_None; | |
8868 | { | |
8869 | if (temp2) | |
8870 | delete arg2; | |
8871 | } | |
8872 | return resultobj; | |
8873 | fail: | |
8874 | { | |
8875 | if (temp2) | |
8876 | delete arg2; | |
8877 | } | |
8878 | return NULL; | |
8879 | } | |
8880 | ||
8881 | ||
8882 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8883 | PyObject *resultobj; | |
8884 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8885 | wxKeyEvent *arg2 = 0 ; | |
8886 | bool result; | |
8887 | PyObject * obj0 = 0 ; | |
8888 | PyObject * obj1 = 0 ; | |
8889 | char *kwnames[] = { | |
8890 | (char *) "self",(char *) "event", NULL | |
8891 | }; | |
8892 | ||
8893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8897 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8898 | SWIG_fail; | |
d14a1e28 | 8899 | if (arg2 == NULL) { |
15afbcd0 RD |
8900 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8901 | SWIG_fail; | |
d14a1e28 RD |
8902 | } |
8903 | { | |
8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8905 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8906 | ||
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
4f89f6a3 RD |
8910 | { |
8911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8912 | } | |
d14a1e28 RD |
8913 | return resultobj; |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8920 | PyObject *resultobj; | |
8921 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8922 | long arg2 ; | |
8923 | long arg3 ; | |
8924 | wxTextAttr *arg4 = 0 ; | |
8925 | bool result; | |
8926 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8927 | PyObject * obj1 = 0 ; |
8928 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8929 | PyObject * obj3 = 0 ; |
8930 | char *kwnames[] = { | |
8931 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8932 | }; | |
8933 | ||
994141e6 | 8934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8937 | arg2 = (long) SWIG_AsLong(obj1); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | arg3 = (long) SWIG_AsLong(obj2); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8942 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8943 | SWIG_fail; | |
d14a1e28 | 8944 | if (arg4 == NULL) { |
15afbcd0 RD |
8945 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8946 | SWIG_fail; | |
d14a1e28 RD |
8947 | } |
8948 | { | |
8949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8950 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8951 | ||
8952 | wxPyEndAllowThreads(__tstate); | |
8953 | if (PyErr_Occurred()) SWIG_fail; | |
8954 | } | |
4f89f6a3 RD |
8955 | { |
8956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8957 | } | |
d14a1e28 RD |
8958 | return resultobj; |
8959 | fail: | |
8960 | return NULL; | |
8961 | } | |
8962 | ||
8963 | ||
8964 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8965 | PyObject *resultobj; | |
8966 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8967 | long arg2 ; | |
8968 | wxTextAttr *arg3 = 0 ; | |
8969 | bool result; | |
8970 | PyObject * obj0 = 0 ; | |
994141e6 | 8971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8972 | PyObject * obj2 = 0 ; |
8973 | char *kwnames[] = { | |
8974 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8975 | }; | |
8976 | ||
994141e6 | 8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8980 | arg2 = (long) SWIG_AsLong(obj1); | |
8981 | if (PyErr_Occurred()) SWIG_fail; | |
8982 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
8983 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8984 | SWIG_fail; | |
d14a1e28 | 8985 | if (arg3 == NULL) { |
15afbcd0 RD |
8986 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8987 | SWIG_fail; | |
d14a1e28 RD |
8988 | } |
8989 | { | |
8990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8991 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8992 | ||
8993 | wxPyEndAllowThreads(__tstate); | |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
8995 | } | |
4f89f6a3 RD |
8996 | { |
8997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8998 | } | |
d14a1e28 RD |
8999 | return resultobj; |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj; | |
9007 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9008 | wxTextAttr *arg2 = 0 ; | |
9009 | bool result; | |
9010 | PyObject * obj0 = 0 ; | |
9011 | PyObject * obj1 = 0 ; | |
9012 | char *kwnames[] = { | |
9013 | (char *) "self",(char *) "style", NULL | |
9014 | }; | |
9015 | ||
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9021 | SWIG_fail; | |
d14a1e28 | 9022 | if (arg2 == NULL) { |
15afbcd0 RD |
9023 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9024 | SWIG_fail; | |
d14a1e28 RD |
9025 | } |
9026 | { | |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
4f89f6a3 RD |
9033 | { |
9034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9035 | } | |
d14a1e28 RD |
9036 | return resultobj; |
9037 | fail: | |
9038 | return NULL; | |
9039 | } | |
9040 | ||
9041 | ||
9042 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9043 | PyObject *resultobj; | |
9044 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9045 | wxTextAttr *result; | |
9046 | PyObject * obj0 = 0 ; | |
9047 | char *kwnames[] = { | |
9048 | (char *) "self", NULL | |
9049 | }; | |
9050 | ||
9051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9054 | { |
9055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9056 | { | |
9057 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9058 | result = (wxTextAttr *) &_result_ref; | |
9059 | } | |
9060 | ||
9061 | wxPyEndAllowThreads(__tstate); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | } | |
15afbcd0 | 9064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
9065 | return resultobj; |
9066 | fail: | |
9067 | return NULL; | |
9068 | } | |
9069 | ||
9070 | ||
9071 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9072 | PyObject *resultobj; | |
9073 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9074 | long arg2 ; | |
9075 | long arg3 ; | |
9076 | long result; | |
9077 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9078 | PyObject * obj1 = 0 ; |
9079 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9080 | char *kwnames[] = { |
9081 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9082 | }; | |
9083 | ||
994141e6 | 9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9087 | arg2 = (long) SWIG_AsLong(obj1); | |
9088 | if (PyErr_Occurred()) SWIG_fail; | |
9089 | arg3 = (long) SWIG_AsLong(obj2); | |
9090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9091 | { |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9094 | ||
9095 | wxPyEndAllowThreads(__tstate); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | } | |
15afbcd0 | 9098 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9099 | return resultobj; |
9100 | fail: | |
9101 | return NULL; | |
9102 | } | |
9103 | ||
9104 | ||
9105 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9106 | PyObject *resultobj; | |
9107 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9108 | long arg2 ; | |
9109 | long *arg3 = (long *) 0 ; | |
9110 | long *arg4 = (long *) 0 ; | |
9111 | long temp3 ; | |
9112 | long temp4 ; | |
9113 | PyObject * obj0 = 0 ; | |
994141e6 | 9114 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9115 | char *kwnames[] = { |
9116 | (char *) "self",(char *) "pos", NULL | |
9117 | }; | |
9118 | ||
9119 | arg3 = &temp3; | |
9120 | arg4 = &temp4; | |
994141e6 | 9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9124 | arg2 = (long) SWIG_AsLong(obj1); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9126 | { |
9127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9128 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9129 | ||
9130 | wxPyEndAllowThreads(__tstate); | |
9131 | if (PyErr_Occurred()) SWIG_fail; | |
9132 | } | |
9133 | Py_INCREF(Py_None); resultobj = Py_None; | |
9134 | { | |
9135 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9136 | resultobj = t_output_helper(resultobj,o); | |
9137 | } | |
9138 | { | |
9139 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9140 | resultobj = t_output_helper(resultobj,o); | |
9141 | } | |
9142 | return resultobj; | |
9143 | fail: | |
9144 | return NULL; | |
9145 | } | |
9146 | ||
9147 | ||
9148 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9149 | PyObject *resultobj; | |
9150 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9151 | long arg2 ; | |
9152 | PyObject * obj0 = 0 ; | |
994141e6 | 9153 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9154 | char *kwnames[] = { |
9155 | (char *) "self",(char *) "pos", NULL | |
9156 | }; | |
9157 | ||
994141e6 | 9158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9161 | arg2 = (long) SWIG_AsLong(obj1); | |
9162 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9163 | { |
9164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9165 | (arg1)->ShowPosition(arg2); | |
9166 | ||
9167 | wxPyEndAllowThreads(__tstate); | |
9168 | if (PyErr_Occurred()) SWIG_fail; | |
9169 | } | |
9170 | Py_INCREF(Py_None); resultobj = Py_None; | |
9171 | return resultobj; | |
9172 | fail: | |
9173 | return NULL; | |
9174 | } | |
9175 | ||
9176 | ||
4d5c3d91 RD |
9177 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
9178 | PyObject *resultobj; | |
9179 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9180 | wxPoint *arg2 = 0 ; | |
9181 | long *arg3 = (long *) 0 ; | |
9182 | long *arg4 = (long *) 0 ; | |
9183 | int result; | |
9184 | wxPoint temp2 ; | |
9185 | long temp3 ; | |
9186 | long temp4 ; | |
9187 | PyObject * obj0 = 0 ; | |
9188 | PyObject * obj1 = 0 ; | |
9189 | char *kwnames[] = { | |
9190 | (char *) "self",(char *) "pt", NULL | |
9191 | }; | |
9192 | ||
9193 | arg3 = &temp3; | |
9194 | arg4 = &temp4; | |
9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
9198 | { |
9199 | arg2 = &temp2; | |
9200 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9201 | } | |
9202 | { | |
9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9204 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9205 | ||
9206 | wxPyEndAllowThreads(__tstate); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
15afbcd0 | 9209 | resultobj = SWIG_FromInt((int)result); |
4d5c3d91 RD |
9210 | { |
9211 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9212 | resultobj = t_output_helper(resultobj,o); | |
9213 | } | |
9214 | { | |
9215 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9216 | resultobj = t_output_helper(resultobj,o); | |
9217 | } | |
9218 | return resultobj; | |
9219 | fail: | |
9220 | return NULL; | |
9221 | } | |
9222 | ||
9223 | ||
d14a1e28 RD |
9224 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
9225 | PyObject *resultobj; | |
9226 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9227 | PyObject * obj0 = 0 ; | |
9228 | char *kwnames[] = { | |
9229 | (char *) "self", NULL | |
9230 | }; | |
9231 | ||
9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9235 | { |
9236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9237 | (arg1)->Copy(); | |
9238 | ||
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | Py_INCREF(Py_None); resultobj = Py_None; | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | return NULL; | |
9246 | } | |
9247 | ||
9248 | ||
9249 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9250 | PyObject *resultobj; | |
9251 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9252 | PyObject * obj0 = 0 ; | |
9253 | char *kwnames[] = { | |
9254 | (char *) "self", NULL | |
9255 | }; | |
9256 | ||
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9260 | { |
9261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9262 | (arg1)->Cut(); | |
9263 | ||
9264 | wxPyEndAllowThreads(__tstate); | |
9265 | if (PyErr_Occurred()) SWIG_fail; | |
9266 | } | |
9267 | Py_INCREF(Py_None); resultobj = Py_None; | |
9268 | return resultobj; | |
9269 | fail: | |
9270 | return NULL; | |
9271 | } | |
9272 | ||
9273 | ||
9274 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9275 | PyObject *resultobj; | |
9276 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9277 | PyObject * obj0 = 0 ; | |
9278 | char *kwnames[] = { | |
9279 | (char *) "self", NULL | |
9280 | }; | |
9281 | ||
9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9285 | { |
9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9287 | (arg1)->Paste(); | |
9288 | ||
9289 | wxPyEndAllowThreads(__tstate); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | } | |
9292 | Py_INCREF(Py_None); resultobj = Py_None; | |
9293 | return resultobj; | |
9294 | fail: | |
9295 | return NULL; | |
9296 | } | |
9297 | ||
9298 | ||
9299 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9300 | PyObject *resultobj; | |
9301 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9302 | bool result; | |
9303 | PyObject * obj0 = 0 ; | |
9304 | char *kwnames[] = { | |
9305 | (char *) "self", NULL | |
9306 | }; | |
9307 | ||
9308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9311 | { |
9312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9313 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9314 | ||
9315 | wxPyEndAllowThreads(__tstate); | |
9316 | if (PyErr_Occurred()) SWIG_fail; | |
9317 | } | |
4f89f6a3 RD |
9318 | { |
9319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9320 | } | |
d14a1e28 RD |
9321 | return resultobj; |
9322 | fail: | |
9323 | return NULL; | |
9324 | } | |
9325 | ||
9326 | ||
9327 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9328 | PyObject *resultobj; | |
9329 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9330 | bool result; | |
9331 | PyObject * obj0 = 0 ; | |
9332 | char *kwnames[] = { | |
9333 | (char *) "self", NULL | |
9334 | }; | |
9335 | ||
9336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9339 | { |
9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9341 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9342 | ||
9343 | wxPyEndAllowThreads(__tstate); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | } | |
4f89f6a3 RD |
9346 | { |
9347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9348 | } | |
d14a1e28 RD |
9349 | return resultobj; |
9350 | fail: | |
9351 | return NULL; | |
9352 | } | |
9353 | ||
9354 | ||
9355 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9356 | PyObject *resultobj; | |
9357 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9358 | bool result; | |
9359 | PyObject * obj0 = 0 ; | |
9360 | char *kwnames[] = { | |
9361 | (char *) "self", NULL | |
9362 | }; | |
9363 | ||
9364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9367 | { |
9368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9369 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9370 | ||
9371 | wxPyEndAllowThreads(__tstate); | |
9372 | if (PyErr_Occurred()) SWIG_fail; | |
9373 | } | |
4f89f6a3 RD |
9374 | { |
9375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9376 | } | |
d14a1e28 RD |
9377 | return resultobj; |
9378 | fail: | |
9379 | return NULL; | |
9380 | } | |
9381 | ||
9382 | ||
9383 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9384 | PyObject *resultobj; | |
9385 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9386 | PyObject * obj0 = 0 ; | |
9387 | char *kwnames[] = { | |
9388 | (char *) "self", NULL | |
9389 | }; | |
9390 | ||
9391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9394 | { |
9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9396 | (arg1)->Undo(); | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | Py_INCREF(Py_None); resultobj = Py_None; | |
9402 | return resultobj; | |
9403 | fail: | |
9404 | return NULL; | |
9405 | } | |
9406 | ||
9407 | ||
9408 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9409 | PyObject *resultobj; | |
9410 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9411 | PyObject * obj0 = 0 ; | |
9412 | char *kwnames[] = { | |
9413 | (char *) "self", NULL | |
9414 | }; | |
9415 | ||
9416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9419 | { |
9420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9421 | (arg1)->Redo(); | |
9422 | ||
9423 | wxPyEndAllowThreads(__tstate); | |
9424 | if (PyErr_Occurred()) SWIG_fail; | |
9425 | } | |
9426 | Py_INCREF(Py_None); resultobj = Py_None; | |
9427 | return resultobj; | |
9428 | fail: | |
9429 | return NULL; | |
9430 | } | |
9431 | ||
9432 | ||
9433 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9434 | PyObject *resultobj; | |
9435 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9436 | bool result; | |
9437 | PyObject * obj0 = 0 ; | |
9438 | char *kwnames[] = { | |
9439 | (char *) "self", NULL | |
9440 | }; | |
9441 | ||
9442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9445 | { |
9446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9447 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9448 | ||
9449 | wxPyEndAllowThreads(__tstate); | |
9450 | if (PyErr_Occurred()) SWIG_fail; | |
9451 | } | |
4f89f6a3 RD |
9452 | { |
9453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9454 | } | |
d14a1e28 RD |
9455 | return resultobj; |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
9461 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9462 | PyObject *resultobj; | |
9463 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9464 | bool result; | |
9465 | PyObject * obj0 = 0 ; | |
9466 | char *kwnames[] = { | |
9467 | (char *) "self", NULL | |
9468 | }; | |
9469 | ||
9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9473 | { |
9474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9475 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9476 | ||
9477 | wxPyEndAllowThreads(__tstate); | |
9478 | if (PyErr_Occurred()) SWIG_fail; | |
9479 | } | |
4f89f6a3 RD |
9480 | { |
9481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9482 | } | |
d14a1e28 RD |
9483 | return resultobj; |
9484 | fail: | |
9485 | return NULL; | |
9486 | } | |
9487 | ||
9488 | ||
9489 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9490 | PyObject *resultobj; | |
9491 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9492 | long arg2 ; | |
9493 | PyObject * obj0 = 0 ; | |
994141e6 | 9494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9495 | char *kwnames[] = { |
9496 | (char *) "self",(char *) "pos", NULL | |
9497 | }; | |
9498 | ||
994141e6 | 9499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9502 | arg2 = (long) SWIG_AsLong(obj1); | |
9503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9504 | { |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | (arg1)->SetInsertionPoint(arg2); | |
9507 | ||
9508 | wxPyEndAllowThreads(__tstate); | |
9509 | if (PyErr_Occurred()) SWIG_fail; | |
9510 | } | |
9511 | Py_INCREF(Py_None); resultobj = Py_None; | |
9512 | return resultobj; | |
9513 | fail: | |
9514 | return NULL; | |
9515 | } | |
9516 | ||
9517 | ||
9518 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9519 | PyObject *resultobj; | |
9520 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9521 | PyObject * obj0 = 0 ; | |
9522 | char *kwnames[] = { | |
9523 | (char *) "self", NULL | |
9524 | }; | |
9525 | ||
9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9529 | { |
9530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9531 | (arg1)->SetInsertionPointEnd(); | |
9532 | ||
9533 | wxPyEndAllowThreads(__tstate); | |
9534 | if (PyErr_Occurred()) SWIG_fail; | |
9535 | } | |
9536 | Py_INCREF(Py_None); resultobj = Py_None; | |
9537 | return resultobj; | |
9538 | fail: | |
9539 | return NULL; | |
9540 | } | |
9541 | ||
9542 | ||
9543 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9544 | PyObject *resultobj; | |
9545 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9546 | long result; | |
9547 | PyObject * obj0 = 0 ; | |
9548 | char *kwnames[] = { | |
9549 | (char *) "self", NULL | |
9550 | }; | |
9551 | ||
9552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9555 | { |
9556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9557 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9558 | ||
9559 | wxPyEndAllowThreads(__tstate); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
9561 | } | |
15afbcd0 | 9562 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9563 | return resultobj; |
9564 | fail: | |
9565 | return NULL; | |
9566 | } | |
9567 | ||
9568 | ||
9569 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject *resultobj; | |
9571 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9572 | long result; | |
9573 | PyObject * obj0 = 0 ; | |
9574 | char *kwnames[] = { | |
9575 | (char *) "self", NULL | |
9576 | }; | |
9577 | ||
9578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9581 | { |
9582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9583 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9584 | ||
9585 | wxPyEndAllowThreads(__tstate); | |
9586 | if (PyErr_Occurred()) SWIG_fail; | |
9587 | } | |
15afbcd0 | 9588 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9589 | return resultobj; |
9590 | fail: | |
9591 | return NULL; | |
9592 | } | |
9593 | ||
9594 | ||
9595 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9596 | PyObject *resultobj; | |
9597 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9598 | long arg2 ; | |
9599 | long arg3 ; | |
9600 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9601 | PyObject * obj1 = 0 ; |
9602 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9603 | char *kwnames[] = { |
9604 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9605 | }; | |
9606 | ||
994141e6 | 9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9610 | arg2 = (long) SWIG_AsLong(obj1); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
9612 | arg3 = (long) SWIG_AsLong(obj2); | |
9613 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9614 | { |
9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9616 | (arg1)->SetSelection(arg2,arg3); | |
9617 | ||
9618 | wxPyEndAllowThreads(__tstate); | |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
9620 | } | |
9621 | Py_INCREF(Py_None); resultobj = Py_None; | |
9622 | return resultobj; | |
9623 | fail: | |
9624 | return NULL; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9629 | PyObject *resultobj; | |
9630 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9631 | PyObject * obj0 = 0 ; | |
9632 | char *kwnames[] = { | |
9633 | (char *) "self", NULL | |
9634 | }; | |
9635 | ||
9636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9639 | { |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | (arg1)->SelectAll(); | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | Py_INCREF(Py_None); resultobj = Py_None; | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9656 | bool arg2 ; | |
9657 | PyObject * obj0 = 0 ; | |
9658 | PyObject * obj1 = 0 ; | |
9659 | char *kwnames[] = { | |
9660 | (char *) "self",(char *) "editable", NULL | |
9661 | }; | |
9662 | ||
9663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9666 | arg2 = (bool) SWIG_AsBool(obj1); | |
9667 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9668 | { |
9669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9670 | (arg1)->SetEditable(arg2); | |
9671 | ||
9672 | wxPyEndAllowThreads(__tstate); | |
9673 | if (PyErr_Occurred()) SWIG_fail; | |
9674 | } | |
9675 | Py_INCREF(Py_None); resultobj = Py_None; | |
9676 | return resultobj; | |
9677 | fail: | |
9678 | return NULL; | |
9679 | } | |
9680 | ||
9681 | ||
9682 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9683 | PyObject *resultobj; | |
9684 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9685 | wxString *arg2 = 0 ; | |
e811c8ce | 9686 | bool temp2 = False ; |
d14a1e28 RD |
9687 | PyObject * obj0 = 0 ; |
9688 | PyObject * obj1 = 0 ; | |
9689 | char *kwnames[] = { | |
9690 | (char *) "self",(char *) "text", NULL | |
9691 | }; | |
9692 | ||
9693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9696 | { |
9697 | arg2 = wxString_in_helper(obj1); | |
9698 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9699 | temp2 = True; |
d14a1e28 RD |
9700 | } |
9701 | { | |
9702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9703 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9704 | ||
9705 | wxPyEndAllowThreads(__tstate); | |
9706 | if (PyErr_Occurred()) SWIG_fail; | |
9707 | } | |
9708 | Py_INCREF(Py_None); resultobj = Py_None; | |
9709 | { | |
9710 | if (temp2) | |
9711 | delete arg2; | |
9712 | } | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | { | |
9716 | if (temp2) | |
9717 | delete arg2; | |
9718 | } | |
9719 | return NULL; | |
9720 | } | |
9721 | ||
9722 | ||
9723 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9724 | PyObject *resultobj; | |
9725 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9726 | long arg2 ; | |
9727 | long arg3 ; | |
9728 | wxString result; | |
9729 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9730 | PyObject * obj1 = 0 ; |
9731 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9732 | char *kwnames[] = { |
9733 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9734 | }; | |
9735 | ||
994141e6 | 9736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9739 | arg2 = (long) SWIG_AsLong(obj1); | |
9740 | if (PyErr_Occurred()) SWIG_fail; | |
9741 | arg3 = (long) SWIG_AsLong(obj2); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9743 | { |
9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9745 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9746 | ||
9747 | wxPyEndAllowThreads(__tstate); | |
9748 | if (PyErr_Occurred()) SWIG_fail; | |
9749 | } | |
9750 | { | |
9751 | #if wxUSE_UNICODE | |
9752 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9753 | #else | |
9754 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9755 | #endif | |
9756 | } | |
9757 | return resultobj; | |
9758 | fail: | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
22bfe96c RD |
9763 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
9764 | PyObject *resultobj; | |
9765 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9766 | wxVisualAttributes result; | |
9767 | PyObject * obj0 = 0 ; | |
9768 | char *kwnames[] = { | |
9769 | (char *) "variant", NULL | |
9770 | }; | |
9771 | ||
9772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9773 | if (obj0) { | |
9774 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | { | |
9778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9779 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9780 | ||
9781 | wxPyEndAllowThreads(__tstate); | |
9782 | if (PyErr_Occurred()) SWIG_fail; | |
9783 | } | |
9784 | { | |
9785 | wxVisualAttributes * resultptr; | |
9786 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9787 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9788 | } | |
9789 | return resultobj; | |
9790 | fail: | |
9791 | return NULL; | |
9792 | } | |
9793 | ||
9794 | ||
d14a1e28 RD |
9795 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { |
9796 | PyObject *obj; | |
9797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9798 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9799 | Py_INCREF(obj); | |
9800 | return Py_BuildValue((char *)""); | |
9801 | } | |
9802 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9803 | PyObject *resultobj; | |
9804 | int arg1 ; | |
9805 | wxMouseEvent *arg2 = 0 ; | |
9806 | long arg3 ; | |
9807 | long arg4 ; | |
9808 | wxTextUrlEvent *result; | |
994141e6 | 9809 | PyObject * obj0 = 0 ; |
d14a1e28 | 9810 | PyObject * obj1 = 0 ; |
994141e6 RD |
9811 | PyObject * obj2 = 0 ; |
9812 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9813 | char *kwnames[] = { |
9814 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9815 | }; | |
9816 | ||
994141e6 | 9817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9818 | arg1 = (int) SWIG_AsInt(obj0); |
9819 | if (PyErr_Occurred()) SWIG_fail; | |
9820 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9821 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9822 | SWIG_fail; | |
d14a1e28 | 9823 | if (arg2 == NULL) { |
15afbcd0 RD |
9824 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9825 | SWIG_fail; | |
994141e6 | 9826 | } |
15afbcd0 RD |
9827 | arg3 = (long) SWIG_AsLong(obj2); |
9828 | if (PyErr_Occurred()) SWIG_fail; | |
9829 | arg4 = (long) SWIG_AsLong(obj3); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9831 | { |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9834 | ||
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
15afbcd0 | 9838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
9839 | return resultobj; |
9840 | fail: | |
9841 | return NULL; | |
9842 | } | |
9843 | ||
9844 | ||
9845 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9846 | PyObject *resultobj; | |
9847 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9848 | wxMouseEvent *result; | |
9849 | PyObject * obj0 = 0 ; | |
9850 | char *kwnames[] = { | |
9851 | (char *) "self", NULL | |
9852 | }; | |
9853 | ||
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9857 | { |
9858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9859 | { | |
9860 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9861 | result = (wxMouseEvent *) &_result_ref; | |
9862 | } | |
9863 | ||
9864 | wxPyEndAllowThreads(__tstate); | |
9865 | if (PyErr_Occurred()) SWIG_fail; | |
9866 | } | |
15afbcd0 | 9867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
9868 | return resultobj; |
9869 | fail: | |
9870 | return NULL; | |
9871 | } | |
9872 | ||
9873 | ||
9874 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9875 | PyObject *resultobj; | |
9876 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9877 | long result; | |
9878 | PyObject * obj0 = 0 ; | |
9879 | char *kwnames[] = { | |
9880 | (char *) "self", NULL | |
9881 | }; | |
9882 | ||
9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9886 | { |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
9891 | if (PyErr_Occurred()) SWIG_fail; | |
9892 | } | |
15afbcd0 | 9893 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9894 | return resultobj; |
9895 | fail: | |
9896 | return NULL; | |
9897 | } | |
9898 | ||
9899 | ||
9900 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject *resultobj; | |
9902 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9903 | long result; | |
9904 | PyObject * obj0 = 0 ; | |
9905 | char *kwnames[] = { | |
9906 | (char *) "self", NULL | |
9907 | }; | |
9908 | ||
9909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9912 | { |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
15afbcd0 | 9919 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9920 | return resultobj; |
9921 | fail: | |
9922 | return NULL; | |
9923 | } | |
9924 | ||
9925 | ||
9926 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9927 | PyObject *obj; | |
9928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9929 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9930 | Py_INCREF(obj); | |
9931 | return Py_BuildValue((char *)""); | |
9932 | } | |
b2dc1044 RD |
9933 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
9934 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
9935 | return 1; | |
9936 | } | |
9937 | ||
9938 | ||
9939 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9940 | PyObject *pyobj; | |
9941 | ||
9942 | { | |
9943 | #if wxUSE_UNICODE | |
9944 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9945 | #else | |
9946 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9947 | #endif | |
9948 | } | |
9949 | return pyobj; | |
9950 | } | |
9951 | ||
9952 | ||
d14a1e28 RD |
9953 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9954 | PyObject *resultobj; | |
9955 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9956 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9957 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9958 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9959 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9960 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9961 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9962 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9963 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9964 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9965 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9966 | wxScrollBar *result; | |
9967 | wxPoint temp3 ; | |
9968 | wxSize temp4 ; | |
e811c8ce | 9969 | bool temp7 = False ; |
d14a1e28 | 9970 | PyObject * obj0 = 0 ; |
994141e6 | 9971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9972 | PyObject * obj2 = 0 ; |
9973 | PyObject * obj3 = 0 ; | |
994141e6 | 9974 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9975 | PyObject * obj5 = 0 ; |
9976 | PyObject * obj6 = 0 ; | |
9977 | char *kwnames[] = { | |
9978 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9979 | }; | |
9980 | ||
994141e6 | 9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
9982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
9983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 9984 | if (obj1) { |
15afbcd0 RD |
9985 | arg2 = (int) SWIG_AsInt(obj1); |
9986 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9987 | } |
d14a1e28 RD |
9988 | if (obj2) { |
9989 | { | |
9990 | arg3 = &temp3; | |
9991 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9992 | } | |
9993 | } | |
9994 | if (obj3) { | |
9995 | { | |
9996 | arg4 = &temp4; | |
9997 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9998 | } | |
9999 | } | |
994141e6 | 10000 | if (obj4) { |
15afbcd0 RD |
10001 | arg5 = (long) SWIG_AsLong(obj4); |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10003 | } |
d14a1e28 | 10004 | if (obj5) { |
15afbcd0 RD |
10005 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
10006 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10007 | SWIG_fail; | |
d14a1e28 | 10008 | if (arg6 == NULL) { |
15afbcd0 RD |
10009 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10010 | SWIG_fail; | |
d14a1e28 RD |
10011 | } |
10012 | } | |
10013 | if (obj6) { | |
10014 | { | |
10015 | arg7 = wxString_in_helper(obj6); | |
10016 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10017 | temp7 = True; |
d14a1e28 RD |
10018 | } |
10019 | } | |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10022 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10023 | ||
10024 | wxPyEndAllowThreads(__tstate); | |
10025 | if (PyErr_Occurred()) SWIG_fail; | |
10026 | } | |
15afbcd0 | 10027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10028 | { |
10029 | if (temp7) | |
10030 | delete arg7; | |
10031 | } | |
10032 | return resultobj; | |
10033 | fail: | |
10034 | { | |
10035 | if (temp7) | |
10036 | delete arg7; | |
10037 | } | |
10038 | return NULL; | |
10039 | } | |
10040 | ||
10041 | ||
10042 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10043 | PyObject *resultobj; | |
10044 | wxScrollBar *result; | |
10045 | char *kwnames[] = { | |
10046 | NULL | |
10047 | }; | |
10048 | ||
10049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10050 | { | |
10051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10052 | result = (wxScrollBar *)new wxScrollBar(); | |
10053 | ||
10054 | wxPyEndAllowThreads(__tstate); | |
10055 | if (PyErr_Occurred()) SWIG_fail; | |
10056 | } | |
15afbcd0 | 10057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10058 | return resultobj; |
10059 | fail: | |
10060 | return NULL; | |
10061 | } | |
10062 | ||
10063 | ||
10064 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10065 | PyObject *resultobj; | |
10066 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10068 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10069 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10070 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10071 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10072 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10073 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10074 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10075 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10076 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10077 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10078 | bool result; | |
10079 | wxPoint temp4 ; | |
10080 | wxSize temp5 ; | |
e811c8ce | 10081 | bool temp8 = False ; |
d14a1e28 RD |
10082 | PyObject * obj0 = 0 ; |
10083 | PyObject * obj1 = 0 ; | |
994141e6 | 10084 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10085 | PyObject * obj3 = 0 ; |
10086 | PyObject * obj4 = 0 ; | |
994141e6 | 10087 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10088 | PyObject * obj6 = 0 ; |
10089 | PyObject * obj7 = 0 ; | |
10090 | char *kwnames[] = { | |
10091 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10092 | }; | |
10093 | ||
994141e6 | 10094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
10095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10099 | if (obj2) { |
15afbcd0 RD |
10100 | arg3 = (int) SWIG_AsInt(obj2); |
10101 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10102 | } |
d14a1e28 RD |
10103 | if (obj3) { |
10104 | { | |
10105 | arg4 = &temp4; | |
10106 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10107 | } | |
10108 | } | |
10109 | if (obj4) { | |
10110 | { | |
10111 | arg5 = &temp5; | |
10112 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10113 | } | |
10114 | } | |
994141e6 | 10115 | if (obj5) { |
15afbcd0 RD |
10116 | arg6 = (long) SWIG_AsLong(obj5); |
10117 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10118 | } |
d14a1e28 | 10119 | if (obj6) { |
15afbcd0 RD |
10120 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
10121 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10122 | SWIG_fail; | |
d14a1e28 | 10123 | if (arg7 == NULL) { |
15afbcd0 RD |
10124 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10125 | SWIG_fail; | |
d14a1e28 RD |
10126 | } |
10127 | } | |
10128 | if (obj7) { | |
10129 | { | |
10130 | arg8 = wxString_in_helper(obj7); | |
10131 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10132 | temp8 = True; |
d14a1e28 RD |
10133 | } |
10134 | } | |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
4f89f6a3 RD |
10142 | { |
10143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10144 | } | |
d14a1e28 RD |
10145 | { |
10146 | if (temp8) | |
10147 | delete arg8; | |
10148 | } | |
10149 | return resultobj; | |
10150 | fail: | |
10151 | { | |
10152 | if (temp8) | |
10153 | delete arg8; | |
10154 | } | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
10159 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10160 | PyObject *resultobj; | |
10161 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10162 | int result; | |
10163 | PyObject * obj0 = 0 ; | |
10164 | char *kwnames[] = { | |
10165 | (char *) "self", NULL | |
10166 | }; | |
10167 | ||
10168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10171 | { |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
15afbcd0 | 10178 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10179 | return resultobj; |
10180 | fail: | |
10181 | return NULL; | |
10182 | } | |
10183 | ||
10184 | ||
10185 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject *resultobj; | |
10187 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10188 | int result; | |
10189 | PyObject * obj0 = 0 ; | |
10190 | char *kwnames[] = { | |
10191 | (char *) "self", NULL | |
10192 | }; | |
10193 | ||
10194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10197 | { |
10198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10199 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10200 | ||
10201 | wxPyEndAllowThreads(__tstate); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | } | |
15afbcd0 | 10204 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10205 | return resultobj; |
10206 | fail: | |
10207 | return NULL; | |
10208 | } | |
10209 | ||
10210 | ||
10211 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10212 | PyObject *resultobj; | |
10213 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10214 | int result; | |
10215 | PyObject * obj0 = 0 ; | |
10216 | char *kwnames[] = { | |
10217 | (char *) "self", NULL | |
10218 | }; | |
10219 | ||
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10223 | { |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
10229 | } | |
15afbcd0 | 10230 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10231 | return resultobj; |
10232 | fail: | |
10233 | return NULL; | |
10234 | } | |
10235 | ||
10236 | ||
10237 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10238 | PyObject *resultobj; | |
10239 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10240 | int result; | |
10241 | PyObject * obj0 = 0 ; | |
10242 | char *kwnames[] = { | |
10243 | (char *) "self", NULL | |
10244 | }; | |
10245 | ||
10246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10249 | { |
10250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10251 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10252 | ||
10253 | wxPyEndAllowThreads(__tstate); | |
10254 | if (PyErr_Occurred()) SWIG_fail; | |
10255 | } | |
15afbcd0 | 10256 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10257 | return resultobj; |
10258 | fail: | |
10259 | return NULL; | |
10260 | } | |
10261 | ||
10262 | ||
10263 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10264 | PyObject *resultobj; | |
10265 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10266 | bool result; | |
10267 | PyObject * obj0 = 0 ; | |
10268 | char *kwnames[] = { | |
10269 | (char *) "self", NULL | |
10270 | }; | |
10271 | ||
10272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10275 | { |
10276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10277 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10278 | ||
10279 | wxPyEndAllowThreads(__tstate); | |
10280 | if (PyErr_Occurred()) SWIG_fail; | |
10281 | } | |
4f89f6a3 RD |
10282 | { |
10283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10284 | } | |
d14a1e28 RD |
10285 | return resultobj; |
10286 | fail: | |
10287 | return NULL; | |
10288 | } | |
10289 | ||
10290 | ||
10291 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10292 | PyObject *resultobj; | |
10293 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10294 | int arg2 ; | |
10295 | PyObject * obj0 = 0 ; | |
994141e6 | 10296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10297 | char *kwnames[] = { |
10298 | (char *) "self",(char *) "viewStart", NULL | |
10299 | }; | |
10300 | ||
994141e6 | 10301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10304 | arg2 = (int) SWIG_AsInt(obj1); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10306 | { |
10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10308 | (arg1)->SetThumbPosition(arg2); | |
10309 | ||
10310 | wxPyEndAllowThreads(__tstate); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
10313 | Py_INCREF(Py_None); resultobj = Py_None; | |
10314 | return resultobj; | |
10315 | fail: | |
10316 | return NULL; | |
10317 | } | |
10318 | ||
10319 | ||
10320 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10321 | PyObject *resultobj; | |
10322 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10323 | int arg2 ; | |
10324 | int arg3 ; | |
10325 | int arg4 ; | |
10326 | int arg5 ; | |
e811c8ce | 10327 | bool arg6 = (bool) True ; |
d14a1e28 | 10328 | PyObject * obj0 = 0 ; |
994141e6 RD |
10329 | PyObject * obj1 = 0 ; |
10330 | PyObject * obj2 = 0 ; | |
10331 | PyObject * obj3 = 0 ; | |
10332 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10333 | PyObject * obj5 = 0 ; |
10334 | char *kwnames[] = { | |
10335 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10336 | }; | |
10337 | ||
994141e6 | 10338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10341 | arg2 = (int) SWIG_AsInt(obj1); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | arg3 = (int) SWIG_AsInt(obj2); | |
10344 | if (PyErr_Occurred()) SWIG_fail; | |
10345 | arg4 = (int) SWIG_AsInt(obj3); | |
10346 | if (PyErr_Occurred()) SWIG_fail; | |
10347 | arg5 = (int) SWIG_AsInt(obj4); | |
10348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 10349 | if (obj5) { |
15afbcd0 RD |
10350 | arg6 = (bool) SWIG_AsBool(obj5); |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10352 | } |
10353 | { | |
10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10355 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10356 | ||
10357 | wxPyEndAllowThreads(__tstate); | |
10358 | if (PyErr_Occurred()) SWIG_fail; | |
10359 | } | |
10360 | Py_INCREF(Py_None); resultobj = Py_None; | |
10361 | return resultobj; | |
10362 | fail: | |
10363 | return NULL; | |
10364 | } | |
10365 | ||
10366 | ||
22bfe96c RD |
10367 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
10368 | PyObject *resultobj; | |
10369 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10370 | wxVisualAttributes result; | |
10371 | PyObject * obj0 = 0 ; | |
10372 | char *kwnames[] = { | |
10373 | (char *) "variant", NULL | |
10374 | }; | |
10375 | ||
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10377 | if (obj0) { | |
10378 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10379 | if (PyErr_Occurred()) SWIG_fail; | |
10380 | } | |
10381 | { | |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10384 | ||
10385 | wxPyEndAllowThreads(__tstate); | |
10386 | if (PyErr_Occurred()) SWIG_fail; | |
10387 | } | |
10388 | { | |
10389 | wxVisualAttributes * resultptr; | |
10390 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10391 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10392 | } | |
10393 | return resultobj; | |
10394 | fail: | |
10395 | return NULL; | |
10396 | } | |
10397 | ||
10398 | ||
d14a1e28 RD |
10399 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { |
10400 | PyObject *obj; | |
10401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10402 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10403 | Py_INCREF(obj); | |
10404 | return Py_BuildValue((char *)""); | |
10405 | } | |
b2dc1044 RD |
10406 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
10407 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10408 | return 1; | |
10409 | } | |
10410 | ||
10411 | ||
10412 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10413 | PyObject *pyobj; | |
10414 | ||
10415 | { | |
10416 | #if wxUSE_UNICODE | |
10417 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10418 | #else | |
10419 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10420 | #endif | |
10421 | } | |
10422 | return pyobj; | |
10423 | } | |
10424 | ||
10425 | ||
10426 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10427 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10428 | return 1; | |
10429 | } | |
10430 | ||
10431 | ||
10432 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10433 | PyObject *pyobj; | |
10434 | ||
10435 | { | |
10436 | #if wxUSE_UNICODE | |
10437 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10438 | #else | |
10439 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10440 | #endif | |
10441 | } | |
10442 | return pyobj; | |
10443 | } | |
10444 | ||
10445 | ||
d14a1e28 RD |
10446 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
10447 | PyObject *resultobj; | |
10448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10449 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10450 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10451 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10452 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10453 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10454 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10455 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10456 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10457 | wxSpinButton *result; | |
10458 | wxPoint temp3 ; | |
10459 | wxSize temp4 ; | |
e811c8ce | 10460 | bool temp6 = False ; |
d14a1e28 | 10461 | PyObject * obj0 = 0 ; |
994141e6 | 10462 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10463 | PyObject * obj2 = 0 ; |
10464 | PyObject * obj3 = 0 ; | |
994141e6 | 10465 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10466 | PyObject * obj5 = 0 ; |
10467 | char *kwnames[] = { | |
10468 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10469 | }; | |
10470 | ||
994141e6 | 10471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10474 | if (obj1) { |
15afbcd0 RD |
10475 | arg2 = (int) SWIG_AsInt(obj1); |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10477 | } |
d14a1e28 RD |
10478 | if (obj2) { |
10479 | { | |
10480 | arg3 = &temp3; | |
10481 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10482 | } | |
10483 | } | |
10484 | if (obj3) { | |
10485 | { | |
10486 | arg4 = &temp4; | |
10487 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10488 | } | |
10489 | } | |
994141e6 | 10490 | if (obj4) { |
15afbcd0 RD |
10491 | arg5 = (long) SWIG_AsLong(obj4); |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10493 | } |
d14a1e28 RD |
10494 | if (obj5) { |
10495 | { | |
10496 | arg6 = wxString_in_helper(obj5); | |
10497 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 10498 | temp6 = True; |
d14a1e28 RD |
10499 | } |
10500 | } | |
10501 | { | |
10502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10503 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10504 | ||
10505 | wxPyEndAllowThreads(__tstate); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
15afbcd0 | 10508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10509 | { |
10510 | if (temp6) | |
10511 | delete arg6; | |
10512 | } | |
10513 | return resultobj; | |
10514 | fail: | |
10515 | { | |
10516 | if (temp6) | |
10517 | delete arg6; | |
10518 | } | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
10523 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10524 | PyObject *resultobj; | |
10525 | wxSpinButton *result; | |
10526 | char *kwnames[] = { | |
10527 | NULL | |
10528 | }; | |
10529 | ||
10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10531 | { | |
10532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10533 | result = (wxSpinButton *)new wxSpinButton(); | |
10534 | ||
10535 | wxPyEndAllowThreads(__tstate); | |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
10537 | } | |
15afbcd0 | 10538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10539 | return resultobj; |
10540 | fail: | |
10541 | return NULL; | |
10542 | } | |
10543 | ||
10544 | ||
10545 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10546 | PyObject *resultobj; | |
10547 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10548 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10549 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10550 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10551 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10552 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10553 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10554 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10555 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10556 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10557 | bool result; | |
10558 | wxPoint temp4 ; | |
10559 | wxSize temp5 ; | |
e811c8ce | 10560 | bool temp7 = False ; |
d14a1e28 RD |
10561 | PyObject * obj0 = 0 ; |
10562 | PyObject * obj1 = 0 ; | |
994141e6 | 10563 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10564 | PyObject * obj3 = 0 ; |
10565 | PyObject * obj4 = 0 ; | |
994141e6 | 10566 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10567 | PyObject * obj6 = 0 ; |
10568 | char *kwnames[] = { | |
10569 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10570 | }; | |
10571 | ||
994141e6 | 10572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10575 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10577 | if (obj2) { |
15afbcd0 RD |
10578 | arg3 = (int) SWIG_AsInt(obj2); |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10580 | } |
d14a1e28 RD |
10581 | if (obj3) { |
10582 | { | |
10583 | arg4 = &temp4; | |
10584 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10585 | } | |
10586 | } | |
10587 | if (obj4) { | |
10588 | { | |
10589 | arg5 = &temp5; | |
10590 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10591 | } | |
10592 | } | |
994141e6 | 10593 | if (obj5) { |
15afbcd0 RD |
10594 | arg6 = (long) SWIG_AsLong(obj5); |
10595 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10596 | } |
d14a1e28 RD |
10597 | if (obj6) { |
10598 | { | |
10599 | arg7 = wxString_in_helper(obj6); | |
10600 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10601 | temp7 = True; |
d14a1e28 RD |
10602 | } |
10603 | } | |
10604 | { | |
10605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10606 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10607 | ||
10608 | wxPyEndAllowThreads(__tstate); | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | } | |
4f89f6a3 RD |
10611 | { |
10612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10613 | } | |
d14a1e28 RD |
10614 | { |
10615 | if (temp7) | |
10616 | delete arg7; | |
10617 | } | |
10618 | return resultobj; | |
10619 | fail: | |
10620 | { | |
10621 | if (temp7) | |
10622 | delete arg7; | |
10623 | } | |
10624 | return NULL; | |
10625 | } | |
10626 | ||
10627 | ||
10628 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10629 | PyObject *resultobj; | |
10630 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10631 | int result; | |
10632 | PyObject * obj0 = 0 ; | |
10633 | char *kwnames[] = { | |
10634 | (char *) "self", NULL | |
10635 | }; | |
10636 | ||
10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10640 | { |
10641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10642 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10643 | ||
10644 | wxPyEndAllowThreads(__tstate); | |
10645 | if (PyErr_Occurred()) SWIG_fail; | |
10646 | } | |
15afbcd0 | 10647 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10648 | return resultobj; |
10649 | fail: | |
10650 | return NULL; | |
10651 | } | |
10652 | ||
10653 | ||
10654 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10655 | PyObject *resultobj; | |
10656 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10657 | int result; | |
10658 | PyObject * obj0 = 0 ; | |
10659 | char *kwnames[] = { | |
10660 | (char *) "self", NULL | |
10661 | }; | |
10662 | ||
10663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10666 | { |
10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10668 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10669 | ||
10670 | wxPyEndAllowThreads(__tstate); | |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
15afbcd0 | 10673 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10674 | return resultobj; |
10675 | fail: | |
10676 | return NULL; | |
10677 | } | |
10678 | ||
10679 | ||
10680 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10681 | PyObject *resultobj; | |
10682 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10683 | int result; | |
10684 | PyObject * obj0 = 0 ; | |
10685 | char *kwnames[] = { | |
10686 | (char *) "self", NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10692 | { |
10693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10694 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10695 | ||
10696 | wxPyEndAllowThreads(__tstate); | |
10697 | if (PyErr_Occurred()) SWIG_fail; | |
10698 | } | |
15afbcd0 | 10699 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10700 | return resultobj; |
10701 | fail: | |
10702 | return NULL; | |
10703 | } | |
10704 | ||
10705 | ||
10706 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10707 | PyObject *resultobj; | |
10708 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10709 | int arg2 ; | |
10710 | PyObject * obj0 = 0 ; | |
994141e6 | 10711 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10712 | char *kwnames[] = { |
10713 | (char *) "self",(char *) "val", NULL | |
10714 | }; | |
10715 | ||
994141e6 | 10716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10719 | arg2 = (int) SWIG_AsInt(obj1); | |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10721 | { |
10722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10723 | (arg1)->SetValue(arg2); | |
10724 | ||
10725 | wxPyEndAllowThreads(__tstate); | |
10726 | if (PyErr_Occurred()) SWIG_fail; | |
10727 | } | |
10728 | Py_INCREF(Py_None); resultobj = Py_None; | |
10729 | return resultobj; | |
10730 | fail: | |
10731 | return NULL; | |
10732 | } | |
10733 | ||
10734 | ||
10735 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10736 | PyObject *resultobj; | |
10737 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10738 | int arg2 ; | |
10739 | PyObject * obj0 = 0 ; | |
994141e6 | 10740 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10741 | char *kwnames[] = { |
10742 | (char *) "self",(char *) "minVal", NULL | |
10743 | }; | |
10744 | ||
994141e6 | 10745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10748 | arg2 = (int) SWIG_AsInt(obj1); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10750 | { |
10751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10752 | (arg1)->SetMin(arg2); | |
10753 | ||
10754 | wxPyEndAllowThreads(__tstate); | |
10755 | if (PyErr_Occurred()) SWIG_fail; | |
10756 | } | |
10757 | Py_INCREF(Py_None); resultobj = Py_None; | |
10758 | return resultobj; | |
10759 | fail: | |
10760 | return NULL; | |
10761 | } | |
10762 | ||
10763 | ||
10764 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10765 | PyObject *resultobj; | |
10766 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10767 | int arg2 ; | |
10768 | PyObject * obj0 = 0 ; | |
994141e6 | 10769 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10770 | char *kwnames[] = { |
10771 | (char *) "self",(char *) "maxVal", NULL | |
10772 | }; | |
10773 | ||
994141e6 | 10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10777 | arg2 = (int) SWIG_AsInt(obj1); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10779 | { |
10780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10781 | (arg1)->SetMax(arg2); | |
10782 | ||
10783 | wxPyEndAllowThreads(__tstate); | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | } | |
10786 | Py_INCREF(Py_None); resultobj = Py_None; | |
10787 | return resultobj; | |
10788 | fail: | |
10789 | return NULL; | |
10790 | } | |
10791 | ||
10792 | ||
10793 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10794 | PyObject *resultobj; | |
10795 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10796 | int arg2 ; | |
10797 | int arg3 ; | |
10798 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10799 | PyObject * obj1 = 0 ; |
10800 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10801 | char *kwnames[] = { |
10802 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10803 | }; | |
10804 | ||
994141e6 | 10805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10808 | arg2 = (int) SWIG_AsInt(obj1); | |
10809 | if (PyErr_Occurred()) SWIG_fail; | |
10810 | arg3 = (int) SWIG_AsInt(obj2); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10812 | { |
15afbcd0 RD |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10814 | (arg1)->SetRange(arg2,arg3); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
10817 | if (PyErr_Occurred()) SWIG_fail; |
10818 | } | |
22bfe96c RD |
10819 | Py_INCREF(Py_None); resultobj = Py_None; |
10820 | return resultobj; | |
10821 | fail: | |
10822 | return NULL; | |
10823 | } | |
10824 | ||
10825 | ||
10826 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10827 | PyObject *resultobj; | |
10828 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10829 | bool result; | |
10830 | PyObject * obj0 = 0 ; | |
10831 | char *kwnames[] = { | |
10832 | (char *) "self", NULL | |
10833 | }; | |
10834 | ||
10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10838 | { | |
10839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10840 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10841 | ||
10842 | wxPyEndAllowThreads(__tstate); | |
10843 | if (PyErr_Occurred()) SWIG_fail; | |
10844 | } | |
10845 | { | |
10846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10847 | } | |
d14a1e28 RD |
10848 | return resultobj; |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
22bfe96c | 10854 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10855 | PyObject *resultobj; |
22bfe96c RD |
10856 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
10857 | wxVisualAttributes result; | |
d14a1e28 RD |
10858 | PyObject * obj0 = 0 ; |
10859 | char *kwnames[] = { | |
22bfe96c | 10860 | (char *) "variant", NULL |
d14a1e28 RD |
10861 | }; |
10862 | ||
22bfe96c RD |
10863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
10864 | if (obj0) { | |
10865 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
d14a1e28 RD |
10868 | { |
10869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22bfe96c | 10870 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
10871 | |
10872 | wxPyEndAllowThreads(__tstate); | |
10873 | if (PyErr_Occurred()) SWIG_fail; | |
10874 | } | |
4f89f6a3 | 10875 | { |
22bfe96c RD |
10876 | wxVisualAttributes * resultptr; |
10877 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4f89f6a3 | 10879 | } |
d14a1e28 RD |
10880 | return resultobj; |
10881 | fail: | |
10882 | return NULL; | |
10883 | } | |
10884 | ||
10885 | ||
10886 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10887 | PyObject *obj; | |
10888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10889 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10890 | Py_INCREF(obj); | |
10891 | return Py_BuildValue((char *)""); | |
10892 | } | |
10893 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10894 | PyObject *resultobj; | |
10895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10896 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10897 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10898 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10899 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10900 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10901 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10902 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10903 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10904 | int arg7 = (int) 0 ; | |
10905 | int arg8 = (int) 100 ; | |
10906 | int arg9 = (int) 0 ; | |
10907 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10908 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10909 | wxSpinCtrl *result; | |
e811c8ce | 10910 | bool temp3 = False ; |
d14a1e28 RD |
10911 | wxPoint temp4 ; |
10912 | wxSize temp5 ; | |
e811c8ce | 10913 | bool temp10 = False ; |
d14a1e28 | 10914 | PyObject * obj0 = 0 ; |
994141e6 | 10915 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10916 | PyObject * obj2 = 0 ; |
10917 | PyObject * obj3 = 0 ; | |
10918 | PyObject * obj4 = 0 ; | |
994141e6 RD |
10919 | PyObject * obj5 = 0 ; |
10920 | PyObject * obj6 = 0 ; | |
10921 | PyObject * obj7 = 0 ; | |
10922 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10923 | PyObject * obj9 = 0 ; |
10924 | char *kwnames[] = { | |
10925 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10926 | }; | |
10927 | ||
994141e6 | 10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
10929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10931 | if (obj1) { |
15afbcd0 RD |
10932 | arg2 = (int) SWIG_AsInt(obj1); |
10933 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10934 | } |
10935 | if (obj2) { | |
d14a1e28 RD |
10936 | { |
10937 | arg3 = wxString_in_helper(obj2); | |
10938 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10939 | temp3 = True; |
d14a1e28 RD |
10940 | } |
10941 | } | |
10942 | if (obj3) { | |
10943 | { | |
10944 | arg4 = &temp4; | |
10945 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10946 | } | |
10947 | } | |
10948 | if (obj4) { | |
10949 | { | |
10950 | arg5 = &temp5; | |
10951 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10952 | } | |
10953 | } | |
994141e6 | 10954 | if (obj5) { |
15afbcd0 RD |
10955 | arg6 = (long) SWIG_AsLong(obj5); |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10957 | } |
10958 | if (obj6) { | |
15afbcd0 RD |
10959 | arg7 = (int) SWIG_AsInt(obj6); |
10960 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10961 | } |
10962 | if (obj7) { | |
15afbcd0 RD |
10963 | arg8 = (int) SWIG_AsInt(obj7); |
10964 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10965 | } |
10966 | if (obj8) { | |
15afbcd0 RD |
10967 | arg9 = (int) SWIG_AsInt(obj8); |
10968 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10969 | } |
d14a1e28 RD |
10970 | if (obj9) { |
10971 | { | |
10972 | arg10 = wxString_in_helper(obj9); | |
10973 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 10974 | temp10 = True; |
d14a1e28 RD |
10975 | } |
10976 | } | |
10977 | { | |
10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10979 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10980 | ||
10981 | wxPyEndAllowThreads(__tstate); | |
10982 | if (PyErr_Occurred()) SWIG_fail; | |
10983 | } | |
15afbcd0 | 10984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
10985 | { |
10986 | if (temp3) | |
10987 | delete arg3; | |
10988 | } | |
10989 | { | |
10990 | if (temp10) | |
10991 | delete arg10; | |
10992 | } | |
10993 | return resultobj; | |
10994 | fail: | |
10995 | { | |
10996 | if (temp3) | |
10997 | delete arg3; | |
10998 | } | |
10999 | { | |
11000 | if (temp10) | |
11001 | delete arg10; | |
11002 | } | |
11003 | return NULL; | |
11004 | } | |
11005 | ||
11006 | ||
11007 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11008 | PyObject *resultobj; | |
11009 | wxSpinCtrl *result; | |
11010 | char *kwnames[] = { | |
11011 | NULL | |
11012 | }; | |
11013 | ||
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
15afbcd0 | 11022 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11023 | return resultobj; |
11024 | fail: | |
11025 | return NULL; | |
11026 | } | |
11027 | ||
11028 | ||
11029 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11030 | PyObject *resultobj; | |
11031 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11032 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11033 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11034 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11035 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11036 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11037 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11038 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11039 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11040 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11041 | int arg8 = (int) 0 ; | |
11042 | int arg9 = (int) 100 ; | |
11043 | int arg10 = (int) 0 ; | |
11044 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11045 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11046 | bool result; | |
e811c8ce | 11047 | bool temp4 = False ; |
d14a1e28 RD |
11048 | wxPoint temp5 ; |
11049 | wxSize temp6 ; | |
e811c8ce | 11050 | bool temp11 = False ; |
d14a1e28 RD |
11051 | PyObject * obj0 = 0 ; |
11052 | PyObject * obj1 = 0 ; | |
994141e6 | 11053 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11054 | PyObject * obj3 = 0 ; |
11055 | PyObject * obj4 = 0 ; | |
11056 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11057 | PyObject * obj6 = 0 ; |
11058 | PyObject * obj7 = 0 ; | |
11059 | PyObject * obj8 = 0 ; | |
11060 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
11061 | PyObject * obj10 = 0 ; |
11062 | char *kwnames[] = { | |
11063 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11064 | }; | |
11065 | ||
994141e6 | 11066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
11067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11071 | if (obj2) { |
15afbcd0 RD |
11072 | arg3 = (int) SWIG_AsInt(obj2); |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11074 | } |
d14a1e28 RD |
11075 | if (obj3) { |
11076 | { | |
11077 | arg4 = wxString_in_helper(obj3); | |
11078 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11079 | temp4 = True; |
d14a1e28 RD |
11080 | } |
11081 | } | |
11082 | if (obj4) { | |
11083 | { | |
11084 | arg5 = &temp5; | |
11085 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11086 | } | |
11087 | } | |
11088 | if (obj5) { | |
11089 | { | |
11090 | arg6 = &temp6; | |
11091 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11092 | } | |
11093 | } | |
994141e6 | 11094 | if (obj6) { |
15afbcd0 RD |
11095 | arg7 = (long) SWIG_AsLong(obj6); |
11096 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11097 | } |
11098 | if (obj7) { | |
15afbcd0 RD |
11099 | arg8 = (int) SWIG_AsInt(obj7); |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11101 | } |
11102 | if (obj8) { | |
15afbcd0 RD |
11103 | arg9 = (int) SWIG_AsInt(obj8); |
11104 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11105 | } |
11106 | if (obj9) { | |
15afbcd0 RD |
11107 | arg10 = (int) SWIG_AsInt(obj9); |
11108 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11109 | } |
d14a1e28 RD |
11110 | if (obj10) { |
11111 | { | |
11112 | arg11 = wxString_in_helper(obj10); | |
11113 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11114 | temp11 = True; |
d14a1e28 RD |
11115 | } |
11116 | } | |
11117 | { | |
11118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11119 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11120 | ||
11121 | wxPyEndAllowThreads(__tstate); | |
11122 | if (PyErr_Occurred()) SWIG_fail; | |
11123 | } | |
4f89f6a3 RD |
11124 | { |
11125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11126 | } | |
d14a1e28 RD |
11127 | { |
11128 | if (temp4) | |
11129 | delete arg4; | |
11130 | } | |
11131 | { | |
11132 | if (temp11) | |
11133 | delete arg11; | |
11134 | } | |
11135 | return resultobj; | |
11136 | fail: | |
11137 | { | |
11138 | if (temp4) | |
11139 | delete arg4; | |
11140 | } | |
11141 | { | |
11142 | if (temp11) | |
11143 | delete arg11; | |
11144 | } | |
11145 | return NULL; | |
11146 | } | |
11147 | ||
11148 | ||
11149 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11150 | PyObject *resultobj; | |
11151 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11152 | int result; | |
11153 | PyObject * obj0 = 0 ; | |
11154 | char *kwnames[] = { | |
11155 | (char *) "self", NULL | |
11156 | }; | |
11157 | ||
11158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11161 | { |
11162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11163 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11164 | ||
11165 | wxPyEndAllowThreads(__tstate); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | } | |
15afbcd0 | 11168 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11169 | return resultobj; |
11170 | fail: | |
11171 | return NULL; | |
11172 | } | |
11173 | ||
11174 | ||
11175 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11176 | PyObject *resultobj; | |
11177 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11178 | int arg2 ; | |
11179 | PyObject * obj0 = 0 ; | |
994141e6 | 11180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11181 | char *kwnames[] = { |
11182 | (char *) "self",(char *) "value", NULL | |
11183 | }; | |
11184 | ||
994141e6 | 11185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11188 | arg2 = (int) SWIG_AsInt(obj1); | |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11190 | { |
11191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11192 | (arg1)->SetValue(arg2); | |
11193 | ||
11194 | wxPyEndAllowThreads(__tstate); | |
11195 | if (PyErr_Occurred()) SWIG_fail; | |
11196 | } | |
11197 | Py_INCREF(Py_None); resultobj = Py_None; | |
11198 | return resultobj; | |
11199 | fail: | |
11200 | return NULL; | |
11201 | } | |
11202 | ||
11203 | ||
11204 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11205 | PyObject *resultobj; | |
11206 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11207 | wxString *arg2 = 0 ; | |
e811c8ce | 11208 | bool temp2 = False ; |
d14a1e28 RD |
11209 | PyObject * obj0 = 0 ; |
11210 | PyObject * obj1 = 0 ; | |
11211 | char *kwnames[] = { | |
11212 | (char *) "self",(char *) "text", NULL | |
11213 | }; | |
11214 | ||
11215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11218 | { |
11219 | arg2 = wxString_in_helper(obj1); | |
11220 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11221 | temp2 = True; |
d14a1e28 RD |
11222 | } |
11223 | { | |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | (arg1)->SetValue((wxString const &)*arg2); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | Py_INCREF(Py_None); resultobj = Py_None; | |
11231 | { | |
11232 | if (temp2) | |
11233 | delete arg2; | |
11234 | } | |
11235 | return resultobj; | |
11236 | fail: | |
11237 | { | |
11238 | if (temp2) | |
11239 | delete arg2; | |
11240 | } | |
11241 | return NULL; | |
11242 | } | |
11243 | ||
11244 | ||
11245 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11246 | PyObject *resultobj; | |
11247 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11248 | int arg2 ; | |
11249 | int arg3 ; | |
11250 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11251 | PyObject * obj1 = 0 ; |
11252 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11253 | char *kwnames[] = { |
11254 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11255 | }; | |
11256 | ||
994141e6 | 11257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11260 | arg2 = (int) SWIG_AsInt(obj1); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | arg3 = (int) SWIG_AsInt(obj2); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11264 | { |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | (arg1)->SetRange(arg2,arg3); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
11271 | Py_INCREF(Py_None); resultobj = Py_None; | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11279 | PyObject *resultobj; | |
11280 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11281 | int result; | |
11282 | PyObject * obj0 = 0 ; | |
11283 | char *kwnames[] = { | |
11284 | (char *) "self", NULL | |
11285 | }; | |
11286 | ||
11287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11290 | { |
11291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11292 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11293 | ||
11294 | wxPyEndAllowThreads(__tstate); | |
11295 | if (PyErr_Occurred()) SWIG_fail; | |
11296 | } | |
15afbcd0 | 11297 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11298 | return resultobj; |
11299 | fail: | |
11300 | return NULL; | |
11301 | } | |
11302 | ||
11303 | ||
11304 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11305 | PyObject *resultobj; | |
11306 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11307 | int result; | |
11308 | PyObject * obj0 = 0 ; | |
11309 | char *kwnames[] = { | |
11310 | (char *) "self", NULL | |
11311 | }; | |
11312 | ||
11313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11316 | { |
11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11318 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11319 | ||
11320 | wxPyEndAllowThreads(__tstate); | |
11321 | if (PyErr_Occurred()) SWIG_fail; | |
11322 | } | |
15afbcd0 | 11323 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11324 | return resultobj; |
11325 | fail: | |
11326 | return NULL; | |
11327 | } | |
11328 | ||
11329 | ||
11330 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11331 | PyObject *resultobj; | |
11332 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11333 | long arg2 ; | |
11334 | long arg3 ; | |
11335 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11336 | PyObject * obj1 = 0 ; |
11337 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11338 | char *kwnames[] = { |
11339 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11340 | }; | |
11341 | ||
994141e6 | 11342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11345 | arg2 = (long) SWIG_AsLong(obj1); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | arg3 = (long) SWIG_AsLong(obj2); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11349 | { |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 11351 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
11352 | |
11353 | wxPyEndAllowThreads(__tstate); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | } | |
11356 | Py_INCREF(Py_None); resultobj = Py_None; | |
11357 | return resultobj; | |
11358 | fail: | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
22bfe96c RD |
11363 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
11364 | PyObject *resultobj; | |
11365 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11366 | wxVisualAttributes result; | |
11367 | PyObject * obj0 = 0 ; | |
11368 | char *kwnames[] = { | |
11369 | (char *) "variant", NULL | |
11370 | }; | |
11371 | ||
11372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11373 | if (obj0) { | |
11374 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11375 | if (PyErr_Occurred()) SWIG_fail; | |
11376 | } | |
11377 | { | |
11378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11379 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11380 | ||
11381 | wxPyEndAllowThreads(__tstate); | |
11382 | if (PyErr_Occurred()) SWIG_fail; | |
11383 | } | |
11384 | { | |
11385 | wxVisualAttributes * resultptr; | |
11386 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11388 | } | |
11389 | return resultobj; | |
11390 | fail: | |
11391 | return NULL; | |
11392 | } | |
11393 | ||
11394 | ||
d14a1e28 RD |
11395 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { |
11396 | PyObject *obj; | |
11397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11398 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11399 | Py_INCREF(obj); | |
11400 | return Py_BuildValue((char *)""); | |
11401 | } | |
d1e20054 RD |
11402 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
11403 | PyObject *resultobj; | |
11404 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11405 | int arg2 = (int) 0 ; | |
11406 | wxSpinEvent *result; | |
994141e6 RD |
11407 | PyObject * obj0 = 0 ; |
11408 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
11409 | char *kwnames[] = { |
11410 | (char *) "commandType",(char *) "winid", NULL | |
11411 | }; | |
11412 | ||
994141e6 RD |
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
11414 | if (obj0) { | |
15afbcd0 RD |
11415 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11416 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11417 | } |
11418 | if (obj1) { | |
15afbcd0 RD |
11419 | arg2 = (int) SWIG_AsInt(obj1); |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11421 | } |
d1e20054 RD |
11422 | { |
11423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11424 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11425 | ||
11426 | wxPyEndAllowThreads(__tstate); | |
11427 | if (PyErr_Occurred()) SWIG_fail; | |
11428 | } | |
15afbcd0 | 11429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
11430 | return resultobj; |
11431 | fail: | |
11432 | return NULL; | |
11433 | } | |
11434 | ||
11435 | ||
11436 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11437 | PyObject *resultobj; | |
11438 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11439 | int result; | |
11440 | PyObject * obj0 = 0 ; | |
11441 | char *kwnames[] = { | |
11442 | (char *) "self", NULL | |
11443 | }; | |
11444 | ||
11445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d1e20054 RD |
11448 | { |
11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11450 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11451 | ||
11452 | wxPyEndAllowThreads(__tstate); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | } | |
15afbcd0 | 11455 | resultobj = SWIG_FromInt((int)result); |
d1e20054 RD |
11456 | return resultobj; |
11457 | fail: | |
11458 | return NULL; | |
11459 | } | |
11460 | ||
11461 | ||
11462 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11463 | PyObject *resultobj; | |
11464 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11465 | int arg2 ; | |
11466 | PyObject * obj0 = 0 ; | |
994141e6 | 11467 | PyObject * obj1 = 0 ; |
d1e20054 RD |
11468 | char *kwnames[] = { |
11469 | (char *) "self",(char *) "pos", NULL | |
11470 | }; | |
11471 | ||
994141e6 | 11472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11475 | arg2 = (int) SWIG_AsInt(obj1); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
d1e20054 RD |
11477 | { |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | (arg1)->SetPosition(arg2); | |
11480 | ||
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
11484 | Py_INCREF(Py_None); resultobj = Py_None; | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | return NULL; | |
11488 | } | |
11489 | ||
11490 | ||
11491 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11492 | PyObject *obj; | |
11493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11494 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11495 | Py_INCREF(obj); | |
11496 | return Py_BuildValue((char *)""); | |
11497 | } | |
b2dc1044 RD |
11498 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
11499 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11500 | return 1; | |
11501 | } | |
11502 | ||
11503 | ||
11504 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11505 | PyObject *pyobj; | |
11506 | ||
11507 | { | |
11508 | #if wxUSE_UNICODE | |
11509 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11510 | #else | |
11511 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11512 | #endif | |
11513 | } | |
11514 | return pyobj; | |
11515 | } | |
11516 | ||
11517 | ||
11518 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11519 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11520 | return 1; | |
11521 | } | |
11522 | ||
11523 | ||
11524 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11525 | PyObject *pyobj; | |
11526 | ||
11527 | { | |
11528 | #if wxUSE_UNICODE | |
11529 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11530 | #else | |
11531 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11532 | #endif | |
11533 | } | |
11534 | return pyobj; | |
11535 | } | |
11536 | ||
11537 | ||
d14a1e28 RD |
11538 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
11539 | PyObject *resultobj; | |
11540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11541 | int arg2 ; |
d14a1e28 RD |
11542 | wxString *arg3 = 0 ; |
11543 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11544 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11545 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11546 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
11547 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11548 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11549 | int arg7 = (int) 0 ; | |
11550 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11551 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11552 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11553 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11554 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11555 | wxRadioBox *result; |
e811c8ce | 11556 | bool temp3 = False ; |
d14a1e28 RD |
11557 | wxPoint temp4 ; |
11558 | wxSize temp5 ; | |
3adfb63b | 11559 | bool temp6 = False ; |
e811c8ce | 11560 | bool temp10 = False ; |
d14a1e28 | 11561 | PyObject * obj0 = 0 ; |
994141e6 | 11562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11563 | PyObject * obj2 = 0 ; |
11564 | PyObject * obj3 = 0 ; | |
11565 | PyObject * obj4 = 0 ; | |
11566 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11567 | PyObject * obj6 = 0 ; |
11568 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11569 | PyObject * obj8 = 0 ; |
11570 | PyObject * obj9 = 0 ; | |
11571 | char *kwnames[] = { | |
994141e6 | 11572 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11573 | }; |
11574 | ||
994141e6 | 11575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
11576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11578 | arg2 = (int) SWIG_AsInt(obj1); | |
11579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11580 | { |
11581 | arg3 = wxString_in_helper(obj2); | |
11582 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11583 | temp3 = True; |
d14a1e28 RD |
11584 | } |
11585 | if (obj3) { | |
11586 | { | |
11587 | arg4 = &temp4; | |
11588 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11589 | } | |
11590 | } | |
11591 | if (obj4) { | |
11592 | { | |
11593 | arg5 = &temp5; | |
11594 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11595 | } | |
11596 | } | |
11597 | if (obj5) { | |
11598 | { | |
4d5c3d91 RD |
11599 | if (! PySequence_Check(obj5)) { |
11600 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11601 | SWIG_fail; | |
11602 | } | |
11603 | arg6 = new wxArrayString; | |
3adfb63b | 11604 | temp6 = True; |
4d5c3d91 RD |
11605 | int i, len=PySequence_Length(obj5); |
11606 | for (i=0; i<len; i++) { | |
11607 | PyObject* item = PySequence_GetItem(obj5, i); | |
11608 | #if wxUSE_UNICODE | |
11609 | PyObject* str = PyObject_Unicode(item); | |
11610 | #else | |
11611 | PyObject* str = PyObject_Str(item); | |
11612 | #endif | |
74a57fcd | 11613 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11614 | arg6->Add(Py2wxString(str)); |
11615 | Py_DECREF(item); | |
11616 | Py_DECREF(str); | |
11617 | } | |
d14a1e28 RD |
11618 | } |
11619 | } | |
994141e6 | 11620 | if (obj6) { |
15afbcd0 RD |
11621 | arg7 = (int) SWIG_AsInt(obj6); |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11623 | } |
11624 | if (obj7) { | |
15afbcd0 RD |
11625 | arg8 = (long) SWIG_AsLong(obj7); |
11626 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11627 | } |
d14a1e28 | 11628 | if (obj8) { |
15afbcd0 RD |
11629 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11631 | SWIG_fail; | |
4d5c3d91 | 11632 | if (arg9 == NULL) { |
15afbcd0 RD |
11633 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11634 | SWIG_fail; | |
d14a1e28 RD |
11635 | } |
11636 | } | |
11637 | if (obj9) { | |
11638 | { | |
4d5c3d91 RD |
11639 | arg10 = wxString_in_helper(obj9); |
11640 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11641 | temp10 = True; |
d14a1e28 RD |
11642 | } |
11643 | } | |
11644 | { | |
11645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11646 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); |
d14a1e28 RD |
11647 | |
11648 | wxPyEndAllowThreads(__tstate); | |
11649 | if (PyErr_Occurred()) SWIG_fail; | |
11650 | } | |
15afbcd0 | 11651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11652 | { |
11653 | if (temp3) | |
11654 | delete arg3; | |
11655 | } | |
11656 | { | |
3adfb63b | 11657 | if (temp6) delete arg6; |
d14a1e28 RD |
11658 | } |
11659 | { | |
11660 | if (temp10) | |
4d5c3d91 | 11661 | delete arg10; |
d14a1e28 RD |
11662 | } |
11663 | return resultobj; | |
11664 | fail: | |
11665 | { | |
11666 | if (temp3) | |
11667 | delete arg3; | |
11668 | } | |
11669 | { | |
3adfb63b | 11670 | if (temp6) delete arg6; |
d14a1e28 RD |
11671 | } |
11672 | { | |
11673 | if (temp10) | |
4d5c3d91 | 11674 | delete arg10; |
d14a1e28 RD |
11675 | } |
11676 | return NULL; | |
11677 | } | |
11678 | ||
11679 | ||
11680 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11681 | PyObject *resultobj; | |
11682 | wxRadioBox *result; | |
11683 | char *kwnames[] = { | |
11684 | NULL | |
11685 | }; | |
11686 | ||
11687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11688 | { | |
11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11690 | result = (wxRadioBox *)new wxRadioBox(); | |
11691 | ||
11692 | wxPyEndAllowThreads(__tstate); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
15afbcd0 | 11695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11696 | return resultobj; |
11697 | fail: | |
11698 | return NULL; | |
11699 | } | |
11700 | ||
11701 | ||
11702 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11703 | PyObject *resultobj; | |
11704 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11705 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11706 | int arg3 ; |
d14a1e28 RD |
11707 | wxString *arg4 = 0 ; |
11708 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11709 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11710 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11711 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
11712 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11713 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11714 | int arg8 = (int) 0 ; | |
11715 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11716 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11717 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11718 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11719 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11720 | bool result; |
e811c8ce | 11721 | bool temp4 = False ; |
d14a1e28 RD |
11722 | wxPoint temp5 ; |
11723 | wxSize temp6 ; | |
3adfb63b | 11724 | bool temp7 = False ; |
e811c8ce | 11725 | bool temp11 = False ; |
d14a1e28 RD |
11726 | PyObject * obj0 = 0 ; |
11727 | PyObject * obj1 = 0 ; | |
994141e6 | 11728 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11729 | PyObject * obj3 = 0 ; |
11730 | PyObject * obj4 = 0 ; | |
11731 | PyObject * obj5 = 0 ; | |
11732 | PyObject * obj6 = 0 ; | |
994141e6 RD |
11733 | PyObject * obj7 = 0 ; |
11734 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11735 | PyObject * obj9 = 0 ; |
11736 | PyObject * obj10 = 0 ; | |
11737 | char *kwnames[] = { | |
994141e6 | 11738 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11739 | }; |
11740 | ||
994141e6 | 11741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
11742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11744 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11746 | arg3 = (int) SWIG_AsInt(obj2); | |
11747 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11748 | { |
11749 | arg4 = wxString_in_helper(obj3); | |
11750 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11751 | temp4 = True; |
d14a1e28 RD |
11752 | } |
11753 | if (obj4) { | |
11754 | { | |
11755 | arg5 = &temp5; | |
11756 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11757 | } | |
11758 | } | |
11759 | if (obj5) { | |
11760 | { | |
11761 | arg6 = &temp6; | |
11762 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11763 | } | |
11764 | } | |
11765 | if (obj6) { | |
11766 | { | |
4d5c3d91 RD |
11767 | if (! PySequence_Check(obj6)) { |
11768 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11769 | SWIG_fail; | |
11770 | } | |
11771 | arg7 = new wxArrayString; | |
3adfb63b | 11772 | temp7 = True; |
4d5c3d91 RD |
11773 | int i, len=PySequence_Length(obj6); |
11774 | for (i=0; i<len; i++) { | |
11775 | PyObject* item = PySequence_GetItem(obj6, i); | |
11776 | #if wxUSE_UNICODE | |
11777 | PyObject* str = PyObject_Unicode(item); | |
11778 | #else | |
11779 | PyObject* str = PyObject_Str(item); | |
11780 | #endif | |
74a57fcd | 11781 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11782 | arg7->Add(Py2wxString(str)); |
11783 | Py_DECREF(item); | |
11784 | Py_DECREF(str); | |
11785 | } | |
d14a1e28 RD |
11786 | } |
11787 | } | |
994141e6 | 11788 | if (obj7) { |
15afbcd0 RD |
11789 | arg8 = (int) SWIG_AsInt(obj7); |
11790 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11791 | } |
11792 | if (obj8) { | |
15afbcd0 RD |
11793 | arg9 = (long) SWIG_AsLong(obj8); |
11794 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11795 | } |
d14a1e28 | 11796 | if (obj9) { |
15afbcd0 RD |
11797 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
11798 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11799 | SWIG_fail; | |
4d5c3d91 | 11800 | if (arg10 == NULL) { |
15afbcd0 RD |
11801 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11802 | SWIG_fail; | |
d14a1e28 RD |
11803 | } |
11804 | } | |
11805 | if (obj10) { | |
11806 | { | |
4d5c3d91 RD |
11807 | arg11 = wxString_in_helper(obj10); |
11808 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11809 | temp11 = True; |
d14a1e28 RD |
11810 | } |
11811 | } | |
11812 | { | |
11813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11814 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); |
d14a1e28 RD |
11815 | |
11816 | wxPyEndAllowThreads(__tstate); | |
11817 | if (PyErr_Occurred()) SWIG_fail; | |
11818 | } | |
4f89f6a3 RD |
11819 | { |
11820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11821 | } | |
d14a1e28 RD |
11822 | { |
11823 | if (temp4) | |
11824 | delete arg4; | |
11825 | } | |
11826 | { | |
3adfb63b | 11827 | if (temp7) delete arg7; |
d14a1e28 RD |
11828 | } |
11829 | { | |
11830 | if (temp11) | |
4d5c3d91 | 11831 | delete arg11; |
d14a1e28 RD |
11832 | } |
11833 | return resultobj; | |
11834 | fail: | |
11835 | { | |
11836 | if (temp4) | |
11837 | delete arg4; | |
11838 | } | |
11839 | { | |
3adfb63b | 11840 | if (temp7) delete arg7; |
d14a1e28 RD |
11841 | } |
11842 | { | |
11843 | if (temp11) | |
4d5c3d91 | 11844 | delete arg11; |
d14a1e28 RD |
11845 | } |
11846 | return NULL; | |
11847 | } | |
11848 | ||
11849 | ||
11850 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11851 | PyObject *resultobj; | |
11852 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11853 | int arg2 ; | |
11854 | PyObject * obj0 = 0 ; | |
994141e6 | 11855 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11856 | char *kwnames[] = { |
11857 | (char *) "self",(char *) "n", NULL | |
11858 | }; | |
11859 | ||
994141e6 | 11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11863 | arg2 = (int) SWIG_AsInt(obj1); | |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11865 | { |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11867 | (arg1)->SetSelection(arg2); | |
11868 | ||
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | Py_INCREF(Py_None); resultobj = Py_None; | |
11873 | return resultobj; | |
11874 | fail: | |
11875 | return NULL; | |
11876 | } | |
11877 | ||
11878 | ||
11879 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11880 | PyObject *resultobj; | |
11881 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11882 | int result; | |
11883 | PyObject * obj0 = 0 ; | |
11884 | char *kwnames[] = { | |
11885 | (char *) "self", NULL | |
11886 | }; | |
11887 | ||
11888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11891 | { |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
15afbcd0 | 11898 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11899 | return resultobj; |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
11905 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11906 | PyObject *resultobj; | |
11907 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11908 | wxString result; | |
11909 | PyObject * obj0 = 0 ; | |
11910 | char *kwnames[] = { | |
11911 | (char *) "self", NULL | |
11912 | }; | |
11913 | ||
11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11917 | { |
11918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11919 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11920 | ||
11921 | wxPyEndAllowThreads(__tstate); | |
11922 | if (PyErr_Occurred()) SWIG_fail; | |
11923 | } | |
11924 | { | |
11925 | #if wxUSE_UNICODE | |
11926 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11927 | #else | |
11928 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11929 | #endif | |
11930 | } | |
11931 | return resultobj; | |
11932 | fail: | |
11933 | return NULL; | |
11934 | } | |
11935 | ||
11936 | ||
11937 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11938 | PyObject *resultobj; | |
11939 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11940 | wxString *arg2 = 0 ; | |
11941 | bool result; | |
e811c8ce | 11942 | bool temp2 = False ; |
d14a1e28 RD |
11943 | PyObject * obj0 = 0 ; |
11944 | PyObject * obj1 = 0 ; | |
11945 | char *kwnames[] = { | |
11946 | (char *) "self",(char *) "s", NULL | |
11947 | }; | |
11948 | ||
11949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11952 | { |
11953 | arg2 = wxString_in_helper(obj1); | |
11954 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11955 | temp2 = True; |
d14a1e28 RD |
11956 | } |
11957 | { | |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
4f89f6a3 RD |
11964 | { |
11965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11966 | } | |
d14a1e28 RD |
11967 | { |
11968 | if (temp2) | |
11969 | delete arg2; | |
11970 | } | |
11971 | return resultobj; | |
11972 | fail: | |
11973 | { | |
11974 | if (temp2) | |
11975 | delete arg2; | |
11976 | } | |
11977 | return NULL; | |
11978 | } | |
11979 | ||
11980 | ||
11981 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11982 | PyObject *resultobj; | |
11983 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11984 | int result; | |
11985 | PyObject * obj0 = 0 ; | |
11986 | char *kwnames[] = { | |
11987 | (char *) "self", NULL | |
11988 | }; | |
11989 | ||
11990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11993 | { |
11994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11995 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11996 | ||
11997 | wxPyEndAllowThreads(__tstate); | |
11998 | if (PyErr_Occurred()) SWIG_fail; | |
11999 | } | |
15afbcd0 | 12000 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12001 | return resultobj; |
12002 | fail: | |
12003 | return NULL; | |
12004 | } | |
12005 | ||
12006 | ||
12007 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12008 | PyObject *resultobj; | |
12009 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12010 | wxString *arg2 = 0 ; | |
12011 | int result; | |
e811c8ce | 12012 | bool temp2 = False ; |
d14a1e28 RD |
12013 | PyObject * obj0 = 0 ; |
12014 | PyObject * obj1 = 0 ; | |
12015 | char *kwnames[] = { | |
12016 | (char *) "self",(char *) "s", NULL | |
12017 | }; | |
12018 | ||
12019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12022 | { |
12023 | arg2 = wxString_in_helper(obj1); | |
12024 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12025 | temp2 = True; |
d14a1e28 RD |
12026 | } |
12027 | { | |
12028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12029 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12030 | ||
12031 | wxPyEndAllowThreads(__tstate); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | } | |
15afbcd0 | 12034 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12035 | { |
12036 | if (temp2) | |
12037 | delete arg2; | |
12038 | } | |
12039 | return resultobj; | |
12040 | fail: | |
12041 | { | |
12042 | if (temp2) | |
12043 | delete arg2; | |
12044 | } | |
12045 | return NULL; | |
12046 | } | |
12047 | ||
12048 | ||
12049 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12050 | PyObject *resultobj; | |
12051 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12052 | int arg2 ; | |
12053 | wxString result; | |
12054 | PyObject * obj0 = 0 ; | |
994141e6 | 12055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12056 | char *kwnames[] = { |
12057 | (char *) "self",(char *) "n", NULL | |
12058 | }; | |
12059 | ||
994141e6 | 12060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12063 | arg2 = (int) SWIG_AsInt(obj1); | |
12064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12065 | { |
12066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12067 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12068 | ||
12069 | wxPyEndAllowThreads(__tstate); | |
12070 | if (PyErr_Occurred()) SWIG_fail; | |
12071 | } | |
12072 | { | |
12073 | #if wxUSE_UNICODE | |
12074 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12075 | #else | |
12076 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12077 | #endif | |
12078 | } | |
12079 | return resultobj; | |
12080 | fail: | |
12081 | return NULL; | |
12082 | } | |
12083 | ||
12084 | ||
12085 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12086 | PyObject *resultobj; | |
12087 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12088 | int arg2 ; | |
12089 | wxString *arg3 = 0 ; | |
e811c8ce | 12090 | bool temp3 = False ; |
d14a1e28 | 12091 | PyObject * obj0 = 0 ; |
994141e6 | 12092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12093 | PyObject * obj2 = 0 ; |
12094 | char *kwnames[] = { | |
12095 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12096 | }; | |
12097 | ||
994141e6 | 12098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12101 | arg2 = (int) SWIG_AsInt(obj1); | |
12102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12103 | { |
12104 | arg3 = wxString_in_helper(obj2); | |
12105 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12106 | temp3 = True; |
d14a1e28 RD |
12107 | } |
12108 | { | |
12109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12110 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12111 | ||
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | Py_INCREF(Py_None); resultobj = Py_None; | |
12116 | { | |
12117 | if (temp3) | |
12118 | delete arg3; | |
12119 | } | |
12120 | return resultobj; | |
12121 | fail: | |
12122 | { | |
12123 | if (temp3) | |
12124 | delete arg3; | |
12125 | } | |
12126 | return NULL; | |
12127 | } | |
12128 | ||
12129 | ||
12130 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12131 | PyObject *resultobj; | |
12132 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12133 | int arg2 ; | |
e811c8ce | 12134 | bool arg3 = (bool) True ; |
d14a1e28 | 12135 | PyObject * obj0 = 0 ; |
994141e6 | 12136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12137 | PyObject * obj2 = 0 ; |
12138 | char *kwnames[] = { | |
12139 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12140 | }; | |
12141 | ||
994141e6 | 12142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12145 | arg2 = (int) SWIG_AsInt(obj1); | |
12146 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12147 | if (obj2) { |
15afbcd0 RD |
12148 | arg3 = (bool) SWIG_AsBool(obj2); |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12150 | } |
12151 | { | |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | (arg1)->Enable(arg2,arg3); | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
12158 | Py_INCREF(Py_None); resultobj = Py_None; | |
12159 | return resultobj; | |
12160 | fail: | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
12165 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12166 | PyObject *resultobj; | |
12167 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12168 | int arg2 ; | |
e811c8ce | 12169 | bool arg3 = (bool) True ; |
d14a1e28 | 12170 | PyObject * obj0 = 0 ; |
994141e6 | 12171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12172 | PyObject * obj2 = 0 ; |
12173 | char *kwnames[] = { | |
12174 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12175 | }; | |
12176 | ||
994141e6 | 12177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12180 | arg2 = (int) SWIG_AsInt(obj1); | |
12181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12182 | if (obj2) { |
15afbcd0 RD |
12183 | arg3 = (bool) SWIG_AsBool(obj2); |
12184 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12185 | } |
12186 | { | |
12187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12188 | (arg1)->Show(arg2,arg3); | |
12189 | ||
12190 | wxPyEndAllowThreads(__tstate); | |
12191 | if (PyErr_Occurred()) SWIG_fail; | |
12192 | } | |
12193 | Py_INCREF(Py_None); resultobj = Py_None; | |
12194 | return resultobj; | |
12195 | fail: | |
12196 | return NULL; | |
12197 | } | |
12198 | ||
12199 | ||
12200 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12201 | PyObject *resultobj; | |
12202 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12203 | int result; | |
12204 | PyObject * obj0 = 0 ; | |
12205 | char *kwnames[] = { | |
12206 | (char *) "self", NULL | |
12207 | }; | |
12208 | ||
12209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12212 | { |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12214 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
12215 | ||
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
15afbcd0 | 12219 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12220 | return resultobj; |
12221 | fail: | |
12222 | return NULL; | |
12223 | } | |
12224 | ||
12225 | ||
12226 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12227 | PyObject *resultobj; | |
12228 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12229 | int result; | |
12230 | PyObject * obj0 = 0 ; | |
12231 | char *kwnames[] = { | |
12232 | (char *) "self", NULL | |
12233 | }; | |
12234 | ||
12235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12238 | { |
12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12240 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
12241 | ||
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
15afbcd0 | 12245 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12246 | return resultobj; |
12247 | fail: | |
12248 | return NULL; | |
12249 | } | |
12250 | ||
12251 | ||
12252 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12253 | PyObject *resultobj; | |
12254 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12255 | int arg2 ; | |
12256 | int arg3 ; | |
12257 | long arg4 ; | |
12258 | int result; | |
12259 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12260 | PyObject * obj1 = 0 ; |
12261 | PyObject * obj2 = 0 ; | |
12262 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12263 | char *kwnames[] = { |
12264 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12265 | }; | |
12266 | ||
994141e6 | 12267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12270 | arg2 = (int) SWIG_AsInt(obj1); | |
12271 | if (PyErr_Occurred()) SWIG_fail; | |
12272 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | arg4 = (long) SWIG_AsLong(obj3); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12276 | { |
12277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12278 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
12279 | ||
12280 | wxPyEndAllowThreads(__tstate); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
15afbcd0 | 12283 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12284 | return resultobj; |
12285 | fail: | |
12286 | return NULL; | |
12287 | } | |
12288 | ||
12289 | ||
22bfe96c RD |
12290 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12291 | PyObject *resultobj; | |
12292 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12293 | wxVisualAttributes result; | |
12294 | PyObject * obj0 = 0 ; | |
12295 | char *kwnames[] = { | |
12296 | (char *) "variant", NULL | |
12297 | }; | |
12298 | ||
12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12300 | if (obj0) { | |
12301 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12302 | if (PyErr_Occurred()) SWIG_fail; | |
12303 | } | |
12304 | { | |
12305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12306 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12307 | ||
12308 | wxPyEndAllowThreads(__tstate); | |
12309 | if (PyErr_Occurred()) SWIG_fail; | |
12310 | } | |
12311 | { | |
12312 | wxVisualAttributes * resultptr; | |
12313 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12314 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12315 | } | |
12316 | return resultobj; | |
12317 | fail: | |
12318 | return NULL; | |
12319 | } | |
12320 | ||
12321 | ||
d14a1e28 RD |
12322 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { |
12323 | PyObject *obj; | |
12324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12325 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12326 | Py_INCREF(obj); | |
12327 | return Py_BuildValue((char *)""); | |
12328 | } | |
12329 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12330 | PyObject *resultobj; | |
12331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12332 | int arg2 ; |
d14a1e28 RD |
12333 | wxString *arg3 = 0 ; |
12334 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12335 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12336 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12337 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12338 | long arg6 = (long) 0 ; | |
12339 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12340 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12341 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12342 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12343 | wxRadioButton *result; | |
e811c8ce | 12344 | bool temp3 = False ; |
d14a1e28 RD |
12345 | wxPoint temp4 ; |
12346 | wxSize temp5 ; | |
e811c8ce | 12347 | bool temp8 = False ; |
d14a1e28 | 12348 | PyObject * obj0 = 0 ; |
994141e6 | 12349 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12350 | PyObject * obj2 = 0 ; |
12351 | PyObject * obj3 = 0 ; | |
12352 | PyObject * obj4 = 0 ; | |
994141e6 | 12353 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12354 | PyObject * obj6 = 0 ; |
12355 | PyObject * obj7 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12358 | }; | |
12359 | ||
994141e6 | 12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12363 | arg2 = (int) SWIG_AsInt(obj1); | |
12364 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12365 | { |
12366 | arg3 = wxString_in_helper(obj2); | |
12367 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12368 | temp3 = True; |
d14a1e28 RD |
12369 | } |
12370 | if (obj3) { | |
12371 | { | |
12372 | arg4 = &temp4; | |
12373 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12374 | } | |
12375 | } | |
12376 | if (obj4) { | |
12377 | { | |
12378 | arg5 = &temp5; | |
12379 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12380 | } | |
12381 | } | |
994141e6 | 12382 | if (obj5) { |
15afbcd0 RD |
12383 | arg6 = (long) SWIG_AsLong(obj5); |
12384 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12385 | } |
d14a1e28 | 12386 | if (obj6) { |
15afbcd0 RD |
12387 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
12388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12389 | SWIG_fail; | |
d14a1e28 | 12390 | if (arg7 == NULL) { |
15afbcd0 RD |
12391 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12392 | SWIG_fail; | |
d14a1e28 RD |
12393 | } |
12394 | } | |
12395 | if (obj7) { | |
12396 | { | |
12397 | arg8 = wxString_in_helper(obj7); | |
12398 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 12399 | temp8 = True; |
d14a1e28 RD |
12400 | } |
12401 | } | |
12402 | { | |
12403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12404 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12405 | ||
12406 | wxPyEndAllowThreads(__tstate); | |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
12408 | } | |
15afbcd0 | 12409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12410 | { |
12411 | if (temp3) | |
12412 | delete arg3; | |
12413 | } | |
12414 | { | |
12415 | if (temp8) | |
12416 | delete arg8; | |
12417 | } | |
12418 | return resultobj; | |
12419 | fail: | |
12420 | { | |
12421 | if (temp3) | |
12422 | delete arg3; | |
12423 | } | |
12424 | { | |
12425 | if (temp8) | |
12426 | delete arg8; | |
12427 | } | |
12428 | return NULL; | |
12429 | } | |
12430 | ||
12431 | ||
12432 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12433 | PyObject *resultobj; | |
12434 | wxRadioButton *result; | |
12435 | char *kwnames[] = { | |
12436 | NULL | |
12437 | }; | |
12438 | ||
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12440 | { | |
12441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12442 | result = (wxRadioButton *)new wxRadioButton(); | |
12443 | ||
12444 | wxPyEndAllowThreads(__tstate); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
12446 | } | |
15afbcd0 | 12447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12448 | return resultobj; |
12449 | fail: | |
12450 | return NULL; | |
12451 | } | |
12452 | ||
12453 | ||
12454 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12455 | PyObject *resultobj; | |
12456 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12457 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12458 | int arg3 ; |
d14a1e28 RD |
12459 | wxString *arg4 = 0 ; |
12460 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12461 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12462 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12463 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12464 | long arg7 = (long) 0 ; | |
12465 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12466 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12467 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12468 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12469 | bool result; | |
e811c8ce | 12470 | bool temp4 = False ; |
d14a1e28 RD |
12471 | wxPoint temp5 ; |
12472 | wxSize temp6 ; | |
e811c8ce | 12473 | bool temp9 = False ; |
d14a1e28 RD |
12474 | PyObject * obj0 = 0 ; |
12475 | PyObject * obj1 = 0 ; | |
994141e6 | 12476 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12477 | PyObject * obj3 = 0 ; |
12478 | PyObject * obj4 = 0 ; | |
12479 | PyObject * obj5 = 0 ; | |
994141e6 | 12480 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12481 | PyObject * obj7 = 0 ; |
12482 | PyObject * obj8 = 0 ; | |
12483 | char *kwnames[] = { | |
12484 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12485 | }; | |
12486 | ||
994141e6 | 12487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
12488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12492 | arg3 = (int) SWIG_AsInt(obj2); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12494 | { |
12495 | arg4 = wxString_in_helper(obj3); | |
12496 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 12497 | temp4 = True; |
d14a1e28 RD |
12498 | } |
12499 | if (obj4) { | |
12500 | { | |
12501 | arg5 = &temp5; | |
12502 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12503 | } | |
12504 | } | |
12505 | if (obj5) { | |
12506 | { | |
12507 | arg6 = &temp6; | |
12508 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12509 | } | |
12510 | } | |
994141e6 | 12511 | if (obj6) { |
15afbcd0 RD |
12512 | arg7 = (long) SWIG_AsLong(obj6); |
12513 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12514 | } |
d14a1e28 | 12515 | if (obj7) { |
15afbcd0 RD |
12516 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
12517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12518 | SWIG_fail; | |
d14a1e28 | 12519 | if (arg8 == NULL) { |
15afbcd0 RD |
12520 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12521 | SWIG_fail; | |
d14a1e28 RD |
12522 | } |
12523 | } | |
12524 | if (obj8) { | |
12525 | { | |
12526 | arg9 = wxString_in_helper(obj8); | |
12527 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 12528 | temp9 = True; |
d14a1e28 RD |
12529 | } |
12530 | } | |
12531 | { | |
12532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12533 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12534 | ||
12535 | wxPyEndAllowThreads(__tstate); | |
12536 | if (PyErr_Occurred()) SWIG_fail; | |
12537 | } | |
4f89f6a3 RD |
12538 | { |
12539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12540 | } | |
d14a1e28 RD |
12541 | { |
12542 | if (temp4) | |
12543 | delete arg4; | |
12544 | } | |
12545 | { | |
12546 | if (temp9) | |
12547 | delete arg9; | |
12548 | } | |
12549 | return resultobj; | |
12550 | fail: | |
12551 | { | |
12552 | if (temp4) | |
12553 | delete arg4; | |
12554 | } | |
12555 | { | |
12556 | if (temp9) | |
12557 | delete arg9; | |
12558 | } | |
12559 | return NULL; | |
12560 | } | |
12561 | ||
12562 | ||
12563 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12564 | PyObject *resultobj; | |
12565 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12566 | bool result; | |
12567 | PyObject * obj0 = 0 ; | |
12568 | char *kwnames[] = { | |
12569 | (char *) "self", NULL | |
12570 | }; | |
12571 | ||
12572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12575 | { |
12576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12577 | result = (bool)(arg1)->GetValue(); | |
12578 | ||
12579 | wxPyEndAllowThreads(__tstate); | |
12580 | if (PyErr_Occurred()) SWIG_fail; | |
12581 | } | |
4f89f6a3 RD |
12582 | { |
12583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12584 | } | |
d14a1e28 RD |
12585 | return resultobj; |
12586 | fail: | |
12587 | return NULL; | |
12588 | } | |
12589 | ||
12590 | ||
12591 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12592 | PyObject *resultobj; | |
12593 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12594 | bool arg2 ; | |
12595 | PyObject * obj0 = 0 ; | |
12596 | PyObject * obj1 = 0 ; | |
12597 | char *kwnames[] = { | |
12598 | (char *) "self",(char *) "value", NULL | |
12599 | }; | |
12600 | ||
12601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12604 | arg2 = (bool) SWIG_AsBool(obj1); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12606 | { |
12607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12608 | (arg1)->SetValue(arg2); | |
12609 | ||
12610 | wxPyEndAllowThreads(__tstate); | |
12611 | if (PyErr_Occurred()) SWIG_fail; | |
12612 | } | |
12613 | Py_INCREF(Py_None); resultobj = Py_None; | |
12614 | return resultobj; | |
12615 | fail: | |
12616 | return NULL; | |
12617 | } | |
12618 | ||
12619 | ||
22bfe96c RD |
12620 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12621 | PyObject *resultobj; | |
12622 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12623 | wxVisualAttributes result; | |
12624 | PyObject * obj0 = 0 ; | |
12625 | char *kwnames[] = { | |
12626 | (char *) "variant", NULL | |
12627 | }; | |
12628 | ||
12629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12630 | if (obj0) { | |
12631 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12632 | if (PyErr_Occurred()) SWIG_fail; | |
12633 | } | |
12634 | { | |
12635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12636 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12637 | ||
12638 | wxPyEndAllowThreads(__tstate); | |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
12640 | } | |
12641 | { | |
12642 | wxVisualAttributes * resultptr; | |
12643 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12645 | } | |
12646 | return resultobj; | |
12647 | fail: | |
12648 | return NULL; | |
12649 | } | |
12650 | ||
12651 | ||
d14a1e28 RD |
12652 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { |
12653 | PyObject *obj; | |
12654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12655 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12656 | Py_INCREF(obj); | |
12657 | return Py_BuildValue((char *)""); | |
12658 | } | |
b2dc1044 RD |
12659 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
12660 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12661 | return 1; | |
12662 | } | |
12663 | ||
12664 | ||
12665 | static PyObject *_wrap_SliderNameStr_get() { | |
12666 | PyObject *pyobj; | |
12667 | ||
12668 | { | |
12669 | #if wxUSE_UNICODE | |
12670 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12671 | #else | |
12672 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12673 | #endif | |
12674 | } | |
12675 | return pyobj; | |
12676 | } | |
12677 | ||
12678 | ||
d14a1e28 RD |
12679 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
12680 | PyObject *resultobj; | |
12681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12682 | int arg2 ; |
d14a1e28 RD |
12683 | int arg3 ; |
12684 | int arg4 ; | |
12685 | int arg5 ; | |
12686 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12687 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12688 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12689 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12690 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12691 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12692 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12693 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12694 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12695 | wxSlider *result; | |
12696 | wxPoint temp6 ; | |
12697 | wxSize temp7 ; | |
e811c8ce | 12698 | bool temp10 = False ; |
d14a1e28 | 12699 | PyObject * obj0 = 0 ; |
994141e6 RD |
12700 | PyObject * obj1 = 0 ; |
12701 | PyObject * obj2 = 0 ; | |
12702 | PyObject * obj3 = 0 ; | |
12703 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12704 | PyObject * obj5 = 0 ; |
12705 | PyObject * obj6 = 0 ; | |
994141e6 | 12706 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12707 | PyObject * obj8 = 0 ; |
12708 | PyObject * obj9 = 0 ; | |
12709 | char *kwnames[] = { | |
994141e6 | 12710 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12711 | }; |
12712 | ||
994141e6 | 12713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
12714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12716 | arg2 = (int) SWIG_AsInt(obj1); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | arg3 = (int) SWIG_AsInt(obj2); | |
12719 | if (PyErr_Occurred()) SWIG_fail; | |
12720 | arg4 = (int) SWIG_AsInt(obj3); | |
12721 | if (PyErr_Occurred()) SWIG_fail; | |
12722 | arg5 = (int) SWIG_AsInt(obj4); | |
12723 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12724 | if (obj5) { |
12725 | { | |
12726 | arg6 = &temp6; | |
12727 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12728 | } | |
12729 | } | |
12730 | if (obj6) { | |
12731 | { | |
12732 | arg7 = &temp7; | |
12733 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12734 | } | |
12735 | } | |
994141e6 | 12736 | if (obj7) { |
15afbcd0 RD |
12737 | arg8 = (long) SWIG_AsLong(obj7); |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12739 | } |
d14a1e28 | 12740 | if (obj8) { |
15afbcd0 RD |
12741 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12743 | SWIG_fail; | |
d14a1e28 | 12744 | if (arg9 == NULL) { |
15afbcd0 RD |
12745 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12746 | SWIG_fail; | |
d14a1e28 RD |
12747 | } |
12748 | } | |
12749 | if (obj9) { | |
12750 | { | |
12751 | arg10 = wxString_in_helper(obj9); | |
12752 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 12753 | temp10 = True; |
d14a1e28 RD |
12754 | } |
12755 | } | |
12756 | { | |
12757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12758 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12759 | ||
12760 | wxPyEndAllowThreads(__tstate); | |
12761 | if (PyErr_Occurred()) SWIG_fail; | |
12762 | } | |
15afbcd0 | 12763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12764 | { |
12765 | if (temp10) | |
12766 | delete arg10; | |
12767 | } | |
12768 | return resultobj; | |
12769 | fail: | |
12770 | { | |
12771 | if (temp10) | |
12772 | delete arg10; | |
12773 | } | |
12774 | return NULL; | |
12775 | } | |
12776 | ||
12777 | ||
12778 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12779 | PyObject *resultobj; | |
12780 | wxSlider *result; | |
12781 | char *kwnames[] = { | |
12782 | NULL | |
12783 | }; | |
12784 | ||
12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12786 | { | |
12787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12788 | result = (wxSlider *)new wxSlider(); | |
12789 | ||
12790 | wxPyEndAllowThreads(__tstate); | |
12791 | if (PyErr_Occurred()) SWIG_fail; | |
12792 | } | |
15afbcd0 | 12793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12794 | return resultobj; |
12795 | fail: | |
12796 | return NULL; | |
12797 | } | |
12798 | ||
12799 | ||
12800 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12801 | PyObject *resultobj; | |
12802 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12803 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12804 | int arg3 ; |
d14a1e28 RD |
12805 | int arg4 ; |
12806 | int arg5 ; | |
12807 | int arg6 ; | |
12808 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12809 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12810 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12811 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12812 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12813 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12814 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12815 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12816 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12817 | bool result; | |
12818 | wxPoint temp7 ; | |
12819 | wxSize temp8 ; | |
e811c8ce | 12820 | bool temp11 = False ; |
d14a1e28 RD |
12821 | PyObject * obj0 = 0 ; |
12822 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12823 | PyObject * obj2 = 0 ; |
12824 | PyObject * obj3 = 0 ; | |
12825 | PyObject * obj4 = 0 ; | |
12826 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12827 | PyObject * obj6 = 0 ; |
12828 | PyObject * obj7 = 0 ; | |
994141e6 | 12829 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12830 | PyObject * obj9 = 0 ; |
12831 | PyObject * obj10 = 0 ; | |
12832 | char *kwnames[] = { | |
994141e6 | 12833 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12834 | }; |
12835 | ||
994141e6 | 12836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
12837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12841 | arg3 = (int) SWIG_AsInt(obj2); | |
12842 | if (PyErr_Occurred()) SWIG_fail; | |
12843 | arg4 = (int) SWIG_AsInt(obj3); | |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
12845 | arg5 = (int) SWIG_AsInt(obj4); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | arg6 = (int) SWIG_AsInt(obj5); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12849 | if (obj6) { |
12850 | { | |
12851 | arg7 = &temp7; | |
12852 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12853 | } | |
12854 | } | |
12855 | if (obj7) { | |
12856 | { | |
12857 | arg8 = &temp8; | |
12858 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12859 | } | |
12860 | } | |
994141e6 | 12861 | if (obj8) { |
15afbcd0 RD |
12862 | arg9 = (long) SWIG_AsLong(obj8); |
12863 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12864 | } |
d14a1e28 | 12865 | if (obj9) { |
15afbcd0 RD |
12866 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12868 | SWIG_fail; | |
d14a1e28 | 12869 | if (arg10 == NULL) { |
15afbcd0 RD |
12870 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12871 | SWIG_fail; | |
d14a1e28 RD |
12872 | } |
12873 | } | |
12874 | if (obj10) { | |
12875 | { | |
12876 | arg11 = wxString_in_helper(obj10); | |
12877 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 12878 | temp11 = True; |
d14a1e28 RD |
12879 | } |
12880 | } | |
12881 | { | |
12882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12883 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12884 | ||
12885 | wxPyEndAllowThreads(__tstate); | |
12886 | if (PyErr_Occurred()) SWIG_fail; | |
12887 | } | |
4f89f6a3 RD |
12888 | { |
12889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12890 | } | |
d14a1e28 RD |
12891 | { |
12892 | if (temp11) | |
12893 | delete arg11; | |
12894 | } | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | { | |
12898 | if (temp11) | |
12899 | delete arg11; | |
12900 | } | |
12901 | return NULL; | |
12902 | } | |
12903 | ||
12904 | ||
12905 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12906 | PyObject *resultobj; | |
12907 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12908 | int result; | |
12909 | PyObject * obj0 = 0 ; | |
12910 | char *kwnames[] = { | |
12911 | (char *) "self", NULL | |
12912 | }; | |
12913 | ||
12914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12917 | { |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12920 | ||
12921 | wxPyEndAllowThreads(__tstate); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
15afbcd0 | 12924 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12925 | return resultobj; |
12926 | fail: | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
12931 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12932 | PyObject *resultobj; | |
12933 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12934 | int arg2 ; | |
12935 | PyObject * obj0 = 0 ; | |
994141e6 | 12936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12937 | char *kwnames[] = { |
12938 | (char *) "self",(char *) "value", NULL | |
12939 | }; | |
12940 | ||
994141e6 | 12941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12944 | arg2 = (int) SWIG_AsInt(obj1); | |
12945 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12946 | { |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | (arg1)->SetValue(arg2); | |
12949 | ||
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
12953 | Py_INCREF(Py_None); resultobj = Py_None; | |
12954 | return resultobj; | |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12961 | PyObject *resultobj; | |
12962 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12963 | int arg2 ; | |
12964 | int arg3 ; | |
12965 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12966 | PyObject * obj1 = 0 ; |
12967 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12968 | char *kwnames[] = { |
12969 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12970 | }; | |
12971 | ||
994141e6 | 12972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12975 | arg2 = (int) SWIG_AsInt(obj1); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | arg3 = (int) SWIG_AsInt(obj2); | |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12979 | { |
12980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12981 | (arg1)->SetRange(arg2,arg3); | |
12982 | ||
12983 | wxPyEndAllowThreads(__tstate); | |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
12985 | } | |
12986 | Py_INCREF(Py_None); resultobj = Py_None; | |
12987 | return resultobj; | |
12988 | fail: | |
12989 | return NULL; | |
12990 | } | |
12991 | ||
12992 | ||
12993 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12994 | PyObject *resultobj; | |
12995 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12996 | int result; | |
12997 | PyObject * obj0 = 0 ; | |
12998 | char *kwnames[] = { | |
12999 | (char *) "self", NULL | |
13000 | }; | |
13001 | ||
13002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13005 | { |
13006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13007 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13008 | ||
13009 | wxPyEndAllowThreads(__tstate); | |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
13011 | } | |
15afbcd0 | 13012 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13013 | return resultobj; |
13014 | fail: | |
13015 | return NULL; | |
13016 | } | |
13017 | ||
13018 | ||
13019 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13020 | PyObject *resultobj; | |
13021 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13022 | int result; | |
13023 | PyObject * obj0 = 0 ; | |
13024 | char *kwnames[] = { | |
13025 | (char *) "self", NULL | |
13026 | }; | |
13027 | ||
13028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13031 | { |
13032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13033 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13034 | ||
13035 | wxPyEndAllowThreads(__tstate); | |
13036 | if (PyErr_Occurred()) SWIG_fail; | |
13037 | } | |
15afbcd0 | 13038 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13039 | return resultobj; |
13040 | fail: | |
13041 | return NULL; | |
13042 | } | |
13043 | ||
13044 | ||
13045 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13046 | PyObject *resultobj; | |
13047 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13048 | int arg2 ; | |
13049 | PyObject * obj0 = 0 ; | |
994141e6 | 13050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13051 | char *kwnames[] = { |
13052 | (char *) "self",(char *) "minValue", NULL | |
13053 | }; | |
13054 | ||
994141e6 | 13055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13058 | arg2 = (int) SWIG_AsInt(obj1); | |
13059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13060 | { |
13061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13062 | (arg1)->SetMin(arg2); | |
13063 | ||
13064 | wxPyEndAllowThreads(__tstate); | |
13065 | if (PyErr_Occurred()) SWIG_fail; | |
13066 | } | |
13067 | Py_INCREF(Py_None); resultobj = Py_None; | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | return NULL; | |
13071 | } | |
13072 | ||
13073 | ||
13074 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13075 | PyObject *resultobj; | |
13076 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13077 | int arg2 ; | |
13078 | PyObject * obj0 = 0 ; | |
994141e6 | 13079 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13080 | char *kwnames[] = { |
13081 | (char *) "self",(char *) "maxValue", NULL | |
13082 | }; | |
13083 | ||
994141e6 | 13084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13087 | arg2 = (int) SWIG_AsInt(obj1); | |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13089 | { |
13090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13091 | (arg1)->SetMax(arg2); | |
13092 | ||
13093 | wxPyEndAllowThreads(__tstate); | |
13094 | if (PyErr_Occurred()) SWIG_fail; | |
13095 | } | |
13096 | Py_INCREF(Py_None); resultobj = Py_None; | |
13097 | return resultobj; | |
13098 | fail: | |
13099 | return NULL; | |
13100 | } | |
13101 | ||
13102 | ||
13103 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13104 | PyObject *resultobj; | |
13105 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13106 | int arg2 ; | |
13107 | PyObject * obj0 = 0 ; | |
994141e6 | 13108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13109 | char *kwnames[] = { |
13110 | (char *) "self",(char *) "lineSize", NULL | |
13111 | }; | |
13112 | ||
994141e6 | 13113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13116 | arg2 = (int) SWIG_AsInt(obj1); | |
13117 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13118 | { |
13119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13120 | (arg1)->SetLineSize(arg2); | |
13121 | ||
13122 | wxPyEndAllowThreads(__tstate); | |
13123 | if (PyErr_Occurred()) SWIG_fail; | |
13124 | } | |
13125 | Py_INCREF(Py_None); resultobj = Py_None; | |
13126 | return resultobj; | |
13127 | fail: | |
13128 | return NULL; | |
13129 | } | |
13130 | ||
13131 | ||
13132 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13133 | PyObject *resultobj; | |
13134 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13135 | int arg2 ; | |
13136 | PyObject * obj0 = 0 ; | |
994141e6 | 13137 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13138 | char *kwnames[] = { |
13139 | (char *) "self",(char *) "pageSize", NULL | |
13140 | }; | |
13141 | ||
994141e6 | 13142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13145 | arg2 = (int) SWIG_AsInt(obj1); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13147 | { |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | (arg1)->SetPageSize(arg2); | |
13150 | ||
13151 | wxPyEndAllowThreads(__tstate); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
13154 | Py_INCREF(Py_None); resultobj = Py_None; | |
13155 | return resultobj; | |
13156 | fail: | |
13157 | return NULL; | |
13158 | } | |
13159 | ||
13160 | ||
13161 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13162 | PyObject *resultobj; | |
13163 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13164 | int result; | |
13165 | PyObject * obj0 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "self", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13173 | { |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13175 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13176 | ||
13177 | wxPyEndAllowThreads(__tstate); | |
13178 | if (PyErr_Occurred()) SWIG_fail; | |
13179 | } | |
15afbcd0 | 13180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13181 | return resultobj; |
13182 | fail: | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13188 | PyObject *resultobj; | |
13189 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13190 | int result; | |
13191 | PyObject * obj0 = 0 ; | |
13192 | char *kwnames[] = { | |
13193 | (char *) "self", NULL | |
13194 | }; | |
13195 | ||
13196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13199 | { |
13200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13201 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13202 | ||
13203 | wxPyEndAllowThreads(__tstate); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
15afbcd0 | 13206 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13207 | return resultobj; |
13208 | fail: | |
13209 | return NULL; | |
13210 | } | |
13211 | ||
13212 | ||
13213 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13214 | PyObject *resultobj; | |
13215 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13216 | int arg2 ; | |
13217 | PyObject * obj0 = 0 ; | |
994141e6 | 13218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13219 | char *kwnames[] = { |
13220 | (char *) "self",(char *) "lenPixels", NULL | |
13221 | }; | |
13222 | ||
994141e6 | 13223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13226 | arg2 = (int) SWIG_AsInt(obj1); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13228 | { |
13229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13230 | (arg1)->SetThumbLength(arg2); | |
13231 | ||
13232 | wxPyEndAllowThreads(__tstate); | |
13233 | if (PyErr_Occurred()) SWIG_fail; | |
13234 | } | |
13235 | Py_INCREF(Py_None); resultobj = Py_None; | |
13236 | return resultobj; | |
13237 | fail: | |
13238 | return NULL; | |
13239 | } | |
13240 | ||
13241 | ||
13242 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13243 | PyObject *resultobj; | |
13244 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13245 | int result; | |
13246 | PyObject * obj0 = 0 ; | |
13247 | char *kwnames[] = { | |
13248 | (char *) "self", NULL | |
13249 | }; | |
13250 | ||
13251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13254 | { |
13255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13256 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13257 | ||
13258 | wxPyEndAllowThreads(__tstate); | |
13259 | if (PyErr_Occurred()) SWIG_fail; | |
13260 | } | |
15afbcd0 | 13261 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13262 | return resultobj; |
13263 | fail: | |
13264 | return NULL; | |
13265 | } | |
13266 | ||
13267 | ||
13268 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13269 | PyObject *resultobj; | |
13270 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13271 | int arg2 ; | |
994141e6 | 13272 | int arg3 = (int) 1 ; |
d14a1e28 | 13273 | PyObject * obj0 = 0 ; |
994141e6 RD |
13274 | PyObject * obj1 = 0 ; |
13275 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13276 | char *kwnames[] = { |
13277 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13278 | }; | |
13279 | ||
994141e6 | 13280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13283 | arg2 = (int) SWIG_AsInt(obj1); | |
13284 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13285 | if (obj2) { |
15afbcd0 RD |
13286 | arg3 = (int) SWIG_AsInt(obj2); |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13288 | } |
d14a1e28 RD |
13289 | { |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | (arg1)->SetTickFreq(arg2,arg3); | |
13292 | ||
13293 | wxPyEndAllowThreads(__tstate); | |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
13295 | } | |
13296 | Py_INCREF(Py_None); resultobj = Py_None; | |
13297 | return resultobj; | |
13298 | fail: | |
13299 | return NULL; | |
13300 | } | |
13301 | ||
13302 | ||
13303 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13304 | PyObject *resultobj; | |
13305 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13306 | int result; | |
13307 | PyObject * obj0 = 0 ; | |
13308 | char *kwnames[] = { | |
13309 | (char *) "self", NULL | |
13310 | }; | |
13311 | ||
13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13315 | { |
13316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13317 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13318 | ||
13319 | wxPyEndAllowThreads(__tstate); | |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
13321 | } | |
15afbcd0 | 13322 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13323 | return resultobj; |
13324 | fail: | |
13325 | return NULL; | |
13326 | } | |
13327 | ||
13328 | ||
13329 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13330 | PyObject *resultobj; | |
13331 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13332 | PyObject * obj0 = 0 ; | |
13333 | char *kwnames[] = { | |
13334 | (char *) "self", NULL | |
13335 | }; | |
13336 | ||
13337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13340 | { |
13341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13342 | (arg1)->ClearTicks(); | |
13343 | ||
13344 | wxPyEndAllowThreads(__tstate); | |
13345 | if (PyErr_Occurred()) SWIG_fail; | |
13346 | } | |
13347 | Py_INCREF(Py_None); resultobj = Py_None; | |
13348 | return resultobj; | |
13349 | fail: | |
13350 | return NULL; | |
13351 | } | |
13352 | ||
13353 | ||
13354 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13355 | PyObject *resultobj; | |
13356 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13357 | int arg2 ; | |
13358 | PyObject * obj0 = 0 ; | |
994141e6 | 13359 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13360 | char *kwnames[] = { |
13361 | (char *) "self",(char *) "tickPos", NULL | |
13362 | }; | |
13363 | ||
994141e6 | 13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13367 | arg2 = (int) SWIG_AsInt(obj1); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13369 | { |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | (arg1)->SetTick(arg2); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | Py_INCREF(Py_None); resultobj = Py_None; | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13386 | PyObject * obj0 = 0 ; | |
13387 | char *kwnames[] = { | |
13388 | (char *) "self", NULL | |
13389 | }; | |
13390 | ||
13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13394 | { |
13395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13396 | (arg1)->ClearSel(); | |
13397 | ||
13398 | wxPyEndAllowThreads(__tstate); | |
13399 | if (PyErr_Occurred()) SWIG_fail; | |
13400 | } | |
13401 | Py_INCREF(Py_None); resultobj = Py_None; | |
13402 | return resultobj; | |
13403 | fail: | |
13404 | return NULL; | |
13405 | } | |
13406 | ||
13407 | ||
13408 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13409 | PyObject *resultobj; | |
13410 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13411 | int result; | |
13412 | PyObject * obj0 = 0 ; | |
13413 | char *kwnames[] = { | |
13414 | (char *) "self", NULL | |
13415 | }; | |
13416 | ||
13417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13420 | { |
13421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13422 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13423 | ||
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
15afbcd0 | 13427 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13428 | return resultobj; |
13429 | fail: | |
13430 | return NULL; | |
13431 | } | |
13432 | ||
13433 | ||
13434 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13435 | PyObject *resultobj; | |
13436 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13437 | int result; | |
13438 | PyObject * obj0 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13446 | { |
13447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13448 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13449 | ||
13450 | wxPyEndAllowThreads(__tstate); | |
13451 | if (PyErr_Occurred()) SWIG_fail; | |
13452 | } | |
15afbcd0 | 13453 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13454 | return resultobj; |
13455 | fail: | |
13456 | return NULL; | |
13457 | } | |
13458 | ||
13459 | ||
13460 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13461 | PyObject *resultobj; | |
13462 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13463 | int arg2 ; | |
13464 | int arg3 ; | |
13465 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13466 | PyObject * obj1 = 0 ; |
13467 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13468 | char *kwnames[] = { |
13469 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13470 | }; | |
13471 | ||
994141e6 | 13472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13475 | arg2 = (int) SWIG_AsInt(obj1); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | arg3 = (int) SWIG_AsInt(obj2); | |
13478 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13479 | { |
13480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13481 | (arg1)->SetSelection(arg2,arg3); | |
13482 | ||
13483 | wxPyEndAllowThreads(__tstate); | |
13484 | if (PyErr_Occurred()) SWIG_fail; | |
13485 | } | |
13486 | Py_INCREF(Py_None); resultobj = Py_None; | |
13487 | return resultobj; | |
13488 | fail: | |
13489 | return NULL; | |
13490 | } | |
13491 | ||
13492 | ||
22bfe96c RD |
13493 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13494 | PyObject *resultobj; | |
13495 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13496 | wxVisualAttributes result; | |
13497 | PyObject * obj0 = 0 ; | |
13498 | char *kwnames[] = { | |
13499 | (char *) "variant", NULL | |
13500 | }; | |
13501 | ||
13502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13503 | if (obj0) { | |
13504 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13505 | if (PyErr_Occurred()) SWIG_fail; | |
13506 | } | |
13507 | { | |
13508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13509 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13510 | ||
13511 | wxPyEndAllowThreads(__tstate); | |
13512 | if (PyErr_Occurred()) SWIG_fail; | |
13513 | } | |
13514 | { | |
13515 | wxVisualAttributes * resultptr; | |
13516 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13518 | } | |
13519 | return resultobj; | |
13520 | fail: | |
13521 | return NULL; | |
13522 | } | |
13523 | ||
13524 | ||
d14a1e28 RD |
13525 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { |
13526 | PyObject *obj; | |
13527 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13528 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13529 | Py_INCREF(obj); | |
13530 | return Py_BuildValue((char *)""); | |
13531 | } | |
b2dc1044 RD |
13532 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
13533 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13534 | return 1; | |
13535 | } | |
13536 | ||
13537 | ||
13538 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13539 | PyObject *pyobj; | |
13540 | ||
13541 | { | |
13542 | #if wxUSE_UNICODE | |
13543 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13544 | #else | |
13545 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13546 | #endif | |
13547 | } | |
13548 | return pyobj; | |
13549 | } | |
13550 | ||
13551 | ||
d14a1e28 RD |
13552 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
13553 | PyObject *resultobj; | |
13554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 13555 | int arg2 ; |
d14a1e28 RD |
13556 | wxString *arg3 = 0 ; |
13557 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13558 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13559 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13560 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13561 | long arg6 = (long) 0 ; | |
13562 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13563 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13564 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13565 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13566 | wxToggleButton *result; | |
e811c8ce | 13567 | bool temp3 = False ; |
d14a1e28 RD |
13568 | wxPoint temp4 ; |
13569 | wxSize temp5 ; | |
e811c8ce | 13570 | bool temp8 = False ; |
d14a1e28 | 13571 | PyObject * obj0 = 0 ; |
994141e6 | 13572 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13573 | PyObject * obj2 = 0 ; |
13574 | PyObject * obj3 = 0 ; | |
13575 | PyObject * obj4 = 0 ; | |
994141e6 | 13576 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13577 | PyObject * obj6 = 0 ; |
13578 | PyObject * obj7 = 0 ; | |
13579 | char *kwnames[] = { | |
13580 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13581 | }; | |
13582 | ||
994141e6 | 13583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
13584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13586 | arg2 = (int) SWIG_AsInt(obj1); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13588 | { |
13589 | arg3 = wxString_in_helper(obj2); | |
13590 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13591 | temp3 = True; |
d14a1e28 RD |
13592 | } |
13593 | if (obj3) { | |
13594 | { | |
13595 | arg4 = &temp4; | |
13596 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13597 | } | |
13598 | } | |
13599 | if (obj4) { | |
13600 | { | |
13601 | arg5 = &temp5; | |
13602 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13603 | } | |
13604 | } | |
994141e6 | 13605 | if (obj5) { |
15afbcd0 RD |
13606 | arg6 = (long) SWIG_AsLong(obj5); |
13607 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13608 | } |
d14a1e28 | 13609 | if (obj6) { |
15afbcd0 RD |
13610 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13612 | SWIG_fail; | |
d14a1e28 | 13613 | if (arg7 == NULL) { |
15afbcd0 RD |
13614 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13615 | SWIG_fail; | |
d14a1e28 RD |
13616 | } |
13617 | } | |
13618 | if (obj7) { | |
13619 | { | |
13620 | arg8 = wxString_in_helper(obj7); | |
13621 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13622 | temp8 = True; |
d14a1e28 RD |
13623 | } |
13624 | } | |
13625 | { | |
13626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13627 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13628 | ||
13629 | wxPyEndAllowThreads(__tstate); | |
13630 | if (PyErr_Occurred()) SWIG_fail; | |
13631 | } | |
15afbcd0 | 13632 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13633 | { |
13634 | if (temp3) | |
13635 | delete arg3; | |
13636 | } | |
13637 | { | |
13638 | if (temp8) | |
13639 | delete arg8; | |
13640 | } | |
13641 | return resultobj; | |
13642 | fail: | |
13643 | { | |
13644 | if (temp3) | |
13645 | delete arg3; | |
13646 | } | |
13647 | { | |
13648 | if (temp8) | |
13649 | delete arg8; | |
13650 | } | |
13651 | return NULL; | |
13652 | } | |
13653 | ||
13654 | ||
13655 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13656 | PyObject *resultobj; | |
13657 | wxToggleButton *result; | |
13658 | char *kwnames[] = { | |
13659 | NULL | |
13660 | }; | |
13661 | ||
13662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13663 | { | |
13664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13665 | result = (wxToggleButton *)new wxToggleButton(); | |
13666 | ||
13667 | wxPyEndAllowThreads(__tstate); | |
13668 | if (PyErr_Occurred()) SWIG_fail; | |
13669 | } | |
15afbcd0 | 13670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13671 | return resultobj; |
13672 | fail: | |
13673 | return NULL; | |
13674 | } | |
13675 | ||
13676 | ||
13677 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13678 | PyObject *resultobj; | |
13679 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13680 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 13681 | int arg3 ; |
d14a1e28 RD |
13682 | wxString *arg4 = 0 ; |
13683 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13684 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13685 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13686 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13687 | long arg7 = (long) 0 ; | |
13688 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13689 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13690 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13691 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13692 | bool result; | |
e811c8ce | 13693 | bool temp4 = False ; |
d14a1e28 RD |
13694 | wxPoint temp5 ; |
13695 | wxSize temp6 ; | |
e811c8ce | 13696 | bool temp9 = False ; |
d14a1e28 RD |
13697 | PyObject * obj0 = 0 ; |
13698 | PyObject * obj1 = 0 ; | |
994141e6 | 13699 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13700 | PyObject * obj3 = 0 ; |
13701 | PyObject * obj4 = 0 ; | |
13702 | PyObject * obj5 = 0 ; | |
994141e6 | 13703 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
13704 | PyObject * obj7 = 0 ; |
13705 | PyObject * obj8 = 0 ; | |
13706 | char *kwnames[] = { | |
13707 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13708 | }; | |
13709 | ||
994141e6 | 13710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
13711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13713 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13715 | arg3 = (int) SWIG_AsInt(obj2); | |
13716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13717 | { |
13718 | arg4 = wxString_in_helper(obj3); | |
13719 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 13720 | temp4 = True; |
d14a1e28 RD |
13721 | } |
13722 | if (obj4) { | |
13723 | { | |
13724 | arg5 = &temp5; | |
13725 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13726 | } | |
13727 | } | |
13728 | if (obj5) { | |
13729 | { | |
13730 | arg6 = &temp6; | |
13731 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13732 | } | |
13733 | } | |
994141e6 | 13734 | if (obj6) { |
15afbcd0 RD |
13735 | arg7 = (long) SWIG_AsLong(obj6); |
13736 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13737 | } |
d14a1e28 | 13738 | if (obj7) { |
15afbcd0 RD |
13739 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13740 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13741 | SWIG_fail; | |
d14a1e28 | 13742 | if (arg8 == NULL) { |
15afbcd0 RD |
13743 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13744 | SWIG_fail; | |
d14a1e28 RD |
13745 | } |
13746 | } | |
13747 | if (obj8) { | |
13748 | { | |
13749 | arg9 = wxString_in_helper(obj8); | |
13750 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 13751 | temp9 = True; |
d14a1e28 RD |
13752 | } |
13753 | } | |
13754 | { | |
13755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13756 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13757 | ||
13758 | wxPyEndAllowThreads(__tstate); | |
13759 | if (PyErr_Occurred()) SWIG_fail; | |
13760 | } | |
4f89f6a3 RD |
13761 | { |
13762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13763 | } | |
d14a1e28 RD |
13764 | { |
13765 | if (temp4) | |
13766 | delete arg4; | |
13767 | } | |
13768 | { | |
13769 | if (temp9) | |
13770 | delete arg9; | |
13771 | } | |
13772 | return resultobj; | |
13773 | fail: | |
13774 | { | |
13775 | if (temp4) | |
13776 | delete arg4; | |
13777 | } | |
13778 | { | |
13779 | if (temp9) | |
13780 | delete arg9; | |
13781 | } | |
13782 | return NULL; | |
13783 | } | |
13784 | ||
13785 | ||
13786 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13787 | PyObject *resultobj; | |
13788 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13789 | bool arg2 ; | |
13790 | PyObject * obj0 = 0 ; | |
13791 | PyObject * obj1 = 0 ; | |
13792 | char *kwnames[] = { | |
13793 | (char *) "self",(char *) "value", NULL | |
13794 | }; | |
13795 | ||
13796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13799 | arg2 = (bool) SWIG_AsBool(obj1); | |
13800 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13801 | { |
13802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13803 | (arg1)->SetValue(arg2); | |
13804 | ||
13805 | wxPyEndAllowThreads(__tstate); | |
13806 | if (PyErr_Occurred()) SWIG_fail; | |
13807 | } | |
13808 | Py_INCREF(Py_None); resultobj = Py_None; | |
13809 | return resultobj; | |
13810 | fail: | |
13811 | return NULL; | |
13812 | } | |
13813 | ||
13814 | ||
13815 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13816 | PyObject *resultobj; | |
13817 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13818 | bool result; | |
13819 | PyObject * obj0 = 0 ; | |
13820 | char *kwnames[] = { | |
13821 | (char *) "self", NULL | |
13822 | }; | |
13823 | ||
13824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13827 | { |
13828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13829 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13830 | ||
13831 | wxPyEndAllowThreads(__tstate); | |
13832 | if (PyErr_Occurred()) SWIG_fail; | |
13833 | } | |
4f89f6a3 RD |
13834 | { |
13835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13836 | } | |
d14a1e28 RD |
13837 | return resultobj; |
13838 | fail: | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13844 | PyObject *resultobj; | |
13845 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13846 | wxString *arg2 = 0 ; | |
e811c8ce | 13847 | bool temp2 = False ; |
d14a1e28 RD |
13848 | PyObject * obj0 = 0 ; |
13849 | PyObject * obj1 = 0 ; | |
13850 | char *kwnames[] = { | |
13851 | (char *) "self",(char *) "label", NULL | |
13852 | }; | |
13853 | ||
13854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13857 | { |
13858 | arg2 = wxString_in_helper(obj1); | |
13859 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13860 | temp2 = True; |
d14a1e28 RD |
13861 | } |
13862 | { | |
13863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13864 | (arg1)->SetLabel((wxString const &)*arg2); | |
13865 | ||
13866 | wxPyEndAllowThreads(__tstate); | |
13867 | if (PyErr_Occurred()) SWIG_fail; | |
13868 | } | |
13869 | Py_INCREF(Py_None); resultobj = Py_None; | |
13870 | { | |
13871 | if (temp2) | |
13872 | delete arg2; | |
13873 | } | |
13874 | return resultobj; | |
13875 | fail: | |
13876 | { | |
13877 | if (temp2) | |
13878 | delete arg2; | |
13879 | } | |
13880 | return NULL; | |
13881 | } | |
13882 | ||
13883 | ||
22bfe96c RD |
13884 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13885 | PyObject *resultobj; | |
13886 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13887 | wxVisualAttributes result; | |
13888 | PyObject * obj0 = 0 ; | |
13889 | char *kwnames[] = { | |
13890 | (char *) "variant", NULL | |
13891 | }; | |
13892 | ||
13893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13894 | if (obj0) { | |
13895 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
13898 | { | |
13899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13900 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13901 | ||
13902 | wxPyEndAllowThreads(__tstate); | |
13903 | if (PyErr_Occurred()) SWIG_fail; | |
13904 | } | |
13905 | { | |
13906 | wxVisualAttributes * resultptr; | |
13907 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13908 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13909 | } | |
13910 | return resultobj; | |
13911 | fail: | |
13912 | return NULL; | |
13913 | } | |
13914 | ||
13915 | ||
d14a1e28 RD |
13916 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { |
13917 | PyObject *obj; | |
13918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13919 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13920 | Py_INCREF(obj); | |
13921 | return Py_BuildValue((char *)""); | |
13922 | } | |
b2dc1044 RD |
13923 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
13924 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
13925 | return 1; | |
13926 | } | |
13927 | ||
13928 | ||
13929 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13930 | PyObject *pyobj; | |
13931 | ||
13932 | { | |
13933 | #if wxUSE_UNICODE | |
13934 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13935 | #else | |
13936 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13937 | #endif | |
13938 | } | |
13939 | return pyobj; | |
13940 | } | |
13941 | ||
13942 | ||
d14a1e28 RD |
13943 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13944 | PyObject *resultobj; | |
13945 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13946 | size_t result; | |
13947 | PyObject * obj0 = 0 ; | |
13948 | char *kwnames[] = { | |
13949 | (char *) "self", NULL | |
13950 | }; | |
13951 | ||
13952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13955 | { |
13956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13957 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13958 | ||
13959 | wxPyEndAllowThreads(__tstate); | |
13960 | if (PyErr_Occurred()) SWIG_fail; | |
13961 | } | |
15afbcd0 | 13962 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13963 | return resultobj; |
13964 | fail: | |
13965 | return NULL; | |
13966 | } | |
13967 | ||
13968 | ||
13969 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13970 | PyObject *resultobj; | |
13971 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13972 | size_t arg2 ; | |
13973 | wxWindow *result; | |
13974 | PyObject * obj0 = 0 ; | |
13975 | PyObject * obj1 = 0 ; | |
13976 | char *kwnames[] = { | |
13977 | (char *) "self",(char *) "n", NULL | |
13978 | }; | |
13979 | ||
13980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13983 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13985 | { |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13987 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13988 | ||
13989 | wxPyEndAllowThreads(__tstate); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | } | |
13992 | { | |
13993 | resultobj = wxPyMake_wxObject(result); | |
13994 | } | |
13995 | return resultobj; | |
13996 | fail: | |
13997 | return NULL; | |
13998 | } | |
13999 | ||
14000 | ||
14001 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14002 | PyObject *resultobj; | |
14003 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14004 | int result; | |
14005 | PyObject * obj0 = 0 ; | |
14006 | char *kwnames[] = { | |
14007 | (char *) "self", NULL | |
14008 | }; | |
14009 | ||
14010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14013 | { |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14016 | ||
14017 | wxPyEndAllowThreads(__tstate); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | } | |
15afbcd0 | 14020 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14021 | return resultobj; |
14022 | fail: | |
14023 | return NULL; | |
14024 | } | |
14025 | ||
14026 | ||
14027 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14028 | PyObject *resultobj; | |
14029 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14030 | size_t arg2 ; | |
14031 | wxString *arg3 = 0 ; | |
14032 | bool result; | |
e811c8ce | 14033 | bool temp3 = False ; |
d14a1e28 RD |
14034 | PyObject * obj0 = 0 ; |
14035 | PyObject * obj1 = 0 ; | |
14036 | PyObject * obj2 = 0 ; | |
14037 | char *kwnames[] = { | |
14038 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14039 | }; | |
14040 | ||
14041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14044 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14045 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14046 | { |
14047 | arg3 = wxString_in_helper(obj2); | |
14048 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14049 | temp3 = True; |
d14a1e28 RD |
14050 | } |
14051 | { | |
14052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14053 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14054 | ||
14055 | wxPyEndAllowThreads(__tstate); | |
14056 | if (PyErr_Occurred()) SWIG_fail; | |
14057 | } | |
4f89f6a3 RD |
14058 | { |
14059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14060 | } | |
d14a1e28 RD |
14061 | { |
14062 | if (temp3) | |
14063 | delete arg3; | |
14064 | } | |
14065 | return resultobj; | |
14066 | fail: | |
14067 | { | |
14068 | if (temp3) | |
14069 | delete arg3; | |
14070 | } | |
14071 | return NULL; | |
14072 | } | |
14073 | ||
14074 | ||
14075 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14076 | PyObject *resultobj; | |
14077 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14078 | size_t arg2 ; | |
14079 | wxString result; | |
14080 | PyObject * obj0 = 0 ; | |
14081 | PyObject * obj1 = 0 ; | |
14082 | char *kwnames[] = { | |
14083 | (char *) "self",(char *) "n", NULL | |
14084 | }; | |
14085 | ||
14086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14089 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14091 | { |
14092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14093 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14094 | ||
14095 | wxPyEndAllowThreads(__tstate); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
14098 | { | |
14099 | #if wxUSE_UNICODE | |
14100 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14101 | #else | |
14102 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14103 | #endif | |
14104 | } | |
14105 | return resultobj; | |
14106 | fail: | |
14107 | return NULL; | |
14108 | } | |
14109 | ||
14110 | ||
14111 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14112 | PyObject *resultobj; | |
14113 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14114 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14115 | PyObject * obj0 = 0 ; | |
14116 | PyObject * obj1 = 0 ; | |
14117 | char *kwnames[] = { | |
14118 | (char *) "self",(char *) "imageList", NULL | |
14119 | }; | |
14120 | ||
14121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14126 | { |
14127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14128 | (arg1)->SetImageList(arg2); | |
14129 | ||
14130 | wxPyEndAllowThreads(__tstate); | |
14131 | if (PyErr_Occurred()) SWIG_fail; | |
14132 | } | |
14133 | Py_INCREF(Py_None); resultobj = Py_None; | |
14134 | return resultobj; | |
14135 | fail: | |
14136 | return NULL; | |
14137 | } | |
14138 | ||
14139 | ||
14140 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14141 | PyObject *resultobj; | |
14142 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14143 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14144 | PyObject * obj0 = 0 ; | |
14145 | PyObject * obj1 = 0 ; | |
14146 | char *kwnames[] = { | |
14147 | (char *) "self",(char *) "imageList", NULL | |
14148 | }; | |
14149 | ||
14150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14154 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
14155 | { |
14156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14157 | (arg1)->AssignImageList(arg2); | |
14158 | ||
14159 | wxPyEndAllowThreads(__tstate); | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
14161 | } | |
14162 | Py_INCREF(Py_None); resultobj = Py_None; | |
14163 | return resultobj; | |
14164 | fail: | |
14165 | return NULL; | |
14166 | } | |
14167 | ||
14168 | ||
14169 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14170 | PyObject *resultobj; | |
14171 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14172 | wxImageList *result; | |
14173 | PyObject * obj0 = 0 ; | |
14174 | char *kwnames[] = { | |
14175 | (char *) "self", NULL | |
14176 | }; | |
14177 | ||
14178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14181 | { |
14182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14183 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14184 | ||
14185 | wxPyEndAllowThreads(__tstate); | |
14186 | if (PyErr_Occurred()) SWIG_fail; | |
14187 | } | |
14188 | { | |
14189 | resultobj = wxPyMake_wxObject(result); | |
14190 | } | |
14191 | return resultobj; | |
14192 | fail: | |
14193 | return NULL; | |
14194 | } | |
14195 | ||
14196 | ||
14197 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14198 | PyObject *resultobj; | |
14199 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14200 | size_t arg2 ; | |
14201 | int result; | |
14202 | PyObject * obj0 = 0 ; | |
14203 | PyObject * obj1 = 0 ; | |
14204 | char *kwnames[] = { | |
14205 | (char *) "self",(char *) "n", NULL | |
14206 | }; | |
14207 | ||
14208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14211 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14212 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14213 | { |
14214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14215 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14216 | ||
14217 | wxPyEndAllowThreads(__tstate); | |
14218 | if (PyErr_Occurred()) SWIG_fail; | |
14219 | } | |
15afbcd0 | 14220 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14221 | return resultobj; |
14222 | fail: | |
14223 | return NULL; | |
14224 | } | |
14225 | ||
14226 | ||
14227 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14228 | PyObject *resultobj; | |
14229 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14230 | size_t arg2 ; | |
14231 | int arg3 ; | |
14232 | bool result; | |
14233 | PyObject * obj0 = 0 ; | |
14234 | PyObject * obj1 = 0 ; | |
994141e6 | 14235 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14236 | char *kwnames[] = { |
14237 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14238 | }; | |
14239 | ||
994141e6 | 14240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14243 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14244 | if (PyErr_Occurred()) SWIG_fail; | |
14245 | arg3 = (int) SWIG_AsInt(obj2); | |
14246 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14247 | { |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14250 | ||
14251 | wxPyEndAllowThreads(__tstate); | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | } | |
4f89f6a3 RD |
14254 | { |
14255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14256 | } | |
d14a1e28 RD |
14257 | return resultobj; |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14264 | PyObject *resultobj; | |
14265 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14266 | wxSize *arg2 = 0 ; | |
14267 | wxSize temp2 ; | |
14268 | PyObject * obj0 = 0 ; | |
14269 | PyObject * obj1 = 0 ; | |
14270 | char *kwnames[] = { | |
14271 | (char *) "self",(char *) "size", NULL | |
14272 | }; | |
14273 | ||
14274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14277 | { |
14278 | arg2 = &temp2; | |
14279 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14280 | } | |
14281 | { | |
14282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14283 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14284 | ||
14285 | wxPyEndAllowThreads(__tstate); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | Py_INCREF(Py_None); resultobj = Py_None; | |
14289 | return resultobj; | |
14290 | fail: | |
14291 | return NULL; | |
14292 | } | |
14293 | ||
14294 | ||
14295 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14296 | PyObject *resultobj; | |
14297 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14298 | wxSize *arg2 = 0 ; | |
14299 | wxSize result; | |
14300 | wxSize temp2 ; | |
14301 | PyObject * obj0 = 0 ; | |
14302 | PyObject * obj1 = 0 ; | |
14303 | char *kwnames[] = { | |
14304 | (char *) "self",(char *) "sizePage", NULL | |
14305 | }; | |
14306 | ||
14307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14310 | { |
14311 | arg2 = &temp2; | |
14312 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14313 | } | |
14314 | { | |
14315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14316 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14317 | ||
14318 | wxPyEndAllowThreads(__tstate); | |
14319 | if (PyErr_Occurred()) SWIG_fail; | |
14320 | } | |
14321 | { | |
14322 | wxSize * resultptr; | |
14323 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14325 | } |
14326 | return resultobj; | |
14327 | fail: | |
14328 | return NULL; | |
14329 | } | |
14330 | ||
14331 | ||
14332 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14333 | PyObject *resultobj; | |
14334 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14335 | size_t arg2 ; | |
14336 | bool result; | |
14337 | PyObject * obj0 = 0 ; | |
14338 | PyObject * obj1 = 0 ; | |
14339 | char *kwnames[] = { | |
14340 | (char *) "self",(char *) "n", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14346 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14348 | { |
14349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14350 | result = (bool)(arg1)->DeletePage(arg2); | |
14351 | ||
14352 | wxPyEndAllowThreads(__tstate); | |
14353 | if (PyErr_Occurred()) SWIG_fail; | |
14354 | } | |
4f89f6a3 RD |
14355 | { |
14356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14357 | } | |
d14a1e28 RD |
14358 | return resultobj; |
14359 | fail: | |
14360 | return NULL; | |
14361 | } | |
14362 | ||
14363 | ||
14364 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14365 | PyObject *resultobj; | |
14366 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14367 | size_t arg2 ; | |
14368 | bool result; | |
14369 | PyObject * obj0 = 0 ; | |
14370 | PyObject * obj1 = 0 ; | |
14371 | char *kwnames[] = { | |
14372 | (char *) "self",(char *) "n", NULL | |
14373 | }; | |
14374 | ||
14375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14378 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14380 | { |
14381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14382 | result = (bool)(arg1)->RemovePage(arg2); | |
14383 | ||
14384 | wxPyEndAllowThreads(__tstate); | |
14385 | if (PyErr_Occurred()) SWIG_fail; | |
14386 | } | |
4f89f6a3 RD |
14387 | { |
14388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14389 | } | |
d14a1e28 RD |
14390 | return resultobj; |
14391 | fail: | |
14392 | return NULL; | |
14393 | } | |
14394 | ||
14395 | ||
14396 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14397 | PyObject *resultobj; | |
14398 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14399 | bool result; | |
14400 | PyObject * obj0 = 0 ; | |
14401 | char *kwnames[] = { | |
14402 | (char *) "self", NULL | |
14403 | }; | |
14404 | ||
14405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14408 | { |
14409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14410 | result = (bool)(arg1)->DeleteAllPages(); | |
14411 | ||
14412 | wxPyEndAllowThreads(__tstate); | |
14413 | if (PyErr_Occurred()) SWIG_fail; | |
14414 | } | |
4f89f6a3 RD |
14415 | { |
14416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14417 | } | |
d14a1e28 RD |
14418 | return resultobj; |
14419 | fail: | |
14420 | return NULL; | |
14421 | } | |
14422 | ||
14423 | ||
14424 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14425 | PyObject *resultobj; | |
14426 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14427 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14428 | wxString *arg3 = 0 ; | |
e811c8ce | 14429 | bool arg4 = (bool) False ; |
d14a1e28 RD |
14430 | int arg5 = (int) -1 ; |
14431 | bool result; | |
e811c8ce | 14432 | bool temp3 = False ; |
d14a1e28 RD |
14433 | PyObject * obj0 = 0 ; |
14434 | PyObject * obj1 = 0 ; | |
14435 | PyObject * obj2 = 0 ; | |
14436 | PyObject * obj3 = 0 ; | |
994141e6 | 14437 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14438 | char *kwnames[] = { |
14439 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14440 | }; | |
14441 | ||
994141e6 | 14442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
14443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14447 | { |
14448 | arg3 = wxString_in_helper(obj2); | |
14449 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14450 | temp3 = True; |
d14a1e28 RD |
14451 | } |
14452 | if (obj3) { | |
15afbcd0 RD |
14453 | arg4 = (bool) SWIG_AsBool(obj3); |
14454 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14455 | } |
14456 | if (obj4) { | |
15afbcd0 RD |
14457 | arg5 = (int) SWIG_AsInt(obj4); |
14458 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14459 | } |
14460 | { | |
14461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14462 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14463 | ||
14464 | wxPyEndAllowThreads(__tstate); | |
14465 | if (PyErr_Occurred()) SWIG_fail; | |
14466 | } | |
4f89f6a3 RD |
14467 | { |
14468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14469 | } | |
d14a1e28 RD |
14470 | { |
14471 | if (temp3) | |
14472 | delete arg3; | |
14473 | } | |
14474 | return resultobj; | |
14475 | fail: | |
14476 | { | |
14477 | if (temp3) | |
14478 | delete arg3; | |
14479 | } | |
14480 | return NULL; | |
14481 | } | |
14482 | ||
14483 | ||
14484 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14485 | PyObject *resultobj; | |
14486 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14487 | size_t arg2 ; | |
14488 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14489 | wxString *arg4 = 0 ; | |
e811c8ce | 14490 | bool arg5 = (bool) False ; |
d14a1e28 RD |
14491 | int arg6 = (int) -1 ; |
14492 | bool result; | |
e811c8ce | 14493 | bool temp4 = False ; |
d14a1e28 RD |
14494 | PyObject * obj0 = 0 ; |
14495 | PyObject * obj1 = 0 ; | |
14496 | PyObject * obj2 = 0 ; | |
14497 | PyObject * obj3 = 0 ; | |
14498 | PyObject * obj4 = 0 ; | |
994141e6 | 14499 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14500 | char *kwnames[] = { |
14501 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14502 | }; | |
14503 | ||
994141e6 | 14504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14507 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14508 | if (PyErr_Occurred()) SWIG_fail; | |
14509 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14511 | { |
14512 | arg4 = wxString_in_helper(obj3); | |
14513 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14514 | temp4 = True; |
d14a1e28 RD |
14515 | } |
14516 | if (obj4) { | |
15afbcd0 RD |
14517 | arg5 = (bool) SWIG_AsBool(obj4); |
14518 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14519 | } |
14520 | if (obj5) { | |
15afbcd0 RD |
14521 | arg6 = (int) SWIG_AsInt(obj5); |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14523 | } |
14524 | { | |
14525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14526 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14527 | ||
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
4f89f6a3 RD |
14531 | { |
14532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14533 | } | |
d14a1e28 RD |
14534 | { |
14535 | if (temp4) | |
14536 | delete arg4; | |
14537 | } | |
14538 | return resultobj; | |
14539 | fail: | |
14540 | { | |
14541 | if (temp4) | |
14542 | delete arg4; | |
14543 | } | |
14544 | return NULL; | |
14545 | } | |
14546 | ||
14547 | ||
14548 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14549 | PyObject *resultobj; | |
14550 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14551 | size_t arg2 ; | |
14552 | int result; | |
14553 | PyObject * obj0 = 0 ; | |
14554 | PyObject * obj1 = 0 ; | |
14555 | char *kwnames[] = { | |
14556 | (char *) "self",(char *) "n", NULL | |
14557 | }; | |
14558 | ||
14559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14562 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14563 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14564 | { |
14565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14566 | result = (int)(arg1)->SetSelection(arg2); | |
14567 | ||
14568 | wxPyEndAllowThreads(__tstate); | |
14569 | if (PyErr_Occurred()) SWIG_fail; | |
14570 | } | |
15afbcd0 | 14571 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14572 | return resultobj; |
14573 | fail: | |
14574 | return NULL; | |
14575 | } | |
14576 | ||
14577 | ||
14578 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14579 | PyObject *resultobj; | |
14580 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 14581 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14582 | PyObject * obj0 = 0 ; |
14583 | PyObject * obj1 = 0 ; | |
14584 | char *kwnames[] = { | |
14585 | (char *) "self",(char *) "forward", NULL | |
14586 | }; | |
14587 | ||
14588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14591 | if (obj1) { |
15afbcd0 RD |
14592 | arg2 = (bool) SWIG_AsBool(obj1); |
14593 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14594 | } |
14595 | { | |
14596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14597 | (arg1)->AdvanceSelection(arg2); | |
14598 | ||
14599 | wxPyEndAllowThreads(__tstate); | |
14600 | if (PyErr_Occurred()) SWIG_fail; | |
14601 | } | |
14602 | Py_INCREF(Py_None); resultobj = Py_None; | |
14603 | return resultobj; | |
14604 | fail: | |
14605 | return NULL; | |
14606 | } | |
14607 | ||
14608 | ||
22bfe96c RD |
14609 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14610 | PyObject *resultobj; | |
14611 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14612 | wxVisualAttributes result; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | char *kwnames[] = { | |
14615 | (char *) "variant", NULL | |
14616 | }; | |
14617 | ||
14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14619 | if (obj0) { | |
14620 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14621 | if (PyErr_Occurred()) SWIG_fail; | |
14622 | } | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14626 | ||
14627 | wxPyEndAllowThreads(__tstate); | |
14628 | if (PyErr_Occurred()) SWIG_fail; | |
14629 | } | |
14630 | { | |
14631 | wxVisualAttributes * resultptr; | |
14632 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14634 | } | |
14635 | return resultobj; | |
14636 | fail: | |
14637 | return NULL; | |
14638 | } | |
14639 | ||
14640 | ||
d14a1e28 RD |
14641 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { |
14642 | PyObject *obj; | |
14643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14644 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14645 | Py_INCREF(obj); | |
14646 | return Py_BuildValue((char *)""); | |
14647 | } | |
14648 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14649 | PyObject *resultobj; | |
14650 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14651 | int arg2 = (int) 0 ; | |
14652 | int arg3 = (int) -1 ; | |
14653 | int arg4 = (int) -1 ; | |
14654 | wxBookCtrlEvent *result; | |
994141e6 RD |
14655 | PyObject * obj0 = 0 ; |
14656 | PyObject * obj1 = 0 ; | |
14657 | PyObject * obj2 = 0 ; | |
14658 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14659 | char *kwnames[] = { |
14660 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14661 | }; | |
14662 | ||
994141e6 RD |
14663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14664 | if (obj0) { | |
15afbcd0 RD |
14665 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14666 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14667 | } |
14668 | if (obj1) { | |
15afbcd0 RD |
14669 | arg2 = (int) SWIG_AsInt(obj1); |
14670 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14671 | } |
14672 | if (obj2) { | |
15afbcd0 RD |
14673 | arg3 = (int) SWIG_AsInt(obj2); |
14674 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14675 | } |
14676 | if (obj3) { | |
15afbcd0 RD |
14677 | arg4 = (int) SWIG_AsInt(obj3); |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14679 | } |
d14a1e28 RD |
14680 | { |
14681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14682 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14683 | ||
14684 | wxPyEndAllowThreads(__tstate); | |
14685 | if (PyErr_Occurred()) SWIG_fail; | |
14686 | } | |
15afbcd0 | 14687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14688 | return resultobj; |
14689 | fail: | |
14690 | return NULL; | |
14691 | } | |
14692 | ||
14693 | ||
14694 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14695 | PyObject *resultobj; | |
14696 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14697 | int result; | |
14698 | PyObject * obj0 = 0 ; | |
14699 | char *kwnames[] = { | |
14700 | (char *) "self", NULL | |
14701 | }; | |
14702 | ||
14703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14706 | { |
14707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14708 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14709 | ||
14710 | wxPyEndAllowThreads(__tstate); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
14712 | } | |
15afbcd0 | 14713 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14714 | return resultobj; |
14715 | fail: | |
14716 | return NULL; | |
14717 | } | |
14718 | ||
14719 | ||
14720 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14721 | PyObject *resultobj; | |
14722 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14723 | int arg2 ; | |
14724 | PyObject * obj0 = 0 ; | |
994141e6 | 14725 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14726 | char *kwnames[] = { |
14727 | (char *) "self",(char *) "nSel", NULL | |
14728 | }; | |
14729 | ||
994141e6 | 14730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14733 | arg2 = (int) SWIG_AsInt(obj1); | |
14734 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14735 | { |
14736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14737 | (arg1)->SetSelection(arg2); | |
14738 | ||
14739 | wxPyEndAllowThreads(__tstate); | |
14740 | if (PyErr_Occurred()) SWIG_fail; | |
14741 | } | |
14742 | Py_INCREF(Py_None); resultobj = Py_None; | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
14746 | } | |
14747 | ||
14748 | ||
14749 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14750 | PyObject *resultobj; | |
14751 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14752 | int result; | |
14753 | PyObject * obj0 = 0 ; | |
14754 | char *kwnames[] = { | |
14755 | (char *) "self", NULL | |
14756 | }; | |
14757 | ||
14758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14761 | { |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14763 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
15afbcd0 | 14768 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14769 | return resultobj; |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14776 | PyObject *resultobj; | |
14777 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14778 | int arg2 ; | |
14779 | PyObject * obj0 = 0 ; | |
994141e6 | 14780 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14781 | char *kwnames[] = { |
14782 | (char *) "self",(char *) "nOldSel", NULL | |
14783 | }; | |
14784 | ||
994141e6 | 14785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14788 | arg2 = (int) SWIG_AsInt(obj1); | |
14789 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14790 | { |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | (arg1)->SetOldSelection(arg2); | |
14793 | ||
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | Py_INCREF(Py_None); resultobj = Py_None; | |
14798 | return resultobj; | |
14799 | fail: | |
14800 | return NULL; | |
14801 | } | |
14802 | ||
14803 | ||
14804 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14805 | PyObject *obj; | |
14806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14807 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14808 | Py_INCREF(obj); | |
14809 | return Py_BuildValue((char *)""); | |
14810 | } | |
14811 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14812 | PyObject *resultobj; | |
14813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14814 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14815 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14816 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14817 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14818 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14819 | long arg5 = (long) 0 ; | |
14820 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14821 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14822 | wxNotebook *result; | |
14823 | wxPoint temp3 ; | |
14824 | wxSize temp4 ; | |
e811c8ce | 14825 | bool temp6 = False ; |
d14a1e28 | 14826 | PyObject * obj0 = 0 ; |
994141e6 | 14827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14828 | PyObject * obj2 = 0 ; |
14829 | PyObject * obj3 = 0 ; | |
994141e6 | 14830 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14831 | PyObject * obj5 = 0 ; |
14832 | char *kwnames[] = { | |
14833 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14834 | }; | |
14835 | ||
4f89f6a3 | 14836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14839 | if (obj1) { |
14840 | arg2 = (int) SWIG_AsInt(obj1); | |
14841 | if (PyErr_Occurred()) SWIG_fail; | |
14842 | } | |
d14a1e28 RD |
14843 | if (obj2) { |
14844 | { | |
14845 | arg3 = &temp3; | |
14846 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14847 | } | |
14848 | } | |
14849 | if (obj3) { | |
14850 | { | |
14851 | arg4 = &temp4; | |
14852 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14853 | } | |
14854 | } | |
994141e6 | 14855 | if (obj4) { |
15afbcd0 RD |
14856 | arg5 = (long) SWIG_AsLong(obj4); |
14857 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14858 | } |
d14a1e28 RD |
14859 | if (obj5) { |
14860 | { | |
14861 | arg6 = wxString_in_helper(obj5); | |
14862 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 14863 | temp6 = True; |
d14a1e28 RD |
14864 | } |
14865 | } | |
14866 | { | |
14867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14868 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14869 | ||
14870 | wxPyEndAllowThreads(__tstate); | |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
14872 | } | |
14873 | { | |
14874 | resultobj = wxPyMake_wxObject(result); | |
14875 | } | |
14876 | { | |
14877 | if (temp6) | |
14878 | delete arg6; | |
14879 | } | |
14880 | return resultobj; | |
14881 | fail: | |
14882 | { | |
14883 | if (temp6) | |
14884 | delete arg6; | |
14885 | } | |
14886 | return NULL; | |
14887 | } | |
14888 | ||
14889 | ||
14890 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14891 | PyObject *resultobj; | |
14892 | wxNotebook *result; | |
14893 | char *kwnames[] = { | |
14894 | NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14898 | { | |
14899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14900 | result = (wxNotebook *)new wxNotebook(); | |
14901 | ||
14902 | wxPyEndAllowThreads(__tstate); | |
14903 | if (PyErr_Occurred()) SWIG_fail; | |
14904 | } | |
14905 | { | |
14906 | resultobj = wxPyMake_wxObject(result); | |
14907 | } | |
14908 | return resultobj; | |
14909 | fail: | |
14910 | return NULL; | |
14911 | } | |
14912 | ||
14913 | ||
14914 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14915 | PyObject *resultobj; | |
14916 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14917 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 14918 | int arg3 ; |
d14a1e28 RD |
14919 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14920 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14921 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14922 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14923 | long arg6 = (long) 0 ; | |
14924 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14925 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14926 | bool result; | |
14927 | wxPoint temp4 ; | |
14928 | wxSize temp5 ; | |
e811c8ce | 14929 | bool temp7 = False ; |
d14a1e28 RD |
14930 | PyObject * obj0 = 0 ; |
14931 | PyObject * obj1 = 0 ; | |
994141e6 | 14932 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14933 | PyObject * obj3 = 0 ; |
14934 | PyObject * obj4 = 0 ; | |
994141e6 | 14935 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14936 | PyObject * obj6 = 0 ; |
14937 | char *kwnames[] = { | |
14938 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14939 | }; | |
14940 | ||
994141e6 | 14941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
14942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14946 | arg3 = (int) SWIG_AsInt(obj2); | |
14947 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14948 | if (obj3) { |
14949 | { | |
14950 | arg4 = &temp4; | |
14951 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14952 | } | |
14953 | } | |
14954 | if (obj4) { | |
14955 | { | |
14956 | arg5 = &temp5; | |
14957 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14958 | } | |
14959 | } | |
994141e6 | 14960 | if (obj5) { |
15afbcd0 RD |
14961 | arg6 = (long) SWIG_AsLong(obj5); |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14963 | } |
d14a1e28 RD |
14964 | if (obj6) { |
14965 | { | |
14966 | arg7 = wxString_in_helper(obj6); | |
14967 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14968 | temp7 = True; |
d14a1e28 RD |
14969 | } |
14970 | } | |
14971 | { | |
14972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14973 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14974 | ||
14975 | wxPyEndAllowThreads(__tstate); | |
14976 | if (PyErr_Occurred()) SWIG_fail; | |
14977 | } | |
4f89f6a3 RD |
14978 | { |
14979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14980 | } | |
d14a1e28 RD |
14981 | { |
14982 | if (temp7) | |
14983 | delete arg7; | |
14984 | } | |
14985 | return resultobj; | |
14986 | fail: | |
14987 | { | |
14988 | if (temp7) | |
14989 | delete arg7; | |
14990 | } | |
14991 | return NULL; | |
14992 | } | |
14993 | ||
14994 | ||
14995 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14996 | PyObject *resultobj; | |
14997 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14998 | int result; | |
14999 | PyObject * obj0 = 0 ; | |
15000 | char *kwnames[] = { | |
15001 | (char *) "self", NULL | |
15002 | }; | |
15003 | ||
15004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15007 | { |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
15afbcd0 | 15014 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15015 | return resultobj; |
15016 | fail: | |
15017 | return NULL; | |
15018 | } | |
15019 | ||
15020 | ||
15021 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15022 | PyObject *resultobj; | |
15023 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15024 | wxSize *arg2 = 0 ; | |
15025 | wxSize temp2 ; | |
15026 | PyObject * obj0 = 0 ; | |
15027 | PyObject * obj1 = 0 ; | |
15028 | char *kwnames[] = { | |
15029 | (char *) "self",(char *) "padding", NULL | |
15030 | }; | |
15031 | ||
15032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15035 | { |
15036 | arg2 = &temp2; | |
15037 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15038 | } | |
15039 | { | |
15040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15041 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15042 | ||
15043 | wxPyEndAllowThreads(__tstate); | |
15044 | if (PyErr_Occurred()) SWIG_fail; | |
15045 | } | |
15046 | Py_INCREF(Py_None); resultobj = Py_None; | |
15047 | return resultobj; | |
15048 | fail: | |
15049 | return NULL; | |
15050 | } | |
15051 | ||
15052 | ||
15053 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15054 | PyObject *resultobj; | |
15055 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15056 | wxSize *arg2 = 0 ; | |
15057 | wxSize temp2 ; | |
15058 | PyObject * obj0 = 0 ; | |
15059 | PyObject * obj1 = 0 ; | |
15060 | char *kwnames[] = { | |
15061 | (char *) "self",(char *) "sz", NULL | |
15062 | }; | |
15063 | ||
15064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15067 | { |
15068 | arg2 = &temp2; | |
15069 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15070 | } | |
15071 | { | |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15074 | ||
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
15078 | Py_INCREF(Py_None); resultobj = Py_None; | |
15079 | return resultobj; | |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj; | |
15087 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15088 | wxPoint *arg2 = 0 ; | |
15089 | long *arg3 = (long *) 0 ; | |
15090 | int result; | |
15091 | wxPoint temp2 ; | |
15092 | long temp3 ; | |
15093 | PyObject * obj0 = 0 ; | |
15094 | PyObject * obj1 = 0 ; | |
15095 | char *kwnames[] = { | |
15096 | (char *) "self",(char *) "pt", NULL | |
15097 | }; | |
15098 | ||
15099 | arg3 = &temp3; | |
15100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15103 | { |
15104 | arg2 = &temp2; | |
15105 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15106 | } | |
15107 | { | |
15108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15109 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15110 | ||
15111 | wxPyEndAllowThreads(__tstate); | |
15112 | if (PyErr_Occurred()) SWIG_fail; | |
15113 | } | |
15afbcd0 | 15114 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15115 | { |
15116 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15117 | resultobj = t_output_helper(resultobj,o); | |
15118 | } | |
15119 | return resultobj; | |
15120 | fail: | |
15121 | return NULL; | |
15122 | } | |
15123 | ||
15124 | ||
15125 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15126 | PyObject *resultobj; | |
15127 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15128 | wxSize *arg2 = 0 ; | |
15129 | wxSize result; | |
15130 | wxSize temp2 ; | |
15131 | PyObject * obj0 = 0 ; | |
15132 | PyObject * obj1 = 0 ; | |
15133 | char *kwnames[] = { | |
15134 | (char *) "self",(char *) "sizePage", NULL | |
15135 | }; | |
15136 | ||
15137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15140 | { |
15141 | arg2 = &temp2; | |
15142 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15143 | } | |
15144 | { | |
15145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15146 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15147 | ||
15148 | wxPyEndAllowThreads(__tstate); | |
15149 | if (PyErr_Occurred()) SWIG_fail; | |
15150 | } | |
15151 | { | |
15152 | wxSize * resultptr; | |
15153 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15154 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15155 | } |
15156 | return resultobj; | |
15157 | fail: | |
15158 | return NULL; | |
15159 | } | |
15160 | ||
15161 | ||
22bfe96c RD |
15162 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15163 | PyObject *resultobj; | |
15164 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15165 | wxVisualAttributes result; | |
15166 | PyObject * obj0 = 0 ; | |
15167 | char *kwnames[] = { | |
15168 | (char *) "variant", NULL | |
15169 | }; | |
15170 | ||
15171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15172 | if (obj0) { | |
15173 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
15174 | if (PyErr_Occurred()) SWIG_fail; | |
15175 | } | |
15176 | { | |
15177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15178 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15179 | ||
15180 | wxPyEndAllowThreads(__tstate); | |
15181 | if (PyErr_Occurred()) SWIG_fail; | |
15182 | } | |
15183 | { | |
15184 | wxVisualAttributes * resultptr; | |
15185 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15187 | } | |
15188 | return resultobj; | |
15189 | fail: | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
d14a1e28 RD |
15194 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { |
15195 | PyObject *obj; | |
15196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15197 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15198 | Py_INCREF(obj); | |
15199 | return Py_BuildValue((char *)""); | |
15200 | } | |
15201 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15202 | PyObject *resultobj; | |
15203 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15204 | int arg2 = (int) 0 ; | |
15205 | int arg3 = (int) -1 ; | |
15206 | int arg4 = (int) -1 ; | |
15207 | wxNotebookEvent *result; | |
994141e6 RD |
15208 | PyObject * obj0 = 0 ; |
15209 | PyObject * obj1 = 0 ; | |
15210 | PyObject * obj2 = 0 ; | |
15211 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15212 | char *kwnames[] = { |
15213 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15214 | }; | |
15215 | ||
994141e6 RD |
15216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15217 | if (obj0) { | |
15afbcd0 RD |
15218 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15219 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15220 | } |
15221 | if (obj1) { | |
15afbcd0 RD |
15222 | arg2 = (int) SWIG_AsInt(obj1); |
15223 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15224 | } |
15225 | if (obj2) { | |
15afbcd0 RD |
15226 | arg3 = (int) SWIG_AsInt(obj2); |
15227 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15228 | } |
15229 | if (obj3) { | |
15afbcd0 RD |
15230 | arg4 = (int) SWIG_AsInt(obj3); |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15232 | } |
d14a1e28 RD |
15233 | { |
15234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15235 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15236 | ||
15237 | wxPyEndAllowThreads(__tstate); | |
15238 | if (PyErr_Occurred()) SWIG_fail; | |
15239 | } | |
15afbcd0 | 15240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
15241 | return resultobj; |
15242 | fail: | |
15243 | return NULL; | |
15244 | } | |
15245 | ||
15246 | ||
15247 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
15248 | PyObject *obj; | |
15249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15250 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15251 | Py_INCREF(obj); | |
15252 | return Py_BuildValue((char *)""); | |
15253 | } | |
15254 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15255 | PyObject *resultobj; | |
15256 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15257 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15258 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15259 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15260 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15261 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15262 | long arg5 = (long) 0 ; | |
15263 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15264 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15265 | wxListbook *result; | |
15266 | wxPoint temp3 ; | |
15267 | wxSize temp4 ; | |
e811c8ce | 15268 | bool temp6 = False ; |
d14a1e28 | 15269 | PyObject * obj0 = 0 ; |
994141e6 | 15270 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15271 | PyObject * obj2 = 0 ; |
15272 | PyObject * obj3 = 0 ; | |
994141e6 | 15273 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15274 | PyObject * obj5 = 0 ; |
15275 | char *kwnames[] = { | |
15276 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15277 | }; | |
15278 | ||
4f89f6a3 | 15279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
15282 | if (obj1) { |
15283 | arg2 = (int) SWIG_AsInt(obj1); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
d14a1e28 RD |
15286 | if (obj2) { |
15287 | { | |
15288 | arg3 = &temp3; | |
15289 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15290 | } | |
15291 | } | |
15292 | if (obj3) { | |
15293 | { | |
15294 | arg4 = &temp4; | |
15295 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15296 | } | |
15297 | } | |
994141e6 | 15298 | if (obj4) { |
15afbcd0 RD |
15299 | arg5 = (long) SWIG_AsLong(obj4); |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15301 | } |
d14a1e28 RD |
15302 | if (obj5) { |
15303 | { | |
15304 | arg6 = wxString_in_helper(obj5); | |
15305 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15306 | temp6 = True; |
d14a1e28 RD |
15307 | } |
15308 | } | |
15309 | { | |
15310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15311 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15312 | ||
15313 | wxPyEndAllowThreads(__tstate); | |
15314 | if (PyErr_Occurred()) SWIG_fail; | |
15315 | } | |
15afbcd0 | 15316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15317 | { |
15318 | if (temp6) | |
15319 | delete arg6; | |
15320 | } | |
15321 | return resultobj; | |
15322 | fail: | |
15323 | { | |
15324 | if (temp6) | |
15325 | delete arg6; | |
15326 | } | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
15331 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15332 | PyObject *resultobj; | |
15333 | wxListbook *result; | |
15334 | char *kwnames[] = { | |
15335 | NULL | |
15336 | }; | |
15337 | ||
15338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15339 | { | |
15340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15341 | result = (wxListbook *)new wxListbook(); | |
15342 | ||
15343 | wxPyEndAllowThreads(__tstate); | |
15344 | if (PyErr_Occurred()) SWIG_fail; | |
15345 | } | |
15afbcd0 | 15346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15347 | return resultobj; |
15348 | fail: | |
15349 | return NULL; | |
15350 | } | |
15351 | ||
15352 | ||
15353 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15354 | PyObject *resultobj; | |
15355 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15356 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 15357 | int arg3 ; |
d14a1e28 RD |
15358 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15359 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15360 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15361 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15362 | long arg6 = (long) 0 ; | |
15363 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15364 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15365 | bool result; | |
15366 | wxPoint temp4 ; | |
15367 | wxSize temp5 ; | |
e811c8ce | 15368 | bool temp7 = False ; |
d14a1e28 RD |
15369 | PyObject * obj0 = 0 ; |
15370 | PyObject * obj1 = 0 ; | |
994141e6 | 15371 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15372 | PyObject * obj3 = 0 ; |
15373 | PyObject * obj4 = 0 ; | |
994141e6 | 15374 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15375 | PyObject * obj6 = 0 ; |
15376 | char *kwnames[] = { | |
15377 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15378 | }; | |
15379 | ||
994141e6 | 15380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15385 | arg3 = (int) SWIG_AsInt(obj2); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15387 | if (obj3) { |
15388 | { | |
15389 | arg4 = &temp4; | |
15390 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15391 | } | |
15392 | } | |
15393 | if (obj4) { | |
15394 | { | |
15395 | arg5 = &temp5; | |
15396 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15397 | } | |
15398 | } | |
994141e6 | 15399 | if (obj5) { |
15afbcd0 RD |
15400 | arg6 = (long) SWIG_AsLong(obj5); |
15401 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15402 | } |
d14a1e28 RD |
15403 | if (obj6) { |
15404 | { | |
15405 | arg7 = wxString_in_helper(obj6); | |
15406 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15407 | temp7 = True; |
d14a1e28 RD |
15408 | } |
15409 | } | |
15410 | { | |
15411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15412 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15413 | ||
15414 | wxPyEndAllowThreads(__tstate); | |
15415 | if (PyErr_Occurred()) SWIG_fail; | |
15416 | } | |
4f89f6a3 RD |
15417 | { |
15418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15419 | } | |
d14a1e28 RD |
15420 | { |
15421 | if (temp7) | |
15422 | delete arg7; | |
15423 | } | |
15424 | return resultobj; | |
15425 | fail: | |
15426 | { | |
15427 | if (temp7) | |
15428 | delete arg7; | |
15429 | } | |
15430 | return NULL; | |
15431 | } | |
15432 | ||
15433 | ||
15434 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15435 | PyObject *resultobj; | |
15436 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15437 | bool result; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | char *kwnames[] = { | |
15440 | (char *) "self", NULL | |
15441 | }; | |
15442 | ||
15443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15446 | { |
15447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15448 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15449 | ||
15450 | wxPyEndAllowThreads(__tstate); | |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
15452 | } | |
4f89f6a3 RD |
15453 | { |
15454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15455 | } | |
d14a1e28 RD |
15456 | return resultobj; |
15457 | fail: | |
15458 | return NULL; | |
15459 | } | |
15460 | ||
15461 | ||
15462 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
15463 | PyObject *obj; | |
15464 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15465 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15466 | Py_INCREF(obj); | |
15467 | return Py_BuildValue((char *)""); | |
15468 | } | |
15469 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15470 | PyObject *resultobj; | |
15471 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15472 | int arg2 = (int) 0 ; | |
15473 | int arg3 = (int) -1 ; | |
15474 | int arg4 = (int) -1 ; | |
15475 | wxListbookEvent *result; | |
994141e6 RD |
15476 | PyObject * obj0 = 0 ; |
15477 | PyObject * obj1 = 0 ; | |
15478 | PyObject * obj2 = 0 ; | |
15479 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15480 | char *kwnames[] = { |
15481 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15482 | }; | |
15483 | ||
994141e6 RD |
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15485 | if (obj0) { | |
15afbcd0 RD |
15486 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15487 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15488 | } |
15489 | if (obj1) { | |
15afbcd0 RD |
15490 | arg2 = (int) SWIG_AsInt(obj1); |
15491 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15492 | } |
15493 | if (obj2) { | |
15afbcd0 RD |
15494 | arg3 = (int) SWIG_AsInt(obj2); |
15495 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15496 | } |
15497 | if (obj3) { | |
15afbcd0 RD |
15498 | arg4 = (int) SWIG_AsInt(obj3); |
15499 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15500 | } |
d14a1e28 RD |
15501 | { |
15502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15503 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15504 | ||
15505 | wxPyEndAllowThreads(__tstate); | |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
15507 | } | |
15afbcd0 | 15508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
15509 | return resultobj; |
15510 | fail: | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15516 | PyObject *obj; | |
15517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15518 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15519 | Py_INCREF(obj); | |
15520 | return Py_BuildValue((char *)""); | |
15521 | } | |
15522 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15523 | PyObject *resultobj; | |
15524 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15525 | wxBookCtrlSizer *result; | |
15526 | PyObject * obj0 = 0 ; | |
15527 | char *kwnames[] = { | |
15528 | (char *) "nb", NULL | |
15529 | }; | |
15530 | ||
15531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
15533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15534 | { |
15535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15536 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15537 | ||
15538 | wxPyEndAllowThreads(__tstate); | |
15539 | if (PyErr_Occurred()) SWIG_fail; | |
15540 | } | |
15afbcd0 | 15541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
15542 | return resultobj; |
15543 | fail: | |
15544 | return NULL; | |
15545 | } | |
15546 | ||
15547 | ||
15548 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15549 | PyObject *resultobj; | |
15550 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15551 | PyObject * obj0 = 0 ; | |
15552 | char *kwnames[] = { | |
15553 | (char *) "self", NULL | |
15554 | }; | |
15555 | ||
15556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15559 | { |
15560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15561 | (arg1)->RecalcSizes(); | |
15562 | ||
15563 | wxPyEndAllowThreads(__tstate); | |
15564 | if (PyErr_Occurred()) SWIG_fail; | |
15565 | } | |
15566 | Py_INCREF(Py_None); resultobj = Py_None; | |
15567 | return resultobj; | |
15568 | fail: | |
15569 | return NULL; | |
15570 | } | |
15571 | ||
15572 | ||
15573 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15574 | PyObject *resultobj; | |
15575 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15576 | wxSize result; | |
15577 | PyObject * obj0 = 0 ; | |
15578 | char *kwnames[] = { | |
15579 | (char *) "self", NULL | |
15580 | }; | |
15581 | ||
15582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15585 | { |
15586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15587 | result = (arg1)->CalcMin(); | |
15588 | ||
15589 | wxPyEndAllowThreads(__tstate); | |
15590 | if (PyErr_Occurred()) SWIG_fail; | |
15591 | } | |
15592 | { | |
15593 | wxSize * resultptr; | |
15594 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15596 | } |
15597 | return resultobj; | |
15598 | fail: | |
15599 | return NULL; | |
15600 | } | |
15601 | ||
15602 | ||
15603 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15604 | PyObject *resultobj; | |
15605 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15606 | wxBookCtrl *result; | |
15607 | PyObject * obj0 = 0 ; | |
15608 | char *kwnames[] = { | |
15609 | (char *) "self", NULL | |
15610 | }; | |
15611 | ||
15612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15615 | { |
15616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15617 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15618 | ||
15619 | wxPyEndAllowThreads(__tstate); | |
15620 | if (PyErr_Occurred()) SWIG_fail; | |
15621 | } | |
15afbcd0 | 15622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
15623 | return resultobj; |
15624 | fail: | |
15625 | return NULL; | |
15626 | } | |
15627 | ||
15628 | ||
15629 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15630 | PyObject *obj; | |
15631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15632 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15633 | Py_INCREF(obj); | |
15634 | return Py_BuildValue((char *)""); | |
15635 | } | |
15636 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15637 | PyObject *resultobj; | |
15638 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15639 | wxNotebookSizer *result; | |
15640 | PyObject * obj0 = 0 ; | |
15641 | char *kwnames[] = { | |
15642 | (char *) "nb", NULL | |
15643 | }; | |
15644 | ||
15645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15648 | { |
15649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15650 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15651 | ||
15652 | wxPyEndAllowThreads(__tstate); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
15654 | } | |
15afbcd0 | 15655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
15656 | return resultobj; |
15657 | fail: | |
15658 | return NULL; | |
15659 | } | |
15660 | ||
15661 | ||
15662 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15663 | PyObject *resultobj; | |
15664 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15665 | PyObject * obj0 = 0 ; | |
15666 | char *kwnames[] = { | |
15667 | (char *) "self", NULL | |
15668 | }; | |
15669 | ||
15670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15673 | { |
15674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15675 | (arg1)->RecalcSizes(); | |
15676 | ||
15677 | wxPyEndAllowThreads(__tstate); | |
15678 | if (PyErr_Occurred()) SWIG_fail; | |
15679 | } | |
15680 | Py_INCREF(Py_None); resultobj = Py_None; | |
15681 | return resultobj; | |
15682 | fail: | |
15683 | return NULL; | |
15684 | } | |
15685 | ||
15686 | ||
15687 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15688 | PyObject *resultobj; | |
15689 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15690 | wxSize result; | |
15691 | PyObject * obj0 = 0 ; | |
15692 | char *kwnames[] = { | |
15693 | (char *) "self", NULL | |
15694 | }; | |
15695 | ||
15696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15699 | { |
15700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15701 | result = (arg1)->CalcMin(); | |
15702 | ||
15703 | wxPyEndAllowThreads(__tstate); | |
15704 | if (PyErr_Occurred()) SWIG_fail; | |
15705 | } | |
15706 | { | |
15707 | wxSize * resultptr; | |
15708 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15710 | } |
15711 | return resultobj; | |
15712 | fail: | |
15713 | return NULL; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15718 | PyObject *resultobj; | |
15719 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15720 | wxNotebook *result; | |
15721 | PyObject * obj0 = 0 ; | |
15722 | char *kwnames[] = { | |
15723 | (char *) "self", NULL | |
15724 | }; | |
15725 | ||
15726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15729 | { |
15730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15731 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15732 | ||
15733 | wxPyEndAllowThreads(__tstate); | |
15734 | if (PyErr_Occurred()) SWIG_fail; | |
15735 | } | |
15736 | { | |
15737 | resultobj = wxPyMake_wxObject(result); | |
15738 | } | |
15739 | return resultobj; | |
15740 | fail: | |
15741 | return NULL; | |
15742 | } | |
15743 | ||
15744 | ||
15745 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15746 | PyObject *obj; | |
15747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15748 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15749 | Py_INCREF(obj); | |
15750 | return Py_BuildValue((char *)""); | |
15751 | } | |
15752 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15753 | PyObject *resultobj; | |
15754 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15755 | int result; | |
15756 | PyObject * obj0 = 0 ; | |
15757 | char *kwnames[] = { | |
15758 | (char *) "self", NULL | |
15759 | }; | |
15760 | ||
15761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15764 | { |
15765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15766 | result = (int)(arg1)->GetId(); | |
15767 | ||
15768 | wxPyEndAllowThreads(__tstate); | |
15769 | if (PyErr_Occurred()) SWIG_fail; | |
15770 | } | |
15afbcd0 | 15771 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15772 | return resultobj; |
15773 | fail: | |
15774 | return NULL; | |
15775 | } | |
15776 | ||
15777 | ||
15778 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15779 | PyObject *resultobj; | |
15780 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15781 | wxControl *result; | |
15782 | PyObject * obj0 = 0 ; | |
15783 | char *kwnames[] = { | |
15784 | (char *) "self", NULL | |
15785 | }; | |
15786 | ||
15787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15790 | { |
15791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15792 | result = (wxControl *)(arg1)->GetControl(); | |
15793 | ||
15794 | wxPyEndAllowThreads(__tstate); | |
15795 | if (PyErr_Occurred()) SWIG_fail; | |
15796 | } | |
15797 | { | |
15798 | resultobj = wxPyMake_wxObject(result); | |
15799 | } | |
15800 | return resultobj; | |
15801 | fail: | |
15802 | return NULL; | |
15803 | } | |
15804 | ||
15805 | ||
15806 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15807 | PyObject *resultobj; | |
15808 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15809 | wxToolBarBase *result; | |
15810 | PyObject * obj0 = 0 ; | |
15811 | char *kwnames[] = { | |
15812 | (char *) "self", NULL | |
15813 | }; | |
15814 | ||
15815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15818 | { |
15819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15820 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15821 | ||
15822 | wxPyEndAllowThreads(__tstate); | |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
15825 | { | |
15826 | resultobj = wxPyMake_wxObject(result); | |
15827 | } | |
15828 | return resultobj; | |
15829 | fail: | |
15830 | return NULL; | |
15831 | } | |
15832 | ||
15833 | ||
15834 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15835 | PyObject *resultobj; | |
15836 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15837 | int result; | |
15838 | PyObject * obj0 = 0 ; | |
15839 | char *kwnames[] = { | |
15840 | (char *) "self", NULL | |
15841 | }; | |
15842 | ||
15843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15846 | { |
15847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15848 | result = (int)(arg1)->IsButton(); | |
15849 | ||
15850 | wxPyEndAllowThreads(__tstate); | |
15851 | if (PyErr_Occurred()) SWIG_fail; | |
15852 | } | |
15afbcd0 | 15853 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15854 | return resultobj; |
15855 | fail: | |
15856 | return NULL; | |
15857 | } | |
15858 | ||
15859 | ||
15860 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15861 | PyObject *resultobj; | |
15862 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15863 | int result; | |
15864 | PyObject * obj0 = 0 ; | |
15865 | char *kwnames[] = { | |
15866 | (char *) "self", NULL | |
15867 | }; | |
15868 | ||
15869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15872 | { |
15873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15874 | result = (int)(arg1)->IsControl(); | |
15875 | ||
15876 | wxPyEndAllowThreads(__tstate); | |
15877 | if (PyErr_Occurred()) SWIG_fail; | |
15878 | } | |
15afbcd0 | 15879 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15880 | return resultobj; |
15881 | fail: | |
15882 | return NULL; | |
15883 | } | |
15884 | ||
15885 | ||
15886 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15887 | PyObject *resultobj; | |
15888 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15889 | int result; | |
15890 | PyObject * obj0 = 0 ; | |
15891 | char *kwnames[] = { | |
15892 | (char *) "self", NULL | |
15893 | }; | |
15894 | ||
15895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15898 | { |
15899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15900 | result = (int)(arg1)->IsSeparator(); | |
15901 | ||
15902 | wxPyEndAllowThreads(__tstate); | |
15903 | if (PyErr_Occurred()) SWIG_fail; | |
15904 | } | |
15afbcd0 | 15905 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15906 | return resultobj; |
15907 | fail: | |
15908 | return NULL; | |
15909 | } | |
15910 | ||
15911 | ||
15912 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15913 | PyObject *resultobj; | |
15914 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15915 | int result; | |
15916 | PyObject * obj0 = 0 ; | |
15917 | char *kwnames[] = { | |
15918 | (char *) "self", NULL | |
15919 | }; | |
15920 | ||
15921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15924 | { |
15925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15926 | result = (int)(arg1)->GetStyle(); | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15afbcd0 | 15931 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15932 | return resultobj; |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15939 | PyObject *resultobj; | |
15940 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15941 | int result; | |
15942 | PyObject * obj0 = 0 ; | |
15943 | char *kwnames[] = { | |
15944 | (char *) "self", NULL | |
15945 | }; | |
15946 | ||
15947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15950 | { |
15951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15952 | result = (int)(arg1)->GetKind(); | |
15953 | ||
15954 | wxPyEndAllowThreads(__tstate); | |
15955 | if (PyErr_Occurred()) SWIG_fail; | |
15956 | } | |
15afbcd0 | 15957 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15958 | return resultobj; |
15959 | fail: | |
15960 | return NULL; | |
15961 | } | |
15962 | ||
15963 | ||
15964 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15965 | PyObject *resultobj; | |
15966 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15967 | bool result; | |
15968 | PyObject * obj0 = 0 ; | |
15969 | char *kwnames[] = { | |
15970 | (char *) "self", NULL | |
15971 | }; | |
15972 | ||
15973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15976 | { |
15977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15978 | result = (bool)(arg1)->IsEnabled(); | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
4f89f6a3 RD |
15983 | { |
15984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15985 | } | |
d14a1e28 RD |
15986 | return resultobj; |
15987 | fail: | |
15988 | return NULL; | |
15989 | } | |
15990 | ||
15991 | ||
15992 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15993 | PyObject *resultobj; | |
15994 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15995 | bool result; | |
15996 | PyObject * obj0 = 0 ; | |
15997 | char *kwnames[] = { | |
15998 | (char *) "self", NULL | |
15999 | }; | |
16000 | ||
16001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16004 | { |
16005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16006 | result = (bool)(arg1)->IsToggled(); | |
16007 | ||
16008 | wxPyEndAllowThreads(__tstate); | |
16009 | if (PyErr_Occurred()) SWIG_fail; | |
16010 | } | |
4f89f6a3 RD |
16011 | { |
16012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16013 | } | |
d14a1e28 RD |
16014 | return resultobj; |
16015 | fail: | |
16016 | return NULL; | |
16017 | } | |
16018 | ||
16019 | ||
16020 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16021 | PyObject *resultobj; | |
16022 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16023 | bool result; | |
16024 | PyObject * obj0 = 0 ; | |
16025 | char *kwnames[] = { | |
16026 | (char *) "self", NULL | |
16027 | }; | |
16028 | ||
16029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16032 | { |
16033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16034 | result = (bool)(arg1)->CanBeToggled(); | |
16035 | ||
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
4f89f6a3 RD |
16039 | { |
16040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16041 | } | |
d14a1e28 RD |
16042 | return resultobj; |
16043 | fail: | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj; | |
16050 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16051 | wxBitmap *result; | |
16052 | PyObject * obj0 = 0 ; | |
16053 | char *kwnames[] = { | |
16054 | (char *) "self", NULL | |
16055 | }; | |
16056 | ||
16057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16060 | { |
16061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16062 | { | |
16063 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16064 | result = (wxBitmap *) &_result_ref; | |
16065 | } | |
16066 | ||
16067 | wxPyEndAllowThreads(__tstate); | |
16068 | if (PyErr_Occurred()) SWIG_fail; | |
16069 | } | |
4276dc52 RD |
16070 | { |
16071 | wxBitmap* resultptr = new wxBitmap(*result); | |
16072 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16073 | } | |
d14a1e28 RD |
16074 | return resultobj; |
16075 | fail: | |
16076 | return NULL; | |
16077 | } | |
16078 | ||
16079 | ||
16080 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16081 | PyObject *resultobj; | |
16082 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16083 | wxBitmap *result; | |
16084 | PyObject * obj0 = 0 ; | |
16085 | char *kwnames[] = { | |
16086 | (char *) "self", NULL | |
16087 | }; | |
16088 | ||
16089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16092 | { |
16093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16094 | { | |
16095 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16096 | result = (wxBitmap *) &_result_ref; | |
16097 | } | |
16098 | ||
16099 | wxPyEndAllowThreads(__tstate); | |
16100 | if (PyErr_Occurred()) SWIG_fail; | |
16101 | } | |
4276dc52 RD |
16102 | { |
16103 | wxBitmap* resultptr = new wxBitmap(*result); | |
16104 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16105 | } | |
d14a1e28 RD |
16106 | return resultobj; |
16107 | fail: | |
16108 | return NULL; | |
16109 | } | |
16110 | ||
16111 | ||
16112 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16113 | PyObject *resultobj; | |
16114 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16115 | wxBitmap result; | |
16116 | PyObject * obj0 = 0 ; | |
16117 | char *kwnames[] = { | |
16118 | (char *) "self", NULL | |
16119 | }; | |
16120 | ||
16121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16124 | { |
16125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16126 | result = (arg1)->GetBitmap(); | |
16127 | ||
16128 | wxPyEndAllowThreads(__tstate); | |
16129 | if (PyErr_Occurred()) SWIG_fail; | |
16130 | } | |
16131 | { | |
16132 | wxBitmap * resultptr; | |
16133 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 16134 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
16135 | } |
16136 | return resultobj; | |
16137 | fail: | |
16138 | return NULL; | |
16139 | } | |
16140 | ||
16141 | ||
16142 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16143 | PyObject *resultobj; | |
16144 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16145 | wxString result; | |
16146 | PyObject * obj0 = 0 ; | |
16147 | char *kwnames[] = { | |
16148 | (char *) "self", NULL | |
16149 | }; | |
16150 | ||
16151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16154 | { |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | result = (arg1)->GetLabel(); | |
16157 | ||
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
16161 | { | |
16162 | #if wxUSE_UNICODE | |
16163 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16164 | #else | |
16165 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16166 | #endif | |
16167 | } | |
16168 | return resultobj; | |
16169 | fail: | |
16170 | return NULL; | |
16171 | } | |
16172 | ||
16173 | ||
16174 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16175 | PyObject *resultobj; | |
16176 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16177 | wxString result; | |
16178 | PyObject * obj0 = 0 ; | |
16179 | char *kwnames[] = { | |
16180 | (char *) "self", NULL | |
16181 | }; | |
16182 | ||
16183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16186 | { |
16187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16188 | result = (arg1)->GetShortHelp(); | |
16189 | ||
16190 | wxPyEndAllowThreads(__tstate); | |
16191 | if (PyErr_Occurred()) SWIG_fail; | |
16192 | } | |
16193 | { | |
16194 | #if wxUSE_UNICODE | |
16195 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16196 | #else | |
16197 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16198 | #endif | |
16199 | } | |
16200 | return resultobj; | |
16201 | fail: | |
16202 | return NULL; | |
16203 | } | |
16204 | ||
16205 | ||
16206 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16207 | PyObject *resultobj; | |
16208 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16209 | wxString result; | |
16210 | PyObject * obj0 = 0 ; | |
16211 | char *kwnames[] = { | |
16212 | (char *) "self", NULL | |
16213 | }; | |
16214 | ||
16215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16218 | { |
16219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16220 | result = (arg1)->GetLongHelp(); | |
16221 | ||
16222 | wxPyEndAllowThreads(__tstate); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
16225 | { | |
16226 | #if wxUSE_UNICODE | |
16227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16228 | #else | |
16229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16230 | #endif | |
16231 | } | |
16232 | return resultobj; | |
16233 | fail: | |
16234 | return NULL; | |
16235 | } | |
16236 | ||
16237 | ||
16238 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16239 | PyObject *resultobj; | |
16240 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16241 | bool arg2 ; | |
16242 | bool result; | |
16243 | PyObject * obj0 = 0 ; | |
16244 | PyObject * obj1 = 0 ; | |
16245 | char *kwnames[] = { | |
16246 | (char *) "self",(char *) "enable", NULL | |
16247 | }; | |
16248 | ||
16249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16252 | arg2 = (bool) SWIG_AsBool(obj1); | |
16253 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16254 | { |
16255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16256 | result = (bool)(arg1)->Enable(arg2); | |
16257 | ||
16258 | wxPyEndAllowThreads(__tstate); | |
16259 | if (PyErr_Occurred()) SWIG_fail; | |
16260 | } | |
4f89f6a3 RD |
16261 | { |
16262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16263 | } | |
d14a1e28 RD |
16264 | return resultobj; |
16265 | fail: | |
16266 | return NULL; | |
16267 | } | |
16268 | ||
16269 | ||
16270 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16271 | PyObject *resultobj; | |
16272 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16273 | PyObject * obj0 = 0 ; | |
16274 | char *kwnames[] = { | |
16275 | (char *) "self", NULL | |
16276 | }; | |
16277 | ||
16278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16281 | { |
16282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16283 | (arg1)->Toggle(); | |
16284 | ||
16285 | wxPyEndAllowThreads(__tstate); | |
16286 | if (PyErr_Occurred()) SWIG_fail; | |
16287 | } | |
16288 | Py_INCREF(Py_None); resultobj = Py_None; | |
16289 | return resultobj; | |
16290 | fail: | |
16291 | return NULL; | |
16292 | } | |
16293 | ||
16294 | ||
16295 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16296 | PyObject *resultobj; | |
16297 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16298 | bool arg2 ; | |
16299 | bool result; | |
16300 | PyObject * obj0 = 0 ; | |
16301 | PyObject * obj1 = 0 ; | |
16302 | char *kwnames[] = { | |
16303 | (char *) "self",(char *) "toggle", NULL | |
16304 | }; | |
16305 | ||
16306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16309 | arg2 = (bool) SWIG_AsBool(obj1); | |
16310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16311 | { |
16312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16313 | result = (bool)(arg1)->SetToggle(arg2); | |
16314 | ||
16315 | wxPyEndAllowThreads(__tstate); | |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
4f89f6a3 RD |
16318 | { |
16319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16320 | } | |
d14a1e28 RD |
16321 | return resultobj; |
16322 | fail: | |
16323 | return NULL; | |
16324 | } | |
16325 | ||
16326 | ||
16327 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16328 | PyObject *resultobj; | |
16329 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16330 | wxString *arg2 = 0 ; | |
16331 | bool result; | |
e811c8ce | 16332 | bool temp2 = False ; |
d14a1e28 RD |
16333 | PyObject * obj0 = 0 ; |
16334 | PyObject * obj1 = 0 ; | |
16335 | char *kwnames[] = { | |
16336 | (char *) "self",(char *) "help", NULL | |
16337 | }; | |
16338 | ||
16339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16342 | { |
16343 | arg2 = wxString_in_helper(obj1); | |
16344 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16345 | temp2 = True; |
d14a1e28 RD |
16346 | } |
16347 | { | |
16348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16349 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16350 | ||
16351 | wxPyEndAllowThreads(__tstate); | |
16352 | if (PyErr_Occurred()) SWIG_fail; | |
16353 | } | |
4f89f6a3 RD |
16354 | { |
16355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16356 | } | |
d14a1e28 RD |
16357 | { |
16358 | if (temp2) | |
16359 | delete arg2; | |
16360 | } | |
16361 | return resultobj; | |
16362 | fail: | |
16363 | { | |
16364 | if (temp2) | |
16365 | delete arg2; | |
16366 | } | |
16367 | return NULL; | |
16368 | } | |
16369 | ||
16370 | ||
16371 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16372 | PyObject *resultobj; | |
16373 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16374 | wxString *arg2 = 0 ; | |
16375 | bool result; | |
e811c8ce | 16376 | bool temp2 = False ; |
d14a1e28 RD |
16377 | PyObject * obj0 = 0 ; |
16378 | PyObject * obj1 = 0 ; | |
16379 | char *kwnames[] = { | |
16380 | (char *) "self",(char *) "help", NULL | |
16381 | }; | |
16382 | ||
16383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16386 | { |
16387 | arg2 = wxString_in_helper(obj1); | |
16388 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16389 | temp2 = True; |
d14a1e28 RD |
16390 | } |
16391 | { | |
16392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16393 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16394 | ||
16395 | wxPyEndAllowThreads(__tstate); | |
16396 | if (PyErr_Occurred()) SWIG_fail; | |
16397 | } | |
4f89f6a3 RD |
16398 | { |
16399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16400 | } | |
d14a1e28 RD |
16401 | { |
16402 | if (temp2) | |
16403 | delete arg2; | |
16404 | } | |
16405 | return resultobj; | |
16406 | fail: | |
16407 | { | |
16408 | if (temp2) | |
16409 | delete arg2; | |
16410 | } | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
16415 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16416 | PyObject *resultobj; | |
16417 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16418 | wxBitmap *arg2 = 0 ; | |
16419 | PyObject * obj0 = 0 ; | |
16420 | PyObject * obj1 = 0 ; | |
16421 | char *kwnames[] = { | |
16422 | (char *) "self",(char *) "bmp", NULL | |
16423 | }; | |
16424 | ||
16425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16428 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16429 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16430 | SWIG_fail; | |
d14a1e28 | 16431 | if (arg2 == NULL) { |
15afbcd0 RD |
16432 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16433 | SWIG_fail; | |
d14a1e28 RD |
16434 | } |
16435 | { | |
16436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16437 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16438 | ||
16439 | wxPyEndAllowThreads(__tstate); | |
16440 | if (PyErr_Occurred()) SWIG_fail; | |
16441 | } | |
16442 | Py_INCREF(Py_None); resultobj = Py_None; | |
16443 | return resultobj; | |
16444 | fail: | |
16445 | return NULL; | |
16446 | } | |
16447 | ||
16448 | ||
16449 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16450 | PyObject *resultobj; | |
16451 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16452 | wxBitmap *arg2 = 0 ; | |
16453 | PyObject * obj0 = 0 ; | |
16454 | PyObject * obj1 = 0 ; | |
16455 | char *kwnames[] = { | |
16456 | (char *) "self",(char *) "bmp", NULL | |
16457 | }; | |
16458 | ||
16459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16464 | SWIG_fail; | |
d14a1e28 | 16465 | if (arg2 == NULL) { |
15afbcd0 RD |
16466 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16467 | SWIG_fail; | |
d14a1e28 RD |
16468 | } |
16469 | { | |
16470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16471 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16472 | ||
16473 | wxPyEndAllowThreads(__tstate); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
16476 | Py_INCREF(Py_None); resultobj = Py_None; | |
16477 | return resultobj; | |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
16483 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16484 | PyObject *resultobj; | |
16485 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16486 | wxString *arg2 = 0 ; | |
e811c8ce | 16487 | bool temp2 = False ; |
d14a1e28 RD |
16488 | PyObject * obj0 = 0 ; |
16489 | PyObject * obj1 = 0 ; | |
16490 | char *kwnames[] = { | |
16491 | (char *) "self",(char *) "label", NULL | |
16492 | }; | |
16493 | ||
16494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16497 | { |
16498 | arg2 = wxString_in_helper(obj1); | |
16499 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16500 | temp2 = True; |
d14a1e28 RD |
16501 | } |
16502 | { | |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | (arg1)->SetLabel((wxString const &)*arg2); | |
16505 | ||
16506 | wxPyEndAllowThreads(__tstate); | |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
16508 | } | |
16509 | Py_INCREF(Py_None); resultobj = Py_None; | |
16510 | { | |
16511 | if (temp2) | |
16512 | delete arg2; | |
16513 | } | |
16514 | return resultobj; | |
16515 | fail: | |
16516 | { | |
16517 | if (temp2) | |
16518 | delete arg2; | |
16519 | } | |
16520 | return NULL; | |
16521 | } | |
16522 | ||
16523 | ||
16524 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16525 | PyObject *resultobj; | |
16526 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16527 | PyObject * obj0 = 0 ; | |
16528 | char *kwnames[] = { | |
16529 | (char *) "self", NULL | |
16530 | }; | |
16531 | ||
16532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16535 | { |
16536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16537 | (arg1)->Detach(); | |
16538 | ||
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | Py_INCREF(Py_None); resultobj = Py_None; | |
16543 | return resultobj; | |
16544 | fail: | |
16545 | return NULL; | |
16546 | } | |
16547 | ||
16548 | ||
16549 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16550 | PyObject *resultobj; | |
16551 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16552 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16553 | PyObject * obj0 = 0 ; | |
16554 | PyObject * obj1 = 0 ; | |
16555 | char *kwnames[] = { | |
16556 | (char *) "self",(char *) "tbar", NULL | |
16557 | }; | |
16558 | ||
16559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16564 | { |
16565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16566 | (arg1)->Attach(arg2); | |
16567 | ||
16568 | wxPyEndAllowThreads(__tstate); | |
16569 | if (PyErr_Occurred()) SWIG_fail; | |
16570 | } | |
16571 | Py_INCREF(Py_None); resultobj = Py_None; | |
16572 | return resultobj; | |
16573 | fail: | |
16574 | return NULL; | |
16575 | } | |
16576 | ||
16577 | ||
16578 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16579 | PyObject *resultobj; | |
16580 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16581 | PyObject *result; | |
16582 | PyObject * obj0 = 0 ; | |
16583 | char *kwnames[] = { | |
16584 | (char *) "self", NULL | |
16585 | }; | |
16586 | ||
16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16590 | { |
16591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16592 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16593 | ||
16594 | wxPyEndAllowThreads(__tstate); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | } | |
16597 | resultobj = result; | |
16598 | return resultobj; | |
16599 | fail: | |
16600 | return NULL; | |
16601 | } | |
16602 | ||
16603 | ||
16604 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16605 | PyObject *resultobj; | |
16606 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16607 | PyObject *arg2 = (PyObject *) 0 ; | |
16608 | PyObject * obj0 = 0 ; | |
16609 | PyObject * obj1 = 0 ; | |
16610 | char *kwnames[] = { | |
16611 | (char *) "self",(char *) "clientData", NULL | |
16612 | }; | |
16613 | ||
16614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16617 | arg2 = obj1; |
16618 | { | |
16619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16620 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16621 | ||
16622 | wxPyEndAllowThreads(__tstate); | |
16623 | if (PyErr_Occurred()) SWIG_fail; | |
16624 | } | |
16625 | Py_INCREF(Py_None); resultobj = Py_None; | |
16626 | return resultobj; | |
16627 | fail: | |
16628 | return NULL; | |
16629 | } | |
16630 | ||
16631 | ||
16632 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16633 | PyObject *obj; | |
16634 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16635 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16636 | Py_INCREF(obj); | |
16637 | return Py_BuildValue((char *)""); | |
16638 | } | |
16639 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16640 | PyObject *resultobj; | |
16641 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16642 | int arg2 ; | |
16643 | wxString *arg3 = 0 ; | |
16644 | wxBitmap *arg4 = 0 ; | |
16645 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16646 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16647 | int arg6 = (int) wxITEM_NORMAL ; | |
16648 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16649 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16650 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16651 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16652 | PyObject *arg9 = (PyObject *) NULL ; | |
16653 | wxToolBarToolBase *result; | |
e811c8ce RD |
16654 | bool temp3 = False ; |
16655 | bool temp7 = False ; | |
16656 | bool temp8 = False ; | |
d14a1e28 | 16657 | PyObject * obj0 = 0 ; |
994141e6 | 16658 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16659 | PyObject * obj2 = 0 ; |
16660 | PyObject * obj3 = 0 ; | |
16661 | PyObject * obj4 = 0 ; | |
994141e6 | 16662 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16663 | PyObject * obj6 = 0 ; |
16664 | PyObject * obj7 = 0 ; | |
16665 | PyObject * obj8 = 0 ; | |
16666 | char *kwnames[] = { | |
16667 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16668 | }; | |
16669 | ||
994141e6 | 16670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
16671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16673 | arg2 = (int) SWIG_AsInt(obj1); | |
16674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16675 | { |
16676 | arg3 = wxString_in_helper(obj2); | |
16677 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16678 | temp3 = True; |
d14a1e28 | 16679 | } |
15afbcd0 RD |
16680 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16681 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16682 | SWIG_fail; | |
d14a1e28 | 16683 | if (arg4 == NULL) { |
15afbcd0 RD |
16684 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16685 | SWIG_fail; | |
d14a1e28 RD |
16686 | } |
16687 | if (obj4) { | |
15afbcd0 RD |
16688 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16690 | SWIG_fail; | |
d14a1e28 | 16691 | if (arg5 == NULL) { |
15afbcd0 RD |
16692 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16693 | SWIG_fail; | |
d14a1e28 RD |
16694 | } |
16695 | } | |
994141e6 | 16696 | if (obj5) { |
15afbcd0 RD |
16697 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
16698 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16699 | } |
d14a1e28 RD |
16700 | if (obj6) { |
16701 | { | |
16702 | arg7 = wxString_in_helper(obj6); | |
16703 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 16704 | temp7 = True; |
d14a1e28 RD |
16705 | } |
16706 | } | |
16707 | if (obj7) { | |
16708 | { | |
16709 | arg8 = wxString_in_helper(obj7); | |
16710 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 16711 | temp8 = True; |
d14a1e28 RD |
16712 | } |
16713 | } | |
16714 | if (obj8) { | |
16715 | arg9 = obj8; | |
16716 | } | |
16717 | { | |
16718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16719 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16720 | ||
16721 | wxPyEndAllowThreads(__tstate); | |
16722 | if (PyErr_Occurred()) SWIG_fail; | |
16723 | } | |
16724 | { | |
16725 | resultobj = wxPyMake_wxObject(result); | |
16726 | } | |
16727 | { | |
16728 | if (temp3) | |
16729 | delete arg3; | |
16730 | } | |
16731 | { | |
16732 | if (temp7) | |
16733 | delete arg7; | |
16734 | } | |
16735 | { | |
16736 | if (temp8) | |
16737 | delete arg8; | |
16738 | } | |
16739 | return resultobj; | |
16740 | fail: | |
16741 | { | |
16742 | if (temp3) | |
16743 | delete arg3; | |
16744 | } | |
16745 | { | |
16746 | if (temp7) | |
16747 | delete arg7; | |
16748 | } | |
16749 | { | |
16750 | if (temp8) | |
16751 | delete arg8; | |
16752 | } | |
16753 | return NULL; | |
16754 | } | |
16755 | ||
16756 | ||
16757 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16758 | PyObject *resultobj; | |
16759 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16760 | size_t arg2 ; | |
16761 | int arg3 ; | |
16762 | wxString *arg4 = 0 ; | |
16763 | wxBitmap *arg5 = 0 ; | |
16764 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16765 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16766 | int arg7 = (int) wxITEM_NORMAL ; | |
16767 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16768 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16769 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16770 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16771 | PyObject *arg10 = (PyObject *) NULL ; | |
16772 | wxToolBarToolBase *result; | |
e811c8ce RD |
16773 | bool temp4 = False ; |
16774 | bool temp8 = False ; | |
16775 | bool temp9 = False ; | |
d14a1e28 RD |
16776 | PyObject * obj0 = 0 ; |
16777 | PyObject * obj1 = 0 ; | |
994141e6 | 16778 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16779 | PyObject * obj3 = 0 ; |
16780 | PyObject * obj4 = 0 ; | |
16781 | PyObject * obj5 = 0 ; | |
994141e6 | 16782 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16783 | PyObject * obj7 = 0 ; |
16784 | PyObject * obj8 = 0 ; | |
16785 | PyObject * obj9 = 0 ; | |
16786 | char *kwnames[] = { | |
16787 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16788 | }; | |
16789 | ||
994141e6 | 16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
16791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16793 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | arg3 = (int) SWIG_AsInt(obj2); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16797 | { |
16798 | arg4 = wxString_in_helper(obj3); | |
16799 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16800 | temp4 = True; |
d14a1e28 | 16801 | } |
15afbcd0 RD |
16802 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16803 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16804 | SWIG_fail; | |
d14a1e28 | 16805 | if (arg5 == NULL) { |
15afbcd0 RD |
16806 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16807 | SWIG_fail; | |
d14a1e28 RD |
16808 | } |
16809 | if (obj5) { | |
15afbcd0 RD |
16810 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
16811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16812 | SWIG_fail; | |
d14a1e28 | 16813 | if (arg6 == NULL) { |
15afbcd0 RD |
16814 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16815 | SWIG_fail; | |
d14a1e28 RD |
16816 | } |
16817 | } | |
994141e6 | 16818 | if (obj6) { |
15afbcd0 RD |
16819 | arg7 = (wxItemKind) SWIG_AsInt(obj6); |
16820 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16821 | } |
d14a1e28 RD |
16822 | if (obj7) { |
16823 | { | |
16824 | arg8 = wxString_in_helper(obj7); | |
16825 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 16826 | temp8 = True; |
d14a1e28 RD |
16827 | } |
16828 | } | |
16829 | if (obj8) { | |
16830 | { | |
16831 | arg9 = wxString_in_helper(obj8); | |
16832 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 16833 | temp9 = True; |
d14a1e28 RD |
16834 | } |
16835 | } | |
16836 | if (obj9) { | |
16837 | arg10 = obj9; | |
16838 | } | |
16839 | { | |
16840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16841 | 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); | |
16842 | ||
16843 | wxPyEndAllowThreads(__tstate); | |
16844 | if (PyErr_Occurred()) SWIG_fail; | |
16845 | } | |
16846 | { | |
16847 | resultobj = wxPyMake_wxObject(result); | |
16848 | } | |
16849 | { | |
16850 | if (temp4) | |
16851 | delete arg4; | |
16852 | } | |
16853 | { | |
16854 | if (temp8) | |
16855 | delete arg8; | |
16856 | } | |
16857 | { | |
16858 | if (temp9) | |
16859 | delete arg9; | |
16860 | } | |
16861 | return resultobj; | |
16862 | fail: | |
16863 | { | |
16864 | if (temp4) | |
16865 | delete arg4; | |
16866 | } | |
16867 | { | |
16868 | if (temp8) | |
16869 | delete arg8; | |
16870 | } | |
16871 | { | |
16872 | if (temp9) | |
16873 | delete arg9; | |
16874 | } | |
16875 | return NULL; | |
16876 | } | |
16877 | ||
16878 | ||
3a04f143 RD |
16879 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
16880 | PyObject *resultobj; | |
16881 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16882 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16883 | wxToolBarToolBase *result; | |
16884 | PyObject * obj0 = 0 ; | |
16885 | PyObject * obj1 = 0 ; | |
16886 | char *kwnames[] = { | |
16887 | (char *) "self",(char *) "tool", NULL | |
16888 | }; | |
16889 | ||
16890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16893 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
16894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
16895 | { |
16896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16897 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16898 | ||
16899 | wxPyEndAllowThreads(__tstate); | |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
16901 | } | |
16902 | { | |
16903 | resultobj = wxPyMake_wxObject(result); | |
16904 | } | |
16905 | return resultobj; | |
16906 | fail: | |
16907 | return NULL; | |
16908 | } | |
16909 | ||
16910 | ||
16911 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16912 | PyObject *resultobj; | |
16913 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16914 | size_t arg2 ; | |
16915 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16916 | wxToolBarToolBase *result; | |
16917 | PyObject * obj0 = 0 ; | |
16918 | PyObject * obj1 = 0 ; | |
16919 | PyObject * obj2 = 0 ; | |
16920 | char *kwnames[] = { | |
16921 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16922 | }; | |
16923 | ||
16924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16927 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16928 | if (PyErr_Occurred()) SWIG_fail; | |
16929 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
16930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
16931 | { |
16932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16933 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16934 | ||
16935 | wxPyEndAllowThreads(__tstate); | |
16936 | if (PyErr_Occurred()) SWIG_fail; | |
16937 | } | |
16938 | { | |
16939 | resultobj = wxPyMake_wxObject(result); | |
16940 | } | |
16941 | return resultobj; | |
16942 | fail: | |
16943 | return NULL; | |
16944 | } | |
16945 | ||
16946 | ||
d14a1e28 RD |
16947 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
16948 | PyObject *resultobj; | |
16949 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16950 | wxControl *arg2 = (wxControl *) 0 ; | |
16951 | wxToolBarToolBase *result; | |
16952 | PyObject * obj0 = 0 ; | |
16953 | PyObject * obj1 = 0 ; | |
16954 | char *kwnames[] = { | |
16955 | (char *) "self",(char *) "control", NULL | |
16956 | }; | |
16957 | ||
16958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16963 | { |
16964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16965 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16966 | ||
16967 | wxPyEndAllowThreads(__tstate); | |
16968 | if (PyErr_Occurred()) SWIG_fail; | |
16969 | } | |
16970 | { | |
16971 | resultobj = wxPyMake_wxObject(result); | |
16972 | } | |
16973 | return resultobj; | |
16974 | fail: | |
16975 | return NULL; | |
16976 | } | |
16977 | ||
16978 | ||
16979 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16980 | PyObject *resultobj; | |
16981 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16982 | size_t arg2 ; | |
16983 | wxControl *arg3 = (wxControl *) 0 ; | |
16984 | wxToolBarToolBase *result; | |
16985 | PyObject * obj0 = 0 ; | |
16986 | PyObject * obj1 = 0 ; | |
16987 | PyObject * obj2 = 0 ; | |
16988 | char *kwnames[] = { | |
16989 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16990 | }; | |
16991 | ||
16992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16995 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16996 | if (PyErr_Occurred()) SWIG_fail; | |
16997 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
16998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16999 | { |
17000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17001 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17002 | ||
17003 | wxPyEndAllowThreads(__tstate); | |
17004 | if (PyErr_Occurred()) SWIG_fail; | |
17005 | } | |
17006 | { | |
17007 | resultobj = wxPyMake_wxObject(result); | |
17008 | } | |
17009 | return resultobj; | |
17010 | fail: | |
17011 | return NULL; | |
17012 | } | |
17013 | ||
17014 | ||
17015 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17016 | PyObject *resultobj; | |
17017 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17018 | int arg2 ; | |
17019 | wxControl *result; | |
17020 | PyObject * obj0 = 0 ; | |
994141e6 | 17021 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17022 | char *kwnames[] = { |
17023 | (char *) "self",(char *) "id", NULL | |
17024 | }; | |
17025 | ||
994141e6 | 17026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17029 | arg2 = (int) SWIG_AsInt(obj1); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17031 | { |
17032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17033 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17034 | ||
17035 | wxPyEndAllowThreads(__tstate); | |
17036 | if (PyErr_Occurred()) SWIG_fail; | |
17037 | } | |
17038 | { | |
17039 | resultobj = wxPyMake_wxObject(result); | |
17040 | } | |
17041 | return resultobj; | |
17042 | fail: | |
17043 | return NULL; | |
17044 | } | |
17045 | ||
17046 | ||
17047 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17048 | PyObject *resultobj; | |
17049 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17050 | wxToolBarToolBase *result; | |
17051 | PyObject * obj0 = 0 ; | |
17052 | char *kwnames[] = { | |
17053 | (char *) "self", NULL | |
17054 | }; | |
17055 | ||
17056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17059 | { |
17060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17061 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17062 | ||
17063 | wxPyEndAllowThreads(__tstate); | |
17064 | if (PyErr_Occurred()) SWIG_fail; | |
17065 | } | |
17066 | { | |
17067 | resultobj = wxPyMake_wxObject(result); | |
17068 | } | |
17069 | return resultobj; | |
17070 | fail: | |
17071 | return NULL; | |
17072 | } | |
17073 | ||
17074 | ||
17075 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17076 | PyObject *resultobj; | |
17077 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17078 | size_t arg2 ; | |
17079 | wxToolBarToolBase *result; | |
17080 | PyObject * obj0 = 0 ; | |
17081 | PyObject * obj1 = 0 ; | |
17082 | char *kwnames[] = { | |
17083 | (char *) "self",(char *) "pos", NULL | |
17084 | }; | |
17085 | ||
17086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17089 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17091 | { |
17092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17093 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17094 | ||
17095 | wxPyEndAllowThreads(__tstate); | |
17096 | if (PyErr_Occurred()) SWIG_fail; | |
17097 | } | |
17098 | { | |
17099 | resultobj = wxPyMake_wxObject(result); | |
17100 | } | |
17101 | return resultobj; | |
17102 | fail: | |
17103 | return NULL; | |
17104 | } | |
17105 | ||
17106 | ||
17107 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17108 | PyObject *resultobj; | |
17109 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17110 | int arg2 ; | |
17111 | wxToolBarToolBase *result; | |
17112 | PyObject * obj0 = 0 ; | |
994141e6 | 17113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17114 | char *kwnames[] = { |
17115 | (char *) "self",(char *) "id", NULL | |
17116 | }; | |
17117 | ||
994141e6 | 17118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17121 | arg2 = (int) SWIG_AsInt(obj1); | |
17122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17123 | { |
17124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17125 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17126 | ||
17127 | wxPyEndAllowThreads(__tstate); | |
17128 | if (PyErr_Occurred()) SWIG_fail; | |
17129 | } | |
17130 | { | |
17131 | resultobj = wxPyMake_wxObject(result); | |
17132 | } | |
17133 | return resultobj; | |
17134 | fail: | |
17135 | return NULL; | |
17136 | } | |
17137 | ||
17138 | ||
17139 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17140 | PyObject *resultobj; | |
17141 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17142 | size_t arg2 ; | |
17143 | bool result; | |
17144 | PyObject * obj0 = 0 ; | |
17145 | PyObject * obj1 = 0 ; | |
17146 | char *kwnames[] = { | |
17147 | (char *) "self",(char *) "pos", NULL | |
17148 | }; | |
17149 | ||
17150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17153 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17154 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17155 | { |
17156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17157 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17158 | ||
17159 | wxPyEndAllowThreads(__tstate); | |
17160 | if (PyErr_Occurred()) SWIG_fail; | |
17161 | } | |
4f89f6a3 RD |
17162 | { |
17163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17164 | } | |
d14a1e28 RD |
17165 | return resultobj; |
17166 | fail: | |
17167 | return NULL; | |
17168 | } | |
17169 | ||
17170 | ||
17171 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17172 | PyObject *resultobj; | |
17173 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17174 | int arg2 ; | |
17175 | bool result; | |
17176 | PyObject * obj0 = 0 ; | |
994141e6 | 17177 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17178 | char *kwnames[] = { |
17179 | (char *) "self",(char *) "id", NULL | |
17180 | }; | |
17181 | ||
994141e6 | 17182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17185 | arg2 = (int) SWIG_AsInt(obj1); | |
17186 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17187 | { |
17188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17189 | result = (bool)(arg1)->DeleteTool(arg2); | |
17190 | ||
17191 | wxPyEndAllowThreads(__tstate); | |
17192 | if (PyErr_Occurred()) SWIG_fail; | |
17193 | } | |
4f89f6a3 RD |
17194 | { |
17195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17196 | } | |
d14a1e28 RD |
17197 | return resultobj; |
17198 | fail: | |
17199 | return NULL; | |
17200 | } | |
17201 | ||
17202 | ||
17203 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17204 | PyObject *resultobj; | |
17205 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17206 | PyObject * obj0 = 0 ; | |
17207 | char *kwnames[] = { | |
17208 | (char *) "self", NULL | |
17209 | }; | |
17210 | ||
17211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17214 | { |
17215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17216 | (arg1)->ClearTools(); | |
17217 | ||
17218 | wxPyEndAllowThreads(__tstate); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
17220 | } | |
17221 | Py_INCREF(Py_None); resultobj = Py_None; | |
17222 | return resultobj; | |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
17228 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17229 | PyObject *resultobj; | |
17230 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17231 | bool result; | |
17232 | PyObject * obj0 = 0 ; | |
17233 | char *kwnames[] = { | |
17234 | (char *) "self", NULL | |
17235 | }; | |
17236 | ||
17237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17240 | { |
17241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17242 | result = (bool)(arg1)->Realize(); | |
17243 | ||
17244 | wxPyEndAllowThreads(__tstate); | |
17245 | if (PyErr_Occurred()) SWIG_fail; | |
17246 | } | |
4f89f6a3 RD |
17247 | { |
17248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17249 | } | |
d14a1e28 RD |
17250 | return resultobj; |
17251 | fail: | |
17252 | return NULL; | |
17253 | } | |
17254 | ||
17255 | ||
17256 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17257 | PyObject *resultobj; | |
17258 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17259 | int arg2 ; | |
17260 | bool arg3 ; | |
17261 | PyObject * obj0 = 0 ; | |
994141e6 | 17262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17263 | PyObject * obj2 = 0 ; |
17264 | char *kwnames[] = { | |
17265 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17266 | }; | |
17267 | ||
994141e6 | 17268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17271 | arg2 = (int) SWIG_AsInt(obj1); | |
17272 | if (PyErr_Occurred()) SWIG_fail; | |
17273 | arg3 = (bool) SWIG_AsBool(obj2); | |
17274 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17275 | { |
17276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17277 | (arg1)->EnableTool(arg2,arg3); | |
17278 | ||
17279 | wxPyEndAllowThreads(__tstate); | |
17280 | if (PyErr_Occurred()) SWIG_fail; | |
17281 | } | |
17282 | Py_INCREF(Py_None); resultobj = Py_None; | |
17283 | return resultobj; | |
17284 | fail: | |
17285 | return NULL; | |
17286 | } | |
17287 | ||
17288 | ||
17289 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17290 | PyObject *resultobj; | |
17291 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17292 | int arg2 ; | |
17293 | bool arg3 ; | |
17294 | PyObject * obj0 = 0 ; | |
994141e6 | 17295 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17296 | PyObject * obj2 = 0 ; |
17297 | char *kwnames[] = { | |
17298 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17299 | }; | |
17300 | ||
994141e6 | 17301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17304 | arg2 = (int) SWIG_AsInt(obj1); | |
17305 | if (PyErr_Occurred()) SWIG_fail; | |
17306 | arg3 = (bool) SWIG_AsBool(obj2); | |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17308 | { |
17309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17310 | (arg1)->ToggleTool(arg2,arg3); | |
17311 | ||
17312 | wxPyEndAllowThreads(__tstate); | |
17313 | if (PyErr_Occurred()) SWIG_fail; | |
17314 | } | |
17315 | Py_INCREF(Py_None); resultobj = Py_None; | |
17316 | return resultobj; | |
17317 | fail: | |
17318 | return NULL; | |
17319 | } | |
17320 | ||
17321 | ||
17322 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17323 | PyObject *resultobj; | |
17324 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17325 | int arg2 ; | |
17326 | bool arg3 ; | |
17327 | PyObject * obj0 = 0 ; | |
994141e6 | 17328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17329 | PyObject * obj2 = 0 ; |
17330 | char *kwnames[] = { | |
17331 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17332 | }; | |
17333 | ||
994141e6 | 17334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17337 | arg2 = (int) SWIG_AsInt(obj1); | |
17338 | if (PyErr_Occurred()) SWIG_fail; | |
17339 | arg3 = (bool) SWIG_AsBool(obj2); | |
17340 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17341 | { |
17342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17343 | (arg1)->SetToggle(arg2,arg3); | |
17344 | ||
17345 | wxPyEndAllowThreads(__tstate); | |
17346 | if (PyErr_Occurred()) SWIG_fail; | |
17347 | } | |
17348 | Py_INCREF(Py_None); resultobj = Py_None; | |
17349 | return resultobj; | |
17350 | fail: | |
17351 | return NULL; | |
17352 | } | |
17353 | ||
17354 | ||
17355 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17356 | PyObject *resultobj; | |
17357 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17358 | int arg2 ; | |
17359 | PyObject *result; | |
17360 | PyObject * obj0 = 0 ; | |
994141e6 | 17361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17362 | char *kwnames[] = { |
17363 | (char *) "self",(char *) "id", NULL | |
17364 | }; | |
17365 | ||
994141e6 | 17366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17369 | arg2 = (int) SWIG_AsInt(obj1); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17371 | { |
17372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17373 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17374 | ||
17375 | wxPyEndAllowThreads(__tstate); | |
17376 | if (PyErr_Occurred()) SWIG_fail; | |
17377 | } | |
17378 | resultobj = result; | |
17379 | return resultobj; | |
17380 | fail: | |
17381 | return NULL; | |
17382 | } | |
17383 | ||
17384 | ||
17385 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17386 | PyObject *resultobj; | |
17387 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17388 | int arg2 ; | |
17389 | PyObject *arg3 = (PyObject *) 0 ; | |
17390 | PyObject * obj0 = 0 ; | |
994141e6 | 17391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17392 | PyObject * obj2 = 0 ; |
17393 | char *kwnames[] = { | |
17394 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17395 | }; | |
17396 | ||
994141e6 | 17397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17400 | arg2 = (int) SWIG_AsInt(obj1); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17402 | arg3 = obj2; |
17403 | { | |
17404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17405 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17406 | ||
17407 | wxPyEndAllowThreads(__tstate); | |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
17409 | } | |
17410 | Py_INCREF(Py_None); resultobj = Py_None; | |
17411 | return resultobj; | |
17412 | fail: | |
17413 | return NULL; | |
17414 | } | |
17415 | ||
17416 | ||
17417 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17418 | PyObject *resultobj; | |
17419 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17420 | int arg2 ; | |
17421 | int result; | |
17422 | PyObject * obj0 = 0 ; | |
994141e6 | 17423 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17424 | char *kwnames[] = { |
17425 | (char *) "self",(char *) "id", NULL | |
17426 | }; | |
17427 | ||
994141e6 | 17428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17431 | arg2 = (int) SWIG_AsInt(obj1); | |
17432 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17433 | { |
17434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17435 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17436 | ||
17437 | wxPyEndAllowThreads(__tstate); | |
17438 | if (PyErr_Occurred()) SWIG_fail; | |
17439 | } | |
15afbcd0 | 17440 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17441 | return resultobj; |
17442 | fail: | |
17443 | return NULL; | |
17444 | } | |
17445 | ||
17446 | ||
17447 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17448 | PyObject *resultobj; | |
17449 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17450 | int arg2 ; | |
17451 | bool result; | |
17452 | PyObject * obj0 = 0 ; | |
994141e6 | 17453 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17454 | char *kwnames[] = { |
17455 | (char *) "self",(char *) "id", NULL | |
17456 | }; | |
17457 | ||
994141e6 | 17458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17461 | arg2 = (int) SWIG_AsInt(obj1); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17463 | { |
17464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17465 | result = (bool)(arg1)->GetToolState(arg2); | |
17466 | ||
17467 | wxPyEndAllowThreads(__tstate); | |
17468 | if (PyErr_Occurred()) SWIG_fail; | |
17469 | } | |
4f89f6a3 RD |
17470 | { |
17471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17472 | } | |
d14a1e28 RD |
17473 | return resultobj; |
17474 | fail: | |
17475 | return NULL; | |
17476 | } | |
17477 | ||
17478 | ||
17479 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17480 | PyObject *resultobj; | |
17481 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17482 | int arg2 ; | |
17483 | bool result; | |
17484 | PyObject * obj0 = 0 ; | |
994141e6 | 17485 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17486 | char *kwnames[] = { |
17487 | (char *) "self",(char *) "id", NULL | |
17488 | }; | |
17489 | ||
994141e6 | 17490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17493 | arg2 = (int) SWIG_AsInt(obj1); | |
17494 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17495 | { |
17496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17497 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17498 | ||
17499 | wxPyEndAllowThreads(__tstate); | |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
17501 | } | |
4f89f6a3 RD |
17502 | { |
17503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17504 | } | |
d14a1e28 RD |
17505 | return resultobj; |
17506 | fail: | |
17507 | return NULL; | |
17508 | } | |
17509 | ||
17510 | ||
17511 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17512 | PyObject *resultobj; | |
17513 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17514 | int arg2 ; | |
17515 | wxString *arg3 = 0 ; | |
e811c8ce | 17516 | bool temp3 = False ; |
d14a1e28 | 17517 | PyObject * obj0 = 0 ; |
994141e6 | 17518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17519 | PyObject * obj2 = 0 ; |
17520 | char *kwnames[] = { | |
17521 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17522 | }; | |
17523 | ||
994141e6 | 17524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17527 | arg2 = (int) SWIG_AsInt(obj1); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17529 | { |
17530 | arg3 = wxString_in_helper(obj2); | |
17531 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17532 | temp3 = True; |
d14a1e28 RD |
17533 | } |
17534 | { | |
17535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17536 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17537 | ||
17538 | wxPyEndAllowThreads(__tstate); | |
17539 | if (PyErr_Occurred()) SWIG_fail; | |
17540 | } | |
17541 | Py_INCREF(Py_None); resultobj = Py_None; | |
17542 | { | |
17543 | if (temp3) | |
17544 | delete arg3; | |
17545 | } | |
17546 | return resultobj; | |
17547 | fail: | |
17548 | { | |
17549 | if (temp3) | |
17550 | delete arg3; | |
17551 | } | |
17552 | return NULL; | |
17553 | } | |
17554 | ||
17555 | ||
17556 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17557 | PyObject *resultobj; | |
17558 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17559 | int arg2 ; | |
17560 | wxString result; | |
17561 | PyObject * obj0 = 0 ; | |
994141e6 | 17562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17563 | char *kwnames[] = { |
17564 | (char *) "self",(char *) "id", NULL | |
17565 | }; | |
17566 | ||
994141e6 | 17567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17570 | arg2 = (int) SWIG_AsInt(obj1); | |
17571 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17572 | { |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | result = (arg1)->GetToolShortHelp(arg2); | |
17575 | ||
17576 | wxPyEndAllowThreads(__tstate); | |
17577 | if (PyErr_Occurred()) SWIG_fail; | |
17578 | } | |
17579 | { | |
17580 | #if wxUSE_UNICODE | |
17581 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17582 | #else | |
17583 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17584 | #endif | |
17585 | } | |
17586 | return resultobj; | |
17587 | fail: | |
17588 | return NULL; | |
17589 | } | |
17590 | ||
17591 | ||
17592 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17593 | PyObject *resultobj; | |
17594 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17595 | int arg2 ; | |
17596 | wxString *arg3 = 0 ; | |
e811c8ce | 17597 | bool temp3 = False ; |
d14a1e28 | 17598 | PyObject * obj0 = 0 ; |
994141e6 | 17599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17600 | PyObject * obj2 = 0 ; |
17601 | char *kwnames[] = { | |
17602 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17603 | }; | |
17604 | ||
994141e6 | 17605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17608 | arg2 = (int) SWIG_AsInt(obj1); | |
17609 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17610 | { |
17611 | arg3 = wxString_in_helper(obj2); | |
17612 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17613 | temp3 = True; |
d14a1e28 RD |
17614 | } |
17615 | { | |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17617 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | Py_INCREF(Py_None); resultobj = Py_None; | |
17623 | { | |
17624 | if (temp3) | |
17625 | delete arg3; | |
17626 | } | |
17627 | return resultobj; | |
17628 | fail: | |
17629 | { | |
17630 | if (temp3) | |
17631 | delete arg3; | |
17632 | } | |
17633 | return NULL; | |
17634 | } | |
17635 | ||
17636 | ||
17637 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17638 | PyObject *resultobj; | |
17639 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17640 | int arg2 ; | |
17641 | wxString result; | |
17642 | PyObject * obj0 = 0 ; | |
994141e6 | 17643 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17644 | char *kwnames[] = { |
17645 | (char *) "self",(char *) "id", NULL | |
17646 | }; | |
17647 | ||
994141e6 | 17648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17651 | arg2 = (int) SWIG_AsInt(obj1); | |
17652 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17653 | { |
17654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17655 | result = (arg1)->GetToolLongHelp(arg2); | |
17656 | ||
17657 | wxPyEndAllowThreads(__tstate); | |
17658 | if (PyErr_Occurred()) SWIG_fail; | |
17659 | } | |
17660 | { | |
17661 | #if wxUSE_UNICODE | |
17662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17663 | #else | |
17664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17665 | #endif | |
17666 | } | |
17667 | return resultobj; | |
17668 | fail: | |
17669 | return NULL; | |
17670 | } | |
17671 | ||
17672 | ||
17673 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17674 | PyObject *resultobj; | |
17675 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17676 | int arg2 ; | |
17677 | int arg3 ; | |
17678 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17679 | PyObject * obj1 = 0 ; |
17680 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17681 | char *kwnames[] = { |
17682 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17683 | }; | |
17684 | ||
994141e6 | 17685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17688 | arg2 = (int) SWIG_AsInt(obj1); | |
17689 | if (PyErr_Occurred()) SWIG_fail; | |
17690 | arg3 = (int) SWIG_AsInt(obj2); | |
17691 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17692 | { |
17693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17694 | (arg1)->SetMargins(arg2,arg3); | |
17695 | ||
17696 | wxPyEndAllowThreads(__tstate); | |
17697 | if (PyErr_Occurred()) SWIG_fail; | |
17698 | } | |
17699 | Py_INCREF(Py_None); resultobj = Py_None; | |
17700 | return resultobj; | |
17701 | fail: | |
17702 | return NULL; | |
17703 | } | |
17704 | ||
17705 | ||
17706 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17707 | PyObject *resultobj; | |
17708 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17709 | wxSize *arg2 = 0 ; | |
17710 | wxSize temp2 ; | |
17711 | PyObject * obj0 = 0 ; | |
17712 | PyObject * obj1 = 0 ; | |
17713 | char *kwnames[] = { | |
17714 | (char *) "self",(char *) "size", NULL | |
17715 | }; | |
17716 | ||
17717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17720 | { |
17721 | arg2 = &temp2; | |
17722 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17723 | } | |
17724 | { | |
17725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17726 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17727 | ||
17728 | wxPyEndAllowThreads(__tstate); | |
17729 | if (PyErr_Occurred()) SWIG_fail; | |
17730 | } | |
17731 | Py_INCREF(Py_None); resultobj = Py_None; | |
17732 | return resultobj; | |
17733 | fail: | |
17734 | return NULL; | |
17735 | } | |
17736 | ||
17737 | ||
17738 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17739 | PyObject *resultobj; | |
17740 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17741 | int arg2 ; | |
17742 | PyObject * obj0 = 0 ; | |
994141e6 | 17743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17744 | char *kwnames[] = { |
17745 | (char *) "self",(char *) "packing", NULL | |
17746 | }; | |
17747 | ||
994141e6 | 17748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17751 | arg2 = (int) SWIG_AsInt(obj1); | |
17752 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17753 | { |
17754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17755 | (arg1)->SetToolPacking(arg2); | |
17756 | ||
17757 | wxPyEndAllowThreads(__tstate); | |
17758 | if (PyErr_Occurred()) SWIG_fail; | |
17759 | } | |
17760 | Py_INCREF(Py_None); resultobj = Py_None; | |
17761 | return resultobj; | |
17762 | fail: | |
17763 | return NULL; | |
17764 | } | |
17765 | ||
17766 | ||
17767 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17768 | PyObject *resultobj; | |
17769 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17770 | int arg2 ; | |
17771 | PyObject * obj0 = 0 ; | |
994141e6 | 17772 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17773 | char *kwnames[] = { |
17774 | (char *) "self",(char *) "separation", NULL | |
17775 | }; | |
17776 | ||
994141e6 | 17777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17780 | arg2 = (int) SWIG_AsInt(obj1); | |
17781 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17782 | { |
17783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17784 | (arg1)->SetToolSeparation(arg2); | |
17785 | ||
17786 | wxPyEndAllowThreads(__tstate); | |
17787 | if (PyErr_Occurred()) SWIG_fail; | |
17788 | } | |
17789 | Py_INCREF(Py_None); resultobj = Py_None; | |
17790 | return resultobj; | |
17791 | fail: | |
17792 | return NULL; | |
17793 | } | |
17794 | ||
17795 | ||
17796 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17797 | PyObject *resultobj; | |
17798 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17799 | wxSize result; | |
17800 | PyObject * obj0 = 0 ; | |
17801 | char *kwnames[] = { | |
17802 | (char *) "self", NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17808 | { |
17809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17810 | result = (arg1)->GetToolMargins(); | |
17811 | ||
17812 | wxPyEndAllowThreads(__tstate); | |
17813 | if (PyErr_Occurred()) SWIG_fail; | |
17814 | } | |
17815 | { | |
17816 | wxSize * resultptr; | |
17817 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 17818 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17819 | } |
17820 | return resultobj; | |
17821 | fail: | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
17826 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17827 | PyObject *resultobj; | |
17828 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17829 | wxSize result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17838 | { |
17839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17840 | result = (arg1)->GetMargins(); | |
17841 | ||
17842 | wxPyEndAllowThreads(__tstate); | |
17843 | if (PyErr_Occurred()) SWIG_fail; | |
17844 | } | |
17845 | { | |
17846 | wxSize * resultptr; | |
17847 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 17848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17849 | } |
17850 | return resultobj; | |
17851 | fail: | |
17852 | return NULL; | |
17853 | } | |
17854 | ||
17855 | ||
17856 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17857 | PyObject *resultobj; | |
17858 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17859 | int result; | |
17860 | PyObject * obj0 = 0 ; | |
17861 | char *kwnames[] = { | |
17862 | (char *) "self", NULL | |
17863 | }; | |
17864 | ||
17865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17868 | { |
17869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17870 | result = (int)(arg1)->GetToolPacking(); | |
17871 | ||
17872 | wxPyEndAllowThreads(__tstate); | |
17873 | if (PyErr_Occurred()) SWIG_fail; | |
17874 | } | |
15afbcd0 | 17875 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17876 | return resultobj; |
17877 | fail: | |
17878 | return NULL; | |
17879 | } | |
17880 | ||
17881 | ||
17882 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17883 | PyObject *resultobj; | |
17884 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17885 | int result; | |
17886 | PyObject * obj0 = 0 ; | |
17887 | char *kwnames[] = { | |
17888 | (char *) "self", NULL | |
17889 | }; | |
17890 | ||
17891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17894 | { |
17895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17896 | result = (int)(arg1)->GetToolSeparation(); | |
17897 | ||
17898 | wxPyEndAllowThreads(__tstate); | |
17899 | if (PyErr_Occurred()) SWIG_fail; | |
17900 | } | |
15afbcd0 | 17901 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17902 | return resultobj; |
17903 | fail: | |
17904 | return NULL; | |
17905 | } | |
17906 | ||
17907 | ||
17908 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17909 | PyObject *resultobj; | |
17910 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17911 | int arg2 ; | |
17912 | PyObject * obj0 = 0 ; | |
994141e6 | 17913 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17914 | char *kwnames[] = { |
17915 | (char *) "self",(char *) "nRows", NULL | |
17916 | }; | |
17917 | ||
994141e6 | 17918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17921 | arg2 = (int) SWIG_AsInt(obj1); | |
17922 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17923 | { |
17924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17925 | (arg1)->SetRows(arg2); | |
17926 | ||
17927 | wxPyEndAllowThreads(__tstate); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | } | |
17930 | Py_INCREF(Py_None); resultobj = Py_None; | |
17931 | return resultobj; | |
17932 | fail: | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
17937 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17938 | PyObject *resultobj; | |
17939 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17940 | int arg2 ; | |
17941 | int arg3 ; | |
17942 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17943 | PyObject * obj1 = 0 ; |
17944 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17945 | char *kwnames[] = { |
17946 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17947 | }; | |
17948 | ||
994141e6 | 17949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17952 | arg2 = (int) SWIG_AsInt(obj1); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | arg3 = (int) SWIG_AsInt(obj2); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17956 | { |
17957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17958 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
17963 | Py_INCREF(Py_None); resultobj = Py_None; | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | return NULL; | |
17967 | } | |
17968 | ||
17969 | ||
17970 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17971 | PyObject *resultobj; | |
17972 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17973 | int result; | |
17974 | PyObject * obj0 = 0 ; | |
17975 | char *kwnames[] = { | |
17976 | (char *) "self", NULL | |
17977 | }; | |
17978 | ||
17979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17982 | { |
17983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17984 | result = (int)(arg1)->GetMaxRows(); | |
17985 | ||
17986 | wxPyEndAllowThreads(__tstate); | |
17987 | if (PyErr_Occurred()) SWIG_fail; | |
17988 | } | |
15afbcd0 | 17989 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17990 | return resultobj; |
17991 | fail: | |
17992 | return NULL; | |
17993 | } | |
17994 | ||
17995 | ||
17996 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17997 | PyObject *resultobj; | |
17998 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17999 | int result; | |
18000 | PyObject * obj0 = 0 ; | |
18001 | char *kwnames[] = { | |
18002 | (char *) "self", NULL | |
18003 | }; | |
18004 | ||
18005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18008 | { |
18009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18010 | result = (int)(arg1)->GetMaxCols(); | |
18011 | ||
18012 | wxPyEndAllowThreads(__tstate); | |
18013 | if (PyErr_Occurred()) SWIG_fail; | |
18014 | } | |
15afbcd0 | 18015 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18016 | return resultobj; |
18017 | fail: | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18023 | PyObject *resultobj; | |
18024 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18025 | wxSize *arg2 = 0 ; | |
18026 | wxSize temp2 ; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | PyObject * obj1 = 0 ; | |
18029 | char *kwnames[] = { | |
18030 | (char *) "self",(char *) "size", NULL | |
18031 | }; | |
18032 | ||
18033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18036 | { |
18037 | arg2 = &temp2; | |
18038 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18039 | } | |
18040 | { | |
18041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18042 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18043 | ||
18044 | wxPyEndAllowThreads(__tstate); | |
18045 | if (PyErr_Occurred()) SWIG_fail; | |
18046 | } | |
18047 | Py_INCREF(Py_None); resultobj = Py_None; | |
18048 | return resultobj; | |
18049 | fail: | |
18050 | return NULL; | |
18051 | } | |
18052 | ||
18053 | ||
18054 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18055 | PyObject *resultobj; | |
18056 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18057 | wxSize result; | |
18058 | PyObject * obj0 = 0 ; | |
18059 | char *kwnames[] = { | |
18060 | (char *) "self", NULL | |
18061 | }; | |
18062 | ||
18063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18066 | { |
18067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18068 | result = (arg1)->GetToolBitmapSize(); | |
18069 | ||
18070 | wxPyEndAllowThreads(__tstate); | |
18071 | if (PyErr_Occurred()) SWIG_fail; | |
18072 | } | |
18073 | { | |
18074 | wxSize * resultptr; | |
18075 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18076 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18077 | } |
18078 | return resultobj; | |
18079 | fail: | |
18080 | return NULL; | |
18081 | } | |
18082 | ||
18083 | ||
18084 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18085 | PyObject *resultobj; | |
18086 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18087 | wxSize result; | |
18088 | PyObject * obj0 = 0 ; | |
18089 | char *kwnames[] = { | |
18090 | (char *) "self", NULL | |
18091 | }; | |
18092 | ||
18093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18096 | { |
18097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18098 | result = (arg1)->GetToolSize(); | |
18099 | ||
18100 | wxPyEndAllowThreads(__tstate); | |
18101 | if (PyErr_Occurred()) SWIG_fail; | |
18102 | } | |
18103 | { | |
18104 | wxSize * resultptr; | |
18105 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18106 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18107 | } |
18108 | return resultobj; | |
18109 | fail: | |
18110 | return NULL; | |
18111 | } | |
18112 | ||
18113 | ||
18114 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18115 | PyObject *resultobj; | |
18116 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
18117 | int arg2 ; |
18118 | int arg3 ; | |
d14a1e28 RD |
18119 | wxToolBarToolBase *result; |
18120 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18121 | PyObject * obj1 = 0 ; |
18122 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18123 | char *kwnames[] = { |
18124 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18125 | }; | |
18126 | ||
994141e6 | 18127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18130 | arg2 = (int) SWIG_AsInt(obj1); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | arg3 = (int) SWIG_AsInt(obj2); | |
18133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18134 | { |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | { | |
18142 | resultobj = wxPyMake_wxObject(result); | |
18143 | } | |
18144 | return resultobj; | |
18145 | fail: | |
18146 | return NULL; | |
18147 | } | |
18148 | ||
18149 | ||
3a04f143 RD |
18150 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
18151 | PyObject *resultobj; | |
18152 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18153 | int arg2 ; | |
18154 | wxToolBarToolBase *result; | |
18155 | PyObject * obj0 = 0 ; | |
994141e6 | 18156 | PyObject * obj1 = 0 ; |
3a04f143 RD |
18157 | char *kwnames[] = { |
18158 | (char *) "self",(char *) "toolid", NULL | |
18159 | }; | |
18160 | ||
994141e6 | 18161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18164 | arg2 = (int) SWIG_AsInt(obj1); | |
18165 | if (PyErr_Occurred()) SWIG_fail; | |
3a04f143 RD |
18166 | { |
18167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18168 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18169 | ||
18170 | wxPyEndAllowThreads(__tstate); | |
18171 | if (PyErr_Occurred()) SWIG_fail; | |
18172 | } | |
18173 | { | |
18174 | resultobj = wxPyMake_wxObject(result); | |
18175 | } | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
d14a1e28 RD |
18182 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
18183 | PyObject *resultobj; | |
18184 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18185 | bool result; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | char *kwnames[] = { | |
18188 | (char *) "self", NULL | |
18189 | }; | |
18190 | ||
18191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18194 | { |
18195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18196 | result = (bool)(arg1)->IsVertical(); | |
18197 | ||
18198 | wxPyEndAllowThreads(__tstate); | |
18199 | if (PyErr_Occurred()) SWIG_fail; | |
18200 | } | |
4f89f6a3 RD |
18201 | { |
18202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18203 | } | |
d14a1e28 RD |
18204 | return resultobj; |
18205 | fail: | |
18206 | return NULL; | |
18207 | } | |
18208 | ||
18209 | ||
18210 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
18211 | PyObject *obj; | |
18212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18213 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18214 | Py_INCREF(obj); | |
18215 | return Py_BuildValue((char *)""); | |
18216 | } | |
18217 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18218 | PyObject *resultobj; | |
18219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 18220 | int arg2 ; |
d14a1e28 RD |
18221 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18222 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18223 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18224 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18225 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18226 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18227 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18228 | wxToolBar *result; | |
18229 | wxPoint temp3 ; | |
18230 | wxSize temp4 ; | |
e811c8ce | 18231 | bool temp6 = False ; |
d14a1e28 | 18232 | PyObject * obj0 = 0 ; |
994141e6 | 18233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18234 | PyObject * obj2 = 0 ; |
18235 | PyObject * obj3 = 0 ; | |
994141e6 | 18236 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18237 | PyObject * obj5 = 0 ; |
18238 | char *kwnames[] = { | |
18239 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18240 | }; | |
18241 | ||
994141e6 | 18242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
18243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18245 | arg2 = (int) SWIG_AsInt(obj1); | |
18246 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18247 | if (obj2) { |
18248 | { | |
18249 | arg3 = &temp3; | |
18250 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18251 | } | |
18252 | } | |
18253 | if (obj3) { | |
18254 | { | |
18255 | arg4 = &temp4; | |
18256 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18257 | } | |
18258 | } | |
994141e6 | 18259 | if (obj4) { |
15afbcd0 RD |
18260 | arg5 = (long) SWIG_AsLong(obj4); |
18261 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18262 | } |
d14a1e28 RD |
18263 | if (obj5) { |
18264 | { | |
18265 | arg6 = wxString_in_helper(obj5); | |
18266 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 18267 | temp6 = True; |
d14a1e28 RD |
18268 | } |
18269 | } | |
18270 | { | |
18271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18272 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18273 | ||
18274 | wxPyEndAllowThreads(__tstate); | |
18275 | if (PyErr_Occurred()) SWIG_fail; | |
18276 | } | |
18277 | { | |
18278 | resultobj = wxPyMake_wxObject(result); | |
18279 | } | |
18280 | { | |
18281 | if (temp6) | |
18282 | delete arg6; | |
18283 | } | |
18284 | return resultobj; | |
18285 | fail: | |
18286 | { | |
18287 | if (temp6) | |
18288 | delete arg6; | |
18289 | } | |
18290 | return NULL; | |
18291 | } | |
18292 | ||
18293 | ||
18294 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18295 | PyObject *resultobj; | |
18296 | wxToolBar *result; | |
18297 | char *kwnames[] = { | |
18298 | NULL | |
18299 | }; | |
18300 | ||
18301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18302 | { | |
18303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18304 | result = (wxToolBar *)new wxToolBar(); | |
18305 | ||
18306 | wxPyEndAllowThreads(__tstate); | |
18307 | if (PyErr_Occurred()) SWIG_fail; | |
18308 | } | |
18309 | { | |
18310 | resultobj = wxPyMake_wxObject(result); | |
18311 | } | |
18312 | return resultobj; | |
18313 | fail: | |
18314 | return NULL; | |
18315 | } | |
18316 | ||
18317 | ||
18318 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18319 | PyObject *resultobj; | |
18320 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18321 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 18322 | int arg3 ; |
d14a1e28 RD |
18323 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18324 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18325 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18326 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18327 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18328 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18329 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18330 | bool result; | |
18331 | wxPoint temp4 ; | |
18332 | wxSize temp5 ; | |
e811c8ce | 18333 | bool temp7 = False ; |
d14a1e28 RD |
18334 | PyObject * obj0 = 0 ; |
18335 | PyObject * obj1 = 0 ; | |
994141e6 | 18336 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18337 | PyObject * obj3 = 0 ; |
18338 | PyObject * obj4 = 0 ; | |
994141e6 | 18339 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
18340 | PyObject * obj6 = 0 ; |
18341 | char *kwnames[] = { | |
18342 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18343 | }; | |
18344 | ||
994141e6 | 18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
18346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18350 | arg3 = (int) SWIG_AsInt(obj2); | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18352 | if (obj3) { |
18353 | { | |
18354 | arg4 = &temp4; | |
18355 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18356 | } | |
18357 | } | |
18358 | if (obj4) { | |
18359 | { | |
18360 | arg5 = &temp5; | |
18361 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18362 | } | |
18363 | } | |
994141e6 | 18364 | if (obj5) { |
15afbcd0 RD |
18365 | arg6 = (long) SWIG_AsLong(obj5); |
18366 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18367 | } |
d14a1e28 RD |
18368 | if (obj6) { |
18369 | { | |
18370 | arg7 = wxString_in_helper(obj6); | |
18371 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 18372 | temp7 = True; |
d14a1e28 RD |
18373 | } |
18374 | } | |
18375 | { | |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
4f89f6a3 RD |
18382 | { |
18383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18384 | } | |
d14a1e28 RD |
18385 | { |
18386 | if (temp7) | |
18387 | delete arg7; | |
18388 | } | |
18389 | return resultobj; | |
18390 | fail: | |
18391 | { | |
18392 | if (temp7) | |
18393 | delete arg7; | |
18394 | } | |
18395 | return NULL; | |
18396 | } | |
18397 | ||
18398 | ||
18399 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18400 | PyObject *resultobj; | |
18401 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
18402 | int arg2 ; |
18403 | int arg3 ; | |
d14a1e28 RD |
18404 | wxToolBarToolBase *result; |
18405 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18406 | PyObject * obj1 = 0 ; |
18407 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18408 | char *kwnames[] = { |
18409 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18410 | }; | |
18411 | ||
994141e6 | 18412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18415 | arg2 = (int) SWIG_AsInt(obj1); | |
18416 | if (PyErr_Occurred()) SWIG_fail; | |
18417 | arg3 = (int) SWIG_AsInt(obj2); | |
18418 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18419 | { |
18420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18421 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18422 | ||
18423 | wxPyEndAllowThreads(__tstate); | |
18424 | if (PyErr_Occurred()) SWIG_fail; | |
18425 | } | |
18426 | { | |
18427 | resultobj = wxPyMake_wxObject(result); | |
18428 | } | |
18429 | return resultobj; | |
18430 | fail: | |
18431 | return NULL; | |
18432 | } | |
18433 | ||
18434 | ||
22bfe96c RD |
18435 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18436 | PyObject *resultobj; | |
18437 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18438 | wxVisualAttributes result; | |
18439 | PyObject * obj0 = 0 ; | |
18440 | char *kwnames[] = { | |
18441 | (char *) "variant", NULL | |
18442 | }; | |
18443 | ||
18444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18445 | if (obj0) { | |
18446 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | { | |
18450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18451 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18452 | ||
18453 | wxPyEndAllowThreads(__tstate); | |
18454 | if (PyErr_Occurred()) SWIG_fail; | |
18455 | } | |
18456 | { | |
18457 | wxVisualAttributes * resultptr; | |
18458 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18459 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18460 | } | |
18461 | return resultobj; | |
18462 | fail: | |
18463 | return NULL; | |
18464 | } | |
18465 | ||
18466 | ||
d14a1e28 RD |
18467 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { |
18468 | PyObject *obj; | |
18469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18470 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18471 | Py_INCREF(obj); | |
18472 | return Py_BuildValue((char *)""); | |
18473 | } | |
b2dc1044 RD |
18474 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
18475 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
18476 | return 1; | |
18477 | } | |
18478 | ||
18479 | ||
18480 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18481 | PyObject *pyobj; | |
18482 | ||
18483 | { | |
18484 | #if wxUSE_UNICODE | |
18485 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18486 | #else | |
18487 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18488 | #endif | |
18489 | } | |
18490 | return pyobj; | |
18491 | } | |
18492 | ||
18493 | ||
d14a1e28 RD |
18494 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
18495 | PyObject *resultobj; | |
18496 | wxColour const &arg1_defvalue = wxNullColour ; | |
18497 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18498 | wxColour const &arg2_defvalue = wxNullColour ; | |
18499 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18500 | wxFont const &arg3_defvalue = wxNullFont ; | |
18501 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18502 | wxListItemAttr *result; | |
18503 | wxColour temp1 ; | |
18504 | wxColour temp2 ; | |
18505 | PyObject * obj0 = 0 ; | |
18506 | PyObject * obj1 = 0 ; | |
18507 | PyObject * obj2 = 0 ; | |
18508 | char *kwnames[] = { | |
18509 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18510 | }; | |
18511 | ||
18512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18513 | if (obj0) { | |
18514 | { | |
18515 | arg1 = &temp1; | |
18516 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18517 | } | |
18518 | } | |
18519 | if (obj1) { | |
18520 | { | |
18521 | arg2 = &temp2; | |
18522 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18523 | } | |
18524 | } | |
18525 | if (obj2) { | |
15afbcd0 RD |
18526 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
18527 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18528 | SWIG_fail; | |
d14a1e28 | 18529 | if (arg3 == NULL) { |
15afbcd0 RD |
18530 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18531 | SWIG_fail; | |
d14a1e28 RD |
18532 | } |
18533 | } | |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
15afbcd0 | 18541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
18542 | return resultobj; |
18543 | fail: | |
18544 | return NULL; | |
18545 | } | |
18546 | ||
18547 | ||
18548 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18549 | PyObject *resultobj; | |
18550 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18551 | wxColour *arg2 = 0 ; | |
18552 | wxColour temp2 ; | |
18553 | PyObject * obj0 = 0 ; | |
18554 | PyObject * obj1 = 0 ; | |
18555 | char *kwnames[] = { | |
18556 | (char *) "self",(char *) "colText", NULL | |
18557 | }; | |
18558 | ||
18559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18562 | { |
18563 | arg2 = &temp2; | |
18564 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18565 | } | |
18566 | { | |
18567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18568 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18569 | ||
18570 | wxPyEndAllowThreads(__tstate); | |
18571 | if (PyErr_Occurred()) SWIG_fail; | |
18572 | } | |
18573 | Py_INCREF(Py_None); resultobj = Py_None; | |
18574 | return resultobj; | |
18575 | fail: | |
18576 | return NULL; | |
18577 | } | |
18578 | ||
18579 | ||
18580 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18581 | PyObject *resultobj; | |
18582 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18583 | wxColour *arg2 = 0 ; | |
18584 | wxColour temp2 ; | |
18585 | PyObject * obj0 = 0 ; | |
18586 | PyObject * obj1 = 0 ; | |
18587 | char *kwnames[] = { | |
18588 | (char *) "self",(char *) "colBack", NULL | |
18589 | }; | |
18590 | ||
18591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18594 | { |
18595 | arg2 = &temp2; | |
18596 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18597 | } | |
18598 | { | |
18599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18600 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18601 | ||
18602 | wxPyEndAllowThreads(__tstate); | |
18603 | if (PyErr_Occurred()) SWIG_fail; | |
18604 | } | |
18605 | Py_INCREF(Py_None); resultobj = Py_None; | |
18606 | return resultobj; | |
18607 | fail: | |
18608 | return NULL; | |
18609 | } | |
18610 | ||
18611 | ||
18612 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18613 | PyObject *resultobj; | |
18614 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18615 | wxFont *arg2 = 0 ; | |
18616 | PyObject * obj0 = 0 ; | |
18617 | PyObject * obj1 = 0 ; | |
18618 | char *kwnames[] = { | |
18619 | (char *) "self",(char *) "font", NULL | |
18620 | }; | |
18621 | ||
18622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18626 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18627 | SWIG_fail; | |
d14a1e28 | 18628 | if (arg2 == NULL) { |
15afbcd0 RD |
18629 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18630 | SWIG_fail; | |
d14a1e28 RD |
18631 | } |
18632 | { | |
18633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18634 | (arg1)->SetFont((wxFont const &)*arg2); | |
18635 | ||
18636 | wxPyEndAllowThreads(__tstate); | |
18637 | if (PyErr_Occurred()) SWIG_fail; | |
18638 | } | |
18639 | Py_INCREF(Py_None); resultobj = Py_None; | |
18640 | return resultobj; | |
18641 | fail: | |
18642 | return NULL; | |
18643 | } | |
18644 | ||
18645 | ||
18646 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18647 | PyObject *resultobj; | |
18648 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18649 | bool result; | |
18650 | PyObject * obj0 = 0 ; | |
18651 | char *kwnames[] = { | |
18652 | (char *) "self", NULL | |
18653 | }; | |
18654 | ||
18655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18658 | { |
18659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18660 | result = (bool)(arg1)->HasTextColour(); | |
18661 | ||
18662 | wxPyEndAllowThreads(__tstate); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | } | |
4f89f6a3 RD |
18665 | { |
18666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18667 | } | |
d14a1e28 RD |
18668 | return resultobj; |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj; | |
18676 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18677 | bool result; | |
18678 | PyObject * obj0 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "self", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18686 | { |
18687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18688 | result = (bool)(arg1)->HasBackgroundColour(); | |
18689 | ||
18690 | wxPyEndAllowThreads(__tstate); | |
18691 | if (PyErr_Occurred()) SWIG_fail; | |
18692 | } | |
4f89f6a3 RD |
18693 | { |
18694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18695 | } | |
d14a1e28 RD |
18696 | return resultobj; |
18697 | fail: | |
18698 | return NULL; | |
18699 | } | |
18700 | ||
18701 | ||
18702 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18703 | PyObject *resultobj; | |
18704 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18705 | bool result; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | char *kwnames[] = { | |
18708 | (char *) "self", NULL | |
18709 | }; | |
18710 | ||
18711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18714 | { |
18715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18716 | result = (bool)(arg1)->HasFont(); | |
18717 | ||
18718 | wxPyEndAllowThreads(__tstate); | |
18719 | if (PyErr_Occurred()) SWIG_fail; | |
18720 | } | |
4f89f6a3 RD |
18721 | { |
18722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18723 | } | |
d14a1e28 RD |
18724 | return resultobj; |
18725 | fail: | |
18726 | return NULL; | |
18727 | } | |
18728 | ||
18729 | ||
18730 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18731 | PyObject *resultobj; | |
18732 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18733 | wxColour result; | |
18734 | PyObject * obj0 = 0 ; | |
18735 | char *kwnames[] = { | |
18736 | (char *) "self", NULL | |
18737 | }; | |
18738 | ||
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18742 | { |
18743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18744 | result = (arg1)->GetTextColour(); | |
18745 | ||
18746 | wxPyEndAllowThreads(__tstate); | |
18747 | if (PyErr_Occurred()) SWIG_fail; | |
18748 | } | |
18749 | { | |
18750 | wxColour * resultptr; | |
18751 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18753 | } |
18754 | return resultobj; | |
18755 | fail: | |
18756 | return NULL; | |
18757 | } | |
18758 | ||
18759 | ||
18760 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18761 | PyObject *resultobj; | |
18762 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18763 | wxColour result; | |
18764 | PyObject * obj0 = 0 ; | |
18765 | char *kwnames[] = { | |
18766 | (char *) "self", NULL | |
18767 | }; | |
18768 | ||
18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18772 | { |
18773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18774 | result = (arg1)->GetBackgroundColour(); | |
18775 | ||
18776 | wxPyEndAllowThreads(__tstate); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | } | |
18779 | { | |
18780 | wxColour * resultptr; | |
18781 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18782 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18783 | } |
18784 | return resultobj; | |
18785 | fail: | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
18790 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18791 | PyObject *resultobj; | |
18792 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18793 | wxFont result; | |
18794 | PyObject * obj0 = 0 ; | |
18795 | char *kwnames[] = { | |
18796 | (char *) "self", NULL | |
18797 | }; | |
18798 | ||
18799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18802 | { |
18803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18804 | result = (arg1)->GetFont(); | |
18805 | ||
18806 | wxPyEndAllowThreads(__tstate); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | } | |
18809 | { | |
18810 | wxFont * resultptr; | |
18811 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 18812 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
18813 | } |
18814 | return resultobj; | |
18815 | fail: | |
18816 | return NULL; | |
18817 | } | |
18818 | ||
18819 | ||
18820 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18821 | PyObject *resultobj; | |
18822 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18823 | PyObject * obj0 = 0 ; | |
18824 | char *kwnames[] = { | |
18825 | (char *) "self", NULL | |
18826 | }; | |
18827 | ||
18828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18831 | { |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | wxListItemAttr_Destroy(arg1); | |
18834 | ||
18835 | wxPyEndAllowThreads(__tstate); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
18838 | Py_INCREF(Py_None); resultobj = Py_None; | |
18839 | return resultobj; | |
18840 | fail: | |
18841 | return NULL; | |
18842 | } | |
18843 | ||
18844 | ||
18845 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18846 | PyObject *obj; | |
18847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18848 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18849 | Py_INCREF(obj); | |
18850 | return Py_BuildValue((char *)""); | |
18851 | } | |
18852 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18853 | PyObject *resultobj; | |
18854 | wxListItem *result; | |
18855 | char *kwnames[] = { | |
18856 | NULL | |
18857 | }; | |
18858 | ||
18859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
18860 | { | |
18861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18862 | result = (wxListItem *)new wxListItem(); | |
18863 | ||
18864 | wxPyEndAllowThreads(__tstate); | |
18865 | if (PyErr_Occurred()) SWIG_fail; | |
18866 | } | |
18867 | { | |
18868 | resultobj = wxPyMake_wxObject(result); | |
18869 | } | |
18870 | return resultobj; | |
18871 | fail: | |
18872 | return NULL; | |
18873 | } | |
18874 | ||
18875 | ||
18876 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18877 | PyObject *resultobj; | |
18878 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18879 | PyObject * obj0 = 0 ; | |
18880 | char *kwnames[] = { | |
18881 | (char *) "self", NULL | |
18882 | }; | |
18883 | ||
18884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18887 | { |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | delete arg1; | |
18890 | ||
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | Py_INCREF(Py_None); resultobj = Py_None; | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18904 | PyObject * obj0 = 0 ; | |
18905 | char *kwnames[] = { | |
18906 | (char *) "self", NULL | |
18907 | }; | |
18908 | ||
18909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18912 | { |
18913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18914 | (arg1)->Clear(); | |
18915 | ||
18916 | wxPyEndAllowThreads(__tstate); | |
18917 | if (PyErr_Occurred()) SWIG_fail; | |
18918 | } | |
18919 | Py_INCREF(Py_None); resultobj = Py_None; | |
18920 | return resultobj; | |
18921 | fail: | |
18922 | return NULL; | |
18923 | } | |
18924 | ||
18925 | ||
18926 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18927 | PyObject *resultobj; | |
18928 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18929 | PyObject * obj0 = 0 ; | |
18930 | char *kwnames[] = { | |
18931 | (char *) "self", NULL | |
18932 | }; | |
18933 | ||
18934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18937 | { |
18938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18939 | (arg1)->ClearAttributes(); | |
18940 | ||
18941 | wxPyEndAllowThreads(__tstate); | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | } | |
18944 | Py_INCREF(Py_None); resultobj = Py_None; | |
18945 | return resultobj; | |
18946 | fail: | |
18947 | return NULL; | |
18948 | } | |
18949 | ||
18950 | ||
18951 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18952 | PyObject *resultobj; | |
18953 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18954 | long arg2 ; | |
18955 | PyObject * obj0 = 0 ; | |
994141e6 | 18956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18957 | char *kwnames[] = { |
18958 | (char *) "self",(char *) "mask", NULL | |
18959 | }; | |
18960 | ||
994141e6 | 18961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18964 | arg2 = (long) SWIG_AsLong(obj1); | |
18965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18966 | { |
18967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18968 | (arg1)->SetMask(arg2); | |
18969 | ||
18970 | wxPyEndAllowThreads(__tstate); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
18973 | Py_INCREF(Py_None); resultobj = Py_None; | |
18974 | return resultobj; | |
18975 | fail: | |
18976 | return NULL; | |
18977 | } | |
18978 | ||
18979 | ||
18980 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18981 | PyObject *resultobj; | |
18982 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18983 | long arg2 ; | |
18984 | PyObject * obj0 = 0 ; | |
994141e6 | 18985 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18986 | char *kwnames[] = { |
18987 | (char *) "self",(char *) "id", NULL | |
18988 | }; | |
18989 | ||
994141e6 | 18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18993 | arg2 = (long) SWIG_AsLong(obj1); | |
18994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18995 | { |
18996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18997 | (arg1)->SetId(arg2); | |
18998 | ||
18999 | wxPyEndAllowThreads(__tstate); | |
19000 | if (PyErr_Occurred()) SWIG_fail; | |
19001 | } | |
19002 | Py_INCREF(Py_None); resultobj = Py_None; | |
19003 | return resultobj; | |
19004 | fail: | |
19005 | return NULL; | |
19006 | } | |
19007 | ||
19008 | ||
19009 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19010 | PyObject *resultobj; | |
19011 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19012 | int arg2 ; | |
19013 | PyObject * obj0 = 0 ; | |
994141e6 | 19014 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19015 | char *kwnames[] = { |
19016 | (char *) "self",(char *) "col", NULL | |
19017 | }; | |
19018 | ||
994141e6 | 19019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19022 | arg2 = (int) SWIG_AsInt(obj1); | |
19023 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19024 | { |
19025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19026 | (arg1)->SetColumn(arg2); | |
19027 | ||
19028 | wxPyEndAllowThreads(__tstate); | |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
19030 | } | |
19031 | Py_INCREF(Py_None); resultobj = Py_None; | |
19032 | return resultobj; | |
19033 | fail: | |
19034 | return NULL; | |
19035 | } | |
19036 | ||
19037 | ||
19038 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19039 | PyObject *resultobj; | |
19040 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19041 | long arg2 ; | |
19042 | PyObject * obj0 = 0 ; | |
994141e6 | 19043 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19044 | char *kwnames[] = { |
19045 | (char *) "self",(char *) "state", NULL | |
19046 | }; | |
19047 | ||
994141e6 | 19048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19051 | arg2 = (long) SWIG_AsLong(obj1); | |
19052 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19053 | { |
19054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19055 | (arg1)->SetState(arg2); | |
19056 | ||
19057 | wxPyEndAllowThreads(__tstate); | |
19058 | if (PyErr_Occurred()) SWIG_fail; | |
19059 | } | |
19060 | Py_INCREF(Py_None); resultobj = Py_None; | |
19061 | return resultobj; | |
19062 | fail: | |
19063 | return NULL; | |
19064 | } | |
19065 | ||
19066 | ||
19067 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19068 | PyObject *resultobj; | |
19069 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19070 | long arg2 ; | |
19071 | PyObject * obj0 = 0 ; | |
994141e6 | 19072 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19073 | char *kwnames[] = { |
19074 | (char *) "self",(char *) "stateMask", NULL | |
19075 | }; | |
19076 | ||
994141e6 | 19077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19080 | arg2 = (long) SWIG_AsLong(obj1); | |
19081 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19082 | { |
19083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19084 | (arg1)->SetStateMask(arg2); | |
19085 | ||
19086 | wxPyEndAllowThreads(__tstate); | |
19087 | if (PyErr_Occurred()) SWIG_fail; | |
19088 | } | |
19089 | Py_INCREF(Py_None); resultobj = Py_None; | |
19090 | return resultobj; | |
19091 | fail: | |
19092 | return NULL; | |
19093 | } | |
19094 | ||
19095 | ||
19096 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19097 | PyObject *resultobj; | |
19098 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19099 | wxString *arg2 = 0 ; | |
e811c8ce | 19100 | bool temp2 = False ; |
d14a1e28 RD |
19101 | PyObject * obj0 = 0 ; |
19102 | PyObject * obj1 = 0 ; | |
19103 | char *kwnames[] = { | |
19104 | (char *) "self",(char *) "text", NULL | |
19105 | }; | |
19106 | ||
19107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19110 | { |
19111 | arg2 = wxString_in_helper(obj1); | |
19112 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19113 | temp2 = True; |
d14a1e28 RD |
19114 | } |
19115 | { | |
19116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19117 | (arg1)->SetText((wxString const &)*arg2); | |
19118 | ||
19119 | wxPyEndAllowThreads(__tstate); | |
19120 | if (PyErr_Occurred()) SWIG_fail; | |
19121 | } | |
19122 | Py_INCREF(Py_None); resultobj = Py_None; | |
19123 | { | |
19124 | if (temp2) | |
19125 | delete arg2; | |
19126 | } | |
19127 | return resultobj; | |
19128 | fail: | |
19129 | { | |
19130 | if (temp2) | |
19131 | delete arg2; | |
19132 | } | |
19133 | return NULL; | |
19134 | } | |
19135 | ||
19136 | ||
19137 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19138 | PyObject *resultobj; | |
19139 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19140 | int arg2 ; | |
19141 | PyObject * obj0 = 0 ; | |
994141e6 | 19142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19143 | char *kwnames[] = { |
19144 | (char *) "self",(char *) "image", NULL | |
19145 | }; | |
19146 | ||
994141e6 | 19147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19150 | arg2 = (int) SWIG_AsInt(obj1); | |
19151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19152 | { |
19153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19154 | (arg1)->SetImage(arg2); | |
19155 | ||
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
19159 | Py_INCREF(Py_None); resultobj = Py_None; | |
19160 | return resultobj; | |
19161 | fail: | |
19162 | return NULL; | |
19163 | } | |
19164 | ||
19165 | ||
19166 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19167 | PyObject *resultobj; | |
19168 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19169 | long arg2 ; | |
19170 | PyObject * obj0 = 0 ; | |
994141e6 | 19171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19172 | char *kwnames[] = { |
19173 | (char *) "self",(char *) "data", NULL | |
19174 | }; | |
19175 | ||
994141e6 | 19176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19179 | arg2 = (long) SWIG_AsLong(obj1); | |
19180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19181 | { |
19182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19183 | (arg1)->SetData(arg2); | |
19184 | ||
19185 | wxPyEndAllowThreads(__tstate); | |
19186 | if (PyErr_Occurred()) SWIG_fail; | |
19187 | } | |
19188 | Py_INCREF(Py_None); resultobj = Py_None; | |
19189 | return resultobj; | |
19190 | fail: | |
19191 | return NULL; | |
19192 | } | |
19193 | ||
19194 | ||
19195 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19196 | PyObject *resultobj; | |
19197 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19198 | int arg2 ; | |
19199 | PyObject * obj0 = 0 ; | |
994141e6 | 19200 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19201 | char *kwnames[] = { |
19202 | (char *) "self",(char *) "width", NULL | |
19203 | }; | |
19204 | ||
994141e6 | 19205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19208 | arg2 = (int) SWIG_AsInt(obj1); | |
19209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19210 | { |
19211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19212 | (arg1)->SetWidth(arg2); | |
19213 | ||
19214 | wxPyEndAllowThreads(__tstate); | |
19215 | if (PyErr_Occurred()) SWIG_fail; | |
19216 | } | |
19217 | Py_INCREF(Py_None); resultobj = Py_None; | |
19218 | return resultobj; | |
19219 | fail: | |
19220 | return NULL; | |
19221 | } | |
19222 | ||
19223 | ||
19224 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19225 | PyObject *resultobj; | |
19226 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19227 | int arg2 ; | |
19228 | PyObject * obj0 = 0 ; | |
994141e6 | 19229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19230 | char *kwnames[] = { |
19231 | (char *) "self",(char *) "align", NULL | |
19232 | }; | |
19233 | ||
994141e6 | 19234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19237 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
19238 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19239 | { |
19240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19241 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19242 | ||
19243 | wxPyEndAllowThreads(__tstate); | |
19244 | if (PyErr_Occurred()) SWIG_fail; | |
19245 | } | |
19246 | Py_INCREF(Py_None); resultobj = Py_None; | |
19247 | return resultobj; | |
19248 | fail: | |
19249 | return NULL; | |
19250 | } | |
19251 | ||
19252 | ||
19253 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19254 | PyObject *resultobj; | |
19255 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19256 | wxColour *arg2 = 0 ; | |
19257 | wxColour temp2 ; | |
19258 | PyObject * obj0 = 0 ; | |
19259 | PyObject * obj1 = 0 ; | |
19260 | char *kwnames[] = { | |
19261 | (char *) "self",(char *) "colText", NULL | |
19262 | }; | |
19263 | ||
19264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19267 | { |
19268 | arg2 = &temp2; | |
19269 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19270 | } | |
19271 | { | |
19272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19273 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19274 | ||
19275 | wxPyEndAllowThreads(__tstate); | |
19276 | if (PyErr_Occurred()) SWIG_fail; | |
19277 | } | |
19278 | Py_INCREF(Py_None); resultobj = Py_None; | |
19279 | return resultobj; | |
19280 | fail: | |
19281 | return NULL; | |
19282 | } | |
19283 | ||
19284 | ||
19285 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19286 | PyObject *resultobj; | |
19287 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19288 | wxColour *arg2 = 0 ; | |
19289 | wxColour temp2 ; | |
19290 | PyObject * obj0 = 0 ; | |
19291 | PyObject * obj1 = 0 ; | |
19292 | char *kwnames[] = { | |
19293 | (char *) "self",(char *) "colBack", NULL | |
19294 | }; | |
19295 | ||
19296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19299 | { |
19300 | arg2 = &temp2; | |
19301 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19302 | } | |
19303 | { | |
19304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19305 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19306 | ||
19307 | wxPyEndAllowThreads(__tstate); | |
19308 | if (PyErr_Occurred()) SWIG_fail; | |
19309 | } | |
19310 | Py_INCREF(Py_None); resultobj = Py_None; | |
19311 | return resultobj; | |
19312 | fail: | |
19313 | return NULL; | |
19314 | } | |
19315 | ||
19316 | ||
19317 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19318 | PyObject *resultobj; | |
19319 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19320 | wxFont *arg2 = 0 ; | |
19321 | PyObject * obj0 = 0 ; | |
19322 | PyObject * obj1 = 0 ; | |
19323 | char *kwnames[] = { | |
19324 | (char *) "self",(char *) "font", NULL | |
19325 | }; | |
19326 | ||
19327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19331 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19332 | SWIG_fail; | |
d14a1e28 | 19333 | if (arg2 == NULL) { |
15afbcd0 RD |
19334 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19335 | SWIG_fail; | |
d14a1e28 RD |
19336 | } |
19337 | { | |
19338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19339 | (arg1)->SetFont((wxFont const &)*arg2); | |
19340 | ||
19341 | wxPyEndAllowThreads(__tstate); | |
19342 | if (PyErr_Occurred()) SWIG_fail; | |
19343 | } | |
19344 | Py_INCREF(Py_None); resultobj = Py_None; | |
19345 | return resultobj; | |
19346 | fail: | |
19347 | return NULL; | |
19348 | } | |
19349 | ||
19350 | ||
19351 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19352 | PyObject *resultobj; | |
19353 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19354 | long result; | |
19355 | PyObject * obj0 = 0 ; | |
19356 | char *kwnames[] = { | |
19357 | (char *) "self", NULL | |
19358 | }; | |
19359 | ||
19360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19363 | { |
19364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19365 | result = (long)(arg1)->GetMask(); | |
19366 | ||
19367 | wxPyEndAllowThreads(__tstate); | |
19368 | if (PyErr_Occurred()) SWIG_fail; | |
19369 | } | |
15afbcd0 | 19370 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19371 | return resultobj; |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19378 | PyObject *resultobj; | |
19379 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19380 | long result; | |
19381 | PyObject * obj0 = 0 ; | |
19382 | char *kwnames[] = { | |
19383 | (char *) "self", NULL | |
19384 | }; | |
19385 | ||
19386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19389 | { |
19390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19391 | result = (long)(arg1)->GetId(); | |
19392 | ||
19393 | wxPyEndAllowThreads(__tstate); | |
19394 | if (PyErr_Occurred()) SWIG_fail; | |
19395 | } | |
15afbcd0 | 19396 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19397 | return resultobj; |
19398 | fail: | |
19399 | return NULL; | |
19400 | } | |
19401 | ||
19402 | ||
19403 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19404 | PyObject *resultobj; | |
19405 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19406 | int result; | |
19407 | PyObject * obj0 = 0 ; | |
19408 | char *kwnames[] = { | |
19409 | (char *) "self", NULL | |
19410 | }; | |
19411 | ||
19412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19415 | { |
19416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19417 | result = (int)(arg1)->GetColumn(); | |
19418 | ||
19419 | wxPyEndAllowThreads(__tstate); | |
19420 | if (PyErr_Occurred()) SWIG_fail; | |
19421 | } | |
15afbcd0 | 19422 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19423 | return resultobj; |
19424 | fail: | |
19425 | return NULL; | |
19426 | } | |
19427 | ||
19428 | ||
19429 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19430 | PyObject *resultobj; | |
19431 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19432 | long result; | |
19433 | PyObject * obj0 = 0 ; | |
19434 | char *kwnames[] = { | |
19435 | (char *) "self", NULL | |
19436 | }; | |
19437 | ||
19438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19441 | { |
19442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19443 | result = (long)(arg1)->GetState(); | |
19444 | ||
19445 | wxPyEndAllowThreads(__tstate); | |
19446 | if (PyErr_Occurred()) SWIG_fail; | |
19447 | } | |
15afbcd0 | 19448 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19449 | return resultobj; |
19450 | fail: | |
19451 | return NULL; | |
19452 | } | |
19453 | ||
19454 | ||
19455 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19456 | PyObject *resultobj; | |
19457 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19458 | wxString *result; | |
19459 | PyObject * obj0 = 0 ; | |
19460 | char *kwnames[] = { | |
19461 | (char *) "self", NULL | |
19462 | }; | |
19463 | ||
19464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19467 | { |
19468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19469 | { | |
19470 | wxString const &_result_ref = (arg1)->GetText(); | |
19471 | result = (wxString *) &_result_ref; | |
19472 | } | |
19473 | ||
19474 | wxPyEndAllowThreads(__tstate); | |
19475 | if (PyErr_Occurred()) SWIG_fail; | |
19476 | } | |
cc6dd355 RD |
19477 | { |
19478 | #if wxUSE_UNICODE | |
19479 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19480 | #else | |
19481 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19482 | #endif | |
19483 | } | |
d14a1e28 RD |
19484 | return resultobj; |
19485 | fail: | |
19486 | return NULL; | |
19487 | } | |
19488 | ||
19489 | ||
19490 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19491 | PyObject *resultobj; | |
19492 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19493 | int result; | |
19494 | PyObject * obj0 = 0 ; | |
19495 | char *kwnames[] = { | |
19496 | (char *) "self", NULL | |
19497 | }; | |
19498 | ||
19499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19502 | { |
19503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19504 | result = (int)(arg1)->GetImage(); | |
19505 | ||
19506 | wxPyEndAllowThreads(__tstate); | |
19507 | if (PyErr_Occurred()) SWIG_fail; | |
19508 | } | |
15afbcd0 | 19509 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19510 | return resultobj; |
19511 | fail: | |
19512 | return NULL; | |
19513 | } | |
19514 | ||
19515 | ||
19516 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19517 | PyObject *resultobj; | |
19518 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19519 | long result; | |
19520 | PyObject * obj0 = 0 ; | |
19521 | char *kwnames[] = { | |
19522 | (char *) "self", NULL | |
19523 | }; | |
19524 | ||
19525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19528 | { |
19529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19530 | result = (long)(arg1)->GetData(); | |
19531 | ||
19532 | wxPyEndAllowThreads(__tstate); | |
19533 | if (PyErr_Occurred()) SWIG_fail; | |
19534 | } | |
15afbcd0 | 19535 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19536 | return resultobj; |
19537 | fail: | |
19538 | return NULL; | |
19539 | } | |
19540 | ||
19541 | ||
19542 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19543 | PyObject *resultobj; | |
19544 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19545 | int result; | |
19546 | PyObject * obj0 = 0 ; | |
19547 | char *kwnames[] = { | |
19548 | (char *) "self", NULL | |
19549 | }; | |
19550 | ||
19551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19554 | { |
19555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19556 | result = (int)(arg1)->GetWidth(); | |
19557 | ||
19558 | wxPyEndAllowThreads(__tstate); | |
19559 | if (PyErr_Occurred()) SWIG_fail; | |
19560 | } | |
15afbcd0 | 19561 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19562 | return resultobj; |
19563 | fail: | |
19564 | return NULL; | |
19565 | } | |
19566 | ||
19567 | ||
19568 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19569 | PyObject *resultobj; | |
19570 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19571 | int result; | |
19572 | PyObject * obj0 = 0 ; | |
19573 | char *kwnames[] = { | |
19574 | (char *) "self", NULL | |
19575 | }; | |
19576 | ||
19577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19580 | { |
19581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19582 | result = (int)(arg1)->GetAlign(); | |
19583 | ||
19584 | wxPyEndAllowThreads(__tstate); | |
19585 | if (PyErr_Occurred()) SWIG_fail; | |
19586 | } | |
15afbcd0 | 19587 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19588 | return resultobj; |
19589 | fail: | |
19590 | return NULL; | |
19591 | } | |
19592 | ||
19593 | ||
19594 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19595 | PyObject *resultobj; | |
19596 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19597 | wxListItemAttr *result; | |
19598 | PyObject * obj0 = 0 ; | |
19599 | char *kwnames[] = { | |
19600 | (char *) "self", NULL | |
19601 | }; | |
19602 | ||
19603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19606 | { |
19607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19608 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19609 | ||
19610 | wxPyEndAllowThreads(__tstate); | |
19611 | if (PyErr_Occurred()) SWIG_fail; | |
19612 | } | |
15afbcd0 | 19613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
19614 | return resultobj; |
19615 | fail: | |
19616 | return NULL; | |
19617 | } | |
19618 | ||
19619 | ||
19620 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19621 | PyObject *resultobj; | |
19622 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19623 | bool result; | |
19624 | PyObject * obj0 = 0 ; | |
19625 | char *kwnames[] = { | |
19626 | (char *) "self", NULL | |
19627 | }; | |
19628 | ||
19629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19632 | { |
19633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19634 | result = (bool)(arg1)->HasAttributes(); | |
19635 | ||
19636 | wxPyEndAllowThreads(__tstate); | |
19637 | if (PyErr_Occurred()) SWIG_fail; | |
19638 | } | |
4f89f6a3 RD |
19639 | { |
19640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19641 | } | |
d14a1e28 RD |
19642 | return resultobj; |
19643 | fail: | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
19648 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19649 | PyObject *resultobj; | |
19650 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19651 | wxColour result; | |
19652 | PyObject * obj0 = 0 ; | |
19653 | char *kwnames[] = { | |
19654 | (char *) "self", NULL | |
19655 | }; | |
19656 | ||
19657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19660 | { |
19661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19662 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19663 | ||
19664 | wxPyEndAllowThreads(__tstate); | |
19665 | if (PyErr_Occurred()) SWIG_fail; | |
19666 | } | |
19667 | { | |
19668 | wxColour * resultptr; | |
19669 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19670 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19671 | } |
19672 | return resultobj; | |
19673 | fail: | |
19674 | return NULL; | |
19675 | } | |
19676 | ||
19677 | ||
19678 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19679 | PyObject *resultobj; | |
19680 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19681 | wxColour result; | |
19682 | PyObject * obj0 = 0 ; | |
19683 | char *kwnames[] = { | |
19684 | (char *) "self", NULL | |
19685 | }; | |
19686 | ||
19687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19690 | { |
19691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19692 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19693 | ||
19694 | wxPyEndAllowThreads(__tstate); | |
19695 | if (PyErr_Occurred()) SWIG_fail; | |
19696 | } | |
19697 | { | |
19698 | wxColour * resultptr; | |
19699 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19700 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19701 | } |
19702 | return resultobj; | |
19703 | fail: | |
19704 | return NULL; | |
19705 | } | |
19706 | ||
19707 | ||
19708 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19709 | PyObject *resultobj; | |
19710 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19711 | wxFont result; | |
19712 | PyObject * obj0 = 0 ; | |
19713 | char *kwnames[] = { | |
19714 | (char *) "self", NULL | |
19715 | }; | |
19716 | ||
19717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19720 | { |
19721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19722 | result = ((wxListItem const *)arg1)->GetFont(); | |
19723 | ||
19724 | wxPyEndAllowThreads(__tstate); | |
19725 | if (PyErr_Occurred()) SWIG_fail; | |
19726 | } | |
19727 | { | |
19728 | wxFont * resultptr; | |
19729 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 19730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19731 | } |
19732 | return resultobj; | |
19733 | fail: | |
19734 | return NULL; | |
19735 | } | |
19736 | ||
19737 | ||
19738 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19739 | PyObject *resultobj; | |
19740 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19741 | long arg2 ; | |
19742 | PyObject * obj0 = 0 ; | |
994141e6 | 19743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19744 | char *kwnames[] = { |
19745 | (char *) "self",(char *) "m_mask", NULL | |
19746 | }; | |
19747 | ||
994141e6 | 19748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19751 | arg2 = (long) SWIG_AsLong(obj1); | |
19752 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19753 | if (arg1) (arg1)->m_mask = arg2; |
19754 | ||
19755 | Py_INCREF(Py_None); resultobj = Py_None; | |
19756 | return resultobj; | |
19757 | fail: | |
19758 | return NULL; | |
19759 | } | |
19760 | ||
19761 | ||
19762 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19763 | PyObject *resultobj; | |
19764 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19765 | long result; | |
19766 | PyObject * obj0 = 0 ; | |
19767 | char *kwnames[] = { | |
19768 | (char *) "self", NULL | |
19769 | }; | |
19770 | ||
19771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19774 | result = (long) ((arg1)->m_mask); |
19775 | ||
15afbcd0 | 19776 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19777 | return resultobj; |
19778 | fail: | |
19779 | return NULL; | |
19780 | } | |
19781 | ||
19782 | ||
19783 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19784 | PyObject *resultobj; | |
19785 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19786 | long arg2 ; | |
19787 | PyObject * obj0 = 0 ; | |
994141e6 | 19788 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19789 | char *kwnames[] = { |
19790 | (char *) "self",(char *) "m_itemId", NULL | |
19791 | }; | |
19792 | ||
994141e6 | 19793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19796 | arg2 = (long) SWIG_AsLong(obj1); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19798 | if (arg1) (arg1)->m_itemId = arg2; |
19799 | ||
19800 | Py_INCREF(Py_None); resultobj = Py_None; | |
19801 | return resultobj; | |
19802 | fail: | |
19803 | return NULL; | |
19804 | } | |
19805 | ||
19806 | ||
19807 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19808 | PyObject *resultobj; | |
19809 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19810 | long result; | |
19811 | PyObject * obj0 = 0 ; | |
19812 | char *kwnames[] = { | |
19813 | (char *) "self", NULL | |
19814 | }; | |
19815 | ||
19816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19819 | result = (long) ((arg1)->m_itemId); |
19820 | ||
15afbcd0 | 19821 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19822 | return resultobj; |
19823 | fail: | |
19824 | return NULL; | |
19825 | } | |
19826 | ||
19827 | ||
19828 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19829 | PyObject *resultobj; | |
19830 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19831 | int arg2 ; | |
19832 | PyObject * obj0 = 0 ; | |
994141e6 | 19833 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19834 | char *kwnames[] = { |
19835 | (char *) "self",(char *) "m_col", NULL | |
19836 | }; | |
19837 | ||
994141e6 | 19838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19841 | arg2 = (int) SWIG_AsInt(obj1); | |
19842 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19843 | if (arg1) (arg1)->m_col = arg2; |
19844 | ||
19845 | Py_INCREF(Py_None); resultobj = Py_None; | |
19846 | return resultobj; | |
19847 | fail: | |
19848 | return NULL; | |
19849 | } | |
19850 | ||
19851 | ||
19852 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19853 | PyObject *resultobj; | |
19854 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19855 | int result; | |
19856 | PyObject * obj0 = 0 ; | |
19857 | char *kwnames[] = { | |
19858 | (char *) "self", NULL | |
19859 | }; | |
19860 | ||
19861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19864 | result = (int) ((arg1)->m_col); |
19865 | ||
15afbcd0 | 19866 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19867 | return resultobj; |
19868 | fail: | |
19869 | return NULL; | |
19870 | } | |
19871 | ||
19872 | ||
19873 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19874 | PyObject *resultobj; | |
19875 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19876 | long arg2 ; | |
19877 | PyObject * obj0 = 0 ; | |
994141e6 | 19878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19879 | char *kwnames[] = { |
19880 | (char *) "self",(char *) "m_state", NULL | |
19881 | }; | |
19882 | ||
994141e6 | 19883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19886 | arg2 = (long) SWIG_AsLong(obj1); | |
19887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19888 | if (arg1) (arg1)->m_state = arg2; |
19889 | ||
19890 | Py_INCREF(Py_None); resultobj = Py_None; | |
19891 | return resultobj; | |
19892 | fail: | |
19893 | return NULL; | |
19894 | } | |
19895 | ||
19896 | ||
19897 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19898 | PyObject *resultobj; | |
19899 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19900 | long result; | |
19901 | PyObject * obj0 = 0 ; | |
19902 | char *kwnames[] = { | |
19903 | (char *) "self", NULL | |
19904 | }; | |
19905 | ||
19906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19909 | result = (long) ((arg1)->m_state); |
19910 | ||
15afbcd0 | 19911 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19912 | return resultobj; |
19913 | fail: | |
19914 | return NULL; | |
19915 | } | |
19916 | ||
19917 | ||
19918 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19919 | PyObject *resultobj; | |
19920 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19921 | long arg2 ; | |
19922 | PyObject * obj0 = 0 ; | |
994141e6 | 19923 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19924 | char *kwnames[] = { |
19925 | (char *) "self",(char *) "m_stateMask", NULL | |
19926 | }; | |
19927 | ||
994141e6 | 19928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19931 | arg2 = (long) SWIG_AsLong(obj1); | |
19932 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19933 | if (arg1) (arg1)->m_stateMask = arg2; |
19934 | ||
19935 | Py_INCREF(Py_None); resultobj = Py_None; | |
19936 | return resultobj; | |
19937 | fail: | |
19938 | return NULL; | |
19939 | } | |
19940 | ||
19941 | ||
19942 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19943 | PyObject *resultobj; | |
19944 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19945 | long result; | |
19946 | PyObject * obj0 = 0 ; | |
19947 | char *kwnames[] = { | |
19948 | (char *) "self", NULL | |
19949 | }; | |
19950 | ||
19951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19954 | result = (long) ((arg1)->m_stateMask); |
19955 | ||
15afbcd0 | 19956 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19957 | return resultobj; |
19958 | fail: | |
19959 | return NULL; | |
19960 | } | |
19961 | ||
19962 | ||
19963 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19964 | PyObject *resultobj; | |
19965 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 19966 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 19967 | bool temp2 = False ; |
d14a1e28 RD |
19968 | PyObject * obj0 = 0 ; |
19969 | PyObject * obj1 = 0 ; | |
19970 | char *kwnames[] = { | |
19971 | (char *) "self",(char *) "m_text", NULL | |
19972 | }; | |
19973 | ||
19974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
19977 | { |
19978 | arg2 = wxString_in_helper(obj1); | |
19979 | if (arg2 == NULL) SWIG_fail; | |
19980 | temp2 = True; | |
19981 | } | |
196addbf | 19982 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
19983 | |
19984 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
19985 | { |
19986 | if (temp2) | |
19987 | delete arg2; | |
19988 | } | |
d14a1e28 RD |
19989 | return resultobj; |
19990 | fail: | |
7eae615b RD |
19991 | { |
19992 | if (temp2) | |
19993 | delete arg2; | |
19994 | } | |
d14a1e28 RD |
19995 | return NULL; |
19996 | } | |
19997 | ||
19998 | ||
19999 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20000 | PyObject *resultobj; | |
20001 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20002 | wxString *result; |
d14a1e28 RD |
20003 | PyObject * obj0 = 0 ; |
20004 | char *kwnames[] = { | |
20005 | (char *) "self", NULL | |
20006 | }; | |
20007 | ||
20008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 20011 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
20012 | |
20013 | { | |
20014 | #if wxUSE_UNICODE | |
196addbf | 20015 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 20016 | #else |
196addbf | 20017 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
20018 | #endif |
20019 | } | |
20020 | return resultobj; | |
20021 | fail: | |
20022 | return NULL; | |
20023 | } | |
20024 | ||
20025 | ||
20026 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20027 | PyObject *resultobj; | |
20028 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20029 | int arg2 ; | |
20030 | PyObject * obj0 = 0 ; | |
994141e6 | 20031 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20032 | char *kwnames[] = { |
20033 | (char *) "self",(char *) "m_image", NULL | |
20034 | }; | |
20035 | ||
994141e6 | 20036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20039 | arg2 = (int) SWIG_AsInt(obj1); | |
20040 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20041 | if (arg1) (arg1)->m_image = arg2; |
20042 | ||
20043 | Py_INCREF(Py_None); resultobj = Py_None; | |
20044 | return resultobj; | |
20045 | fail: | |
20046 | return NULL; | |
20047 | } | |
20048 | ||
20049 | ||
20050 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20051 | PyObject *resultobj; | |
20052 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20053 | int result; | |
20054 | PyObject * obj0 = 0 ; | |
20055 | char *kwnames[] = { | |
20056 | (char *) "self", NULL | |
20057 | }; | |
20058 | ||
20059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20062 | result = (int) ((arg1)->m_image); |
20063 | ||
15afbcd0 | 20064 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20065 | return resultobj; |
20066 | fail: | |
20067 | return NULL; | |
20068 | } | |
20069 | ||
20070 | ||
20071 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20072 | PyObject *resultobj; | |
20073 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20074 | long arg2 ; | |
20075 | PyObject * obj0 = 0 ; | |
994141e6 | 20076 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20077 | char *kwnames[] = { |
20078 | (char *) "self",(char *) "m_data", NULL | |
20079 | }; | |
20080 | ||
994141e6 | 20081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20084 | arg2 = (long) SWIG_AsLong(obj1); | |
20085 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20086 | if (arg1) (arg1)->m_data = arg2; |
20087 | ||
20088 | Py_INCREF(Py_None); resultobj = Py_None; | |
20089 | return resultobj; | |
20090 | fail: | |
20091 | return NULL; | |
20092 | } | |
20093 | ||
20094 | ||
20095 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20096 | PyObject *resultobj; | |
20097 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20098 | long result; | |
20099 | PyObject * obj0 = 0 ; | |
20100 | char *kwnames[] = { | |
20101 | (char *) "self", NULL | |
20102 | }; | |
20103 | ||
20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20107 | result = (long) ((arg1)->m_data); |
20108 | ||
15afbcd0 | 20109 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20110 | return resultobj; |
20111 | fail: | |
20112 | return NULL; | |
20113 | } | |
20114 | ||
20115 | ||
20116 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20117 | PyObject *resultobj; | |
20118 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20119 | int arg2 ; | |
20120 | PyObject * obj0 = 0 ; | |
994141e6 | 20121 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20122 | char *kwnames[] = { |
20123 | (char *) "self",(char *) "m_format", NULL | |
20124 | }; | |
20125 | ||
994141e6 | 20126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20129 | arg2 = (int) SWIG_AsInt(obj1); | |
20130 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20131 | if (arg1) (arg1)->m_format = arg2; |
20132 | ||
20133 | Py_INCREF(Py_None); resultobj = Py_None; | |
20134 | return resultobj; | |
20135 | fail: | |
20136 | return NULL; | |
20137 | } | |
20138 | ||
20139 | ||
20140 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20141 | PyObject *resultobj; | |
20142 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20143 | int result; | |
20144 | PyObject * obj0 = 0 ; | |
20145 | char *kwnames[] = { | |
20146 | (char *) "self", NULL | |
20147 | }; | |
20148 | ||
20149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20152 | result = (int) ((arg1)->m_format); |
20153 | ||
15afbcd0 | 20154 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20155 | return resultobj; |
20156 | fail: | |
20157 | return NULL; | |
20158 | } | |
20159 | ||
20160 | ||
20161 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20162 | PyObject *resultobj; | |
20163 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20164 | int arg2 ; | |
20165 | PyObject * obj0 = 0 ; | |
994141e6 | 20166 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20167 | char *kwnames[] = { |
20168 | (char *) "self",(char *) "m_width", NULL | |
20169 | }; | |
20170 | ||
994141e6 | 20171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20174 | arg2 = (int) SWIG_AsInt(obj1); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20176 | if (arg1) (arg1)->m_width = arg2; |
20177 | ||
20178 | Py_INCREF(Py_None); resultobj = Py_None; | |
20179 | return resultobj; | |
20180 | fail: | |
20181 | return NULL; | |
20182 | } | |
20183 | ||
20184 | ||
20185 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20186 | PyObject *resultobj; | |
20187 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20188 | int result; | |
20189 | PyObject * obj0 = 0 ; | |
20190 | char *kwnames[] = { | |
20191 | (char *) "self", NULL | |
20192 | }; | |
20193 | ||
20194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20197 | result = (int) ((arg1)->m_width); |
20198 | ||
15afbcd0 | 20199 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20200 | return resultobj; |
20201 | fail: | |
20202 | return NULL; | |
20203 | } | |
20204 | ||
20205 | ||
20206 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
20207 | PyObject *obj; | |
20208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20209 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20210 | Py_INCREF(obj); | |
20211 | return Py_BuildValue((char *)""); | |
20212 | } | |
20213 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20214 | PyObject *resultobj; | |
20215 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20216 | int arg2 = (int) 0 ; | |
20217 | wxListEvent *result; | |
994141e6 RD |
20218 | PyObject * obj0 = 0 ; |
20219 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20220 | char *kwnames[] = { |
20221 | (char *) "commandType",(char *) "id", NULL | |
20222 | }; | |
20223 | ||
994141e6 RD |
20224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
20225 | if (obj0) { | |
15afbcd0 RD |
20226 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
20227 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20228 | } |
20229 | if (obj1) { | |
15afbcd0 RD |
20230 | arg2 = (int) SWIG_AsInt(obj1); |
20231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20232 | } |
d14a1e28 RD |
20233 | { |
20234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20235 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20236 | ||
20237 | wxPyEndAllowThreads(__tstate); | |
20238 | if (PyErr_Occurred()) SWIG_fail; | |
20239 | } | |
15afbcd0 | 20240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
20241 | return resultobj; |
20242 | fail: | |
20243 | return NULL; | |
20244 | } | |
20245 | ||
20246 | ||
20247 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20248 | PyObject *resultobj; | |
20249 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20250 | int arg2 ; | |
20251 | PyObject * obj0 = 0 ; | |
994141e6 | 20252 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20253 | char *kwnames[] = { |
20254 | (char *) "self",(char *) "m_code", NULL | |
20255 | }; | |
20256 | ||
994141e6 | 20257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20260 | arg2 = (int) SWIG_AsInt(obj1); | |
20261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20262 | if (arg1) (arg1)->m_code = arg2; |
20263 | ||
20264 | Py_INCREF(Py_None); resultobj = Py_None; | |
20265 | return resultobj; | |
20266 | fail: | |
20267 | return NULL; | |
20268 | } | |
20269 | ||
20270 | ||
20271 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20272 | PyObject *resultobj; | |
20273 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20274 | int result; | |
20275 | PyObject * obj0 = 0 ; | |
20276 | char *kwnames[] = { | |
20277 | (char *) "self", NULL | |
20278 | }; | |
20279 | ||
20280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20283 | result = (int) ((arg1)->m_code); |
20284 | ||
15afbcd0 | 20285 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20286 | return resultobj; |
20287 | fail: | |
20288 | return NULL; | |
20289 | } | |
20290 | ||
20291 | ||
20292 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20293 | PyObject *resultobj; | |
20294 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20295 | long arg2 ; | |
20296 | PyObject * obj0 = 0 ; | |
994141e6 | 20297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20298 | char *kwnames[] = { |
20299 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20300 | }; | |
20301 | ||
994141e6 | 20302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20305 | arg2 = (long) SWIG_AsLong(obj1); | |
20306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20307 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
20308 | ||
20309 | Py_INCREF(Py_None); resultobj = Py_None; | |
20310 | return resultobj; | |
20311 | fail: | |
20312 | return NULL; | |
20313 | } | |
20314 | ||
20315 | ||
20316 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20317 | PyObject *resultobj; | |
20318 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20319 | long result; | |
20320 | PyObject * obj0 = 0 ; | |
20321 | char *kwnames[] = { | |
20322 | (char *) "self", NULL | |
20323 | }; | |
20324 | ||
20325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20328 | result = (long) ((arg1)->m_oldItemIndex); |
20329 | ||
15afbcd0 | 20330 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20331 | return resultobj; |
20332 | fail: | |
20333 | return NULL; | |
20334 | } | |
20335 | ||
20336 | ||
20337 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20338 | PyObject *resultobj; | |
20339 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20340 | long arg2 ; | |
20341 | PyObject * obj0 = 0 ; | |
994141e6 | 20342 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20343 | char *kwnames[] = { |
20344 | (char *) "self",(char *) "m_itemIndex", NULL | |
20345 | }; | |
20346 | ||
994141e6 | 20347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20350 | arg2 = (long) SWIG_AsLong(obj1); | |
20351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20352 | if (arg1) (arg1)->m_itemIndex = arg2; |
20353 | ||
20354 | Py_INCREF(Py_None); resultobj = Py_None; | |
20355 | return resultobj; | |
20356 | fail: | |
20357 | return NULL; | |
20358 | } | |
20359 | ||
20360 | ||
20361 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20362 | PyObject *resultobj; | |
20363 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20364 | long result; | |
20365 | PyObject * obj0 = 0 ; | |
20366 | char *kwnames[] = { | |
20367 | (char *) "self", NULL | |
20368 | }; | |
20369 | ||
20370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20373 | result = (long) ((arg1)->m_itemIndex); |
20374 | ||
15afbcd0 | 20375 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20376 | return resultobj; |
20377 | fail: | |
20378 | return NULL; | |
20379 | } | |
20380 | ||
20381 | ||
20382 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20383 | PyObject *resultobj; | |
20384 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20385 | int arg2 ; | |
20386 | PyObject * obj0 = 0 ; | |
994141e6 | 20387 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20388 | char *kwnames[] = { |
20389 | (char *) "self",(char *) "m_col", NULL | |
20390 | }; | |
20391 | ||
994141e6 | 20392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20395 | arg2 = (int) SWIG_AsInt(obj1); | |
20396 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20397 | if (arg1) (arg1)->m_col = arg2; |
20398 | ||
20399 | Py_INCREF(Py_None); resultobj = Py_None; | |
20400 | return resultobj; | |
20401 | fail: | |
20402 | return NULL; | |
20403 | } | |
20404 | ||
20405 | ||
20406 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20407 | PyObject *resultobj; | |
20408 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20409 | int result; | |
20410 | PyObject * obj0 = 0 ; | |
20411 | char *kwnames[] = { | |
20412 | (char *) "self", NULL | |
20413 | }; | |
20414 | ||
20415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20418 | result = (int) ((arg1)->m_col); |
20419 | ||
15afbcd0 | 20420 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20421 | return resultobj; |
20422 | fail: | |
20423 | return NULL; | |
20424 | } | |
20425 | ||
20426 | ||
20427 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20428 | PyObject *resultobj; | |
20429 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20430 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20431 | PyObject * obj0 = 0 ; | |
20432 | PyObject * obj1 = 0 ; | |
20433 | char *kwnames[] = { | |
20434 | (char *) "self",(char *) "m_pointDrag", NULL | |
20435 | }; | |
20436 | ||
20437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20442 | if (arg1) (arg1)->m_pointDrag = *arg2; |
20443 | ||
20444 | Py_INCREF(Py_None); resultobj = Py_None; | |
20445 | return resultobj; | |
20446 | fail: | |
20447 | return NULL; | |
20448 | } | |
20449 | ||
20450 | ||
20451 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20452 | PyObject *resultobj; | |
20453 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20454 | wxPoint *result; | |
20455 | PyObject * obj0 = 0 ; | |
20456 | char *kwnames[] = { | |
20457 | (char *) "self", NULL | |
20458 | }; | |
20459 | ||
20460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20463 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
20464 | ||
15afbcd0 | 20465 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
20466 | return resultobj; |
20467 | fail: | |
20468 | return NULL; | |
20469 | } | |
20470 | ||
20471 | ||
20472 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20473 | PyObject *resultobj; | |
20474 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20475 | wxListItem *result; | |
20476 | PyObject * obj0 = 0 ; | |
20477 | char *kwnames[] = { | |
20478 | (char *) "self", NULL | |
20479 | }; | |
20480 | ||
20481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20484 | result = (wxListItem *)& ((arg1)->m_item); |
20485 | ||
20486 | { | |
20487 | resultobj = wxPyMake_wxObject(result); | |
20488 | } | |
20489 | return resultobj; | |
20490 | fail: | |
20491 | return NULL; | |
20492 | } | |
20493 | ||
20494 | ||
20495 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20496 | PyObject *resultobj; | |
20497 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20498 | int result; | |
20499 | PyObject * obj0 = 0 ; | |
20500 | char *kwnames[] = { | |
20501 | (char *) "self", NULL | |
20502 | }; | |
20503 | ||
20504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20507 | { |
20508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20509 | result = (int)(arg1)->GetKeyCode(); | |
20510 | ||
20511 | wxPyEndAllowThreads(__tstate); | |
20512 | if (PyErr_Occurred()) SWIG_fail; | |
20513 | } | |
15afbcd0 | 20514 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20515 | return resultobj; |
20516 | fail: | |
20517 | return NULL; | |
20518 | } | |
20519 | ||
20520 | ||
20521 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20522 | PyObject *resultobj; | |
20523 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20524 | long result; | |
20525 | PyObject * obj0 = 0 ; | |
20526 | char *kwnames[] = { | |
20527 | (char *) "self", NULL | |
20528 | }; | |
20529 | ||
20530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20533 | { |
20534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20535 | result = (long)(arg1)->GetIndex(); | |
20536 | ||
20537 | wxPyEndAllowThreads(__tstate); | |
20538 | if (PyErr_Occurred()) SWIG_fail; | |
20539 | } | |
15afbcd0 | 20540 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20541 | return resultobj; |
20542 | fail: | |
20543 | return NULL; | |
20544 | } | |
20545 | ||
20546 | ||
20547 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20548 | PyObject *resultobj; | |
20549 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20550 | int result; | |
20551 | PyObject * obj0 = 0 ; | |
20552 | char *kwnames[] = { | |
20553 | (char *) "self", NULL | |
20554 | }; | |
20555 | ||
20556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20559 | { |
20560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20561 | result = (int)(arg1)->GetColumn(); | |
20562 | ||
20563 | wxPyEndAllowThreads(__tstate); | |
20564 | if (PyErr_Occurred()) SWIG_fail; | |
20565 | } | |
15afbcd0 | 20566 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20567 | return resultobj; |
20568 | fail: | |
20569 | return NULL; | |
20570 | } | |
20571 | ||
20572 | ||
20573 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20574 | PyObject *resultobj; | |
20575 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20576 | wxPoint result; | |
20577 | PyObject * obj0 = 0 ; | |
20578 | char *kwnames[] = { | |
20579 | (char *) "self", NULL | |
20580 | }; | |
20581 | ||
20582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20585 | { |
20586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20587 | result = (arg1)->GetPoint(); | |
20588 | ||
20589 | wxPyEndAllowThreads(__tstate); | |
20590 | if (PyErr_Occurred()) SWIG_fail; | |
20591 | } | |
20592 | { | |
20593 | wxPoint * resultptr; | |
20594 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 20595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
20596 | } |
20597 | return resultobj; | |
20598 | fail: | |
20599 | return NULL; | |
20600 | } | |
20601 | ||
20602 | ||
20603 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20604 | PyObject *resultobj; | |
20605 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20606 | wxString *result; | |
20607 | PyObject * obj0 = 0 ; | |
20608 | char *kwnames[] = { | |
20609 | (char *) "self", NULL | |
20610 | }; | |
20611 | ||
20612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20615 | { |
20616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20617 | { | |
20618 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20619 | result = (wxString *) &_result_ref; | |
20620 | } | |
20621 | ||
20622 | wxPyEndAllowThreads(__tstate); | |
20623 | if (PyErr_Occurred()) SWIG_fail; | |
20624 | } | |
cc6dd355 RD |
20625 | { |
20626 | #if wxUSE_UNICODE | |
20627 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20628 | #else | |
20629 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20630 | #endif | |
20631 | } | |
d14a1e28 RD |
20632 | return resultobj; |
20633 | fail: | |
20634 | return NULL; | |
20635 | } | |
20636 | ||
20637 | ||
20638 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20639 | PyObject *resultobj; | |
20640 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20641 | wxString *result; | |
20642 | PyObject * obj0 = 0 ; | |
20643 | char *kwnames[] = { | |
20644 | (char *) "self", NULL | |
20645 | }; | |
20646 | ||
20647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20650 | { |
20651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20652 | { | |
20653 | wxString const &_result_ref = (arg1)->GetText(); | |
20654 | result = (wxString *) &_result_ref; | |
20655 | } | |
20656 | ||
20657 | wxPyEndAllowThreads(__tstate); | |
20658 | if (PyErr_Occurred()) SWIG_fail; | |
20659 | } | |
cc6dd355 RD |
20660 | { |
20661 | #if wxUSE_UNICODE | |
20662 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20663 | #else | |
20664 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20665 | #endif | |
20666 | } | |
d14a1e28 RD |
20667 | return resultobj; |
20668 | fail: | |
20669 | return NULL; | |
20670 | } | |
20671 | ||
20672 | ||
20673 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20674 | PyObject *resultobj; | |
20675 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20676 | int result; | |
20677 | PyObject * obj0 = 0 ; | |
20678 | char *kwnames[] = { | |
20679 | (char *) "self", NULL | |
20680 | }; | |
20681 | ||
20682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20685 | { |
20686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20687 | result = (int)(arg1)->GetImage(); | |
20688 | ||
20689 | wxPyEndAllowThreads(__tstate); | |
20690 | if (PyErr_Occurred()) SWIG_fail; | |
20691 | } | |
15afbcd0 | 20692 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20693 | return resultobj; |
20694 | fail: | |
20695 | return NULL; | |
20696 | } | |
20697 | ||
20698 | ||
20699 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20700 | PyObject *resultobj; | |
20701 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20702 | long result; | |
20703 | PyObject * obj0 = 0 ; | |
20704 | char *kwnames[] = { | |
20705 | (char *) "self", NULL | |
20706 | }; | |
20707 | ||
20708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20711 | { |
20712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20713 | result = (long)(arg1)->GetData(); | |
20714 | ||
20715 | wxPyEndAllowThreads(__tstate); | |
20716 | if (PyErr_Occurred()) SWIG_fail; | |
20717 | } | |
15afbcd0 | 20718 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20719 | return resultobj; |
20720 | fail: | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
20725 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20726 | PyObject *resultobj; | |
20727 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20728 | long result; | |
20729 | PyObject * obj0 = 0 ; | |
20730 | char *kwnames[] = { | |
20731 | (char *) "self", NULL | |
20732 | }; | |
20733 | ||
20734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20737 | { |
20738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20739 | result = (long)(arg1)->GetMask(); | |
20740 | ||
20741 | wxPyEndAllowThreads(__tstate); | |
20742 | if (PyErr_Occurred()) SWIG_fail; | |
20743 | } | |
15afbcd0 | 20744 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20745 | return resultobj; |
20746 | fail: | |
20747 | return NULL; | |
20748 | } | |
20749 | ||
20750 | ||
20751 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20752 | PyObject *resultobj; | |
20753 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20754 | wxListItem *result; | |
20755 | PyObject * obj0 = 0 ; | |
20756 | char *kwnames[] = { | |
20757 | (char *) "self", NULL | |
20758 | }; | |
20759 | ||
20760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20763 | { |
20764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20765 | { | |
20766 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20767 | result = (wxListItem *) &_result_ref; | |
20768 | } | |
20769 | ||
20770 | wxPyEndAllowThreads(__tstate); | |
20771 | if (PyErr_Occurred()) SWIG_fail; | |
20772 | } | |
15afbcd0 | 20773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
20774 | return resultobj; |
20775 | fail: | |
20776 | return NULL; | |
20777 | } | |
20778 | ||
20779 | ||
20780 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20781 | PyObject *resultobj; | |
20782 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20783 | long result; | |
20784 | PyObject * obj0 = 0 ; | |
20785 | char *kwnames[] = { | |
20786 | (char *) "self", NULL | |
20787 | }; | |
20788 | ||
20789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20792 | { |
20793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20794 | result = (long)(arg1)->GetCacheFrom(); | |
20795 | ||
20796 | wxPyEndAllowThreads(__tstate); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
15afbcd0 | 20799 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20800 | return resultobj; |
20801 | fail: | |
20802 | return NULL; | |
20803 | } | |
20804 | ||
20805 | ||
20806 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20807 | PyObject *resultobj; | |
20808 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20809 | long result; | |
20810 | PyObject * obj0 = 0 ; | |
20811 | char *kwnames[] = { | |
20812 | (char *) "self", NULL | |
20813 | }; | |
20814 | ||
20815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20818 | { |
20819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20820 | result = (long)(arg1)->GetCacheTo(); | |
20821 | ||
20822 | wxPyEndAllowThreads(__tstate); | |
20823 | if (PyErr_Occurred()) SWIG_fail; | |
20824 | } | |
15afbcd0 | 20825 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20826 | return resultobj; |
20827 | fail: | |
20828 | return NULL; | |
20829 | } | |
20830 | ||
20831 | ||
20832 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20833 | PyObject *resultobj; | |
20834 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20835 | bool result; | |
20836 | PyObject * obj0 = 0 ; | |
20837 | char *kwnames[] = { | |
20838 | (char *) "self", NULL | |
20839 | }; | |
20840 | ||
20841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20844 | { |
20845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20846 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20847 | ||
20848 | wxPyEndAllowThreads(__tstate); | |
20849 | if (PyErr_Occurred()) SWIG_fail; | |
20850 | } | |
4f89f6a3 RD |
20851 | { |
20852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20853 | } | |
d14a1e28 RD |
20854 | return resultobj; |
20855 | fail: | |
20856 | return NULL; | |
20857 | } | |
20858 | ||
20859 | ||
20860 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20861 | PyObject *resultobj; | |
20862 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20863 | bool arg2 ; | |
20864 | PyObject * obj0 = 0 ; | |
20865 | PyObject * obj1 = 0 ; | |
20866 | char *kwnames[] = { | |
20867 | (char *) "self",(char *) "editCancelled", NULL | |
20868 | }; | |
20869 | ||
20870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20873 | arg2 = (bool) SWIG_AsBool(obj1); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20875 | { |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | (arg1)->SetEditCanceled(arg2); | |
20878 | ||
20879 | wxPyEndAllowThreads(__tstate); | |
20880 | if (PyErr_Occurred()) SWIG_fail; | |
20881 | } | |
20882 | Py_INCREF(Py_None); resultobj = Py_None; | |
20883 | return resultobj; | |
20884 | fail: | |
20885 | return NULL; | |
20886 | } | |
20887 | ||
20888 | ||
20889 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
20890 | PyObject *obj; | |
20891 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20892 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
20893 | Py_INCREF(obj); | |
20894 | return Py_BuildValue((char *)""); | |
20895 | } | |
20896 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20897 | PyObject *resultobj; | |
20898 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 20899 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20900 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20901 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20902 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20903 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20904 | long arg5 = (long) wxLC_ICON ; | |
20905 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20906 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20907 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20908 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20909 | wxPyListCtrl *result; | |
20910 | wxPoint temp3 ; | |
20911 | wxSize temp4 ; | |
e811c8ce | 20912 | bool temp7 = False ; |
d14a1e28 | 20913 | PyObject * obj0 = 0 ; |
994141e6 | 20914 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20915 | PyObject * obj2 = 0 ; |
20916 | PyObject * obj3 = 0 ; | |
994141e6 | 20917 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20918 | PyObject * obj5 = 0 ; |
20919 | PyObject * obj6 = 0 ; | |
20920 | char *kwnames[] = { | |
20921 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20922 | }; | |
20923 | ||
994141e6 | 20924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
20925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 20927 | if (obj1) { |
15afbcd0 RD |
20928 | arg2 = (int) SWIG_AsInt(obj1); |
20929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20930 | } |
d14a1e28 RD |
20931 | if (obj2) { |
20932 | { | |
20933 | arg3 = &temp3; | |
20934 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20935 | } | |
20936 | } | |
20937 | if (obj3) { | |
20938 | { | |
20939 | arg4 = &temp4; | |
20940 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20941 | } | |
20942 | } | |
994141e6 | 20943 | if (obj4) { |
15afbcd0 RD |
20944 | arg5 = (long) SWIG_AsLong(obj4); |
20945 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20946 | } |
d14a1e28 | 20947 | if (obj5) { |
15afbcd0 RD |
20948 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
20949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20950 | SWIG_fail; | |
d14a1e28 | 20951 | if (arg6 == NULL) { |
15afbcd0 RD |
20952 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20953 | SWIG_fail; | |
d14a1e28 RD |
20954 | } |
20955 | } | |
20956 | if (obj6) { | |
20957 | { | |
20958 | arg7 = wxString_in_helper(obj6); | |
20959 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20960 | temp7 = True; |
d14a1e28 RD |
20961 | } |
20962 | } | |
20963 | { | |
20964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20965 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20966 | ||
20967 | wxPyEndAllowThreads(__tstate); | |
20968 | if (PyErr_Occurred()) SWIG_fail; | |
20969 | } | |
15afbcd0 | 20970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
20971 | { |
20972 | if (temp7) | |
20973 | delete arg7; | |
20974 | } | |
20975 | return resultobj; | |
20976 | fail: | |
20977 | { | |
20978 | if (temp7) | |
20979 | delete arg7; | |
20980 | } | |
20981 | return NULL; | |
20982 | } | |
20983 | ||
20984 | ||
20985 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20986 | PyObject *resultobj; | |
20987 | wxPyListCtrl *result; | |
20988 | char *kwnames[] = { | |
20989 | NULL | |
20990 | }; | |
20991 | ||
20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20993 | { | |
20994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20995 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20996 | ||
20997 | wxPyEndAllowThreads(__tstate); | |
20998 | if (PyErr_Occurred()) SWIG_fail; | |
20999 | } | |
15afbcd0 | 21000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21001 | return resultobj; |
21002 | fail: | |
21003 | return NULL; | |
21004 | } | |
21005 | ||
21006 | ||
21007 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21008 | PyObject *resultobj; | |
21009 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21010 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21011 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21012 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21013 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21014 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21015 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21016 | long arg6 = (long) wxLC_ICON ; | |
21017 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21018 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21019 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21020 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21021 | bool result; | |
21022 | wxPoint temp4 ; | |
21023 | wxSize temp5 ; | |
e811c8ce | 21024 | bool temp8 = False ; |
d14a1e28 RD |
21025 | PyObject * obj0 = 0 ; |
21026 | PyObject * obj1 = 0 ; | |
994141e6 | 21027 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21028 | PyObject * obj3 = 0 ; |
21029 | PyObject * obj4 = 0 ; | |
994141e6 | 21030 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21031 | PyObject * obj6 = 0 ; |
21032 | PyObject * obj7 = 0 ; | |
21033 | char *kwnames[] = { | |
21034 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21035 | }; | |
21036 | ||
994141e6 | 21037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
21038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21042 | if (obj2) { |
15afbcd0 RD |
21043 | arg3 = (int) SWIG_AsInt(obj2); |
21044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21045 | } |
d14a1e28 RD |
21046 | if (obj3) { |
21047 | { | |
21048 | arg4 = &temp4; | |
21049 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21050 | } | |
21051 | } | |
21052 | if (obj4) { | |
21053 | { | |
21054 | arg5 = &temp5; | |
21055 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21056 | } | |
21057 | } | |
994141e6 | 21058 | if (obj5) { |
15afbcd0 RD |
21059 | arg6 = (long) SWIG_AsLong(obj5); |
21060 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21061 | } |
d14a1e28 | 21062 | if (obj6) { |
15afbcd0 RD |
21063 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
21064 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21065 | SWIG_fail; | |
d14a1e28 | 21066 | if (arg7 == NULL) { |
15afbcd0 RD |
21067 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21068 | SWIG_fail; | |
d14a1e28 RD |
21069 | } |
21070 | } | |
21071 | if (obj7) { | |
21072 | { | |
21073 | arg8 = wxString_in_helper(obj7); | |
21074 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 21075 | temp8 = True; |
d14a1e28 RD |
21076 | } |
21077 | } | |
21078 | { | |
21079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21080 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21081 | ||
21082 | wxPyEndAllowThreads(__tstate); | |
21083 | if (PyErr_Occurred()) SWIG_fail; | |
21084 | } | |
4f89f6a3 RD |
21085 | { |
21086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21087 | } | |
d14a1e28 RD |
21088 | { |
21089 | if (temp8) | |
21090 | delete arg8; | |
21091 | } | |
21092 | return resultobj; | |
21093 | fail: | |
21094 | { | |
21095 | if (temp8) | |
21096 | delete arg8; | |
21097 | } | |
21098 | return NULL; | |
21099 | } | |
21100 | ||
21101 | ||
21102 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21103 | PyObject *resultobj; | |
21104 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21105 | PyObject *arg2 = (PyObject *) 0 ; | |
21106 | PyObject *arg3 = (PyObject *) 0 ; | |
21107 | PyObject * obj0 = 0 ; | |
21108 | PyObject * obj1 = 0 ; | |
21109 | PyObject * obj2 = 0 ; | |
21110 | char *kwnames[] = { | |
21111 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21112 | }; | |
21113 | ||
21114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21117 | arg2 = obj1; |
21118 | arg3 = obj2; | |
21119 | { | |
21120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21121 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21122 | ||
21123 | wxPyEndAllowThreads(__tstate); | |
21124 | if (PyErr_Occurred()) SWIG_fail; | |
21125 | } | |
21126 | Py_INCREF(Py_None); resultobj = Py_None; | |
21127 | return resultobj; | |
21128 | fail: | |
21129 | return NULL; | |
21130 | } | |
21131 | ||
21132 | ||
21133 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21134 | PyObject *resultobj; | |
21135 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21136 | wxColour *arg2 = 0 ; | |
21137 | bool result; | |
21138 | wxColour temp2 ; | |
21139 | PyObject * obj0 = 0 ; | |
21140 | PyObject * obj1 = 0 ; | |
21141 | char *kwnames[] = { | |
21142 | (char *) "self",(char *) "col", NULL | |
21143 | }; | |
21144 | ||
21145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21148 | { |
21149 | arg2 = &temp2; | |
21150 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21151 | } | |
21152 | { | |
21153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21154 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21155 | ||
21156 | wxPyEndAllowThreads(__tstate); | |
21157 | if (PyErr_Occurred()) SWIG_fail; | |
21158 | } | |
4f89f6a3 RD |
21159 | { |
21160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21161 | } | |
d14a1e28 RD |
21162 | return resultobj; |
21163 | fail: | |
21164 | return NULL; | |
21165 | } | |
21166 | ||
21167 | ||
21168 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21169 | PyObject *resultobj; | |
21170 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21171 | wxColour *arg2 = 0 ; | |
21172 | bool result; | |
21173 | wxColour temp2 ; | |
21174 | PyObject * obj0 = 0 ; | |
21175 | PyObject * obj1 = 0 ; | |
21176 | char *kwnames[] = { | |
21177 | (char *) "self",(char *) "col", NULL | |
21178 | }; | |
21179 | ||
21180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21183 | { |
21184 | arg2 = &temp2; | |
21185 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21186 | } | |
21187 | { | |
21188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21189 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21190 | ||
21191 | wxPyEndAllowThreads(__tstate); | |
21192 | if (PyErr_Occurred()) SWIG_fail; | |
21193 | } | |
4f89f6a3 RD |
21194 | { |
21195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21196 | } | |
d14a1e28 RD |
21197 | return resultobj; |
21198 | fail: | |
21199 | return NULL; | |
21200 | } | |
21201 | ||
21202 | ||
21203 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21204 | PyObject *resultobj; | |
21205 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21206 | int arg2 ; | |
21207 | wxListItem *result; | |
21208 | PyObject * obj0 = 0 ; | |
994141e6 | 21209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21210 | char *kwnames[] = { |
21211 | (char *) "self",(char *) "col", NULL | |
21212 | }; | |
21213 | ||
994141e6 | 21214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21217 | arg2 = (int) SWIG_AsInt(obj1); | |
21218 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21219 | { |
21220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21221 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21222 | ||
21223 | wxPyEndAllowThreads(__tstate); | |
21224 | if (PyErr_Occurred()) SWIG_fail; | |
21225 | } | |
21226 | { | |
21227 | resultobj = wxPyMake_wxObject(result); | |
21228 | } | |
21229 | return resultobj; | |
21230 | fail: | |
21231 | return NULL; | |
21232 | } | |
21233 | ||
21234 | ||
21235 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21236 | PyObject *resultobj; | |
21237 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21238 | int arg2 ; | |
21239 | wxListItem *arg3 = 0 ; | |
21240 | bool result; | |
21241 | PyObject * obj0 = 0 ; | |
994141e6 | 21242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21243 | PyObject * obj2 = 0 ; |
21244 | char *kwnames[] = { | |
21245 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21246 | }; | |
21247 | ||
994141e6 | 21248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21251 | arg2 = (int) SWIG_AsInt(obj1); | |
21252 | if (PyErr_Occurred()) SWIG_fail; | |
21253 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21254 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21255 | SWIG_fail; | |
d14a1e28 | 21256 | if (arg3 == NULL) { |
15afbcd0 RD |
21257 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21258 | SWIG_fail; | |
d14a1e28 RD |
21259 | } |
21260 | { | |
21261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21262 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21263 | ||
21264 | wxPyEndAllowThreads(__tstate); | |
21265 | if (PyErr_Occurred()) SWIG_fail; | |
21266 | } | |
4f89f6a3 RD |
21267 | { |
21268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21269 | } | |
d14a1e28 RD |
21270 | return resultobj; |
21271 | fail: | |
21272 | return NULL; | |
21273 | } | |
21274 | ||
21275 | ||
21276 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21277 | PyObject *resultobj; | |
21278 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21279 | int arg2 ; | |
21280 | int result; | |
21281 | PyObject * obj0 = 0 ; | |
994141e6 | 21282 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21283 | char *kwnames[] = { |
21284 | (char *) "self",(char *) "col", NULL | |
21285 | }; | |
21286 | ||
994141e6 | 21287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21290 | arg2 = (int) SWIG_AsInt(obj1); | |
21291 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21292 | { |
21293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21294 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21295 | ||
21296 | wxPyEndAllowThreads(__tstate); | |
21297 | if (PyErr_Occurred()) SWIG_fail; | |
21298 | } | |
15afbcd0 | 21299 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21300 | return resultobj; |
21301 | fail: | |
21302 | return NULL; | |
21303 | } | |
21304 | ||
21305 | ||
21306 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21307 | PyObject *resultobj; | |
21308 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21309 | int arg2 ; | |
21310 | int arg3 ; | |
21311 | bool result; | |
21312 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21313 | PyObject * obj1 = 0 ; |
21314 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21315 | char *kwnames[] = { |
21316 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21317 | }; | |
21318 | ||
994141e6 | 21319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21322 | arg2 = (int) SWIG_AsInt(obj1); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | arg3 = (int) SWIG_AsInt(obj2); | |
21325 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21326 | { |
21327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21328 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21329 | ||
21330 | wxPyEndAllowThreads(__tstate); | |
21331 | if (PyErr_Occurred()) SWIG_fail; | |
21332 | } | |
4f89f6a3 RD |
21333 | { |
21334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21335 | } | |
d14a1e28 RD |
21336 | return resultobj; |
21337 | fail: | |
21338 | return NULL; | |
21339 | } | |
21340 | ||
21341 | ||
21342 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21343 | PyObject *resultobj; | |
21344 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21345 | int result; | |
21346 | PyObject * obj0 = 0 ; | |
21347 | char *kwnames[] = { | |
21348 | (char *) "self", NULL | |
21349 | }; | |
21350 | ||
21351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21354 | { |
21355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21356 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21357 | ||
21358 | wxPyEndAllowThreads(__tstate); | |
21359 | if (PyErr_Occurred()) SWIG_fail; | |
21360 | } | |
15afbcd0 | 21361 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21362 | return resultobj; |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
21368 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21369 | PyObject *resultobj; | |
21370 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21371 | wxRect result; | |
21372 | PyObject * obj0 = 0 ; | |
21373 | char *kwnames[] = { | |
21374 | (char *) "self", NULL | |
21375 | }; | |
21376 | ||
21377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21380 | { |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21382 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21383 | ||
21384 | wxPyEndAllowThreads(__tstate); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | } | |
21387 | { | |
21388 | wxRect * resultptr; | |
21389 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 21390 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21391 | } |
21392 | return resultobj; | |
21393 | fail: | |
21394 | return NULL; | |
21395 | } | |
21396 | ||
21397 | ||
21398 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21399 | PyObject *resultobj; | |
21400 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21401 | long arg2 ; | |
21402 | int arg3 = (int) 0 ; | |
21403 | wxListItem *result; | |
21404 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21405 | PyObject * obj1 = 0 ; |
21406 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21407 | char *kwnames[] = { |
21408 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21409 | }; | |
21410 | ||
994141e6 | 21411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21414 | arg2 = (long) SWIG_AsLong(obj1); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21416 | if (obj2) { |
15afbcd0 RD |
21417 | arg3 = (int) SWIG_AsInt(obj2); |
21418 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21419 | } |
d14a1e28 RD |
21420 | { |
21421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21422 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21423 | ||
21424 | wxPyEndAllowThreads(__tstate); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
21426 | } | |
21427 | { | |
21428 | resultobj = wxPyMake_wxObject(result); | |
21429 | } | |
21430 | return resultobj; | |
21431 | fail: | |
21432 | return NULL; | |
21433 | } | |
21434 | ||
21435 | ||
21436 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21437 | PyObject *resultobj; | |
21438 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21439 | wxListItem *arg2 = 0 ; | |
21440 | bool result; | |
21441 | PyObject * obj0 = 0 ; | |
21442 | PyObject * obj1 = 0 ; | |
21443 | char *kwnames[] = { | |
21444 | (char *) "self",(char *) "info", NULL | |
21445 | }; | |
21446 | ||
21447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21451 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21452 | SWIG_fail; | |
d14a1e28 | 21453 | if (arg2 == NULL) { |
15afbcd0 RD |
21454 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21455 | SWIG_fail; | |
d14a1e28 RD |
21456 | } |
21457 | { | |
21458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21459 | result = (bool)(arg1)->SetItem(*arg2); | |
21460 | ||
21461 | wxPyEndAllowThreads(__tstate); | |
21462 | if (PyErr_Occurred()) SWIG_fail; | |
21463 | } | |
4f89f6a3 RD |
21464 | { |
21465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21466 | } | |
d14a1e28 RD |
21467 | return resultobj; |
21468 | fail: | |
21469 | return NULL; | |
21470 | } | |
21471 | ||
21472 | ||
21473 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21474 | PyObject *resultobj; | |
21475 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21476 | long arg2 ; | |
21477 | int arg3 ; | |
21478 | wxString *arg4 = 0 ; | |
21479 | int arg5 = (int) -1 ; | |
21480 | long result; | |
e811c8ce | 21481 | bool temp4 = False ; |
d14a1e28 | 21482 | PyObject * obj0 = 0 ; |
994141e6 RD |
21483 | PyObject * obj1 = 0 ; |
21484 | PyObject * obj2 = 0 ; | |
d14a1e28 | 21485 | PyObject * obj3 = 0 ; |
994141e6 | 21486 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21487 | char *kwnames[] = { |
21488 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21489 | }; | |
21490 | ||
994141e6 | 21491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
21492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21494 | arg2 = (long) SWIG_AsLong(obj1); | |
21495 | if (PyErr_Occurred()) SWIG_fail; | |
21496 | arg3 = (int) SWIG_AsInt(obj2); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21498 | { |
21499 | arg4 = wxString_in_helper(obj3); | |
21500 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 21501 | temp4 = True; |
d14a1e28 | 21502 | } |
994141e6 | 21503 | if (obj4) { |
15afbcd0 RD |
21504 | arg5 = (int) SWIG_AsInt(obj4); |
21505 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21506 | } |
d14a1e28 RD |
21507 | { |
21508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21509 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21510 | ||
21511 | wxPyEndAllowThreads(__tstate); | |
21512 | if (PyErr_Occurred()) SWIG_fail; | |
21513 | } | |
15afbcd0 | 21514 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21515 | { |
21516 | if (temp4) | |
21517 | delete arg4; | |
21518 | } | |
21519 | return resultobj; | |
21520 | fail: | |
21521 | { | |
21522 | if (temp4) | |
21523 | delete arg4; | |
21524 | } | |
21525 | return NULL; | |
21526 | } | |
21527 | ||
21528 | ||
21529 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21530 | PyObject *resultobj; | |
21531 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21532 | long arg2 ; | |
21533 | long arg3 ; | |
21534 | int result; | |
21535 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21536 | PyObject * obj1 = 0 ; |
21537 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21538 | char *kwnames[] = { |
21539 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21540 | }; | |
21541 | ||
994141e6 | 21542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21545 | arg2 = (long) SWIG_AsLong(obj1); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | arg3 = (long) SWIG_AsLong(obj2); | |
21548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21549 | { |
21550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21551 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21552 | ||
21553 | wxPyEndAllowThreads(__tstate); | |
21554 | if (PyErr_Occurred()) SWIG_fail; | |
21555 | } | |
15afbcd0 | 21556 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21557 | return resultobj; |
21558 | fail: | |
21559 | return NULL; | |
21560 | } | |
21561 | ||
21562 | ||
21563 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21564 | PyObject *resultobj; | |
21565 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21566 | long arg2 ; | |
21567 | long arg3 ; | |
21568 | long arg4 ; | |
21569 | bool result; | |
21570 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21571 | PyObject * obj1 = 0 ; |
21572 | PyObject * obj2 = 0 ; | |
21573 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21574 | char *kwnames[] = { |
21575 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21576 | }; | |
21577 | ||
994141e6 | 21578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21581 | arg2 = (long) SWIG_AsLong(obj1); | |
21582 | if (PyErr_Occurred()) SWIG_fail; | |
21583 | arg3 = (long) SWIG_AsLong(obj2); | |
21584 | if (PyErr_Occurred()) SWIG_fail; | |
21585 | arg4 = (long) SWIG_AsLong(obj3); | |
21586 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21587 | { |
21588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21589 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21590 | ||
21591 | wxPyEndAllowThreads(__tstate); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
4f89f6a3 RD |
21594 | { |
21595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21596 | } | |
d14a1e28 RD |
21597 | return resultobj; |
21598 | fail: | |
21599 | return NULL; | |
21600 | } | |
21601 | ||
21602 | ||
21603 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21604 | PyObject *resultobj; | |
21605 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21606 | long arg2 ; | |
21607 | int arg3 ; | |
21608 | int arg4 ; | |
21609 | bool result; | |
21610 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21611 | PyObject * obj1 = 0 ; |
21612 | PyObject * obj2 = 0 ; | |
21613 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21614 | char *kwnames[] = { |
21615 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21616 | }; | |
21617 | ||
994141e6 | 21618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21621 | arg2 = (long) SWIG_AsLong(obj1); | |
21622 | if (PyErr_Occurred()) SWIG_fail; | |
21623 | arg3 = (int) SWIG_AsInt(obj2); | |
21624 | if (PyErr_Occurred()) SWIG_fail; | |
21625 | arg4 = (int) SWIG_AsInt(obj3); | |
21626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21627 | { |
21628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21629 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21630 | ||
21631 | wxPyEndAllowThreads(__tstate); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | } | |
4f89f6a3 RD |
21634 | { |
21635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21636 | } | |
d14a1e28 RD |
21637 | return resultobj; |
21638 | fail: | |
21639 | return NULL; | |
21640 | } | |
21641 | ||
21642 | ||
21643 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21644 | PyObject *resultobj; | |
21645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21646 | long arg2 ; | |
21647 | wxString result; | |
21648 | PyObject * obj0 = 0 ; | |
994141e6 | 21649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21650 | char *kwnames[] = { |
21651 | (char *) "self",(char *) "item", NULL | |
21652 | }; | |
21653 | ||
994141e6 | 21654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21657 | arg2 = (long) SWIG_AsLong(obj1); | |
21658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21659 | { |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21662 | ||
21663 | wxPyEndAllowThreads(__tstate); | |
21664 | if (PyErr_Occurred()) SWIG_fail; | |
21665 | } | |
21666 | { | |
21667 | #if wxUSE_UNICODE | |
21668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21669 | #else | |
21670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21671 | #endif | |
21672 | } | |
21673 | return resultobj; | |
21674 | fail: | |
21675 | return NULL; | |
21676 | } | |
21677 | ||
21678 | ||
21679 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21680 | PyObject *resultobj; | |
21681 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21682 | long arg2 ; | |
21683 | wxString *arg3 = 0 ; | |
e811c8ce | 21684 | bool temp3 = False ; |
d14a1e28 | 21685 | PyObject * obj0 = 0 ; |
994141e6 | 21686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21687 | PyObject * obj2 = 0 ; |
21688 | char *kwnames[] = { | |
21689 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21690 | }; | |
21691 | ||
994141e6 | 21692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21695 | arg2 = (long) SWIG_AsLong(obj1); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21697 | { |
21698 | arg3 = wxString_in_helper(obj2); | |
21699 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21700 | temp3 = True; |
d14a1e28 RD |
21701 | } |
21702 | { | |
21703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21704 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21705 | ||
21706 | wxPyEndAllowThreads(__tstate); | |
21707 | if (PyErr_Occurred()) SWIG_fail; | |
21708 | } | |
21709 | Py_INCREF(Py_None); resultobj = Py_None; | |
21710 | { | |
21711 | if (temp3) | |
21712 | delete arg3; | |
21713 | } | |
21714 | return resultobj; | |
21715 | fail: | |
21716 | { | |
21717 | if (temp3) | |
21718 | delete arg3; | |
21719 | } | |
21720 | return NULL; | |
21721 | } | |
21722 | ||
21723 | ||
21724 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21725 | PyObject *resultobj; | |
21726 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21727 | long arg2 ; | |
21728 | long result; | |
21729 | PyObject * obj0 = 0 ; | |
994141e6 | 21730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21731 | char *kwnames[] = { |
21732 | (char *) "self",(char *) "item", NULL | |
21733 | }; | |
21734 | ||
994141e6 | 21735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21738 | arg2 = (long) SWIG_AsLong(obj1); | |
21739 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21740 | { |
21741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21742 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21743 | ||
21744 | wxPyEndAllowThreads(__tstate); | |
21745 | if (PyErr_Occurred()) SWIG_fail; | |
21746 | } | |
15afbcd0 | 21747 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21748 | return resultobj; |
21749 | fail: | |
21750 | return NULL; | |
21751 | } | |
21752 | ||
21753 | ||
21754 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21755 | PyObject *resultobj; | |
21756 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21757 | long arg2 ; | |
21758 | long arg3 ; | |
21759 | bool result; | |
21760 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21761 | PyObject * obj1 = 0 ; |
21762 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21763 | char *kwnames[] = { |
21764 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21765 | }; | |
21766 | ||
994141e6 | 21767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21770 | arg2 = (long) SWIG_AsLong(obj1); | |
21771 | if (PyErr_Occurred()) SWIG_fail; | |
21772 | arg3 = (long) SWIG_AsLong(obj2); | |
21773 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21774 | { |
21775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21776 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21777 | ||
21778 | wxPyEndAllowThreads(__tstate); | |
21779 | if (PyErr_Occurred()) SWIG_fail; | |
21780 | } | |
4f89f6a3 RD |
21781 | { |
21782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21783 | } | |
d14a1e28 RD |
21784 | return resultobj; |
21785 | fail: | |
21786 | return NULL; | |
21787 | } | |
21788 | ||
21789 | ||
21790 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21791 | PyObject *resultobj; | |
21792 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21793 | long arg2 ; | |
21794 | wxPoint result; | |
21795 | PyObject * obj0 = 0 ; | |
994141e6 | 21796 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21797 | char *kwnames[] = { |
21798 | (char *) "self",(char *) "item", NULL | |
21799 | }; | |
21800 | ||
994141e6 | 21801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21804 | arg2 = (long) SWIG_AsLong(obj1); | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21806 | { |
21807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21808 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21809 | ||
21810 | wxPyEndAllowThreads(__tstate); | |
21811 | if (PyErr_Occurred()) SWIG_fail; | |
21812 | } | |
21813 | { | |
21814 | wxPoint * resultptr; | |
21815 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 21816 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21817 | } |
21818 | return resultobj; | |
21819 | fail: | |
21820 | return NULL; | |
21821 | } | |
21822 | ||
21823 | ||
21824 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21825 | PyObject *resultobj; | |
21826 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21827 | long arg2 ; | |
21828 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21829 | wxRect result; | |
21830 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21831 | PyObject * obj1 = 0 ; |
21832 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21833 | char *kwnames[] = { |
21834 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21835 | }; | |
21836 | ||
994141e6 | 21837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21840 | arg2 = (long) SWIG_AsLong(obj1); | |
21841 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21842 | if (obj2) { |
15afbcd0 RD |
21843 | arg3 = (int) SWIG_AsInt(obj2); |
21844 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21845 | } |
d14a1e28 RD |
21846 | { |
21847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21848 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21849 | ||
21850 | wxPyEndAllowThreads(__tstate); | |
21851 | if (PyErr_Occurred()) SWIG_fail; | |
21852 | } | |
21853 | { | |
21854 | wxRect * resultptr; | |
21855 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 21856 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21857 | } |
21858 | return resultobj; | |
21859 | fail: | |
21860 | return NULL; | |
21861 | } | |
21862 | ||
21863 | ||
21864 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21865 | PyObject *resultobj; | |
21866 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21867 | long arg2 ; | |
21868 | wxPoint *arg3 = 0 ; | |
21869 | bool result; | |
21870 | wxPoint temp3 ; | |
21871 | PyObject * obj0 = 0 ; | |
994141e6 | 21872 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21873 | PyObject * obj2 = 0 ; |
21874 | char *kwnames[] = { | |
21875 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
21876 | }; | |
21877 | ||
994141e6 | 21878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21881 | arg2 = (long) SWIG_AsLong(obj1); | |
21882 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21883 | { |
21884 | arg3 = &temp3; | |
21885 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21886 | } | |
21887 | { | |
21888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21889 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21890 | ||
21891 | wxPyEndAllowThreads(__tstate); | |
21892 | if (PyErr_Occurred()) SWIG_fail; | |
21893 | } | |
4f89f6a3 RD |
21894 | { |
21895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21896 | } | |
d14a1e28 RD |
21897 | return resultobj; |
21898 | fail: | |
21899 | return NULL; | |
21900 | } | |
21901 | ||
21902 | ||
21903 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21904 | PyObject *resultobj; | |
21905 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21906 | int result; | |
21907 | PyObject * obj0 = 0 ; | |
21908 | char *kwnames[] = { | |
21909 | (char *) "self", NULL | |
21910 | }; | |
21911 | ||
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21915 | { |
21916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21917 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21918 | ||
21919 | wxPyEndAllowThreads(__tstate); | |
21920 | if (PyErr_Occurred()) SWIG_fail; | |
21921 | } | |
15afbcd0 | 21922 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21923 | return resultobj; |
21924 | fail: | |
21925 | return NULL; | |
21926 | } | |
21927 | ||
21928 | ||
21929 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21930 | PyObject *resultobj; | |
21931 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21932 | int result; | |
21933 | PyObject * obj0 = 0 ; | |
21934 | char *kwnames[] = { | |
21935 | (char *) "self", NULL | |
21936 | }; | |
21937 | ||
21938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21941 | { |
21942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21943 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21944 | ||
21945 | wxPyEndAllowThreads(__tstate); | |
21946 | if (PyErr_Occurred()) SWIG_fail; | |
21947 | } | |
15afbcd0 | 21948 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21949 | return resultobj; |
21950 | fail: | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
21955 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21956 | PyObject *resultobj; | |
21957 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21958 | wxSize result; | |
21959 | PyObject * obj0 = 0 ; | |
21960 | char *kwnames[] = { | |
21961 | (char *) "self", NULL | |
21962 | }; | |
21963 | ||
21964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21967 | { |
21968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21969 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21970 | ||
21971 | wxPyEndAllowThreads(__tstate); | |
21972 | if (PyErr_Occurred()) SWIG_fail; | |
21973 | } | |
21974 | { | |
21975 | wxSize * resultptr; | |
21976 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 21977 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21978 | } |
21979 | return resultobj; | |
21980 | fail: | |
21981 | return NULL; | |
21982 | } | |
21983 | ||
21984 | ||
21985 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21986 | PyObject *resultobj; | |
21987 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21988 | int arg2 ; | |
e811c8ce | 21989 | bool arg3 = (bool) False ; |
d14a1e28 | 21990 | PyObject * obj0 = 0 ; |
994141e6 | 21991 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21992 | PyObject * obj2 = 0 ; |
21993 | char *kwnames[] = { | |
21994 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
21995 | }; | |
21996 | ||
994141e6 | 21997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22000 | arg2 = (int) SWIG_AsInt(obj1); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22002 | if (obj2) { |
15afbcd0 RD |
22003 | arg3 = (bool) SWIG_AsBool(obj2); |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22005 | } |
22006 | { | |
22007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22008 | (arg1)->SetItemSpacing(arg2,arg3); | |
22009 | ||
22010 | wxPyEndAllowThreads(__tstate); | |
22011 | if (PyErr_Occurred()) SWIG_fail; | |
22012 | } | |
22013 | Py_INCREF(Py_None); resultobj = Py_None; | |
22014 | return resultobj; | |
22015 | fail: | |
22016 | return NULL; | |
22017 | } | |
22018 | ||
22019 | ||
22020 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22021 | PyObject *resultobj; | |
22022 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22023 | int result; | |
22024 | PyObject * obj0 = 0 ; | |
22025 | char *kwnames[] = { | |
22026 | (char *) "self", NULL | |
22027 | }; | |
22028 | ||
22029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22032 | { |
22033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22034 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22035 | ||
22036 | wxPyEndAllowThreads(__tstate); | |
22037 | if (PyErr_Occurred()) SWIG_fail; | |
22038 | } | |
15afbcd0 | 22039 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22040 | return resultobj; |
22041 | fail: | |
22042 | return NULL; | |
22043 | } | |
22044 | ||
22045 | ||
22046 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22047 | PyObject *resultobj; | |
22048 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22049 | wxColour result; | |
22050 | PyObject * obj0 = 0 ; | |
22051 | char *kwnames[] = { | |
22052 | (char *) "self", NULL | |
22053 | }; | |
22054 | ||
22055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22058 | { |
22059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22060 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22061 | ||
22062 | wxPyEndAllowThreads(__tstate); | |
22063 | if (PyErr_Occurred()) SWIG_fail; | |
22064 | } | |
22065 | { | |
22066 | wxColour * resultptr; | |
22067 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 22068 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22069 | } |
22070 | return resultobj; | |
22071 | fail: | |
22072 | return NULL; | |
22073 | } | |
22074 | ||
22075 | ||
22076 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22077 | PyObject *resultobj; | |
22078 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22079 | wxColour *arg2 = 0 ; | |
22080 | wxColour temp2 ; | |
22081 | PyObject * obj0 = 0 ; | |
22082 | PyObject * obj1 = 0 ; | |
22083 | char *kwnames[] = { | |
22084 | (char *) "self",(char *) "col", NULL | |
22085 | }; | |
22086 | ||
22087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22090 | { |
22091 | arg2 = &temp2; | |
22092 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22093 | } | |
22094 | { | |
22095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22096 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22097 | ||
22098 | wxPyEndAllowThreads(__tstate); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | } | |
22101 | Py_INCREF(Py_None); resultobj = Py_None; | |
22102 | return resultobj; | |
22103 | fail: | |
22104 | return NULL; | |
22105 | } | |
22106 | ||
22107 | ||
22108 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22109 | PyObject *resultobj; | |
22110 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22111 | long result; | |
22112 | PyObject * obj0 = 0 ; | |
22113 | char *kwnames[] = { | |
22114 | (char *) "self", NULL | |
22115 | }; | |
22116 | ||
22117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22120 | { |
22121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22122 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22123 | ||
22124 | wxPyEndAllowThreads(__tstate); | |
22125 | if (PyErr_Occurred()) SWIG_fail; | |
22126 | } | |
15afbcd0 | 22127 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22128 | return resultobj; |
22129 | fail: | |
22130 | return NULL; | |
22131 | } | |
22132 | ||
22133 | ||
22134 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22135 | PyObject *resultobj; | |
22136 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22137 | long arg2 ; | |
e811c8ce | 22138 | bool arg3 = (bool) True ; |
d14a1e28 | 22139 | PyObject * obj0 = 0 ; |
994141e6 | 22140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22141 | PyObject * obj2 = 0 ; |
22142 | char *kwnames[] = { | |
22143 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22144 | }; | |
22145 | ||
994141e6 | 22146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22149 | arg2 = (long) SWIG_AsLong(obj1); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22151 | if (obj2) { |
15afbcd0 RD |
22152 | arg3 = (bool) SWIG_AsBool(obj2); |
22153 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22154 | } |
22155 | { | |
22156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22157 | (arg1)->SetSingleStyle(arg2,arg3); | |
22158 | ||
22159 | wxPyEndAllowThreads(__tstate); | |
22160 | if (PyErr_Occurred()) SWIG_fail; | |
22161 | } | |
22162 | Py_INCREF(Py_None); resultobj = Py_None; | |
22163 | return resultobj; | |
22164 | fail: | |
22165 | return NULL; | |
22166 | } | |
22167 | ||
22168 | ||
22169 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22170 | PyObject *resultobj; | |
22171 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22172 | long arg2 ; | |
22173 | PyObject * obj0 = 0 ; | |
994141e6 | 22174 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22175 | char *kwnames[] = { |
22176 | (char *) "self",(char *) "style", NULL | |
22177 | }; | |
22178 | ||
994141e6 | 22179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22182 | arg2 = (long) SWIG_AsLong(obj1); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22184 | { |
22185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22186 | (arg1)->SetWindowStyleFlag(arg2); | |
22187 | ||
22188 | wxPyEndAllowThreads(__tstate); | |
22189 | if (PyErr_Occurred()) SWIG_fail; | |
22190 | } | |
22191 | Py_INCREF(Py_None); resultobj = Py_None; | |
22192 | return resultobj; | |
22193 | fail: | |
22194 | return NULL; | |
22195 | } | |
22196 | ||
22197 | ||
22198 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22199 | PyObject *resultobj; | |
22200 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22201 | long arg2 ; | |
22202 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22203 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22204 | long result; | |
22205 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22206 | PyObject * obj1 = 0 ; |
22207 | PyObject * obj2 = 0 ; | |
22208 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22209 | char *kwnames[] = { |
22210 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22211 | }; | |
22212 | ||
994141e6 | 22213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22216 | arg2 = (long) SWIG_AsLong(obj1); | |
22217 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22218 | if (obj2) { |
15afbcd0 RD |
22219 | arg3 = (int) SWIG_AsInt(obj2); |
22220 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22221 | } |
22222 | if (obj3) { | |
15afbcd0 RD |
22223 | arg4 = (int) SWIG_AsInt(obj3); |
22224 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22225 | } |
d14a1e28 RD |
22226 | { |
22227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22228 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22229 | ||
22230 | wxPyEndAllowThreads(__tstate); | |
22231 | if (PyErr_Occurred()) SWIG_fail; | |
22232 | } | |
15afbcd0 | 22233 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22234 | return resultobj; |
22235 | fail: | |
22236 | return NULL; | |
22237 | } | |
22238 | ||
22239 | ||
22240 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22241 | PyObject *resultobj; | |
22242 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22243 | int arg2 ; | |
22244 | wxImageList *result; | |
22245 | PyObject * obj0 = 0 ; | |
994141e6 | 22246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22247 | char *kwnames[] = { |
22248 | (char *) "self",(char *) "which", NULL | |
22249 | }; | |
22250 | ||
994141e6 | 22251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22254 | arg2 = (int) SWIG_AsInt(obj1); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22256 | { |
22257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22258 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22259 | ||
22260 | wxPyEndAllowThreads(__tstate); | |
22261 | if (PyErr_Occurred()) SWIG_fail; | |
22262 | } | |
22263 | { | |
22264 | resultobj = wxPyMake_wxObject(result); | |
22265 | } | |
22266 | return resultobj; | |
22267 | fail: | |
22268 | return NULL; | |
22269 | } | |
22270 | ||
22271 | ||
22272 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22273 | PyObject *resultobj; | |
22274 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22275 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22276 | int arg3 ; | |
22277 | PyObject * obj0 = 0 ; | |
22278 | PyObject * obj1 = 0 ; | |
994141e6 | 22279 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22280 | char *kwnames[] = { |
22281 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22282 | }; | |
22283 | ||
994141e6 | 22284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22289 | arg3 = (int) SWIG_AsInt(obj2); | |
22290 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22291 | { |
22292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22293 | (arg1)->SetImageList(arg2,arg3); | |
22294 | ||
22295 | wxPyEndAllowThreads(__tstate); | |
22296 | if (PyErr_Occurred()) SWIG_fail; | |
22297 | } | |
22298 | Py_INCREF(Py_None); resultobj = Py_None; | |
22299 | return resultobj; | |
22300 | fail: | |
22301 | return NULL; | |
22302 | } | |
22303 | ||
22304 | ||
22305 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22306 | PyObject *resultobj; | |
22307 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22308 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22309 | int arg3 ; | |
22310 | PyObject * obj0 = 0 ; | |
22311 | PyObject * obj1 = 0 ; | |
994141e6 | 22312 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22313 | char *kwnames[] = { |
22314 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22315 | }; | |
22316 | ||
994141e6 | 22317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22321 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22322 | arg3 = (int) SWIG_AsInt(obj2); | |
22323 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22324 | { |
22325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22326 | (arg1)->AssignImageList(arg2,arg3); | |
22327 | ||
22328 | wxPyEndAllowThreads(__tstate); | |
22329 | if (PyErr_Occurred()) SWIG_fail; | |
22330 | } | |
22331 | Py_INCREF(Py_None); resultobj = Py_None; | |
22332 | return resultobj; | |
22333 | fail: | |
22334 | return NULL; | |
22335 | } | |
22336 | ||
22337 | ||
4276dc52 RD |
22338 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { |
22339 | PyObject *resultobj; | |
22340 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22341 | bool result; | |
22342 | PyObject * obj0 = 0 ; | |
22343 | char *kwnames[] = { | |
22344 | (char *) "self", NULL | |
22345 | }; | |
22346 | ||
22347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22350 | { | |
22351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22352 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22353 | ||
22354 | wxPyEndAllowThreads(__tstate); | |
22355 | if (PyErr_Occurred()) SWIG_fail; | |
22356 | } | |
4f89f6a3 RD |
22357 | { |
22358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22359 | } | |
4276dc52 RD |
22360 | return resultobj; |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
d14a1e28 RD |
22366 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { |
22367 | PyObject *resultobj; | |
22368 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22369 | bool result; | |
22370 | PyObject * obj0 = 0 ; | |
22371 | char *kwnames[] = { | |
22372 | (char *) "self", NULL | |
22373 | }; | |
22374 | ||
22375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22378 | { |
22379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22380 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22381 | ||
22382 | wxPyEndAllowThreads(__tstate); | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | } | |
4f89f6a3 RD |
22385 | { |
22386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22387 | } | |
d14a1e28 RD |
22388 | return resultobj; |
22389 | fail: | |
22390 | return NULL; | |
22391 | } | |
22392 | ||
22393 | ||
22394 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22395 | PyObject *resultobj; | |
22396 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22397 | long arg2 ; | |
22398 | PyObject * obj0 = 0 ; | |
994141e6 | 22399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22400 | char *kwnames[] = { |
22401 | (char *) "self",(char *) "item", NULL | |
22402 | }; | |
22403 | ||
994141e6 | 22404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22407 | arg2 = (long) SWIG_AsLong(obj1); | |
22408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22409 | { |
22410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22411 | (arg1)->RefreshItem(arg2); | |
22412 | ||
22413 | wxPyEndAllowThreads(__tstate); | |
22414 | if (PyErr_Occurred()) SWIG_fail; | |
22415 | } | |
22416 | Py_INCREF(Py_None); resultobj = Py_None; | |
22417 | return resultobj; | |
22418 | fail: | |
22419 | return NULL; | |
22420 | } | |
22421 | ||
22422 | ||
22423 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22424 | PyObject *resultobj; | |
22425 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22426 | long arg2 ; | |
22427 | long arg3 ; | |
22428 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22429 | PyObject * obj1 = 0 ; |
22430 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22431 | char *kwnames[] = { |
22432 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22433 | }; | |
22434 | ||
994141e6 | 22435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22438 | arg2 = (long) SWIG_AsLong(obj1); | |
22439 | if (PyErr_Occurred()) SWIG_fail; | |
22440 | arg3 = (long) SWIG_AsLong(obj2); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22442 | { |
22443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22444 | (arg1)->RefreshItems(arg2,arg3); | |
22445 | ||
22446 | wxPyEndAllowThreads(__tstate); | |
22447 | if (PyErr_Occurred()) SWIG_fail; | |
22448 | } | |
22449 | Py_INCREF(Py_None); resultobj = Py_None; | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
22456 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj; | |
22458 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22459 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22460 | bool result; | |
22461 | PyObject * obj0 = 0 ; | |
994141e6 | 22462 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22463 | char *kwnames[] = { |
22464 | (char *) "self",(char *) "flag", NULL | |
22465 | }; | |
22466 | ||
994141e6 | 22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22470 | if (obj1) { |
15afbcd0 RD |
22471 | arg2 = (int) SWIG_AsInt(obj1); |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22473 | } |
d14a1e28 RD |
22474 | { |
22475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22476 | result = (bool)(arg1)->Arrange(arg2); | |
22477 | ||
22478 | wxPyEndAllowThreads(__tstate); | |
22479 | if (PyErr_Occurred()) SWIG_fail; | |
22480 | } | |
4f89f6a3 RD |
22481 | { |
22482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22483 | } | |
d14a1e28 RD |
22484 | return resultobj; |
22485 | fail: | |
22486 | return NULL; | |
22487 | } | |
22488 | ||
22489 | ||
22490 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22491 | PyObject *resultobj; | |
22492 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22493 | long arg2 ; | |
22494 | bool result; | |
22495 | PyObject * obj0 = 0 ; | |
994141e6 | 22496 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22497 | char *kwnames[] = { |
22498 | (char *) "self",(char *) "item", NULL | |
22499 | }; | |
22500 | ||
994141e6 | 22501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22504 | arg2 = (long) SWIG_AsLong(obj1); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22506 | { |
22507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22508 | result = (bool)(arg1)->DeleteItem(arg2); | |
22509 | ||
22510 | wxPyEndAllowThreads(__tstate); | |
22511 | if (PyErr_Occurred()) SWIG_fail; | |
22512 | } | |
4f89f6a3 RD |
22513 | { |
22514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22515 | } | |
d14a1e28 RD |
22516 | return resultobj; |
22517 | fail: | |
22518 | return NULL; | |
22519 | } | |
22520 | ||
22521 | ||
22522 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22523 | PyObject *resultobj; | |
22524 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22525 | bool result; | |
22526 | PyObject * obj0 = 0 ; | |
22527 | char *kwnames[] = { | |
22528 | (char *) "self", NULL | |
22529 | }; | |
22530 | ||
22531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22534 | { |
22535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22536 | result = (bool)(arg1)->DeleteAllItems(); | |
22537 | ||
22538 | wxPyEndAllowThreads(__tstate); | |
22539 | if (PyErr_Occurred()) SWIG_fail; | |
22540 | } | |
4f89f6a3 RD |
22541 | { |
22542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22543 | } | |
d14a1e28 RD |
22544 | return resultobj; |
22545 | fail: | |
22546 | return NULL; | |
22547 | } | |
22548 | ||
22549 | ||
22550 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22551 | PyObject *resultobj; | |
22552 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22553 | int arg2 ; | |
22554 | bool result; | |
22555 | PyObject * obj0 = 0 ; | |
994141e6 | 22556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22557 | char *kwnames[] = { |
22558 | (char *) "self",(char *) "col", NULL | |
22559 | }; | |
22560 | ||
994141e6 | 22561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22564 | arg2 = (int) SWIG_AsInt(obj1); | |
22565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22566 | { |
22567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22568 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22569 | ||
22570 | wxPyEndAllowThreads(__tstate); | |
22571 | if (PyErr_Occurred()) SWIG_fail; | |
22572 | } | |
4f89f6a3 RD |
22573 | { |
22574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22575 | } | |
d14a1e28 RD |
22576 | return resultobj; |
22577 | fail: | |
22578 | return NULL; | |
22579 | } | |
22580 | ||
22581 | ||
22582 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22583 | PyObject *resultobj; | |
22584 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22585 | bool result; | |
22586 | PyObject * obj0 = 0 ; | |
22587 | char *kwnames[] = { | |
22588 | (char *) "self", NULL | |
22589 | }; | |
22590 | ||
22591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22594 | { |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = (bool)(arg1)->DeleteAllColumns(); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
4f89f6a3 RD |
22601 | { |
22602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22603 | } | |
d14a1e28 RD |
22604 | return resultobj; |
22605 | fail: | |
22606 | return NULL; | |
22607 | } | |
22608 | ||
22609 | ||
22610 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22611 | PyObject *resultobj; | |
22612 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22613 | PyObject * obj0 = 0 ; | |
22614 | char *kwnames[] = { | |
22615 | (char *) "self", NULL | |
22616 | }; | |
22617 | ||
22618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22621 | { |
22622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22623 | (arg1)->ClearAll(); | |
22624 | ||
22625 | wxPyEndAllowThreads(__tstate); | |
22626 | if (PyErr_Occurred()) SWIG_fail; | |
22627 | } | |
22628 | Py_INCREF(Py_None); resultobj = Py_None; | |
22629 | return resultobj; | |
22630 | fail: | |
22631 | return NULL; | |
22632 | } | |
22633 | ||
22634 | ||
22635 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22636 | PyObject *resultobj; | |
22637 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22638 | long arg2 ; | |
22639 | PyObject * obj0 = 0 ; | |
994141e6 | 22640 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22641 | char *kwnames[] = { |
22642 | (char *) "self",(char *) "item", NULL | |
22643 | }; | |
22644 | ||
994141e6 | 22645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22648 | arg2 = (long) SWIG_AsLong(obj1); | |
22649 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22650 | { |
22651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22652 | (arg1)->EditLabel(arg2); | |
22653 | ||
22654 | wxPyEndAllowThreads(__tstate); | |
22655 | if (PyErr_Occurred()) SWIG_fail; | |
22656 | } | |
22657 | Py_INCREF(Py_None); resultobj = Py_None; | |
22658 | return resultobj; | |
22659 | fail: | |
22660 | return NULL; | |
22661 | } | |
22662 | ||
22663 | ||
22664 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22665 | PyObject *resultobj; | |
22666 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22667 | long arg2 ; | |
22668 | bool result; | |
22669 | PyObject * obj0 = 0 ; | |
994141e6 | 22670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22671 | char *kwnames[] = { |
22672 | (char *) "self",(char *) "item", NULL | |
22673 | }; | |
22674 | ||
994141e6 | 22675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22678 | arg2 = (long) SWIG_AsLong(obj1); | |
22679 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22680 | { |
22681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22682 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22683 | ||
22684 | wxPyEndAllowThreads(__tstate); | |
22685 | if (PyErr_Occurred()) SWIG_fail; | |
22686 | } | |
4f89f6a3 RD |
22687 | { |
22688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22689 | } | |
d14a1e28 RD |
22690 | return resultobj; |
22691 | fail: | |
22692 | return NULL; | |
22693 | } | |
22694 | ||
22695 | ||
22696 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22697 | PyObject *resultobj; | |
22698 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22699 | long arg2 ; | |
22700 | wxString *arg3 = 0 ; | |
e811c8ce | 22701 | bool arg4 = (bool) False ; |
d14a1e28 | 22702 | long result; |
e811c8ce | 22703 | bool temp3 = False ; |
d14a1e28 | 22704 | PyObject * obj0 = 0 ; |
994141e6 | 22705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22706 | PyObject * obj2 = 0 ; |
22707 | PyObject * obj3 = 0 ; | |
22708 | char *kwnames[] = { | |
22709 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22710 | }; | |
22711 | ||
994141e6 | 22712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22715 | arg2 = (long) SWIG_AsLong(obj1); | |
22716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22717 | { |
22718 | arg3 = wxString_in_helper(obj2); | |
22719 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22720 | temp3 = True; |
d14a1e28 RD |
22721 | } |
22722 | if (obj3) { | |
15afbcd0 RD |
22723 | arg4 = (bool) SWIG_AsBool(obj3); |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22725 | } |
22726 | { | |
22727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22728 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22729 | ||
22730 | wxPyEndAllowThreads(__tstate); | |
22731 | if (PyErr_Occurred()) SWIG_fail; | |
22732 | } | |
15afbcd0 | 22733 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22734 | { |
22735 | if (temp3) | |
22736 | delete arg3; | |
22737 | } | |
22738 | return resultobj; | |
22739 | fail: | |
22740 | { | |
22741 | if (temp3) | |
22742 | delete arg3; | |
22743 | } | |
22744 | return NULL; | |
22745 | } | |
22746 | ||
22747 | ||
22748 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22749 | PyObject *resultobj; | |
22750 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22751 | long arg2 ; | |
22752 | long arg3 ; | |
22753 | long result; | |
22754 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22755 | PyObject * obj1 = 0 ; |
22756 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22757 | char *kwnames[] = { |
22758 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22759 | }; | |
22760 | ||
994141e6 | 22761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22764 | arg2 = (long) SWIG_AsLong(obj1); | |
22765 | if (PyErr_Occurred()) SWIG_fail; | |
22766 | arg3 = (long) SWIG_AsLong(obj2); | |
22767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22768 | { |
22769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22770 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22771 | ||
22772 | wxPyEndAllowThreads(__tstate); | |
22773 | if (PyErr_Occurred()) SWIG_fail; | |
22774 | } | |
15afbcd0 | 22775 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22776 | return resultobj; |
22777 | fail: | |
22778 | return NULL; | |
22779 | } | |
22780 | ||
22781 | ||
22782 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22783 | PyObject *resultobj; | |
22784 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22785 | long arg2 ; | |
22786 | wxPoint *arg3 = 0 ; | |
22787 | int arg4 ; | |
22788 | long result; | |
22789 | wxPoint temp3 ; | |
22790 | PyObject * obj0 = 0 ; | |
994141e6 | 22791 | PyObject * obj1 = 0 ; |
d14a1e28 | 22792 | PyObject * obj2 = 0 ; |
994141e6 | 22793 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22794 | char *kwnames[] = { |
22795 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22796 | }; | |
22797 | ||
994141e6 | 22798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22801 | arg2 = (long) SWIG_AsLong(obj1); | |
22802 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22803 | { |
22804 | arg3 = &temp3; | |
22805 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22806 | } | |
15afbcd0 RD |
22807 | arg4 = (int) SWIG_AsInt(obj3); |
22808 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22809 | { |
22810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22811 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22812 | ||
22813 | wxPyEndAllowThreads(__tstate); | |
22814 | if (PyErr_Occurred()) SWIG_fail; | |
22815 | } | |
15afbcd0 | 22816 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22817 | return resultobj; |
22818 | fail: | |
22819 | return NULL; | |
22820 | } | |
22821 | ||
22822 | ||
22823 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22824 | PyObject *resultobj; | |
22825 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22826 | wxPoint *arg2 = 0 ; | |
22827 | int *arg3 = 0 ; | |
22828 | long result; | |
22829 | wxPoint temp2 ; | |
22830 | int temp3 ; | |
22831 | PyObject * obj0 = 0 ; | |
22832 | PyObject * obj1 = 0 ; | |
22833 | char *kwnames[] = { | |
22834 | (char *) "self",(char *) "point", NULL | |
22835 | }; | |
22836 | ||
22837 | arg3 = &temp3; | |
22838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22841 | { |
22842 | arg2 = &temp2; | |
22843 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22844 | } | |
22845 | { | |
22846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22847 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22848 | ||
22849 | wxPyEndAllowThreads(__tstate); | |
22850 | if (PyErr_Occurred()) SWIG_fail; | |
22851 | } | |
15afbcd0 | 22852 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22853 | { |
22854 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22855 | resultobj = t_output_helper(resultobj,o); | |
22856 | } | |
22857 | return resultobj; | |
22858 | fail: | |
22859 | return NULL; | |
22860 | } | |
22861 | ||
22862 | ||
22863 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22864 | PyObject *resultobj; | |
22865 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22866 | wxListItem *arg2 = 0 ; | |
22867 | long result; | |
22868 | PyObject * obj0 = 0 ; | |
22869 | PyObject * obj1 = 0 ; | |
22870 | char *kwnames[] = { | |
22871 | (char *) "self",(char *) "info", NULL | |
22872 | }; | |
22873 | ||
22874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22877 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22878 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22879 | SWIG_fail; | |
d14a1e28 | 22880 | if (arg2 == NULL) { |
15afbcd0 RD |
22881 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22882 | SWIG_fail; | |
d14a1e28 RD |
22883 | } |
22884 | { | |
22885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22886 | result = (long)(arg1)->InsertItem(*arg2); | |
22887 | ||
22888 | wxPyEndAllowThreads(__tstate); | |
22889 | if (PyErr_Occurred()) SWIG_fail; | |
22890 | } | |
15afbcd0 | 22891 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22892 | return resultobj; |
22893 | fail: | |
22894 | return NULL; | |
22895 | } | |
22896 | ||
22897 | ||
22898 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22899 | PyObject *resultobj; | |
22900 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22901 | long arg2 ; | |
22902 | wxString *arg3 = 0 ; | |
22903 | long result; | |
e811c8ce | 22904 | bool temp3 = False ; |
d14a1e28 | 22905 | PyObject * obj0 = 0 ; |
994141e6 | 22906 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22907 | PyObject * obj2 = 0 ; |
22908 | char *kwnames[] = { | |
22909 | (char *) "self",(char *) "index",(char *) "label", NULL | |
22910 | }; | |
22911 | ||
994141e6 | 22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22915 | arg2 = (long) SWIG_AsLong(obj1); | |
22916 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22917 | { |
22918 | arg3 = wxString_in_helper(obj2); | |
22919 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22920 | temp3 = True; |
d14a1e28 RD |
22921 | } |
22922 | { | |
22923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22924 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22925 | ||
22926 | wxPyEndAllowThreads(__tstate); | |
22927 | if (PyErr_Occurred()) SWIG_fail; | |
22928 | } | |
15afbcd0 | 22929 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22930 | { |
22931 | if (temp3) | |
22932 | delete arg3; | |
22933 | } | |
22934 | return resultobj; | |
22935 | fail: | |
22936 | { | |
22937 | if (temp3) | |
22938 | delete arg3; | |
22939 | } | |
22940 | return NULL; | |
22941 | } | |
22942 | ||
22943 | ||
22944 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22945 | PyObject *resultobj; | |
22946 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22947 | long arg2 ; | |
22948 | int arg3 ; | |
22949 | long result; | |
22950 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22951 | PyObject * obj1 = 0 ; |
22952 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22953 | char *kwnames[] = { |
22954 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22955 | }; | |
22956 | ||
994141e6 | 22957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22960 | arg2 = (long) SWIG_AsLong(obj1); | |
22961 | if (PyErr_Occurred()) SWIG_fail; | |
22962 | arg3 = (int) SWIG_AsInt(obj2); | |
22963 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22964 | { |
22965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22966 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
22967 | ||
22968 | wxPyEndAllowThreads(__tstate); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | } | |
15afbcd0 | 22971 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22972 | return resultobj; |
22973 | fail: | |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
22978 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22979 | PyObject *resultobj; | |
22980 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22981 | long arg2 ; | |
22982 | wxString *arg3 = 0 ; | |
22983 | int arg4 ; | |
22984 | long result; | |
e811c8ce | 22985 | bool temp3 = False ; |
d14a1e28 | 22986 | PyObject * obj0 = 0 ; |
994141e6 | 22987 | PyObject * obj1 = 0 ; |
d14a1e28 | 22988 | PyObject * obj2 = 0 ; |
994141e6 | 22989 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22990 | char *kwnames[] = { |
22991 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22992 | }; | |
22993 | ||
994141e6 | 22994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22997 | arg2 = (long) SWIG_AsLong(obj1); | |
22998 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22999 | { |
23000 | arg3 = wxString_in_helper(obj2); | |
23001 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23002 | temp3 = True; |
d14a1e28 | 23003 | } |
15afbcd0 RD |
23004 | arg4 = (int) SWIG_AsInt(obj3); |
23005 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23006 | { |
23007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23008 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
15afbcd0 | 23013 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23014 | { |
23015 | if (temp3) | |
23016 | delete arg3; | |
23017 | } | |
23018 | return resultobj; | |
23019 | fail: | |
23020 | { | |
23021 | if (temp3) | |
23022 | delete arg3; | |
23023 | } | |
23024 | return NULL; | |
23025 | } | |
23026 | ||
23027 | ||
23028 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23029 | PyObject *resultobj; | |
23030 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23031 | long arg2 ; | |
23032 | wxListItem *arg3 = 0 ; | |
23033 | long result; | |
23034 | PyObject * obj0 = 0 ; | |
994141e6 | 23035 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23036 | PyObject * obj2 = 0 ; |
23037 | char *kwnames[] = { | |
23038 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23039 | }; | |
23040 | ||
994141e6 | 23041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23044 | arg2 = (long) SWIG_AsLong(obj1); | |
23045 | if (PyErr_Occurred()) SWIG_fail; | |
23046 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23047 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23048 | SWIG_fail; | |
d14a1e28 | 23049 | if (arg3 == NULL) { |
15afbcd0 RD |
23050 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23051 | SWIG_fail; | |
d14a1e28 RD |
23052 | } |
23053 | { | |
23054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23055 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23056 | ||
23057 | wxPyEndAllowThreads(__tstate); | |
23058 | if (PyErr_Occurred()) SWIG_fail; | |
23059 | } | |
15afbcd0 | 23060 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23061 | return resultobj; |
23062 | fail: | |
23063 | return NULL; | |
23064 | } | |
23065 | ||
23066 | ||
23067 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23068 | PyObject *resultobj; | |
23069 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23070 | long arg2 ; | |
23071 | wxString *arg3 = 0 ; | |
23072 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23073 | int arg5 = (int) -1 ; | |
23074 | long result; | |
e811c8ce | 23075 | bool temp3 = False ; |
d14a1e28 | 23076 | PyObject * obj0 = 0 ; |
994141e6 | 23077 | PyObject * obj1 = 0 ; |
d14a1e28 | 23078 | PyObject * obj2 = 0 ; |
994141e6 RD |
23079 | PyObject * obj3 = 0 ; |
23080 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
23081 | char *kwnames[] = { |
23082 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23083 | }; | |
23084 | ||
994141e6 | 23085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23088 | arg2 = (long) SWIG_AsLong(obj1); | |
23089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23090 | { |
23091 | arg3 = wxString_in_helper(obj2); | |
23092 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23093 | temp3 = True; |
d14a1e28 | 23094 | } |
994141e6 | 23095 | if (obj3) { |
15afbcd0 RD |
23096 | arg4 = (int) SWIG_AsInt(obj3); |
23097 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23098 | } |
23099 | if (obj4) { | |
15afbcd0 RD |
23100 | arg5 = (int) SWIG_AsInt(obj4); |
23101 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23102 | } |
d14a1e28 RD |
23103 | { |
23104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23105 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23106 | ||
23107 | wxPyEndAllowThreads(__tstate); | |
23108 | if (PyErr_Occurred()) SWIG_fail; | |
23109 | } | |
15afbcd0 | 23110 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23111 | { |
23112 | if (temp3) | |
23113 | delete arg3; | |
23114 | } | |
23115 | return resultobj; | |
23116 | fail: | |
23117 | { | |
23118 | if (temp3) | |
23119 | delete arg3; | |
23120 | } | |
23121 | return NULL; | |
23122 | } | |
23123 | ||
23124 | ||
23125 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23126 | PyObject *resultobj; | |
23127 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23128 | long arg2 ; | |
23129 | PyObject * obj0 = 0 ; | |
994141e6 | 23130 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23131 | char *kwnames[] = { |
23132 | (char *) "self",(char *) "count", NULL | |
23133 | }; | |
23134 | ||
994141e6 | 23135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23138 | arg2 = (long) SWIG_AsLong(obj1); | |
23139 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23140 | { |
23141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23142 | (arg1)->SetItemCount(arg2); | |
23143 | ||
23144 | wxPyEndAllowThreads(__tstate); | |
23145 | if (PyErr_Occurred()) SWIG_fail; | |
23146 | } | |
23147 | Py_INCREF(Py_None); resultobj = Py_None; | |
23148 | return resultobj; | |
23149 | fail: | |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
23154 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23155 | PyObject *resultobj; | |
23156 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23157 | int arg2 ; | |
23158 | int arg3 ; | |
23159 | bool result; | |
23160 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23161 | PyObject * obj1 = 0 ; |
23162 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23163 | char *kwnames[] = { |
23164 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23165 | }; | |
23166 | ||
994141e6 | 23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23170 | arg2 = (int) SWIG_AsInt(obj1); | |
23171 | if (PyErr_Occurred()) SWIG_fail; | |
23172 | arg3 = (int) SWIG_AsInt(obj2); | |
23173 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23174 | { |
23175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23176 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23177 | ||
23178 | wxPyEndAllowThreads(__tstate); | |
23179 | if (PyErr_Occurred()) SWIG_fail; | |
23180 | } | |
4f89f6a3 RD |
23181 | { |
23182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23183 | } | |
d14a1e28 RD |
23184 | return resultobj; |
23185 | fail: | |
23186 | return NULL; | |
23187 | } | |
23188 | ||
23189 | ||
23190 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23191 | PyObject *resultobj; | |
23192 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23193 | long arg2 ; | |
23194 | wxColour *arg3 = 0 ; | |
23195 | wxColour temp3 ; | |
23196 | PyObject * obj0 = 0 ; | |
994141e6 | 23197 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23198 | PyObject * obj2 = 0 ; |
23199 | char *kwnames[] = { | |
23200 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23201 | }; | |
23202 | ||
994141e6 | 23203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23206 | arg2 = (long) SWIG_AsLong(obj1); | |
23207 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23208 | { |
23209 | arg3 = &temp3; | |
23210 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23211 | } | |
23212 | { | |
23213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23214 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23215 | ||
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
23219 | Py_INCREF(Py_None); resultobj = Py_None; | |
23220 | return resultobj; | |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
23226 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23227 | PyObject *resultobj; | |
23228 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23229 | long arg2 ; | |
23230 | wxColour result; | |
23231 | PyObject * obj0 = 0 ; | |
994141e6 | 23232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23233 | char *kwnames[] = { |
23234 | (char *) "self",(char *) "item", NULL | |
23235 | }; | |
23236 | ||
994141e6 | 23237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23240 | arg2 = (long) SWIG_AsLong(obj1); | |
23241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23242 | { |
23243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23244 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23245 | ||
23246 | wxPyEndAllowThreads(__tstate); | |
23247 | if (PyErr_Occurred()) SWIG_fail; | |
23248 | } | |
23249 | { | |
23250 | wxColour * resultptr; | |
23251 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23252 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23253 | } |
23254 | return resultobj; | |
23255 | fail: | |
23256 | return NULL; | |
23257 | } | |
23258 | ||
23259 | ||
23260 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23261 | PyObject *resultobj; | |
23262 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23263 | long arg2 ; | |
23264 | wxColour *arg3 = 0 ; | |
23265 | wxColour temp3 ; | |
23266 | PyObject * obj0 = 0 ; | |
994141e6 | 23267 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23268 | PyObject * obj2 = 0 ; |
23269 | char *kwnames[] = { | |
23270 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23271 | }; | |
23272 | ||
994141e6 | 23273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23276 | arg2 = (long) SWIG_AsLong(obj1); | |
23277 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23278 | { |
23279 | arg3 = &temp3; | |
23280 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23281 | } | |
23282 | { | |
23283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23284 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23285 | ||
23286 | wxPyEndAllowThreads(__tstate); | |
23287 | if (PyErr_Occurred()) SWIG_fail; | |
23288 | } | |
23289 | Py_INCREF(Py_None); resultobj = Py_None; | |
23290 | return resultobj; | |
23291 | fail: | |
23292 | return NULL; | |
23293 | } | |
23294 | ||
23295 | ||
23296 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23297 | PyObject *resultobj; | |
23298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23299 | long arg2 ; | |
23300 | wxColour result; | |
23301 | PyObject * obj0 = 0 ; | |
994141e6 | 23302 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23303 | char *kwnames[] = { |
23304 | (char *) "self",(char *) "item", NULL | |
23305 | }; | |
23306 | ||
994141e6 | 23307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23310 | arg2 = (long) SWIG_AsLong(obj1); | |
23311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23312 | { |
23313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23314 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23315 | ||
23316 | wxPyEndAllowThreads(__tstate); | |
23317 | if (PyErr_Occurred()) SWIG_fail; | |
23318 | } | |
23319 | { | |
23320 | wxColour * resultptr; | |
23321 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23323 | } |
23324 | return resultobj; | |
23325 | fail: | |
23326 | return NULL; | |
23327 | } | |
23328 | ||
23329 | ||
23330 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23331 | PyObject *resultobj; | |
23332 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23333 | PyObject *arg2 = (PyObject *) 0 ; | |
23334 | bool result; | |
23335 | PyObject * obj0 = 0 ; | |
23336 | PyObject * obj1 = 0 ; | |
23337 | char *kwnames[] = { | |
23338 | (char *) "self",(char *) "func", NULL | |
23339 | }; | |
23340 | ||
23341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23344 | arg2 = obj1; |
23345 | { | |
23346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23347 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23348 | ||
23349 | wxPyEndAllowThreads(__tstate); | |
23350 | if (PyErr_Occurred()) SWIG_fail; | |
23351 | } | |
4f89f6a3 RD |
23352 | { |
23353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23354 | } | |
d14a1e28 RD |
23355 | return resultobj; |
23356 | fail: | |
23357 | return NULL; | |
23358 | } | |
23359 | ||
23360 | ||
23361 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23362 | PyObject *resultobj; | |
23363 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23364 | wxWindow *result; | |
23365 | PyObject * obj0 = 0 ; | |
23366 | char *kwnames[] = { | |
23367 | (char *) "self", NULL | |
23368 | }; | |
23369 | ||
23370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23373 | { |
23374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23375 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23376 | ||
23377 | wxPyEndAllowThreads(__tstate); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
23379 | } | |
23380 | { | |
23381 | resultobj = wxPyMake_wxObject(result); | |
23382 | } | |
23383 | return resultobj; | |
23384 | fail: | |
23385 | return NULL; | |
23386 | } | |
23387 | ||
23388 | ||
74a57fcd RD |
23389 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
23390 | PyObject *resultobj; | |
23391 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23392 | wxVisualAttributes result; | |
23393 | PyObject * obj0 = 0 ; | |
23394 | char *kwnames[] = { | |
23395 | (char *) "variant", NULL | |
23396 | }; | |
23397 | ||
23398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23399 | if (obj0) { | |
23400 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
23401 | if (PyErr_Occurred()) SWIG_fail; | |
23402 | } | |
23403 | { | |
23404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23405 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23406 | ||
23407 | wxPyEndAllowThreads(__tstate); | |
23408 | if (PyErr_Occurred()) SWIG_fail; | |
23409 | } | |
23410 | { | |
23411 | wxVisualAttributes * resultptr; | |
23412 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23413 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23414 | } | |
23415 | return resultobj; | |
23416 | fail: | |
23417 | return NULL; | |
23418 | } | |
23419 | ||
23420 | ||
d14a1e28 RD |
23421 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { |
23422 | PyObject *obj; | |
23423 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23424 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23425 | Py_INCREF(obj); | |
23426 | return Py_BuildValue((char *)""); | |
23427 | } | |
23428 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23429 | PyObject *resultobj; | |
23430 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23431 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23432 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23433 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23434 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23435 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23436 | long arg5 = (long) wxLC_REPORT ; | |
23437 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23438 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23439 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23440 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23441 | wxListView *result; | |
23442 | wxPoint temp3 ; | |
23443 | wxSize temp4 ; | |
e811c8ce | 23444 | bool temp7 = False ; |
d14a1e28 | 23445 | PyObject * obj0 = 0 ; |
994141e6 | 23446 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23447 | PyObject * obj2 = 0 ; |
23448 | PyObject * obj3 = 0 ; | |
994141e6 | 23449 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23450 | PyObject * obj5 = 0 ; |
23451 | PyObject * obj6 = 0 ; | |
23452 | char *kwnames[] = { | |
23453 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23454 | }; | |
23455 | ||
994141e6 | 23456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23459 | if (obj1) { |
15afbcd0 RD |
23460 | arg2 = (int) SWIG_AsInt(obj1); |
23461 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23462 | } |
d14a1e28 RD |
23463 | if (obj2) { |
23464 | { | |
23465 | arg3 = &temp3; | |
23466 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23467 | } | |
23468 | } | |
23469 | if (obj3) { | |
23470 | { | |
23471 | arg4 = &temp4; | |
23472 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23473 | } | |
23474 | } | |
994141e6 | 23475 | if (obj4) { |
15afbcd0 RD |
23476 | arg5 = (long) SWIG_AsLong(obj4); |
23477 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23478 | } |
d14a1e28 | 23479 | if (obj5) { |
15afbcd0 RD |
23480 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
23481 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23482 | SWIG_fail; | |
d14a1e28 | 23483 | if (arg6 == NULL) { |
15afbcd0 RD |
23484 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23485 | SWIG_fail; | |
d14a1e28 RD |
23486 | } |
23487 | } | |
23488 | if (obj6) { | |
23489 | { | |
23490 | arg7 = wxString_in_helper(obj6); | |
23491 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23492 | temp7 = True; |
d14a1e28 RD |
23493 | } |
23494 | } | |
23495 | { | |
23496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23497 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23498 | ||
23499 | wxPyEndAllowThreads(__tstate); | |
23500 | if (PyErr_Occurred()) SWIG_fail; | |
23501 | } | |
15afbcd0 | 23502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23503 | { |
23504 | if (temp7) | |
23505 | delete arg7; | |
23506 | } | |
23507 | return resultobj; | |
23508 | fail: | |
23509 | { | |
23510 | if (temp7) | |
23511 | delete arg7; | |
23512 | } | |
23513 | return NULL; | |
23514 | } | |
23515 | ||
23516 | ||
23517 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23518 | PyObject *resultobj; | |
23519 | wxListView *result; | |
23520 | char *kwnames[] = { | |
23521 | NULL | |
23522 | }; | |
23523 | ||
23524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | result = (wxListView *)new wxListView(); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
15afbcd0 | 23532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23533 | return resultobj; |
23534 | fail: | |
23535 | return NULL; | |
23536 | } | |
23537 | ||
23538 | ||
23539 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23540 | PyObject *resultobj; | |
23541 | wxListView *arg1 = (wxListView *) 0 ; | |
23542 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23543 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23544 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23545 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23546 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23547 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23548 | long arg6 = (long) wxLC_REPORT ; | |
23549 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23550 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23551 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23552 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23553 | bool result; | |
23554 | wxPoint temp4 ; | |
23555 | wxSize temp5 ; | |
e811c8ce | 23556 | bool temp8 = False ; |
d14a1e28 RD |
23557 | PyObject * obj0 = 0 ; |
23558 | PyObject * obj1 = 0 ; | |
994141e6 | 23559 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23560 | PyObject * obj3 = 0 ; |
23561 | PyObject * obj4 = 0 ; | |
994141e6 | 23562 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23563 | PyObject * obj6 = 0 ; |
23564 | PyObject * obj7 = 0 ; | |
23565 | char *kwnames[] = { | |
23566 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23567 | }; | |
23568 | ||
994141e6 | 23569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
23570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23574 | if (obj2) { |
15afbcd0 RD |
23575 | arg3 = (int) SWIG_AsInt(obj2); |
23576 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23577 | } |
d14a1e28 RD |
23578 | if (obj3) { |
23579 | { | |
23580 | arg4 = &temp4; | |
23581 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23582 | } | |
23583 | } | |
23584 | if (obj4) { | |
23585 | { | |
23586 | arg5 = &temp5; | |
23587 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23588 | } | |
23589 | } | |
994141e6 | 23590 | if (obj5) { |
15afbcd0 RD |
23591 | arg6 = (long) SWIG_AsLong(obj5); |
23592 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23593 | } |
d14a1e28 | 23594 | if (obj6) { |
15afbcd0 RD |
23595 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
23596 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23597 | SWIG_fail; | |
d14a1e28 | 23598 | if (arg7 == NULL) { |
15afbcd0 RD |
23599 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23600 | SWIG_fail; | |
d14a1e28 RD |
23601 | } |
23602 | } | |
23603 | if (obj7) { | |
23604 | { | |
23605 | arg8 = wxString_in_helper(obj7); | |
23606 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23607 | temp8 = True; |
d14a1e28 RD |
23608 | } |
23609 | } | |
23610 | { | |
23611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23612 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23613 | ||
23614 | wxPyEndAllowThreads(__tstate); | |
23615 | if (PyErr_Occurred()) SWIG_fail; | |
23616 | } | |
4f89f6a3 RD |
23617 | { |
23618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23619 | } | |
d14a1e28 RD |
23620 | { |
23621 | if (temp8) | |
23622 | delete arg8; | |
23623 | } | |
23624 | return resultobj; | |
23625 | fail: | |
23626 | { | |
23627 | if (temp8) | |
23628 | delete arg8; | |
23629 | } | |
23630 | return NULL; | |
23631 | } | |
23632 | ||
23633 | ||
23634 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23635 | PyObject *resultobj; | |
23636 | wxListView *arg1 = (wxListView *) 0 ; | |
23637 | long arg2 ; | |
e811c8ce | 23638 | bool arg3 = (bool) True ; |
d14a1e28 | 23639 | PyObject * obj0 = 0 ; |
994141e6 | 23640 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23641 | PyObject * obj2 = 0 ; |
23642 | char *kwnames[] = { | |
23643 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23644 | }; | |
23645 | ||
15afbcd0 RD |
23646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23649 | arg2 = (long) SWIG_AsLong(obj1); | |
23650 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 23651 | if (obj2) { |
15afbcd0 RD |
23652 | arg3 = (bool) SWIG_AsBool(obj2); |
23653 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23654 | } |
23655 | { | |
23656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23657 | (arg1)->Select(arg2,arg3); | |
23658 | ||
23659 | wxPyEndAllowThreads(__tstate); | |
23660 | if (PyErr_Occurred()) SWIG_fail; | |
23661 | } | |
23662 | Py_INCREF(Py_None); resultobj = Py_None; | |
23663 | return resultobj; | |
23664 | fail: | |
23665 | return NULL; | |
23666 | } | |
23667 | ||
23668 | ||
23669 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23670 | PyObject *resultobj; | |
23671 | wxListView *arg1 = (wxListView *) 0 ; | |
23672 | long arg2 ; | |
23673 | PyObject * obj0 = 0 ; | |
994141e6 | 23674 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23675 | char *kwnames[] = { |
23676 | (char *) "self",(char *) "index", NULL | |
23677 | }; | |
23678 | ||
994141e6 | 23679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23682 | arg2 = (long) SWIG_AsLong(obj1); | |
23683 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23684 | { |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23686 | (arg1)->Focus(arg2); | |
23687 | ||
23688 | wxPyEndAllowThreads(__tstate); | |
23689 | if (PyErr_Occurred()) SWIG_fail; | |
23690 | } | |
23691 | Py_INCREF(Py_None); resultobj = Py_None; | |
23692 | return resultobj; | |
23693 | fail: | |
23694 | return NULL; | |
23695 | } | |
23696 | ||
23697 | ||
23698 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23699 | PyObject *resultobj; | |
23700 | wxListView *arg1 = (wxListView *) 0 ; | |
23701 | long result; | |
23702 | PyObject * obj0 = 0 ; | |
23703 | char *kwnames[] = { | |
23704 | (char *) "self", NULL | |
23705 | }; | |
23706 | ||
23707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23710 | { |
23711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23712 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23713 | ||
23714 | wxPyEndAllowThreads(__tstate); | |
23715 | if (PyErr_Occurred()) SWIG_fail; | |
23716 | } | |
15afbcd0 | 23717 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23718 | return resultobj; |
23719 | fail: | |
23720 | return NULL; | |
23721 | } | |
23722 | ||
23723 | ||
23724 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23725 | PyObject *resultobj; | |
23726 | wxListView *arg1 = (wxListView *) 0 ; | |
23727 | long arg2 ; | |
23728 | long result; | |
23729 | PyObject * obj0 = 0 ; | |
994141e6 | 23730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23731 | char *kwnames[] = { |
23732 | (char *) "self",(char *) "item", NULL | |
23733 | }; | |
23734 | ||
994141e6 | 23735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23738 | arg2 = (long) SWIG_AsLong(obj1); | |
23739 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23740 | { |
23741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23742 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23743 | ||
23744 | wxPyEndAllowThreads(__tstate); | |
23745 | if (PyErr_Occurred()) SWIG_fail; | |
23746 | } | |
15afbcd0 | 23747 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23748 | return resultobj; |
23749 | fail: | |
23750 | return NULL; | |
23751 | } | |
23752 | ||
23753 | ||
23754 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23755 | PyObject *resultobj; | |
23756 | wxListView *arg1 = (wxListView *) 0 ; | |
23757 | long result; | |
23758 | PyObject * obj0 = 0 ; | |
23759 | char *kwnames[] = { | |
23760 | (char *) "self", NULL | |
23761 | }; | |
23762 | ||
23763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23766 | { |
23767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23768 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23769 | ||
23770 | wxPyEndAllowThreads(__tstate); | |
23771 | if (PyErr_Occurred()) SWIG_fail; | |
23772 | } | |
15afbcd0 | 23773 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23774 | return resultobj; |
23775 | fail: | |
23776 | return NULL; | |
23777 | } | |
23778 | ||
23779 | ||
23780 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23781 | PyObject *resultobj; | |
23782 | wxListView *arg1 = (wxListView *) 0 ; | |
23783 | long arg2 ; | |
23784 | bool result; | |
23785 | PyObject * obj0 = 0 ; | |
994141e6 | 23786 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23787 | char *kwnames[] = { |
23788 | (char *) "self",(char *) "index", NULL | |
23789 | }; | |
23790 | ||
994141e6 | 23791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23794 | arg2 = (long) SWIG_AsLong(obj1); | |
23795 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23796 | { |
23797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23798 | result = (bool)(arg1)->IsSelected(arg2); | |
23799 | ||
23800 | wxPyEndAllowThreads(__tstate); | |
23801 | if (PyErr_Occurred()) SWIG_fail; | |
23802 | } | |
4f89f6a3 RD |
23803 | { |
23804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23805 | } | |
d14a1e28 RD |
23806 | return resultobj; |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
23812 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23813 | PyObject *resultobj; | |
23814 | wxListView *arg1 = (wxListView *) 0 ; | |
23815 | int arg2 ; | |
23816 | int arg3 ; | |
23817 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23818 | PyObject * obj1 = 0 ; |
23819 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23820 | char *kwnames[] = { |
23821 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23822 | }; | |
23823 | ||
994141e6 | 23824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23827 | arg2 = (int) SWIG_AsInt(obj1); | |
23828 | if (PyErr_Occurred()) SWIG_fail; | |
23829 | arg3 = (int) SWIG_AsInt(obj2); | |
23830 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23831 | { |
23832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23833 | (arg1)->SetColumnImage(arg2,arg3); | |
23834 | ||
23835 | wxPyEndAllowThreads(__tstate); | |
23836 | if (PyErr_Occurred()) SWIG_fail; | |
23837 | } | |
23838 | Py_INCREF(Py_None); resultobj = Py_None; | |
23839 | return resultobj; | |
23840 | fail: | |
23841 | return NULL; | |
23842 | } | |
23843 | ||
23844 | ||
23845 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23846 | PyObject *resultobj; | |
23847 | wxListView *arg1 = (wxListView *) 0 ; | |
23848 | int arg2 ; | |
23849 | PyObject * obj0 = 0 ; | |
994141e6 | 23850 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23851 | char *kwnames[] = { |
23852 | (char *) "self",(char *) "col", NULL | |
23853 | }; | |
23854 | ||
994141e6 | 23855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23858 | arg2 = (int) SWIG_AsInt(obj1); | |
23859 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23860 | { |
23861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23862 | (arg1)->ClearColumnImage(arg2); | |
23863 | ||
23864 | wxPyEndAllowThreads(__tstate); | |
23865 | if (PyErr_Occurred()) SWIG_fail; | |
23866 | } | |
23867 | Py_INCREF(Py_None); resultobj = Py_None; | |
23868 | return resultobj; | |
23869 | fail: | |
23870 | return NULL; | |
23871 | } | |
23872 | ||
23873 | ||
23874 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
23875 | PyObject *obj; | |
23876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23877 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
23878 | Py_INCREF(obj); | |
23879 | return Py_BuildValue((char *)""); | |
23880 | } | |
b2dc1044 RD |
23881 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
23882 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
23883 | return 1; | |
23884 | } | |
23885 | ||
23886 | ||
23887 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
23888 | PyObject *pyobj; | |
23889 | ||
23890 | { | |
23891 | #if wxUSE_UNICODE | |
23892 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23893 | #else | |
23894 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23895 | #endif | |
23896 | } | |
23897 | return pyobj; | |
23898 | } | |
23899 | ||
23900 | ||
d14a1e28 RD |
23901 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
23902 | PyObject *resultobj; | |
23903 | wxTreeItemId *result; | |
23904 | char *kwnames[] = { | |
23905 | NULL | |
23906 | }; | |
23907 | ||
23908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
23909 | { | |
23910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23911 | result = (wxTreeItemId *)new wxTreeItemId(); | |
23912 | ||
23913 | wxPyEndAllowThreads(__tstate); | |
23914 | if (PyErr_Occurred()) SWIG_fail; | |
23915 | } | |
15afbcd0 | 23916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23917 | return resultobj; |
23918 | fail: | |
23919 | return NULL; | |
23920 | } | |
23921 | ||
23922 | ||
23923 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23924 | PyObject *resultobj; | |
23925 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23926 | PyObject * obj0 = 0 ; | |
23927 | char *kwnames[] = { | |
23928 | (char *) "self", NULL | |
23929 | }; | |
23930 | ||
23931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23934 | { |
23935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23936 | delete arg1; | |
23937 | ||
23938 | wxPyEndAllowThreads(__tstate); | |
23939 | if (PyErr_Occurred()) SWIG_fail; | |
23940 | } | |
23941 | Py_INCREF(Py_None); resultobj = Py_None; | |
23942 | return resultobj; | |
23943 | fail: | |
23944 | return NULL; | |
23945 | } | |
23946 | ||
23947 | ||
23948 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23949 | PyObject *resultobj; | |
23950 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23951 | bool result; | |
23952 | PyObject * obj0 = 0 ; | |
23953 | char *kwnames[] = { | |
23954 | (char *) "self", NULL | |
23955 | }; | |
23956 | ||
23957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23960 | { |
23961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23962 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23963 | ||
23964 | wxPyEndAllowThreads(__tstate); | |
23965 | if (PyErr_Occurred()) SWIG_fail; | |
23966 | } | |
4f89f6a3 RD |
23967 | { |
23968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23969 | } | |
d14a1e28 RD |
23970 | return resultobj; |
23971 | fail: | |
23972 | return NULL; | |
23973 | } | |
23974 | ||
23975 | ||
23976 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23977 | PyObject *resultobj; | |
23978 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23979 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23980 | bool result; | |
23981 | PyObject * obj0 = 0 ; | |
23982 | PyObject * obj1 = 0 ; | |
23983 | char *kwnames[] = { | |
23984 | (char *) "self",(char *) "other", NULL | |
23985 | }; | |
23986 | ||
23987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23992 | { |
23993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23994 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
23995 | |
23996 | wxPyEndAllowThreads(__tstate); | |
23997 | if (PyErr_Occurred()) SWIG_fail; | |
23998 | } | |
4f89f6a3 RD |
23999 | { |
24000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24001 | } | |
d14a1e28 RD |
24002 | return resultobj; |
24003 | fail: | |
24004 | return NULL; | |
24005 | } | |
24006 | ||
24007 | ||
24008 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24009 | PyObject *resultobj; | |
24010 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24011 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24012 | bool result; | |
24013 | PyObject * obj0 = 0 ; | |
24014 | PyObject * obj1 = 0 ; | |
24015 | char *kwnames[] = { | |
24016 | (char *) "self",(char *) "other", NULL | |
24017 | }; | |
24018 | ||
24019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24024 | { |
24025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24026 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24027 | |
24028 | wxPyEndAllowThreads(__tstate); | |
24029 | if (PyErr_Occurred()) SWIG_fail; | |
24030 | } | |
4f89f6a3 RD |
24031 | { |
24032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24033 | } | |
d14a1e28 RD |
24034 | return resultobj; |
24035 | fail: | |
24036 | return NULL; | |
24037 | } | |
24038 | ||
24039 | ||
24040 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24041 | PyObject *resultobj; | |
24042 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24043 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
24044 | PyObject * obj0 = 0 ; |
24045 | PyObject * obj1 = 0 ; | |
24046 | char *kwnames[] = { | |
24047 | (char *) "self",(char *) "m_pItem", NULL | |
24048 | }; | |
24049 | ||
24050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24053 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24054 | if (arg1) (arg1)->m_pItem = arg2; |
24055 | ||
24056 | Py_INCREF(Py_None); resultobj = Py_None; | |
24057 | return resultobj; | |
24058 | fail: | |
24059 | return NULL; | |
24060 | } | |
24061 | ||
24062 | ||
24063 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24064 | PyObject *resultobj; | |
24065 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24066 | void *result; |
d14a1e28 RD |
24067 | PyObject * obj0 = 0 ; |
24068 | char *kwnames[] = { | |
24069 | (char *) "self", NULL | |
24070 | }; | |
24071 | ||
24072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 24075 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 24076 | |
15afbcd0 | 24077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
24078 | return resultobj; |
24079 | fail: | |
24080 | return NULL; | |
24081 | } | |
24082 | ||
24083 | ||
24084 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
24085 | PyObject *obj; | |
24086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24087 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24088 | Py_INCREF(obj); | |
24089 | return Py_BuildValue((char *)""); | |
24090 | } | |
24091 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24092 | PyObject *resultobj; | |
24093 | PyObject *arg1 = (PyObject *) NULL ; | |
24094 | wxPyTreeItemData *result; | |
24095 | PyObject * obj0 = 0 ; | |
24096 | char *kwnames[] = { | |
24097 | (char *) "obj", NULL | |
24098 | }; | |
24099 | ||
24100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24101 | if (obj0) { | |
24102 | arg1 = obj0; | |
24103 | } | |
24104 | { | |
24105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24106 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24107 | ||
24108 | wxPyEndAllowThreads(__tstate); | |
24109 | if (PyErr_Occurred()) SWIG_fail; | |
24110 | } | |
15afbcd0 | 24111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
24112 | return resultobj; |
24113 | fail: | |
24114 | return NULL; | |
24115 | } | |
24116 | ||
24117 | ||
24118 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24119 | PyObject *resultobj; | |
24120 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24121 | PyObject *result; | |
24122 | PyObject * obj0 = 0 ; | |
24123 | char *kwnames[] = { | |
24124 | (char *) "self", NULL | |
24125 | }; | |
24126 | ||
24127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24130 | { |
24131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24132 | result = (PyObject *)(arg1)->GetData(); | |
24133 | ||
24134 | wxPyEndAllowThreads(__tstate); | |
24135 | if (PyErr_Occurred()) SWIG_fail; | |
24136 | } | |
24137 | resultobj = result; | |
24138 | return resultobj; | |
24139 | fail: | |
24140 | return NULL; | |
24141 | } | |
24142 | ||
24143 | ||
24144 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24145 | PyObject *resultobj; | |
24146 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24147 | PyObject *arg2 = (PyObject *) 0 ; | |
24148 | PyObject * obj0 = 0 ; | |
24149 | PyObject * obj1 = 0 ; | |
24150 | char *kwnames[] = { | |
24151 | (char *) "self",(char *) "obj", NULL | |
24152 | }; | |
24153 | ||
24154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24157 | arg2 = obj1; |
24158 | { | |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24160 | (arg1)->SetData(arg2); | |
24161 | ||
24162 | wxPyEndAllowThreads(__tstate); | |
24163 | if (PyErr_Occurred()) SWIG_fail; | |
24164 | } | |
24165 | Py_INCREF(Py_None); resultobj = Py_None; | |
24166 | return resultobj; | |
24167 | fail: | |
24168 | return NULL; | |
24169 | } | |
24170 | ||
24171 | ||
24172 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24173 | PyObject *resultobj; | |
24174 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24175 | wxTreeItemId *result; | |
24176 | PyObject * obj0 = 0 ; | |
24177 | char *kwnames[] = { | |
24178 | (char *) "self", NULL | |
24179 | }; | |
24180 | ||
24181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24184 | { |
24185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24186 | { | |
24187 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24188 | result = (wxTreeItemId *) &_result_ref; | |
24189 | } | |
24190 | ||
24191 | wxPyEndAllowThreads(__tstate); | |
24192 | if (PyErr_Occurred()) SWIG_fail; | |
24193 | } | |
15afbcd0 | 24194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
24195 | return resultobj; |
24196 | fail: | |
24197 | return NULL; | |
24198 | } | |
24199 | ||
24200 | ||
24201 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24202 | PyObject *resultobj; | |
24203 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24204 | wxTreeItemId *arg2 = 0 ; | |
24205 | PyObject * obj0 = 0 ; | |
24206 | PyObject * obj1 = 0 ; | |
24207 | char *kwnames[] = { | |
24208 | (char *) "self",(char *) "id", NULL | |
24209 | }; | |
24210 | ||
24211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24214 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24215 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24216 | SWIG_fail; | |
d14a1e28 | 24217 | if (arg2 == NULL) { |
15afbcd0 RD |
24218 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24219 | SWIG_fail; | |
d14a1e28 RD |
24220 | } |
24221 | { | |
24222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24223 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24224 | ||
24225 | wxPyEndAllowThreads(__tstate); | |
24226 | if (PyErr_Occurred()) SWIG_fail; | |
24227 | } | |
24228 | Py_INCREF(Py_None); resultobj = Py_None; | |
24229 | return resultobj; | |
24230 | fail: | |
24231 | return NULL; | |
24232 | } | |
24233 | ||
24234 | ||
24235 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24236 | PyObject *resultobj; | |
24237 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24238 | PyObject * obj0 = 0 ; | |
24239 | char *kwnames[] = { | |
24240 | (char *) "self", NULL | |
24241 | }; | |
24242 | ||
24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24246 | { |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | wxPyTreeItemData_Destroy(arg1); | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | Py_INCREF(Py_None); resultobj = Py_None; | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | return NULL; | |
24257 | } | |
24258 | ||
24259 | ||
24260 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
24261 | PyObject *obj; | |
24262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24263 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24264 | Py_INCREF(obj); | |
24265 | return Py_BuildValue((char *)""); | |
24266 | } | |
24267 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24268 | PyObject *resultobj; | |
24269 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24270 | int arg2 = (int) 0 ; | |
24271 | wxTreeEvent *result; | |
994141e6 RD |
24272 | PyObject * obj0 = 0 ; |
24273 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
24274 | char *kwnames[] = { |
24275 | (char *) "commandType",(char *) "id", NULL | |
24276 | }; | |
24277 | ||
994141e6 RD |
24278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
24279 | if (obj0) { | |
15afbcd0 RD |
24280 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
24281 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
24282 | } |
24283 | if (obj1) { | |
15afbcd0 RD |
24284 | arg2 = (int) SWIG_AsInt(obj1); |
24285 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24286 | } |
d14a1e28 RD |
24287 | { |
24288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24289 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24290 | ||
24291 | wxPyEndAllowThreads(__tstate); | |
24292 | if (PyErr_Occurred()) SWIG_fail; | |
24293 | } | |
15afbcd0 | 24294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
24295 | return resultobj; |
24296 | fail: | |
24297 | return NULL; | |
24298 | } | |
24299 | ||
24300 | ||
24301 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24302 | PyObject *resultobj; | |
24303 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24304 | wxTreeItemId result; | |
24305 | PyObject * obj0 = 0 ; | |
24306 | char *kwnames[] = { | |
24307 | (char *) "self", NULL | |
24308 | }; | |
24309 | ||
24310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24313 | { |
24314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24315 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24316 | ||
24317 | wxPyEndAllowThreads(__tstate); | |
24318 | if (PyErr_Occurred()) SWIG_fail; | |
24319 | } | |
24320 | { | |
24321 | wxTreeItemId * resultptr; | |
24322 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24324 | } |
24325 | return resultobj; | |
24326 | fail: | |
24327 | return NULL; | |
24328 | } | |
24329 | ||
24330 | ||
24331 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24332 | PyObject *resultobj; | |
24333 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24334 | wxTreeItemId *arg2 = 0 ; | |
24335 | PyObject * obj0 = 0 ; | |
24336 | PyObject * obj1 = 0 ; | |
24337 | char *kwnames[] = { | |
24338 | (char *) "self",(char *) "item", NULL | |
24339 | }; | |
24340 | ||
24341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24345 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24346 | SWIG_fail; | |
d14a1e28 | 24347 | if (arg2 == NULL) { |
15afbcd0 RD |
24348 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24349 | SWIG_fail; | |
d14a1e28 RD |
24350 | } |
24351 | { | |
24352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24353 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24354 | ||
24355 | wxPyEndAllowThreads(__tstate); | |
24356 | if (PyErr_Occurred()) SWIG_fail; | |
24357 | } | |
24358 | Py_INCREF(Py_None); resultobj = Py_None; | |
24359 | return resultobj; | |
24360 | fail: | |
24361 | return NULL; | |
24362 | } | |
24363 | ||
24364 | ||
24365 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24366 | PyObject *resultobj; | |
24367 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24368 | wxTreeItemId result; | |
24369 | PyObject * obj0 = 0 ; | |
24370 | char *kwnames[] = { | |
24371 | (char *) "self", NULL | |
24372 | }; | |
24373 | ||
24374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24377 | { |
24378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24379 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24380 | ||
24381 | wxPyEndAllowThreads(__tstate); | |
24382 | if (PyErr_Occurred()) SWIG_fail; | |
24383 | } | |
24384 | { | |
24385 | wxTreeItemId * resultptr; | |
24386 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24388 | } |
24389 | return resultobj; | |
24390 | fail: | |
24391 | return NULL; | |
24392 | } | |
24393 | ||
24394 | ||
24395 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24396 | PyObject *resultobj; | |
24397 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24398 | wxTreeItemId *arg2 = 0 ; | |
24399 | PyObject * obj0 = 0 ; | |
24400 | PyObject * obj1 = 0 ; | |
24401 | char *kwnames[] = { | |
24402 | (char *) "self",(char *) "item", NULL | |
24403 | }; | |
24404 | ||
24405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24409 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24410 | SWIG_fail; | |
d14a1e28 | 24411 | if (arg2 == NULL) { |
15afbcd0 RD |
24412 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24413 | SWIG_fail; | |
d14a1e28 RD |
24414 | } |
24415 | { | |
24416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24417 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24418 | ||
24419 | wxPyEndAllowThreads(__tstate); | |
24420 | if (PyErr_Occurred()) SWIG_fail; | |
24421 | } | |
24422 | Py_INCREF(Py_None); resultobj = Py_None; | |
24423 | return resultobj; | |
24424 | fail: | |
24425 | return NULL; | |
24426 | } | |
24427 | ||
24428 | ||
24429 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24430 | PyObject *resultobj; | |
24431 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24432 | wxPoint result; | |
24433 | PyObject * obj0 = 0 ; | |
24434 | char *kwnames[] = { | |
24435 | (char *) "self", NULL | |
24436 | }; | |
24437 | ||
24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24441 | { |
24442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24443 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24444 | ||
24445 | wxPyEndAllowThreads(__tstate); | |
24446 | if (PyErr_Occurred()) SWIG_fail; | |
24447 | } | |
24448 | { | |
24449 | wxPoint * resultptr; | |
24450 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 24451 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24452 | } |
24453 | return resultobj; | |
24454 | fail: | |
24455 | return NULL; | |
24456 | } | |
24457 | ||
24458 | ||
24459 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24460 | PyObject *resultobj; | |
24461 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24462 | wxPoint *arg2 = 0 ; | |
24463 | wxPoint temp2 ; | |
24464 | PyObject * obj0 = 0 ; | |
24465 | PyObject * obj1 = 0 ; | |
24466 | char *kwnames[] = { | |
24467 | (char *) "self",(char *) "pt", NULL | |
24468 | }; | |
24469 | ||
24470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24473 | { |
24474 | arg2 = &temp2; | |
24475 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24476 | } | |
24477 | { | |
24478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24479 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24480 | ||
24481 | wxPyEndAllowThreads(__tstate); | |
24482 | if (PyErr_Occurred()) SWIG_fail; | |
24483 | } | |
24484 | Py_INCREF(Py_None); resultobj = Py_None; | |
24485 | return resultobj; | |
24486 | fail: | |
24487 | return NULL; | |
24488 | } | |
24489 | ||
24490 | ||
24491 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24492 | PyObject *resultobj; | |
24493 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24494 | wxKeyEvent *result; | |
24495 | PyObject * obj0 = 0 ; | |
24496 | char *kwnames[] = { | |
24497 | (char *) "self", NULL | |
24498 | }; | |
24499 | ||
24500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24503 | { |
24504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24505 | { | |
24506 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24507 | result = (wxKeyEvent *) &_result_ref; | |
24508 | } | |
24509 | ||
24510 | wxPyEndAllowThreads(__tstate); | |
24511 | if (PyErr_Occurred()) SWIG_fail; | |
24512 | } | |
15afbcd0 | 24513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
24514 | return resultobj; |
24515 | fail: | |
24516 | return NULL; | |
24517 | } | |
24518 | ||
24519 | ||
24520 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24521 | PyObject *resultobj; | |
24522 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24523 | int result; | |
24524 | PyObject * obj0 = 0 ; | |
24525 | char *kwnames[] = { | |
24526 | (char *) "self", NULL | |
24527 | }; | |
24528 | ||
24529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24532 | { |
24533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24534 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24535 | ||
24536 | wxPyEndAllowThreads(__tstate); | |
24537 | if (PyErr_Occurred()) SWIG_fail; | |
24538 | } | |
15afbcd0 | 24539 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24540 | return resultobj; |
24541 | fail: | |
24542 | return NULL; | |
24543 | } | |
24544 | ||
24545 | ||
24546 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24547 | PyObject *resultobj; | |
24548 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24549 | wxKeyEvent *arg2 = 0 ; | |
24550 | PyObject * obj0 = 0 ; | |
24551 | PyObject * obj1 = 0 ; | |
24552 | char *kwnames[] = { | |
24553 | (char *) "self",(char *) "evt", NULL | |
24554 | }; | |
24555 | ||
24556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24560 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24561 | SWIG_fail; | |
d14a1e28 | 24562 | if (arg2 == NULL) { |
15afbcd0 RD |
24563 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24564 | SWIG_fail; | |
d14a1e28 RD |
24565 | } |
24566 | { | |
24567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24568 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24569 | ||
24570 | wxPyEndAllowThreads(__tstate); | |
24571 | if (PyErr_Occurred()) SWIG_fail; | |
24572 | } | |
24573 | Py_INCREF(Py_None); resultobj = Py_None; | |
24574 | return resultobj; | |
24575 | fail: | |
24576 | return NULL; | |
24577 | } | |
24578 | ||
24579 | ||
24580 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24581 | PyObject *resultobj; | |
24582 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24583 | wxString *result; | |
24584 | PyObject * obj0 = 0 ; | |
24585 | char *kwnames[] = { | |
24586 | (char *) "self", NULL | |
24587 | }; | |
24588 | ||
24589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24592 | { |
24593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24594 | { | |
24595 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24596 | result = (wxString *) &_result_ref; | |
24597 | } | |
24598 | ||
24599 | wxPyEndAllowThreads(__tstate); | |
24600 | if (PyErr_Occurred()) SWIG_fail; | |
24601 | } | |
cc6dd355 RD |
24602 | { |
24603 | #if wxUSE_UNICODE | |
24604 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24605 | #else | |
24606 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24607 | #endif | |
24608 | } | |
d14a1e28 RD |
24609 | return resultobj; |
24610 | fail: | |
24611 | return NULL; | |
24612 | } | |
24613 | ||
24614 | ||
24615 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24616 | PyObject *resultobj; | |
24617 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24618 | wxString *arg2 = 0 ; | |
e811c8ce | 24619 | bool temp2 = False ; |
d14a1e28 RD |
24620 | PyObject * obj0 = 0 ; |
24621 | PyObject * obj1 = 0 ; | |
24622 | char *kwnames[] = { | |
24623 | (char *) "self",(char *) "label", NULL | |
24624 | }; | |
24625 | ||
24626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24629 | { |
24630 | arg2 = wxString_in_helper(obj1); | |
24631 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24632 | temp2 = True; |
d14a1e28 RD |
24633 | } |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | (arg1)->SetLabel((wxString const &)*arg2); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | Py_INCREF(Py_None); resultobj = Py_None; | |
24642 | { | |
24643 | if (temp2) | |
24644 | delete arg2; | |
24645 | } | |
24646 | return resultobj; | |
24647 | fail: | |
24648 | { | |
24649 | if (temp2) | |
24650 | delete arg2; | |
24651 | } | |
24652 | return NULL; | |
24653 | } | |
24654 | ||
24655 | ||
24656 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24657 | PyObject *resultobj; | |
24658 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24659 | bool result; | |
24660 | PyObject * obj0 = 0 ; | |
24661 | char *kwnames[] = { | |
24662 | (char *) "self", NULL | |
24663 | }; | |
24664 | ||
24665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24668 | { |
24669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24670 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24671 | ||
24672 | wxPyEndAllowThreads(__tstate); | |
24673 | if (PyErr_Occurred()) SWIG_fail; | |
24674 | } | |
4f89f6a3 RD |
24675 | { |
24676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24677 | } | |
d14a1e28 RD |
24678 | return resultobj; |
24679 | fail: | |
24680 | return NULL; | |
24681 | } | |
24682 | ||
24683 | ||
24684 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24685 | PyObject *resultobj; | |
24686 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24687 | bool arg2 ; | |
24688 | PyObject * obj0 = 0 ; | |
24689 | PyObject * obj1 = 0 ; | |
24690 | char *kwnames[] = { | |
24691 | (char *) "self",(char *) "editCancelled", NULL | |
24692 | }; | |
24693 | ||
24694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24697 | arg2 = (bool) SWIG_AsBool(obj1); | |
24698 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24699 | { |
24700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24701 | (arg1)->SetEditCanceled(arg2); | |
24702 | ||
24703 | wxPyEndAllowThreads(__tstate); | |
24704 | if (PyErr_Occurred()) SWIG_fail; | |
24705 | } | |
24706 | Py_INCREF(Py_None); resultobj = Py_None; | |
24707 | return resultobj; | |
24708 | fail: | |
24709 | return NULL; | |
24710 | } | |
24711 | ||
24712 | ||
c9c7117a RD |
24713 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
24714 | PyObject *resultobj; | |
24715 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24716 | wxString *arg2 = 0 ; | |
24717 | bool temp2 = False ; | |
24718 | PyObject * obj0 = 0 ; | |
24719 | PyObject * obj1 = 0 ; | |
24720 | char *kwnames[] = { | |
24721 | (char *) "self",(char *) "toolTip", NULL | |
24722 | }; | |
24723 | ||
24724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
24727 | { |
24728 | arg2 = wxString_in_helper(obj1); | |
24729 | if (arg2 == NULL) SWIG_fail; | |
24730 | temp2 = True; | |
24731 | } | |
24732 | { | |
24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24734 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24735 | ||
24736 | wxPyEndAllowThreads(__tstate); | |
24737 | if (PyErr_Occurred()) SWIG_fail; | |
24738 | } | |
24739 | Py_INCREF(Py_None); resultobj = Py_None; | |
24740 | { | |
24741 | if (temp2) | |
24742 | delete arg2; | |
24743 | } | |
24744 | return resultobj; | |
24745 | fail: | |
24746 | { | |
24747 | if (temp2) | |
24748 | delete arg2; | |
24749 | } | |
24750 | return NULL; | |
24751 | } | |
24752 | ||
24753 | ||
d14a1e28 RD |
24754 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
24755 | PyObject *obj; | |
24756 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24757 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24758 | Py_INCREF(obj); | |
24759 | return Py_BuildValue((char *)""); | |
24760 | } | |
24761 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24762 | PyObject *resultobj; | |
24763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24764 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24765 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24766 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24767 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24768 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24769 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24770 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24771 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 24772 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24773 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
24774 | wxPyTreeCtrl *result; | |
24775 | wxPoint temp3 ; | |
24776 | wxSize temp4 ; | |
e811c8ce | 24777 | bool temp7 = False ; |
d14a1e28 | 24778 | PyObject * obj0 = 0 ; |
994141e6 | 24779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24780 | PyObject * obj2 = 0 ; |
24781 | PyObject * obj3 = 0 ; | |
994141e6 | 24782 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24783 | PyObject * obj5 = 0 ; |
24784 | PyObject * obj6 = 0 ; | |
24785 | char *kwnames[] = { | |
24786 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24787 | }; | |
24788 | ||
994141e6 | 24789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
24790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24792 | if (obj1) { |
15afbcd0 RD |
24793 | arg2 = (int) SWIG_AsInt(obj1); |
24794 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24795 | } |
d14a1e28 RD |
24796 | if (obj2) { |
24797 | { | |
24798 | arg3 = &temp3; | |
24799 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24800 | } | |
24801 | } | |
24802 | if (obj3) { | |
24803 | { | |
994141e6 RD |
24804 | arg4 = &temp4; |
24805 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24806 | } | |
24807 | } | |
24808 | if (obj4) { | |
15afbcd0 RD |
24809 | arg5 = (long) SWIG_AsLong(obj4); |
24810 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24811 | } |
24812 | if (obj5) { | |
15afbcd0 RD |
24813 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24814 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24815 | SWIG_fail; | |
d14a1e28 | 24816 | if (arg6 == NULL) { |
15afbcd0 RD |
24817 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24818 | SWIG_fail; | |
d14a1e28 RD |
24819 | } |
24820 | } | |
24821 | if (obj6) { | |
24822 | { | |
24823 | arg7 = wxString_in_helper(obj6); | |
24824 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 24825 | temp7 = True; |
d14a1e28 RD |
24826 | } |
24827 | } | |
24828 | { | |
24829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24830 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24831 | ||
24832 | wxPyEndAllowThreads(__tstate); | |
24833 | if (PyErr_Occurred()) SWIG_fail; | |
24834 | } | |
b2dc1044 RD |
24835 | { |
24836 | resultobj = wxPyMake_wxObject(result); | |
24837 | } | |
d14a1e28 RD |
24838 | { |
24839 | if (temp7) | |
24840 | delete arg7; | |
24841 | } | |
24842 | return resultobj; | |
24843 | fail: | |
24844 | { | |
24845 | if (temp7) | |
24846 | delete arg7; | |
24847 | } | |
24848 | return NULL; | |
24849 | } | |
24850 | ||
24851 | ||
24852 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24853 | PyObject *resultobj; | |
24854 | wxPyTreeCtrl *result; | |
24855 | char *kwnames[] = { | |
24856 | NULL | |
24857 | }; | |
24858 | ||
24859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
24860 | { | |
24861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24862 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
24863 | ||
24864 | wxPyEndAllowThreads(__tstate); | |
24865 | if (PyErr_Occurred()) SWIG_fail; | |
24866 | } | |
b2dc1044 RD |
24867 | { |
24868 | resultobj = wxPyMake_wxObject(result); | |
24869 | } | |
d14a1e28 RD |
24870 | return resultobj; |
24871 | fail: | |
24872 | return NULL; | |
24873 | } | |
24874 | ||
24875 | ||
24876 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24877 | PyObject *resultobj; | |
24878 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24879 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 24880 | int arg3 = (int) -1 ; |
d14a1e28 RD |
24881 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24882 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24883 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24884 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24885 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
24886 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24887 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 24888 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24889 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
24890 | bool result; | |
24891 | wxPoint temp4 ; | |
24892 | wxSize temp5 ; | |
e811c8ce | 24893 | bool temp8 = False ; |
d14a1e28 RD |
24894 | PyObject * obj0 = 0 ; |
24895 | PyObject * obj1 = 0 ; | |
994141e6 | 24896 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24897 | PyObject * obj3 = 0 ; |
24898 | PyObject * obj4 = 0 ; | |
994141e6 | 24899 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24900 | PyObject * obj6 = 0 ; |
24901 | PyObject * obj7 = 0 ; | |
24902 | char *kwnames[] = { | |
24903 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24904 | }; | |
24905 | ||
994141e6 | 24906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
24907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24909 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24911 | if (obj2) { |
15afbcd0 RD |
24912 | arg3 = (int) SWIG_AsInt(obj2); |
24913 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24914 | } |
d14a1e28 RD |
24915 | if (obj3) { |
24916 | { | |
24917 | arg4 = &temp4; | |
24918 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24919 | } | |
24920 | } | |
24921 | if (obj4) { | |
24922 | { | |
24923 | arg5 = &temp5; | |
24924 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24925 | } | |
24926 | } | |
994141e6 | 24927 | if (obj5) { |
15afbcd0 RD |
24928 | arg6 = (long) SWIG_AsLong(obj5); |
24929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24930 | } |
d14a1e28 | 24931 | if (obj6) { |
15afbcd0 RD |
24932 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
24933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24934 | SWIG_fail; | |
d14a1e28 | 24935 | if (arg7 == NULL) { |
15afbcd0 RD |
24936 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24937 | SWIG_fail; | |
d14a1e28 RD |
24938 | } |
24939 | } | |
24940 | if (obj7) { | |
24941 | { | |
24942 | arg8 = wxString_in_helper(obj7); | |
24943 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 24944 | temp8 = True; |
d14a1e28 RD |
24945 | } |
24946 | } | |
24947 | { | |
24948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24949 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24950 | ||
24951 | wxPyEndAllowThreads(__tstate); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
4f89f6a3 RD |
24954 | { |
24955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24956 | } | |
d14a1e28 RD |
24957 | { |
24958 | if (temp8) | |
24959 | delete arg8; | |
24960 | } | |
24961 | return resultobj; | |
24962 | fail: | |
24963 | { | |
24964 | if (temp8) | |
24965 | delete arg8; | |
24966 | } | |
24967 | return NULL; | |
24968 | } | |
24969 | ||
24970 | ||
24971 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24972 | PyObject *resultobj; | |
24973 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24974 | PyObject *arg2 = (PyObject *) 0 ; | |
24975 | PyObject *arg3 = (PyObject *) 0 ; | |
24976 | PyObject * obj0 = 0 ; | |
24977 | PyObject * obj1 = 0 ; | |
24978 | PyObject * obj2 = 0 ; | |
24979 | char *kwnames[] = { | |
24980 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24981 | }; | |
24982 | ||
24983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24986 | arg2 = obj1; |
24987 | arg3 = obj2; | |
24988 | { | |
24989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24990 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24991 | ||
24992 | wxPyEndAllowThreads(__tstate); | |
24993 | if (PyErr_Occurred()) SWIG_fail; | |
24994 | } | |
24995 | Py_INCREF(Py_None); resultobj = Py_None; | |
24996 | return resultobj; | |
24997 | fail: | |
24998 | return NULL; | |
24999 | } | |
25000 | ||
25001 | ||
25002 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25003 | PyObject *resultobj; | |
25004 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25005 | size_t result; | |
25006 | PyObject * obj0 = 0 ; | |
25007 | char *kwnames[] = { | |
25008 | (char *) "self", NULL | |
25009 | }; | |
25010 | ||
25011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25014 | { |
25015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25016 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25017 | ||
25018 | wxPyEndAllowThreads(__tstate); | |
25019 | if (PyErr_Occurred()) SWIG_fail; | |
25020 | } | |
15afbcd0 | 25021 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25022 | return resultobj; |
25023 | fail: | |
25024 | return NULL; | |
25025 | } | |
25026 | ||
25027 | ||
25028 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25029 | PyObject *resultobj; | |
25030 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25031 | unsigned int result; | |
25032 | PyObject * obj0 = 0 ; | |
25033 | char *kwnames[] = { | |
25034 | (char *) "self", NULL | |
25035 | }; | |
25036 | ||
25037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25040 | { |
25041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25042 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25043 | ||
25044 | wxPyEndAllowThreads(__tstate); | |
25045 | if (PyErr_Occurred()) SWIG_fail; | |
25046 | } | |
15afbcd0 | 25047 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25048 | return resultobj; |
25049 | fail: | |
25050 | return NULL; | |
25051 | } | |
25052 | ||
25053 | ||
25054 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25055 | PyObject *resultobj; | |
25056 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25057 | unsigned int arg2 ; | |
25058 | PyObject * obj0 = 0 ; | |
25059 | PyObject * obj1 = 0 ; | |
25060 | char *kwnames[] = { | |
25061 | (char *) "self",(char *) "indent", NULL | |
25062 | }; | |
25063 | ||
25064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25067 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25069 | { |
25070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25071 | (arg1)->SetIndent(arg2); | |
25072 | ||
25073 | wxPyEndAllowThreads(__tstate); | |
25074 | if (PyErr_Occurred()) SWIG_fail; | |
25075 | } | |
25076 | Py_INCREF(Py_None); resultobj = Py_None; | |
25077 | return resultobj; | |
25078 | fail: | |
25079 | return NULL; | |
25080 | } | |
25081 | ||
25082 | ||
25083 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25084 | PyObject *resultobj; | |
25085 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25086 | unsigned int result; | |
25087 | PyObject * obj0 = 0 ; | |
25088 | char *kwnames[] = { | |
25089 | (char *) "self", NULL | |
25090 | }; | |
25091 | ||
25092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25095 | { |
25096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25097 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25098 | ||
25099 | wxPyEndAllowThreads(__tstate); | |
25100 | if (PyErr_Occurred()) SWIG_fail; | |
25101 | } | |
15afbcd0 | 25102 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25103 | return resultobj; |
25104 | fail: | |
25105 | return NULL; | |
25106 | } | |
25107 | ||
25108 | ||
25109 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25110 | PyObject *resultobj; | |
25111 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25112 | unsigned int arg2 ; | |
25113 | PyObject * obj0 = 0 ; | |
25114 | PyObject * obj1 = 0 ; | |
25115 | char *kwnames[] = { | |
25116 | (char *) "self",(char *) "spacing", NULL | |
25117 | }; | |
25118 | ||
25119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25122 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25124 | { |
25125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25126 | (arg1)->SetSpacing(arg2); | |
25127 | ||
25128 | wxPyEndAllowThreads(__tstate); | |
25129 | if (PyErr_Occurred()) SWIG_fail; | |
25130 | } | |
25131 | Py_INCREF(Py_None); resultobj = Py_None; | |
25132 | return resultobj; | |
25133 | fail: | |
25134 | return NULL; | |
25135 | } | |
25136 | ||
25137 | ||
25138 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25139 | PyObject *resultobj; | |
25140 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25141 | wxImageList *result; | |
25142 | PyObject * obj0 = 0 ; | |
25143 | char *kwnames[] = { | |
25144 | (char *) "self", NULL | |
25145 | }; | |
25146 | ||
25147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25150 | { |
25151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25152 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25153 | ||
25154 | wxPyEndAllowThreads(__tstate); | |
25155 | if (PyErr_Occurred()) SWIG_fail; | |
25156 | } | |
25157 | { | |
25158 | resultobj = wxPyMake_wxObject(result); | |
25159 | } | |
25160 | return resultobj; | |
25161 | fail: | |
25162 | return NULL; | |
25163 | } | |
25164 | ||
25165 | ||
25166 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25167 | PyObject *resultobj; | |
25168 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25169 | wxImageList *result; | |
25170 | PyObject * obj0 = 0 ; | |
25171 | char *kwnames[] = { | |
25172 | (char *) "self", NULL | |
25173 | }; | |
25174 | ||
25175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25178 | { |
25179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25180 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25181 | ||
25182 | wxPyEndAllowThreads(__tstate); | |
25183 | if (PyErr_Occurred()) SWIG_fail; | |
25184 | } | |
25185 | { | |
25186 | resultobj = wxPyMake_wxObject(result); | |
25187 | } | |
25188 | return resultobj; | |
25189 | fail: | |
25190 | return NULL; | |
25191 | } | |
25192 | ||
25193 | ||
25194 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25195 | PyObject *resultobj; | |
25196 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25197 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25198 | PyObject * obj0 = 0 ; | |
25199 | PyObject * obj1 = 0 ; | |
25200 | char *kwnames[] = { | |
25201 | (char *) "self",(char *) "imageList", NULL | |
25202 | }; | |
25203 | ||
25204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25207 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25209 | { |
25210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25211 | (arg1)->SetImageList(arg2); | |
25212 | ||
25213 | wxPyEndAllowThreads(__tstate); | |
25214 | if (PyErr_Occurred()) SWIG_fail; | |
25215 | } | |
25216 | Py_INCREF(Py_None); resultobj = Py_None; | |
25217 | return resultobj; | |
25218 | fail: | |
25219 | return NULL; | |
25220 | } | |
25221 | ||
25222 | ||
25223 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25224 | PyObject *resultobj; | |
25225 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25226 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25227 | PyObject * obj0 = 0 ; | |
25228 | PyObject * obj1 = 0 ; | |
25229 | char *kwnames[] = { | |
25230 | (char *) "self",(char *) "imageList", NULL | |
25231 | }; | |
25232 | ||
25233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25236 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25238 | { |
25239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25240 | (arg1)->SetStateImageList(arg2); | |
25241 | ||
25242 | wxPyEndAllowThreads(__tstate); | |
25243 | if (PyErr_Occurred()) SWIG_fail; | |
25244 | } | |
25245 | Py_INCREF(Py_None); resultobj = Py_None; | |
25246 | return resultobj; | |
25247 | fail: | |
25248 | return NULL; | |
25249 | } | |
25250 | ||
25251 | ||
25252 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25253 | PyObject *resultobj; | |
25254 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25255 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25256 | PyObject * obj0 = 0 ; | |
25257 | PyObject * obj1 = 0 ; | |
25258 | char *kwnames[] = { | |
25259 | (char *) "self",(char *) "imageList", NULL | |
25260 | }; | |
25261 | ||
25262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25266 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25267 | { |
25268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25269 | (arg1)->AssignImageList(arg2); | |
25270 | ||
25271 | wxPyEndAllowThreads(__tstate); | |
25272 | if (PyErr_Occurred()) SWIG_fail; | |
25273 | } | |
25274 | Py_INCREF(Py_None); resultobj = Py_None; | |
25275 | return resultobj; | |
25276 | fail: | |
25277 | return NULL; | |
25278 | } | |
25279 | ||
25280 | ||
25281 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25282 | PyObject *resultobj; | |
25283 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25284 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25285 | PyObject * obj0 = 0 ; | |
25286 | PyObject * obj1 = 0 ; | |
25287 | char *kwnames[] = { | |
25288 | (char *) "self",(char *) "imageList", NULL | |
25289 | }; | |
25290 | ||
25291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25294 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25295 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25296 | { |
25297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25298 | (arg1)->AssignStateImageList(arg2); | |
25299 | ||
25300 | wxPyEndAllowThreads(__tstate); | |
25301 | if (PyErr_Occurred()) SWIG_fail; | |
25302 | } | |
25303 | Py_INCREF(Py_None); resultobj = Py_None; | |
25304 | return resultobj; | |
25305 | fail: | |
25306 | return NULL; | |
25307 | } | |
25308 | ||
25309 | ||
25310 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25311 | PyObject *resultobj; | |
25312 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25313 | wxTreeItemId *arg2 = 0 ; | |
25314 | wxString result; | |
25315 | PyObject * obj0 = 0 ; | |
25316 | PyObject * obj1 = 0 ; | |
25317 | char *kwnames[] = { | |
25318 | (char *) "self",(char *) "item", NULL | |
25319 | }; | |
25320 | ||
25321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25325 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25326 | SWIG_fail; | |
d14a1e28 | 25327 | if (arg2 == NULL) { |
15afbcd0 RD |
25328 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25329 | SWIG_fail; | |
d14a1e28 RD |
25330 | } |
25331 | { | |
25332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25333 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25334 | ||
25335 | wxPyEndAllowThreads(__tstate); | |
25336 | if (PyErr_Occurred()) SWIG_fail; | |
25337 | } | |
25338 | { | |
25339 | #if wxUSE_UNICODE | |
25340 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25341 | #else | |
25342 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25343 | #endif | |
25344 | } | |
25345 | return resultobj; | |
25346 | fail: | |
25347 | return NULL; | |
25348 | } | |
25349 | ||
25350 | ||
25351 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25352 | PyObject *resultobj; | |
25353 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25354 | wxTreeItemId *arg2 = 0 ; | |
25355 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25356 | int result; | |
25357 | PyObject * obj0 = 0 ; | |
25358 | PyObject * obj1 = 0 ; | |
994141e6 | 25359 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25360 | char *kwnames[] = { |
25361 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25362 | }; | |
25363 | ||
994141e6 | 25364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25369 | SWIG_fail; | |
d14a1e28 | 25370 | if (arg2 == NULL) { |
15afbcd0 RD |
25371 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25372 | SWIG_fail; | |
d14a1e28 | 25373 | } |
994141e6 | 25374 | if (obj2) { |
15afbcd0 RD |
25375 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); |
25376 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25377 | } |
d14a1e28 RD |
25378 | { |
25379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25380 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25381 | ||
25382 | wxPyEndAllowThreads(__tstate); | |
25383 | if (PyErr_Occurred()) SWIG_fail; | |
25384 | } | |
15afbcd0 | 25385 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25386 | return resultobj; |
25387 | fail: | |
25388 | return NULL; | |
25389 | } | |
25390 | ||
25391 | ||
25392 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25393 | PyObject *resultobj; | |
25394 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25395 | wxTreeItemId *arg2 = 0 ; | |
25396 | wxPyTreeItemData *result; | |
25397 | PyObject * obj0 = 0 ; | |
25398 | PyObject * obj1 = 0 ; | |
25399 | char *kwnames[] = { | |
25400 | (char *) "self",(char *) "item", NULL | |
25401 | }; | |
25402 | ||
25403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25406 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25407 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25408 | SWIG_fail; | |
d14a1e28 | 25409 | if (arg2 == NULL) { |
15afbcd0 RD |
25410 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25411 | SWIG_fail; | |
d14a1e28 RD |
25412 | } |
25413 | { | |
25414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25415 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25416 | ||
25417 | wxPyEndAllowThreads(__tstate); | |
25418 | if (PyErr_Occurred()) SWIG_fail; | |
25419 | } | |
15afbcd0 | 25420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
25421 | return resultobj; |
25422 | fail: | |
25423 | return NULL; | |
25424 | } | |
25425 | ||
25426 | ||
25427 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25428 | PyObject *resultobj; | |
25429 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25430 | wxTreeItemId *arg2 = 0 ; | |
25431 | PyObject *result; | |
25432 | PyObject * obj0 = 0 ; | |
25433 | PyObject * obj1 = 0 ; | |
25434 | char *kwnames[] = { | |
25435 | (char *) "self",(char *) "item", NULL | |
25436 | }; | |
25437 | ||
25438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25442 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25443 | SWIG_fail; | |
d14a1e28 | 25444 | if (arg2 == NULL) { |
15afbcd0 RD |
25445 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25446 | SWIG_fail; | |
d14a1e28 RD |
25447 | } |
25448 | { | |
25449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25450 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25451 | ||
25452 | wxPyEndAllowThreads(__tstate); | |
25453 | if (PyErr_Occurred()) SWIG_fail; | |
25454 | } | |
25455 | resultobj = result; | |
25456 | return resultobj; | |
25457 | fail: | |
25458 | return NULL; | |
25459 | } | |
25460 | ||
25461 | ||
25462 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25463 | PyObject *resultobj; | |
25464 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25465 | wxTreeItemId *arg2 = 0 ; | |
25466 | wxColour result; | |
25467 | PyObject * obj0 = 0 ; | |
25468 | PyObject * obj1 = 0 ; | |
25469 | char *kwnames[] = { | |
25470 | (char *) "self",(char *) "item", NULL | |
25471 | }; | |
25472 | ||
25473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25476 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25477 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25478 | SWIG_fail; | |
d14a1e28 | 25479 | if (arg2 == NULL) { |
15afbcd0 RD |
25480 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25481 | SWIG_fail; | |
d14a1e28 RD |
25482 | } |
25483 | { | |
25484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25485 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25486 | ||
25487 | wxPyEndAllowThreads(__tstate); | |
25488 | if (PyErr_Occurred()) SWIG_fail; | |
25489 | } | |
25490 | { | |
25491 | wxColour * resultptr; | |
25492 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25493 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25494 | } |
25495 | return resultobj; | |
25496 | fail: | |
25497 | return NULL; | |
25498 | } | |
25499 | ||
25500 | ||
25501 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25502 | PyObject *resultobj; | |
25503 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25504 | wxTreeItemId *arg2 = 0 ; | |
25505 | wxColour result; | |
25506 | PyObject * obj0 = 0 ; | |
25507 | PyObject * obj1 = 0 ; | |
25508 | char *kwnames[] = { | |
25509 | (char *) "self",(char *) "item", NULL | |
25510 | }; | |
25511 | ||
25512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25517 | SWIG_fail; | |
d14a1e28 | 25518 | if (arg2 == NULL) { |
15afbcd0 RD |
25519 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25520 | SWIG_fail; | |
d14a1e28 RD |
25521 | } |
25522 | { | |
25523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25524 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25525 | ||
25526 | wxPyEndAllowThreads(__tstate); | |
25527 | if (PyErr_Occurred()) SWIG_fail; | |
25528 | } | |
25529 | { | |
25530 | wxColour * resultptr; | |
25531 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25533 | } |
25534 | return resultobj; | |
25535 | fail: | |
25536 | return NULL; | |
25537 | } | |
25538 | ||
25539 | ||
25540 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25541 | PyObject *resultobj; | |
25542 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25543 | wxTreeItemId *arg2 = 0 ; | |
25544 | wxFont result; | |
25545 | PyObject * obj0 = 0 ; | |
25546 | PyObject * obj1 = 0 ; | |
25547 | char *kwnames[] = { | |
25548 | (char *) "self",(char *) "item", NULL | |
25549 | }; | |
25550 | ||
25551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25556 | SWIG_fail; | |
d14a1e28 | 25557 | if (arg2 == NULL) { |
15afbcd0 RD |
25558 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25559 | SWIG_fail; | |
d14a1e28 RD |
25560 | } |
25561 | { | |
25562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25563 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25564 | ||
25565 | wxPyEndAllowThreads(__tstate); | |
25566 | if (PyErr_Occurred()) SWIG_fail; | |
25567 | } | |
25568 | { | |
25569 | wxFont * resultptr; | |
25570 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 25571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
25572 | } |
25573 | return resultobj; | |
25574 | fail: | |
25575 | return NULL; | |
25576 | } | |
25577 | ||
25578 | ||
25579 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25580 | PyObject *resultobj; | |
25581 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25582 | wxTreeItemId *arg2 = 0 ; | |
25583 | wxString *arg3 = 0 ; | |
e811c8ce | 25584 | bool temp3 = False ; |
d14a1e28 RD |
25585 | PyObject * obj0 = 0 ; |
25586 | PyObject * obj1 = 0 ; | |
25587 | PyObject * obj2 = 0 ; | |
25588 | char *kwnames[] = { | |
25589 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25590 | }; | |
25591 | ||
25592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25596 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25597 | SWIG_fail; | |
d14a1e28 | 25598 | if (arg2 == NULL) { |
15afbcd0 RD |
25599 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25600 | SWIG_fail; | |
d14a1e28 RD |
25601 | } |
25602 | { | |
25603 | arg3 = wxString_in_helper(obj2); | |
25604 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25605 | temp3 = True; |
d14a1e28 RD |
25606 | } |
25607 | { | |
25608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25609 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25610 | ||
25611 | wxPyEndAllowThreads(__tstate); | |
25612 | if (PyErr_Occurred()) SWIG_fail; | |
25613 | } | |
25614 | Py_INCREF(Py_None); resultobj = Py_None; | |
25615 | { | |
25616 | if (temp3) | |
25617 | delete arg3; | |
25618 | } | |
25619 | return resultobj; | |
25620 | fail: | |
25621 | { | |
25622 | if (temp3) | |
25623 | delete arg3; | |
25624 | } | |
25625 | return NULL; | |
25626 | } | |
25627 | ||
25628 | ||
25629 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25630 | PyObject *resultobj; | |
25631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25632 | wxTreeItemId *arg2 = 0 ; | |
25633 | int arg3 ; | |
25634 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25635 | PyObject * obj0 = 0 ; | |
25636 | PyObject * obj1 = 0 ; | |
994141e6 RD |
25637 | PyObject * obj2 = 0 ; |
25638 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25639 | char *kwnames[] = { |
25640 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25641 | }; | |
25642 | ||
994141e6 | 25643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25647 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25648 | SWIG_fail; | |
d14a1e28 | 25649 | if (arg2 == NULL) { |
15afbcd0 RD |
25650 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25651 | SWIG_fail; | |
994141e6 | 25652 | } |
15afbcd0 RD |
25653 | arg3 = (int) SWIG_AsInt(obj2); |
25654 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25655 | if (obj3) { |
15afbcd0 RD |
25656 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); |
25657 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25658 | } |
d14a1e28 RD |
25659 | { |
25660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25661 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25662 | ||
25663 | wxPyEndAllowThreads(__tstate); | |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
25665 | } | |
25666 | Py_INCREF(Py_None); resultobj = Py_None; | |
25667 | return resultobj; | |
25668 | fail: | |
25669 | return NULL; | |
25670 | } | |
25671 | ||
25672 | ||
25673 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25674 | PyObject *resultobj; | |
25675 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25676 | wxTreeItemId *arg2 = 0 ; | |
25677 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25678 | PyObject * obj0 = 0 ; | |
25679 | PyObject * obj1 = 0 ; | |
25680 | PyObject * obj2 = 0 ; | |
25681 | char *kwnames[] = { | |
25682 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25683 | }; | |
25684 | ||
25685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25690 | SWIG_fail; | |
d14a1e28 | 25691 | if (arg2 == NULL) { |
15afbcd0 RD |
25692 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25693 | SWIG_fail; | |
d14a1e28 | 25694 | } |
15afbcd0 RD |
25695 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
25696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25697 | { |
25698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25699 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25700 | ||
25701 | wxPyEndAllowThreads(__tstate); | |
25702 | if (PyErr_Occurred()) SWIG_fail; | |
25703 | } | |
25704 | Py_INCREF(Py_None); resultobj = Py_None; | |
25705 | return resultobj; | |
25706 | fail: | |
25707 | return NULL; | |
25708 | } | |
25709 | ||
25710 | ||
25711 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25712 | PyObject *resultobj; | |
25713 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25714 | wxTreeItemId *arg2 = 0 ; | |
25715 | PyObject *arg3 = (PyObject *) 0 ; | |
25716 | PyObject * obj0 = 0 ; | |
25717 | PyObject * obj1 = 0 ; | |
25718 | PyObject * obj2 = 0 ; | |
25719 | char *kwnames[] = { | |
25720 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25721 | }; | |
25722 | ||
25723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25728 | SWIG_fail; | |
d14a1e28 | 25729 | if (arg2 == NULL) { |
15afbcd0 RD |
25730 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25731 | SWIG_fail; | |
d14a1e28 RD |
25732 | } |
25733 | arg3 = obj2; | |
25734 | { | |
25735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25736 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25737 | ||
25738 | wxPyEndAllowThreads(__tstate); | |
25739 | if (PyErr_Occurred()) SWIG_fail; | |
25740 | } | |
25741 | Py_INCREF(Py_None); resultobj = Py_None; | |
25742 | return resultobj; | |
25743 | fail: | |
25744 | return NULL; | |
25745 | } | |
25746 | ||
25747 | ||
25748 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25749 | PyObject *resultobj; | |
25750 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25751 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25752 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25753 | PyObject * obj0 = 0 ; |
25754 | PyObject * obj1 = 0 ; | |
25755 | PyObject * obj2 = 0 ; | |
25756 | char *kwnames[] = { | |
25757 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25758 | }; | |
25759 | ||
25760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25765 | SWIG_fail; | |
d14a1e28 | 25766 | if (arg2 == NULL) { |
15afbcd0 RD |
25767 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25768 | SWIG_fail; | |
d14a1e28 RD |
25769 | } |
25770 | if (obj2) { | |
15afbcd0 RD |
25771 | arg3 = (bool) SWIG_AsBool(obj2); |
25772 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25773 | } |
25774 | { | |
25775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25776 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25777 | ||
25778 | wxPyEndAllowThreads(__tstate); | |
25779 | if (PyErr_Occurred()) SWIG_fail; | |
25780 | } | |
25781 | Py_INCREF(Py_None); resultobj = Py_None; | |
25782 | return resultobj; | |
25783 | fail: | |
25784 | return NULL; | |
25785 | } | |
25786 | ||
25787 | ||
25788 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25789 | PyObject *resultobj; | |
25790 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25791 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25792 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25793 | PyObject * obj0 = 0 ; |
25794 | PyObject * obj1 = 0 ; | |
25795 | PyObject * obj2 = 0 ; | |
25796 | char *kwnames[] = { | |
25797 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25798 | }; | |
25799 | ||
25800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25804 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25805 | SWIG_fail; | |
d14a1e28 | 25806 | if (arg2 == NULL) { |
15afbcd0 RD |
25807 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25808 | SWIG_fail; | |
d14a1e28 RD |
25809 | } |
25810 | if (obj2) { | |
15afbcd0 RD |
25811 | arg3 = (bool) SWIG_AsBool(obj2); |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25813 | } |
25814 | { | |
25815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25816 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25817 | ||
25818 | wxPyEndAllowThreads(__tstate); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
25820 | } | |
25821 | Py_INCREF(Py_None); resultobj = Py_None; | |
25822 | return resultobj; | |
25823 | fail: | |
25824 | return NULL; | |
25825 | } | |
25826 | ||
25827 | ||
25828 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25829 | PyObject *resultobj; | |
25830 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25831 | wxTreeItemId *arg2 = 0 ; | |
25832 | wxColour *arg3 = 0 ; | |
25833 | wxColour temp3 ; | |
25834 | PyObject * obj0 = 0 ; | |
25835 | PyObject * obj1 = 0 ; | |
25836 | PyObject * obj2 = 0 ; | |
25837 | char *kwnames[] = { | |
25838 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25839 | }; | |
25840 | ||
25841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25845 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25846 | SWIG_fail; | |
d14a1e28 | 25847 | if (arg2 == NULL) { |
15afbcd0 RD |
25848 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25849 | SWIG_fail; | |
d14a1e28 RD |
25850 | } |
25851 | { | |
25852 | arg3 = &temp3; | |
25853 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25854 | } | |
25855 | { | |
25856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25857 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25858 | ||
25859 | wxPyEndAllowThreads(__tstate); | |
25860 | if (PyErr_Occurred()) SWIG_fail; | |
25861 | } | |
25862 | Py_INCREF(Py_None); resultobj = Py_None; | |
25863 | return resultobj; | |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
25869 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25870 | PyObject *resultobj; | |
25871 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25872 | wxTreeItemId *arg2 = 0 ; | |
25873 | wxColour *arg3 = 0 ; | |
25874 | wxColour temp3 ; | |
25875 | PyObject * obj0 = 0 ; | |
25876 | PyObject * obj1 = 0 ; | |
25877 | PyObject * obj2 = 0 ; | |
25878 | char *kwnames[] = { | |
25879 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25880 | }; | |
25881 | ||
25882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25885 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25886 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25887 | SWIG_fail; | |
d14a1e28 | 25888 | if (arg2 == NULL) { |
15afbcd0 RD |
25889 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25890 | SWIG_fail; | |
d14a1e28 RD |
25891 | } |
25892 | { | |
25893 | arg3 = &temp3; | |
25894 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25895 | } | |
25896 | { | |
25897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25898 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25899 | ||
25900 | wxPyEndAllowThreads(__tstate); | |
25901 | if (PyErr_Occurred()) SWIG_fail; | |
25902 | } | |
25903 | Py_INCREF(Py_None); resultobj = Py_None; | |
25904 | return resultobj; | |
25905 | fail: | |
25906 | return NULL; | |
25907 | } | |
25908 | ||
25909 | ||
25910 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25911 | PyObject *resultobj; | |
25912 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25913 | wxTreeItemId *arg2 = 0 ; | |
25914 | wxFont *arg3 = 0 ; | |
25915 | PyObject * obj0 = 0 ; | |
25916 | PyObject * obj1 = 0 ; | |
25917 | PyObject * obj2 = 0 ; | |
25918 | char *kwnames[] = { | |
25919 | (char *) "self",(char *) "item",(char *) "font", NULL | |
25920 | }; | |
25921 | ||
25922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25927 | SWIG_fail; | |
d14a1e28 | 25928 | if (arg2 == NULL) { |
15afbcd0 RD |
25929 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25930 | SWIG_fail; | |
d14a1e28 | 25931 | } |
15afbcd0 RD |
25932 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
25933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25934 | SWIG_fail; | |
d14a1e28 | 25935 | if (arg3 == NULL) { |
15afbcd0 RD |
25936 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25937 | SWIG_fail; | |
d14a1e28 RD |
25938 | } |
25939 | { | |
25940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25941 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
25942 | ||
25943 | wxPyEndAllowThreads(__tstate); | |
25944 | if (PyErr_Occurred()) SWIG_fail; | |
25945 | } | |
25946 | Py_INCREF(Py_None); resultobj = Py_None; | |
25947 | return resultobj; | |
25948 | fail: | |
25949 | return NULL; | |
25950 | } | |
25951 | ||
25952 | ||
25953 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25954 | PyObject *resultobj; | |
25955 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25956 | wxTreeItemId *arg2 = 0 ; | |
25957 | bool result; | |
25958 | PyObject * obj0 = 0 ; | |
25959 | PyObject * obj1 = 0 ; | |
25960 | char *kwnames[] = { | |
25961 | (char *) "self",(char *) "item", NULL | |
25962 | }; | |
25963 | ||
25964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25968 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25969 | SWIG_fail; | |
d14a1e28 | 25970 | if (arg2 == NULL) { |
15afbcd0 RD |
25971 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25972 | SWIG_fail; | |
d14a1e28 RD |
25973 | } |
25974 | { | |
25975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25976 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
25977 | ||
25978 | wxPyEndAllowThreads(__tstate); | |
25979 | if (PyErr_Occurred()) SWIG_fail; | |
25980 | } | |
4f89f6a3 RD |
25981 | { |
25982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25983 | } | |
d14a1e28 RD |
25984 | return resultobj; |
25985 | fail: | |
25986 | return NULL; | |
25987 | } | |
25988 | ||
25989 | ||
25990 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25991 | PyObject *resultobj; | |
25992 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25993 | wxTreeItemId *arg2 = 0 ; | |
25994 | bool result; | |
25995 | PyObject * obj0 = 0 ; | |
25996 | PyObject * obj1 = 0 ; | |
25997 | char *kwnames[] = { | |
25998 | (char *) "self",(char *) "item", NULL | |
25999 | }; | |
26000 | ||
26001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26004 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26005 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26006 | SWIG_fail; | |
d14a1e28 | 26007 | if (arg2 == NULL) { |
15afbcd0 RD |
26008 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26009 | SWIG_fail; | |
d14a1e28 RD |
26010 | } |
26011 | { | |
26012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26013 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26014 | ||
26015 | wxPyEndAllowThreads(__tstate); | |
26016 | if (PyErr_Occurred()) SWIG_fail; | |
26017 | } | |
4f89f6a3 RD |
26018 | { |
26019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26020 | } | |
d14a1e28 RD |
26021 | return resultobj; |
26022 | fail: | |
26023 | return NULL; | |
26024 | } | |
26025 | ||
26026 | ||
26027 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26028 | PyObject *resultobj; | |
26029 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26030 | wxTreeItemId *arg2 = 0 ; | |
26031 | bool result; | |
26032 | PyObject * obj0 = 0 ; | |
26033 | PyObject * obj1 = 0 ; | |
26034 | char *kwnames[] = { | |
26035 | (char *) "self",(char *) "item", NULL | |
26036 | }; | |
26037 | ||
26038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26041 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26042 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26043 | SWIG_fail; | |
d14a1e28 | 26044 | if (arg2 == NULL) { |
15afbcd0 RD |
26045 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26046 | SWIG_fail; | |
d14a1e28 RD |
26047 | } |
26048 | { | |
26049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26050 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26051 | ||
26052 | wxPyEndAllowThreads(__tstate); | |
26053 | if (PyErr_Occurred()) SWIG_fail; | |
26054 | } | |
4f89f6a3 RD |
26055 | { |
26056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26057 | } | |
d14a1e28 RD |
26058 | return resultobj; |
26059 | fail: | |
26060 | return NULL; | |
26061 | } | |
26062 | ||
26063 | ||
26064 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26065 | PyObject *resultobj; | |
26066 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26067 | wxTreeItemId *arg2 = 0 ; | |
26068 | bool result; | |
26069 | PyObject * obj0 = 0 ; | |
26070 | PyObject * obj1 = 0 ; | |
26071 | char *kwnames[] = { | |
26072 | (char *) "self",(char *) "item", NULL | |
26073 | }; | |
26074 | ||
26075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26079 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26080 | SWIG_fail; | |
d14a1e28 | 26081 | if (arg2 == NULL) { |
15afbcd0 RD |
26082 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26083 | SWIG_fail; | |
d14a1e28 RD |
26084 | } |
26085 | { | |
26086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26087 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26088 | ||
26089 | wxPyEndAllowThreads(__tstate); | |
26090 | if (PyErr_Occurred()) SWIG_fail; | |
26091 | } | |
4f89f6a3 RD |
26092 | { |
26093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26094 | } | |
d14a1e28 RD |
26095 | return resultobj; |
26096 | fail: | |
26097 | return NULL; | |
26098 | } | |
26099 | ||
26100 | ||
26101 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26102 | PyObject *resultobj; | |
26103 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26104 | wxTreeItemId *arg2 = 0 ; | |
26105 | bool result; | |
26106 | PyObject * obj0 = 0 ; | |
26107 | PyObject * obj1 = 0 ; | |
26108 | char *kwnames[] = { | |
26109 | (char *) "self",(char *) "item", NULL | |
26110 | }; | |
26111 | ||
26112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26115 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26116 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26117 | SWIG_fail; | |
d14a1e28 | 26118 | if (arg2 == NULL) { |
15afbcd0 RD |
26119 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26120 | SWIG_fail; | |
d14a1e28 RD |
26121 | } |
26122 | { | |
26123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26124 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26125 | ||
26126 | wxPyEndAllowThreads(__tstate); | |
26127 | if (PyErr_Occurred()) SWIG_fail; | |
26128 | } | |
4f89f6a3 RD |
26129 | { |
26130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26131 | } | |
d14a1e28 RD |
26132 | return resultobj; |
26133 | fail: | |
26134 | return NULL; | |
26135 | } | |
26136 | ||
26137 | ||
26138 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26139 | PyObject *resultobj; | |
26140 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26141 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26142 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26143 | size_t result; |
26144 | PyObject * obj0 = 0 ; | |
26145 | PyObject * obj1 = 0 ; | |
26146 | PyObject * obj2 = 0 ; | |
26147 | char *kwnames[] = { | |
26148 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26149 | }; | |
26150 | ||
26151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26155 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26156 | SWIG_fail; | |
d14a1e28 | 26157 | if (arg2 == NULL) { |
15afbcd0 RD |
26158 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26159 | SWIG_fail; | |
d14a1e28 RD |
26160 | } |
26161 | if (obj2) { | |
15afbcd0 RD |
26162 | arg3 = (bool) SWIG_AsBool(obj2); |
26163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26164 | } |
26165 | { | |
26166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26167 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26168 | ||
26169 | wxPyEndAllowThreads(__tstate); | |
26170 | if (PyErr_Occurred()) SWIG_fail; | |
26171 | } | |
15afbcd0 | 26172 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
26173 | return resultobj; |
26174 | fail: | |
26175 | return NULL; | |
26176 | } | |
26177 | ||
26178 | ||
26179 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26180 | PyObject *resultobj; | |
26181 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26182 | wxTreeItemId result; | |
26183 | PyObject * obj0 = 0 ; | |
26184 | char *kwnames[] = { | |
26185 | (char *) "self", NULL | |
26186 | }; | |
26187 | ||
26188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26191 | { |
26192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26193 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26194 | ||
26195 | wxPyEndAllowThreads(__tstate); | |
26196 | if (PyErr_Occurred()) SWIG_fail; | |
26197 | } | |
26198 | { | |
26199 | wxTreeItemId * resultptr; | |
26200 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26202 | } |
26203 | return resultobj; | |
26204 | fail: | |
26205 | return NULL; | |
26206 | } | |
26207 | ||
26208 | ||
26209 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26210 | PyObject *resultobj; | |
26211 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26212 | wxTreeItemId result; | |
26213 | PyObject * obj0 = 0 ; | |
26214 | char *kwnames[] = { | |
26215 | (char *) "self", NULL | |
26216 | }; | |
26217 | ||
26218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26221 | { |
26222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26223 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26224 | ||
26225 | wxPyEndAllowThreads(__tstate); | |
26226 | if (PyErr_Occurred()) SWIG_fail; | |
26227 | } | |
26228 | { | |
26229 | wxTreeItemId * resultptr; | |
26230 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26232 | } |
26233 | return resultobj; | |
26234 | fail: | |
26235 | return NULL; | |
26236 | } | |
26237 | ||
26238 | ||
26239 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26240 | PyObject *resultobj; | |
26241 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26242 | PyObject *result; | |
26243 | PyObject * obj0 = 0 ; | |
26244 | char *kwnames[] = { | |
26245 | (char *) "self", NULL | |
26246 | }; | |
26247 | ||
26248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26251 | { |
26252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26253 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26254 | ||
26255 | wxPyEndAllowThreads(__tstate); | |
26256 | if (PyErr_Occurred()) SWIG_fail; | |
26257 | } | |
26258 | resultobj = result; | |
26259 | return resultobj; | |
26260 | fail: | |
26261 | return NULL; | |
26262 | } | |
26263 | ||
26264 | ||
26265 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26266 | PyObject *resultobj; | |
26267 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26268 | wxTreeItemId *arg2 = 0 ; | |
26269 | wxTreeItemId result; | |
26270 | PyObject * obj0 = 0 ; | |
26271 | PyObject * obj1 = 0 ; | |
26272 | char *kwnames[] = { | |
26273 | (char *) "self",(char *) "item", NULL | |
26274 | }; | |
26275 | ||
26276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26280 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26281 | SWIG_fail; | |
d14a1e28 | 26282 | if (arg2 == NULL) { |
15afbcd0 RD |
26283 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26284 | SWIG_fail; | |
d14a1e28 RD |
26285 | } |
26286 | { | |
26287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26288 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26289 | ||
26290 | wxPyEndAllowThreads(__tstate); | |
26291 | if (PyErr_Occurred()) SWIG_fail; | |
26292 | } | |
26293 | { | |
26294 | wxTreeItemId * resultptr; | |
26295 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26297 | } |
26298 | return resultobj; | |
26299 | fail: | |
26300 | return NULL; | |
26301 | } | |
26302 | ||
26303 | ||
26304 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26305 | PyObject *resultobj; | |
26306 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26307 | wxTreeItemId *arg2 = 0 ; | |
26308 | PyObject *result; | |
26309 | PyObject * obj0 = 0 ; | |
26310 | PyObject * obj1 = 0 ; | |
26311 | char *kwnames[] = { | |
26312 | (char *) "self",(char *) "item", NULL | |
26313 | }; | |
26314 | ||
26315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26319 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26320 | SWIG_fail; | |
d14a1e28 | 26321 | if (arg2 == NULL) { |
15afbcd0 RD |
26322 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26323 | SWIG_fail; | |
d14a1e28 RD |
26324 | } |
26325 | { | |
26326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26327 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26328 | ||
26329 | wxPyEndAllowThreads(__tstate); | |
26330 | if (PyErr_Occurred()) SWIG_fail; | |
26331 | } | |
26332 | resultobj = result; | |
26333 | return resultobj; | |
26334 | fail: | |
26335 | return NULL; | |
26336 | } | |
26337 | ||
26338 | ||
26339 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26340 | PyObject *resultobj; | |
26341 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26342 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 26343 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
26344 | PyObject *result; |
26345 | PyObject * obj0 = 0 ; | |
26346 | PyObject * obj1 = 0 ; | |
26347 | PyObject * obj2 = 0 ; | |
26348 | char *kwnames[] = { | |
26349 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26350 | }; | |
26351 | ||
26352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26355 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26356 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26357 | SWIG_fail; | |
d14a1e28 | 26358 | if (arg2 == NULL) { |
15afbcd0 RD |
26359 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26360 | SWIG_fail; | |
d14a1e28 | 26361 | } |
15afbcd0 | 26362 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
26363 | { |
26364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 26365 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
26366 | |
26367 | wxPyEndAllowThreads(__tstate); | |
26368 | if (PyErr_Occurred()) SWIG_fail; | |
26369 | } | |
26370 | resultobj = result; | |
26371 | return resultobj; | |
26372 | fail: | |
26373 | return NULL; | |
26374 | } | |
26375 | ||
26376 | ||
26377 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26378 | PyObject *resultobj; | |
26379 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26380 | wxTreeItemId *arg2 = 0 ; | |
26381 | wxTreeItemId result; | |
26382 | PyObject * obj0 = 0 ; | |
26383 | PyObject * obj1 = 0 ; | |
26384 | char *kwnames[] = { | |
26385 | (char *) "self",(char *) "item", NULL | |
26386 | }; | |
26387 | ||
26388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26393 | SWIG_fail; | |
d14a1e28 | 26394 | if (arg2 == NULL) { |
15afbcd0 RD |
26395 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26396 | SWIG_fail; | |
d14a1e28 RD |
26397 | } |
26398 | { | |
26399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26400 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26401 | ||
26402 | wxPyEndAllowThreads(__tstate); | |
26403 | if (PyErr_Occurred()) SWIG_fail; | |
26404 | } | |
26405 | { | |
26406 | wxTreeItemId * resultptr; | |
26407 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26408 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26409 | } |
26410 | return resultobj; | |
26411 | fail: | |
26412 | return NULL; | |
26413 | } | |
26414 | ||
26415 | ||
26416 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26417 | PyObject *resultobj; | |
26418 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26419 | wxTreeItemId *arg2 = 0 ; | |
26420 | wxTreeItemId result; | |
26421 | PyObject * obj0 = 0 ; | |
26422 | PyObject * obj1 = 0 ; | |
26423 | char *kwnames[] = { | |
26424 | (char *) "self",(char *) "item", NULL | |
26425 | }; | |
26426 | ||
26427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26430 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26431 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26432 | SWIG_fail; | |
d14a1e28 | 26433 | if (arg2 == NULL) { |
15afbcd0 RD |
26434 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26435 | SWIG_fail; | |
d14a1e28 RD |
26436 | } |
26437 | { | |
26438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26439 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26440 | ||
26441 | wxPyEndAllowThreads(__tstate); | |
26442 | if (PyErr_Occurred()) SWIG_fail; | |
26443 | } | |
26444 | { | |
26445 | wxTreeItemId * resultptr; | |
26446 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26448 | } |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
26455 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26456 | PyObject *resultobj; | |
26457 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26458 | wxTreeItemId *arg2 = 0 ; | |
26459 | wxTreeItemId result; | |
26460 | PyObject * obj0 = 0 ; | |
26461 | PyObject * obj1 = 0 ; | |
26462 | char *kwnames[] = { | |
26463 | (char *) "self",(char *) "item", NULL | |
26464 | }; | |
26465 | ||
26466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26471 | SWIG_fail; | |
d14a1e28 | 26472 | if (arg2 == NULL) { |
15afbcd0 RD |
26473 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26474 | SWIG_fail; | |
d14a1e28 RD |
26475 | } |
26476 | { | |
26477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26478 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26479 | ||
26480 | wxPyEndAllowThreads(__tstate); | |
26481 | if (PyErr_Occurred()) SWIG_fail; | |
26482 | } | |
26483 | { | |
26484 | wxTreeItemId * resultptr; | |
26485 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26486 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26487 | } |
26488 | return resultobj; | |
26489 | fail: | |
26490 | return NULL; | |
26491 | } | |
26492 | ||
26493 | ||
26494 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26495 | PyObject *resultobj; | |
26496 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26497 | wxTreeItemId result; | |
26498 | PyObject * obj0 = 0 ; | |
26499 | char *kwnames[] = { | |
26500 | (char *) "self", NULL | |
26501 | }; | |
26502 | ||
26503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26506 | { |
26507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26508 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26509 | ||
26510 | wxPyEndAllowThreads(__tstate); | |
26511 | if (PyErr_Occurred()) SWIG_fail; | |
26512 | } | |
26513 | { | |
26514 | wxTreeItemId * resultptr; | |
26515 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26516 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26517 | } |
26518 | return resultobj; | |
26519 | fail: | |
26520 | return NULL; | |
26521 | } | |
26522 | ||
26523 | ||
26524 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26525 | PyObject *resultobj; | |
26526 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26527 | wxTreeItemId *arg2 = 0 ; | |
26528 | wxTreeItemId result; | |
26529 | PyObject * obj0 = 0 ; | |
26530 | PyObject * obj1 = 0 ; | |
26531 | char *kwnames[] = { | |
26532 | (char *) "self",(char *) "item", NULL | |
26533 | }; | |
26534 | ||
26535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26540 | SWIG_fail; | |
d14a1e28 | 26541 | if (arg2 == NULL) { |
15afbcd0 RD |
26542 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26543 | SWIG_fail; | |
d14a1e28 RD |
26544 | } |
26545 | { | |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
26552 | { | |
26553 | wxTreeItemId * resultptr; | |
26554 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26556 | } |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
26563 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26564 | PyObject *resultobj; | |
26565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26566 | wxTreeItemId *arg2 = 0 ; | |
26567 | wxTreeItemId result; | |
26568 | PyObject * obj0 = 0 ; | |
26569 | PyObject * obj1 = 0 ; | |
26570 | char *kwnames[] = { | |
26571 | (char *) "self",(char *) "item", NULL | |
26572 | }; | |
26573 | ||
26574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26579 | SWIG_fail; | |
d14a1e28 | 26580 | if (arg2 == NULL) { |
15afbcd0 RD |
26581 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26582 | SWIG_fail; | |
d14a1e28 RD |
26583 | } |
26584 | { | |
26585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26586 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26587 | ||
26588 | wxPyEndAllowThreads(__tstate); | |
26589 | if (PyErr_Occurred()) SWIG_fail; | |
26590 | } | |
26591 | { | |
26592 | wxTreeItemId * resultptr; | |
26593 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26595 | } |
26596 | return resultobj; | |
26597 | fail: | |
26598 | return NULL; | |
26599 | } | |
26600 | ||
26601 | ||
26602 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26603 | PyObject *resultobj; | |
26604 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26605 | wxString *arg2 = 0 ; | |
26606 | int arg3 = (int) -1 ; | |
26607 | int arg4 = (int) -1 ; | |
26608 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26609 | wxTreeItemId result; | |
e811c8ce | 26610 | bool temp2 = False ; |
d14a1e28 RD |
26611 | PyObject * obj0 = 0 ; |
26612 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26613 | PyObject * obj2 = 0 ; |
26614 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26615 | PyObject * obj4 = 0 ; |
26616 | char *kwnames[] = { | |
26617 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26618 | }; | |
26619 | ||
994141e6 | 26620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
26621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26623 | { |
26624 | arg2 = wxString_in_helper(obj1); | |
26625 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26626 | temp2 = True; |
d14a1e28 | 26627 | } |
994141e6 | 26628 | if (obj2) { |
15afbcd0 RD |
26629 | arg3 = (int) SWIG_AsInt(obj2); |
26630 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26631 | } |
26632 | if (obj3) { | |
15afbcd0 RD |
26633 | arg4 = (int) SWIG_AsInt(obj3); |
26634 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26635 | } |
d14a1e28 | 26636 | if (obj4) { |
15afbcd0 RD |
26637 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
26638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26639 | } |
26640 | { | |
26641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26642 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26643 | ||
26644 | wxPyEndAllowThreads(__tstate); | |
26645 | if (PyErr_Occurred()) SWIG_fail; | |
26646 | } | |
26647 | { | |
26648 | wxTreeItemId * resultptr; | |
26649 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26650 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26651 | } |
26652 | { | |
26653 | if (temp2) | |
26654 | delete arg2; | |
26655 | } | |
26656 | return resultobj; | |
26657 | fail: | |
26658 | { | |
26659 | if (temp2) | |
26660 | delete arg2; | |
26661 | } | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
26666 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26667 | PyObject *resultobj; | |
26668 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26669 | wxTreeItemId *arg2 = 0 ; | |
26670 | wxString *arg3 = 0 ; | |
26671 | int arg4 = (int) -1 ; | |
26672 | int arg5 = (int) -1 ; | |
26673 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26674 | wxTreeItemId result; | |
e811c8ce | 26675 | bool temp3 = False ; |
d14a1e28 RD |
26676 | PyObject * obj0 = 0 ; |
26677 | PyObject * obj1 = 0 ; | |
26678 | PyObject * obj2 = 0 ; | |
994141e6 RD |
26679 | PyObject * obj3 = 0 ; |
26680 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26681 | PyObject * obj5 = 0 ; |
26682 | char *kwnames[] = { | |
26683 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26684 | }; | |
26685 | ||
994141e6 | 26686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26691 | SWIG_fail; | |
d14a1e28 | 26692 | if (arg2 == NULL) { |
15afbcd0 RD |
26693 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26694 | SWIG_fail; | |
d14a1e28 RD |
26695 | } |
26696 | { | |
26697 | arg3 = wxString_in_helper(obj2); | |
26698 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26699 | temp3 = True; |
d14a1e28 | 26700 | } |
994141e6 | 26701 | if (obj3) { |
15afbcd0 RD |
26702 | arg4 = (int) SWIG_AsInt(obj3); |
26703 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26704 | } |
26705 | if (obj4) { | |
15afbcd0 RD |
26706 | arg5 = (int) SWIG_AsInt(obj4); |
26707 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26708 | } |
d14a1e28 | 26709 | if (obj5) { |
15afbcd0 RD |
26710 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26712 | } |
26713 | { | |
26714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26715 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26716 | ||
26717 | wxPyEndAllowThreads(__tstate); | |
26718 | if (PyErr_Occurred()) SWIG_fail; | |
26719 | } | |
26720 | { | |
26721 | wxTreeItemId * resultptr; | |
26722 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26724 | } |
26725 | { | |
26726 | if (temp3) | |
26727 | delete arg3; | |
26728 | } | |
26729 | return resultobj; | |
26730 | fail: | |
26731 | { | |
26732 | if (temp3) | |
26733 | delete arg3; | |
26734 | } | |
26735 | return NULL; | |
26736 | } | |
26737 | ||
26738 | ||
26739 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26740 | PyObject *resultobj; | |
26741 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26742 | wxTreeItemId *arg2 = 0 ; | |
26743 | wxTreeItemId *arg3 = 0 ; | |
26744 | wxString *arg4 = 0 ; | |
26745 | int arg5 = (int) -1 ; | |
26746 | int arg6 = (int) -1 ; | |
26747 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26748 | wxTreeItemId result; | |
e811c8ce | 26749 | bool temp4 = False ; |
d14a1e28 RD |
26750 | PyObject * obj0 = 0 ; |
26751 | PyObject * obj1 = 0 ; | |
26752 | PyObject * obj2 = 0 ; | |
26753 | PyObject * obj3 = 0 ; | |
994141e6 RD |
26754 | PyObject * obj4 = 0 ; |
26755 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26756 | PyObject * obj6 = 0 ; |
26757 | char *kwnames[] = { | |
26758 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26759 | }; | |
26760 | ||
994141e6 | 26761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
26762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26764 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26765 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26766 | SWIG_fail; | |
d14a1e28 | 26767 | if (arg2 == NULL) { |
15afbcd0 RD |
26768 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26769 | SWIG_fail; | |
d14a1e28 | 26770 | } |
15afbcd0 RD |
26771 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
26772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26773 | SWIG_fail; | |
d14a1e28 | 26774 | if (arg3 == NULL) { |
15afbcd0 RD |
26775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26776 | SWIG_fail; | |
d14a1e28 RD |
26777 | } |
26778 | { | |
26779 | arg4 = wxString_in_helper(obj3); | |
26780 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26781 | temp4 = True; |
d14a1e28 | 26782 | } |
994141e6 | 26783 | if (obj4) { |
15afbcd0 RD |
26784 | arg5 = (int) SWIG_AsInt(obj4); |
26785 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26786 | } |
26787 | if (obj5) { | |
15afbcd0 RD |
26788 | arg6 = (int) SWIG_AsInt(obj5); |
26789 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26790 | } |
d14a1e28 | 26791 | if (obj6) { |
15afbcd0 RD |
26792 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26794 | } |
26795 | { | |
26796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26797 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26798 | ||
26799 | wxPyEndAllowThreads(__tstate); | |
26800 | if (PyErr_Occurred()) SWIG_fail; | |
26801 | } | |
26802 | { | |
26803 | wxTreeItemId * resultptr; | |
26804 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26805 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26806 | } |
26807 | { | |
26808 | if (temp4) | |
26809 | delete arg4; | |
26810 | } | |
26811 | return resultobj; | |
26812 | fail: | |
26813 | { | |
26814 | if (temp4) | |
26815 | delete arg4; | |
26816 | } | |
26817 | return NULL; | |
26818 | } | |
26819 | ||
26820 | ||
26821 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26822 | PyObject *resultobj; | |
26823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26824 | wxTreeItemId *arg2 = 0 ; | |
26825 | size_t arg3 ; | |
26826 | wxString *arg4 = 0 ; | |
26827 | int arg5 = (int) -1 ; | |
26828 | int arg6 = (int) -1 ; | |
26829 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26830 | wxTreeItemId result; | |
e811c8ce | 26831 | bool temp4 = False ; |
d14a1e28 RD |
26832 | PyObject * obj0 = 0 ; |
26833 | PyObject * obj1 = 0 ; | |
26834 | PyObject * obj2 = 0 ; | |
26835 | PyObject * obj3 = 0 ; | |
994141e6 RD |
26836 | PyObject * obj4 = 0 ; |
26837 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26838 | PyObject * obj6 = 0 ; |
26839 | char *kwnames[] = { | |
26840 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26841 | }; | |
26842 | ||
994141e6 | 26843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
26844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26848 | SWIG_fail; | |
d14a1e28 | 26849 | if (arg2 == NULL) { |
15afbcd0 RD |
26850 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26851 | SWIG_fail; | |
a41e16b6 | 26852 | } |
15afbcd0 RD |
26853 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
26854 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26855 | { |
26856 | arg4 = wxString_in_helper(obj3); | |
26857 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26858 | temp4 = True; |
d14a1e28 | 26859 | } |
994141e6 | 26860 | if (obj4) { |
15afbcd0 RD |
26861 | arg5 = (int) SWIG_AsInt(obj4); |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26863 | } |
26864 | if (obj5) { | |
15afbcd0 RD |
26865 | arg6 = (int) SWIG_AsInt(obj5); |
26866 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26867 | } |
d14a1e28 | 26868 | if (obj6) { |
15afbcd0 RD |
26869 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26871 | } |
26872 | { | |
26873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26874 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26875 | ||
26876 | wxPyEndAllowThreads(__tstate); | |
26877 | if (PyErr_Occurred()) SWIG_fail; | |
26878 | } | |
26879 | { | |
26880 | wxTreeItemId * resultptr; | |
26881 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26882 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26883 | } |
26884 | { | |
26885 | if (temp4) | |
26886 | delete arg4; | |
26887 | } | |
26888 | return resultobj; | |
26889 | fail: | |
26890 | { | |
26891 | if (temp4) | |
26892 | delete arg4; | |
26893 | } | |
26894 | return NULL; | |
26895 | } | |
26896 | ||
26897 | ||
26898 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26899 | PyObject *resultobj; | |
26900 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26901 | wxTreeItemId *arg2 = 0 ; | |
26902 | wxString *arg3 = 0 ; | |
26903 | int arg4 = (int) -1 ; | |
26904 | int arg5 = (int) -1 ; | |
26905 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26906 | wxTreeItemId result; | |
e811c8ce | 26907 | bool temp3 = False ; |
d14a1e28 RD |
26908 | PyObject * obj0 = 0 ; |
26909 | PyObject * obj1 = 0 ; | |
26910 | PyObject * obj2 = 0 ; | |
994141e6 RD |
26911 | PyObject * obj3 = 0 ; |
26912 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26913 | PyObject * obj5 = 0 ; |
26914 | char *kwnames[] = { | |
26915 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26916 | }; | |
26917 | ||
994141e6 | 26918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26923 | SWIG_fail; | |
d14a1e28 | 26924 | if (arg2 == NULL) { |
15afbcd0 RD |
26925 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26926 | SWIG_fail; | |
d14a1e28 RD |
26927 | } |
26928 | { | |
26929 | arg3 = wxString_in_helper(obj2); | |
26930 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26931 | temp3 = True; |
d14a1e28 | 26932 | } |
994141e6 | 26933 | if (obj3) { |
15afbcd0 RD |
26934 | arg4 = (int) SWIG_AsInt(obj3); |
26935 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26936 | } |
26937 | if (obj4) { | |
15afbcd0 RD |
26938 | arg5 = (int) SWIG_AsInt(obj4); |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26940 | } |
d14a1e28 | 26941 | if (obj5) { |
15afbcd0 RD |
26942 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26944 | } |
26945 | { | |
26946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26947 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26948 | ||
26949 | wxPyEndAllowThreads(__tstate); | |
26950 | if (PyErr_Occurred()) SWIG_fail; | |
26951 | } | |
26952 | { | |
26953 | wxTreeItemId * resultptr; | |
26954 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26955 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26956 | } |
26957 | { | |
26958 | if (temp3) | |
26959 | delete arg3; | |
26960 | } | |
26961 | return resultobj; | |
26962 | fail: | |
26963 | { | |
26964 | if (temp3) | |
26965 | delete arg3; | |
26966 | } | |
26967 | return NULL; | |
26968 | } | |
26969 | ||
26970 | ||
26971 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26972 | PyObject *resultobj; | |
26973 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26974 | wxTreeItemId *arg2 = 0 ; | |
26975 | PyObject * obj0 = 0 ; | |
26976 | PyObject * obj1 = 0 ; | |
26977 | char *kwnames[] = { | |
26978 | (char *) "self",(char *) "item", NULL | |
26979 | }; | |
26980 | ||
26981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26985 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26986 | SWIG_fail; | |
d14a1e28 | 26987 | if (arg2 == NULL) { |
15afbcd0 RD |
26988 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26989 | SWIG_fail; | |
d14a1e28 RD |
26990 | } |
26991 | { | |
26992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26993 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
26994 | ||
26995 | wxPyEndAllowThreads(__tstate); | |
26996 | if (PyErr_Occurred()) SWIG_fail; | |
26997 | } | |
26998 | Py_INCREF(Py_None); resultobj = Py_None; | |
26999 | return resultobj; | |
27000 | fail: | |
27001 | return NULL; | |
27002 | } | |
27003 | ||
27004 | ||
27005 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27006 | PyObject *resultobj; | |
27007 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27008 | wxTreeItemId *arg2 = 0 ; | |
27009 | PyObject * obj0 = 0 ; | |
27010 | PyObject * obj1 = 0 ; | |
27011 | char *kwnames[] = { | |
27012 | (char *) "self",(char *) "item", NULL | |
27013 | }; | |
27014 | ||
27015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27018 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27019 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27020 | SWIG_fail; | |
d14a1e28 | 27021 | if (arg2 == NULL) { |
15afbcd0 RD |
27022 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27023 | SWIG_fail; | |
d14a1e28 RD |
27024 | } |
27025 | { | |
27026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27027 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27028 | ||
27029 | wxPyEndAllowThreads(__tstate); | |
27030 | if (PyErr_Occurred()) SWIG_fail; | |
27031 | } | |
27032 | Py_INCREF(Py_None); resultobj = Py_None; | |
27033 | return resultobj; | |
27034 | fail: | |
27035 | return NULL; | |
27036 | } | |
27037 | ||
27038 | ||
27039 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27040 | PyObject *resultobj; | |
27041 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27042 | PyObject * obj0 = 0 ; | |
27043 | char *kwnames[] = { | |
27044 | (char *) "self", NULL | |
27045 | }; | |
27046 | ||
27047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27050 | { |
27051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27052 | (arg1)->DeleteAllItems(); | |
27053 | ||
27054 | wxPyEndAllowThreads(__tstate); | |
27055 | if (PyErr_Occurred()) SWIG_fail; | |
27056 | } | |
27057 | Py_INCREF(Py_None); resultobj = Py_None; | |
27058 | return resultobj; | |
27059 | fail: | |
27060 | return NULL; | |
27061 | } | |
27062 | ||
27063 | ||
27064 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27065 | PyObject *resultobj; | |
27066 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27067 | wxTreeItemId *arg2 = 0 ; | |
27068 | PyObject * obj0 = 0 ; | |
27069 | PyObject * obj1 = 0 ; | |
27070 | char *kwnames[] = { | |
27071 | (char *) "self",(char *) "item", NULL | |
27072 | }; | |
27073 | ||
27074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27078 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27079 | SWIG_fail; | |
d14a1e28 | 27080 | if (arg2 == NULL) { |
15afbcd0 RD |
27081 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27082 | SWIG_fail; | |
d14a1e28 RD |
27083 | } |
27084 | { | |
27085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27086 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27087 | ||
27088 | wxPyEndAllowThreads(__tstate); | |
27089 | if (PyErr_Occurred()) SWIG_fail; | |
27090 | } | |
27091 | Py_INCREF(Py_None); resultobj = Py_None; | |
27092 | return resultobj; | |
27093 | fail: | |
27094 | return NULL; | |
27095 | } | |
27096 | ||
27097 | ||
27098 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27099 | PyObject *resultobj; | |
27100 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27101 | wxTreeItemId *arg2 = 0 ; | |
27102 | PyObject * obj0 = 0 ; | |
27103 | PyObject * obj1 = 0 ; | |
27104 | char *kwnames[] = { | |
27105 | (char *) "self",(char *) "item", NULL | |
27106 | }; | |
27107 | ||
27108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27113 | SWIG_fail; | |
d14a1e28 | 27114 | if (arg2 == NULL) { |
15afbcd0 RD |
27115 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27116 | SWIG_fail; | |
d14a1e28 RD |
27117 | } |
27118 | { | |
27119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27120 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27121 | ||
27122 | wxPyEndAllowThreads(__tstate); | |
27123 | if (PyErr_Occurred()) SWIG_fail; | |
27124 | } | |
27125 | Py_INCREF(Py_None); resultobj = Py_None; | |
27126 | return resultobj; | |
27127 | fail: | |
27128 | return NULL; | |
27129 | } | |
27130 | ||
27131 | ||
27132 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27133 | PyObject *resultobj; | |
27134 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27135 | wxTreeItemId *arg2 = 0 ; | |
27136 | PyObject * obj0 = 0 ; | |
27137 | PyObject * obj1 = 0 ; | |
27138 | char *kwnames[] = { | |
27139 | (char *) "self",(char *) "item", NULL | |
27140 | }; | |
27141 | ||
27142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27147 | SWIG_fail; | |
d14a1e28 | 27148 | if (arg2 == NULL) { |
15afbcd0 RD |
27149 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27150 | SWIG_fail; | |
d14a1e28 RD |
27151 | } |
27152 | { | |
27153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27154 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27155 | ||
27156 | wxPyEndAllowThreads(__tstate); | |
27157 | if (PyErr_Occurred()) SWIG_fail; | |
27158 | } | |
27159 | Py_INCREF(Py_None); resultobj = Py_None; | |
27160 | return resultobj; | |
27161 | fail: | |
27162 | return NULL; | |
27163 | } | |
27164 | ||
27165 | ||
27166 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27167 | PyObject *resultobj; | |
27168 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27169 | wxTreeItemId *arg2 = 0 ; | |
27170 | PyObject * obj0 = 0 ; | |
27171 | PyObject * obj1 = 0 ; | |
27172 | char *kwnames[] = { | |
27173 | (char *) "self",(char *) "item", NULL | |
27174 | }; | |
27175 | ||
27176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27181 | SWIG_fail; | |
d14a1e28 | 27182 | if (arg2 == NULL) { |
15afbcd0 RD |
27183 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27184 | SWIG_fail; | |
d14a1e28 RD |
27185 | } |
27186 | { | |
27187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27188 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27189 | ||
27190 | wxPyEndAllowThreads(__tstate); | |
27191 | if (PyErr_Occurred()) SWIG_fail; | |
27192 | } | |
27193 | Py_INCREF(Py_None); resultobj = Py_None; | |
27194 | return resultobj; | |
27195 | fail: | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
27200 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27201 | PyObject *resultobj; | |
27202 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27203 | PyObject * obj0 = 0 ; | |
27204 | char *kwnames[] = { | |
27205 | (char *) "self", NULL | |
27206 | }; | |
27207 | ||
27208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27211 | { |
27212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27213 | (arg1)->Unselect(); | |
27214 | ||
27215 | wxPyEndAllowThreads(__tstate); | |
27216 | if (PyErr_Occurred()) SWIG_fail; | |
27217 | } | |
27218 | Py_INCREF(Py_None); resultobj = Py_None; | |
27219 | return resultobj; | |
27220 | fail: | |
27221 | return NULL; | |
27222 | } | |
27223 | ||
27224 | ||
3adfb63b RD |
27225 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
27226 | PyObject *resultobj; | |
27227 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27228 | wxTreeItemId *arg2 = 0 ; | |
27229 | PyObject * obj0 = 0 ; | |
27230 | PyObject * obj1 = 0 ; | |
27231 | char *kwnames[] = { | |
27232 | (char *) "self",(char *) "item", NULL | |
27233 | }; | |
27234 | ||
27235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27240 | SWIG_fail; | |
3adfb63b | 27241 | if (arg2 == NULL) { |
15afbcd0 RD |
27242 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27243 | SWIG_fail; | |
3adfb63b RD |
27244 | } |
27245 | { | |
27246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27247 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27248 | ||
27249 | wxPyEndAllowThreads(__tstate); | |
27250 | if (PyErr_Occurred()) SWIG_fail; | |
27251 | } | |
27252 | Py_INCREF(Py_None); resultobj = Py_None; | |
27253 | return resultobj; | |
27254 | fail: | |
27255 | return NULL; | |
27256 | } | |
27257 | ||
27258 | ||
d14a1e28 RD |
27259 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
27260 | PyObject *resultobj; | |
27261 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27262 | PyObject * obj0 = 0 ; | |
27263 | char *kwnames[] = { | |
27264 | (char *) "self", NULL | |
27265 | }; | |
27266 | ||
27267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27270 | { |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | (arg1)->UnselectAll(); | |
27273 | ||
27274 | wxPyEndAllowThreads(__tstate); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | } | |
27277 | Py_INCREF(Py_None); resultobj = Py_None; | |
27278 | return resultobj; | |
27279 | fail: | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
27284 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
27285 | PyObject *resultobj; |
27286 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27287 | wxTreeItemId *arg2 = 0 ; | |
27288 | bool arg3 = (bool) True ; | |
27289 | PyObject * obj0 = 0 ; | |
27290 | PyObject * obj1 = 0 ; | |
27291 | PyObject * obj2 = 0 ; | |
27292 | char *kwnames[] = { | |
27293 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27294 | }; | |
27295 | ||
27296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27300 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27301 | SWIG_fail; | |
3adfb63b | 27302 | if (arg2 == NULL) { |
15afbcd0 RD |
27303 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27304 | SWIG_fail; | |
3adfb63b RD |
27305 | } |
27306 | if (obj2) { | |
15afbcd0 RD |
27307 | arg3 = (bool) SWIG_AsBool(obj2); |
27308 | if (PyErr_Occurred()) SWIG_fail; | |
3adfb63b RD |
27309 | } |
27310 | { | |
27311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27312 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27313 | ||
27314 | wxPyEndAllowThreads(__tstate); | |
27315 | if (PyErr_Occurred()) SWIG_fail; | |
27316 | } | |
27317 | Py_INCREF(Py_None); resultobj = Py_None; | |
27318 | return resultobj; | |
27319 | fail: | |
27320 | return NULL; | |
27321 | } | |
27322 | ||
27323 | ||
27324 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
27325 | PyObject *resultobj; |
27326 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27327 | wxTreeItemId *arg2 = 0 ; | |
27328 | PyObject * obj0 = 0 ; | |
27329 | PyObject * obj1 = 0 ; | |
27330 | char *kwnames[] = { | |
27331 | (char *) "self",(char *) "item", NULL | |
27332 | }; | |
27333 | ||
3adfb63b | 27334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27339 | SWIG_fail; | |
d14a1e28 | 27340 | if (arg2 == NULL) { |
15afbcd0 RD |
27341 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27342 | SWIG_fail; | |
d14a1e28 RD |
27343 | } |
27344 | { | |
27345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 27346 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
27347 | |
27348 | wxPyEndAllowThreads(__tstate); | |
27349 | if (PyErr_Occurred()) SWIG_fail; | |
27350 | } | |
27351 | Py_INCREF(Py_None); resultobj = Py_None; | |
27352 | return resultobj; | |
27353 | fail: | |
27354 | return NULL; | |
27355 | } | |
27356 | ||
27357 | ||
27358 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27359 | PyObject *resultobj; | |
27360 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27361 | wxTreeItemId *arg2 = 0 ; | |
27362 | PyObject * obj0 = 0 ; | |
27363 | PyObject * obj1 = 0 ; | |
27364 | char *kwnames[] = { | |
27365 | (char *) "self",(char *) "item", NULL | |
27366 | }; | |
27367 | ||
27368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27371 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27372 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27373 | SWIG_fail; | |
d14a1e28 | 27374 | if (arg2 == NULL) { |
15afbcd0 RD |
27375 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27376 | SWIG_fail; | |
d14a1e28 RD |
27377 | } |
27378 | { | |
27379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27380 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27381 | ||
27382 | wxPyEndAllowThreads(__tstate); | |
27383 | if (PyErr_Occurred()) SWIG_fail; | |
27384 | } | |
27385 | Py_INCREF(Py_None); resultobj = Py_None; | |
27386 | return resultobj; | |
27387 | fail: | |
27388 | return NULL; | |
27389 | } | |
27390 | ||
27391 | ||
27392 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27393 | PyObject *resultobj; | |
27394 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27395 | wxTreeItemId *arg2 = 0 ; | |
27396 | PyObject * obj0 = 0 ; | |
27397 | PyObject * obj1 = 0 ; | |
27398 | char *kwnames[] = { | |
27399 | (char *) "self",(char *) "item", NULL | |
27400 | }; | |
27401 | ||
27402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27406 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27407 | SWIG_fail; | |
d14a1e28 | 27408 | if (arg2 == NULL) { |
15afbcd0 RD |
27409 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27410 | SWIG_fail; | |
d14a1e28 RD |
27411 | } |
27412 | { | |
27413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27414 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27415 | ||
27416 | wxPyEndAllowThreads(__tstate); | |
27417 | if (PyErr_Occurred()) SWIG_fail; | |
27418 | } | |
27419 | Py_INCREF(Py_None); resultobj = Py_None; | |
27420 | return resultobj; | |
27421 | fail: | |
27422 | return NULL; | |
27423 | } | |
27424 | ||
27425 | ||
27426 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27427 | PyObject *resultobj; | |
27428 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27429 | wxTreeItemId *arg2 = 0 ; | |
27430 | PyObject * obj0 = 0 ; | |
27431 | PyObject * obj1 = 0 ; | |
27432 | char *kwnames[] = { | |
27433 | (char *) "self",(char *) "item", NULL | |
27434 | }; | |
27435 | ||
27436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27440 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27441 | SWIG_fail; | |
d14a1e28 | 27442 | if (arg2 == NULL) { |
15afbcd0 RD |
27443 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27444 | SWIG_fail; | |
d14a1e28 RD |
27445 | } |
27446 | { | |
27447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27448 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27449 | ||
27450 | wxPyEndAllowThreads(__tstate); | |
27451 | if (PyErr_Occurred()) SWIG_fail; | |
27452 | } | |
27453 | Py_INCREF(Py_None); resultobj = Py_None; | |
27454 | return resultobj; | |
27455 | fail: | |
27456 | return NULL; | |
27457 | } | |
27458 | ||
27459 | ||
27460 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27461 | PyObject *resultobj; | |
27462 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27463 | wxTextCtrl *result; | |
27464 | PyObject * obj0 = 0 ; | |
27465 | char *kwnames[] = { | |
27466 | (char *) "self", NULL | |
27467 | }; | |
27468 | ||
27469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27472 | { |
27473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27474 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27475 | ||
27476 | wxPyEndAllowThreads(__tstate); | |
27477 | if (PyErr_Occurred()) SWIG_fail; | |
27478 | } | |
27479 | { | |
27480 | resultobj = wxPyMake_wxObject(result); | |
27481 | } | |
27482 | return resultobj; | |
27483 | fail: | |
27484 | return NULL; | |
27485 | } | |
27486 | ||
27487 | ||
27488 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27489 | PyObject *resultobj; | |
27490 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27491 | wxTreeItemId *arg2 = 0 ; | |
27492 | PyObject * obj0 = 0 ; | |
27493 | PyObject * obj1 = 0 ; | |
27494 | char *kwnames[] = { | |
27495 | (char *) "self",(char *) "item", NULL | |
27496 | }; | |
27497 | ||
27498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27501 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27502 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27503 | SWIG_fail; | |
d14a1e28 | 27504 | if (arg2 == NULL) { |
15afbcd0 RD |
27505 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27506 | SWIG_fail; | |
d14a1e28 RD |
27507 | } |
27508 | { | |
27509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27510 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27511 | ||
27512 | wxPyEndAllowThreads(__tstate); | |
27513 | if (PyErr_Occurred()) SWIG_fail; | |
27514 | } | |
27515 | Py_INCREF(Py_None); resultobj = Py_None; | |
27516 | return resultobj; | |
27517 | fail: | |
27518 | return NULL; | |
27519 | } | |
27520 | ||
27521 | ||
27522 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27523 | PyObject *resultobj; | |
27524 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27525 | wxPoint *arg2 = 0 ; | |
27526 | int *arg3 = 0 ; | |
27527 | wxTreeItemId result; | |
27528 | wxPoint temp2 ; | |
27529 | int temp3 ; | |
27530 | PyObject * obj0 = 0 ; | |
27531 | PyObject * obj1 = 0 ; | |
27532 | char *kwnames[] = { | |
27533 | (char *) "self",(char *) "point", NULL | |
27534 | }; | |
27535 | ||
27536 | arg3 = &temp3; | |
27537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27540 | { |
27541 | arg2 = &temp2; | |
27542 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27543 | } | |
27544 | { | |
27545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27546 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27547 | ||
27548 | wxPyEndAllowThreads(__tstate); | |
27549 | if (PyErr_Occurred()) SWIG_fail; | |
27550 | } | |
27551 | { | |
27552 | wxTreeItemId * resultptr; | |
27553 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27554 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27555 | } |
27556 | { | |
27557 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27558 | resultobj = t_output_helper(resultobj,o); | |
27559 | } | |
27560 | return resultobj; | |
27561 | fail: | |
27562 | return NULL; | |
27563 | } | |
27564 | ||
27565 | ||
27566 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27567 | PyObject *resultobj; | |
27568 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27569 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 27570 | bool arg3 = (bool) False ; |
d14a1e28 RD |
27571 | PyObject *result; |
27572 | PyObject * obj0 = 0 ; | |
27573 | PyObject * obj1 = 0 ; | |
27574 | PyObject * obj2 = 0 ; | |
27575 | char *kwnames[] = { | |
27576 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27577 | }; | |
27578 | ||
27579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27584 | SWIG_fail; | |
d14a1e28 | 27585 | if (arg2 == NULL) { |
15afbcd0 RD |
27586 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27587 | SWIG_fail; | |
d14a1e28 RD |
27588 | } |
27589 | if (obj2) { | |
15afbcd0 RD |
27590 | arg3 = (bool) SWIG_AsBool(obj2); |
27591 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27592 | } |
27593 | { | |
27594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27595 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27596 | ||
27597 | wxPyEndAllowThreads(__tstate); | |
27598 | if (PyErr_Occurred()) SWIG_fail; | |
27599 | } | |
27600 | resultobj = result; | |
27601 | return resultobj; | |
27602 | fail: | |
27603 | return NULL; | |
27604 | } | |
27605 | ||
27606 | ||
74a57fcd RD |
27607 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
27608 | PyObject *resultobj; | |
27609 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27610 | wxVisualAttributes result; | |
27611 | PyObject * obj0 = 0 ; | |
27612 | char *kwnames[] = { | |
27613 | (char *) "variant", NULL | |
27614 | }; | |
27615 | ||
27616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27617 | if (obj0) { | |
27618 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27619 | if (PyErr_Occurred()) SWIG_fail; | |
27620 | } | |
27621 | { | |
27622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27623 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27624 | ||
27625 | wxPyEndAllowThreads(__tstate); | |
27626 | if (PyErr_Occurred()) SWIG_fail; | |
27627 | } | |
27628 | { | |
27629 | wxVisualAttributes * resultptr; | |
27630 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27632 | } | |
27633 | return resultobj; | |
27634 | fail: | |
27635 | return NULL; | |
27636 | } | |
27637 | ||
27638 | ||
d14a1e28 RD |
27639 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { |
27640 | PyObject *obj; | |
27641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27642 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27643 | Py_INCREF(obj); | |
27644 | return Py_BuildValue((char *)""); | |
27645 | } | |
b2dc1044 RD |
27646 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
27647 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
27648 | return 1; | |
27649 | } | |
27650 | ||
27651 | ||
27652 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27653 | PyObject *pyobj; | |
27654 | ||
27655 | { | |
27656 | #if wxUSE_UNICODE | |
27657 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27658 | #else | |
27659 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27660 | #endif | |
27661 | } | |
27662 | return pyobj; | |
27663 | } | |
27664 | ||
27665 | ||
d14a1e28 RD |
27666 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
27667 | PyObject *resultobj; | |
27668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27669 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27670 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27671 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27672 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27673 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27674 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27675 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27676 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27677 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27678 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27679 | int arg8 = (int) 0 ; | |
b2dc1044 | 27680 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27681 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27682 | wxGenericDirCtrl *result; | |
e811c8ce | 27683 | bool temp3 = False ; |
d14a1e28 RD |
27684 | wxPoint temp4 ; |
27685 | wxSize temp5 ; | |
e811c8ce RD |
27686 | bool temp7 = False ; |
27687 | bool temp9 = False ; | |
d14a1e28 | 27688 | PyObject * obj0 = 0 ; |
994141e6 | 27689 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27690 | PyObject * obj2 = 0 ; |
27691 | PyObject * obj3 = 0 ; | |
27692 | PyObject * obj4 = 0 ; | |
994141e6 | 27693 | PyObject * obj5 = 0 ; |
d14a1e28 | 27694 | PyObject * obj6 = 0 ; |
994141e6 | 27695 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
27696 | PyObject * obj8 = 0 ; |
27697 | char *kwnames[] = { | |
27698 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27699 | }; | |
27700 | ||
994141e6 | 27701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
27702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27704 | if (obj1) { |
15afbcd0 RD |
27705 | arg2 = (int const) SWIG_AsInt(obj1); |
27706 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27707 | } |
d14a1e28 RD |
27708 | if (obj2) { |
27709 | { | |
27710 | arg3 = wxString_in_helper(obj2); | |
27711 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27712 | temp3 = True; |
d14a1e28 RD |
27713 | } |
27714 | } | |
27715 | if (obj3) { | |
27716 | { | |
27717 | arg4 = &temp4; | |
27718 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27719 | } | |
27720 | } | |
27721 | if (obj4) { | |
27722 | { | |
27723 | arg5 = &temp5; | |
27724 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27725 | } | |
27726 | } | |
994141e6 | 27727 | if (obj5) { |
15afbcd0 RD |
27728 | arg6 = (long) SWIG_AsLong(obj5); |
27729 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27730 | } |
d14a1e28 RD |
27731 | if (obj6) { |
27732 | { | |
27733 | arg7 = wxString_in_helper(obj6); | |
27734 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 27735 | temp7 = True; |
d14a1e28 RD |
27736 | } |
27737 | } | |
994141e6 | 27738 | if (obj7) { |
15afbcd0 RD |
27739 | arg8 = (int) SWIG_AsInt(obj7); |
27740 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27741 | } |
d14a1e28 RD |
27742 | if (obj8) { |
27743 | { | |
27744 | arg9 = wxString_in_helper(obj8); | |
27745 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 27746 | temp9 = True; |
d14a1e28 RD |
27747 | } |
27748 | } | |
27749 | { | |
27750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27751 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27752 | ||
27753 | wxPyEndAllowThreads(__tstate); | |
27754 | if (PyErr_Occurred()) SWIG_fail; | |
27755 | } | |
15afbcd0 | 27756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27757 | { |
27758 | if (temp3) | |
27759 | delete arg3; | |
27760 | } | |
27761 | { | |
27762 | if (temp7) | |
27763 | delete arg7; | |
27764 | } | |
27765 | { | |
27766 | if (temp9) | |
27767 | delete arg9; | |
27768 | } | |
27769 | return resultobj; | |
27770 | fail: | |
27771 | { | |
27772 | if (temp3) | |
27773 | delete arg3; | |
27774 | } | |
27775 | { | |
27776 | if (temp7) | |
27777 | delete arg7; | |
27778 | } | |
27779 | { | |
27780 | if (temp9) | |
27781 | delete arg9; | |
27782 | } | |
27783 | return NULL; | |
27784 | } | |
27785 | ||
27786 | ||
27787 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27788 | PyObject *resultobj; | |
27789 | wxGenericDirCtrl *result; | |
27790 | char *kwnames[] = { | |
27791 | NULL | |
27792 | }; | |
27793 | ||
27794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27795 | { | |
27796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27797 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27798 | ||
27799 | wxPyEndAllowThreads(__tstate); | |
27800 | if (PyErr_Occurred()) SWIG_fail; | |
27801 | } | |
15afbcd0 | 27802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27803 | return resultobj; |
27804 | fail: | |
27805 | return NULL; | |
27806 | } | |
27807 | ||
27808 | ||
27809 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27810 | PyObject *resultobj; | |
27811 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27812 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 27813 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27814 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
27815 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27816 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27817 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27818 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27819 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27820 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27821 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
27822 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27823 | int arg9 = (int) 0 ; | |
b2dc1044 | 27824 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27825 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
27826 | bool result; | |
e811c8ce | 27827 | bool temp4 = False ; |
d14a1e28 RD |
27828 | wxPoint temp5 ; |
27829 | wxSize temp6 ; | |
e811c8ce RD |
27830 | bool temp8 = False ; |
27831 | bool temp10 = False ; | |
d14a1e28 RD |
27832 | PyObject * obj0 = 0 ; |
27833 | PyObject * obj1 = 0 ; | |
994141e6 | 27834 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27835 | PyObject * obj3 = 0 ; |
27836 | PyObject * obj4 = 0 ; | |
27837 | PyObject * obj5 = 0 ; | |
994141e6 | 27838 | PyObject * obj6 = 0 ; |
d14a1e28 | 27839 | PyObject * obj7 = 0 ; |
994141e6 | 27840 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
27841 | PyObject * obj9 = 0 ; |
27842 | char *kwnames[] = { | |
27843 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27844 | }; | |
27845 | ||
994141e6 | 27846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
27847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27849 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27851 | if (obj2) { |
15afbcd0 RD |
27852 | arg3 = (int const) SWIG_AsInt(obj2); |
27853 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27854 | } |
d14a1e28 RD |
27855 | if (obj3) { |
27856 | { | |
27857 | arg4 = wxString_in_helper(obj3); | |
27858 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27859 | temp4 = True; |
d14a1e28 RD |
27860 | } |
27861 | } | |
27862 | if (obj4) { | |
27863 | { | |
27864 | arg5 = &temp5; | |
27865 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
27866 | } | |
27867 | } | |
27868 | if (obj5) { | |
27869 | { | |
27870 | arg6 = &temp6; | |
27871 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
27872 | } | |
27873 | } | |
994141e6 | 27874 | if (obj6) { |
15afbcd0 RD |
27875 | arg7 = (long) SWIG_AsLong(obj6); |
27876 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27877 | } |
d14a1e28 RD |
27878 | if (obj7) { |
27879 | { | |
27880 | arg8 = wxString_in_helper(obj7); | |
27881 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 27882 | temp8 = True; |
d14a1e28 RD |
27883 | } |
27884 | } | |
994141e6 | 27885 | if (obj8) { |
15afbcd0 RD |
27886 | arg9 = (int) SWIG_AsInt(obj8); |
27887 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27888 | } |
d14a1e28 RD |
27889 | if (obj9) { |
27890 | { | |
27891 | arg10 = wxString_in_helper(obj9); | |
27892 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 27893 | temp10 = True; |
d14a1e28 RD |
27894 | } |
27895 | } | |
27896 | { | |
27897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27898 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
27899 | ||
27900 | wxPyEndAllowThreads(__tstate); | |
27901 | if (PyErr_Occurred()) SWIG_fail; | |
27902 | } | |
4f89f6a3 RD |
27903 | { |
27904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27905 | } | |
d14a1e28 RD |
27906 | { |
27907 | if (temp4) | |
27908 | delete arg4; | |
27909 | } | |
27910 | { | |
27911 | if (temp8) | |
27912 | delete arg8; | |
27913 | } | |
27914 | { | |
27915 | if (temp10) | |
27916 | delete arg10; | |
27917 | } | |
27918 | return resultobj; | |
27919 | fail: | |
27920 | { | |
27921 | if (temp4) | |
27922 | delete arg4; | |
27923 | } | |
27924 | { | |
27925 | if (temp8) | |
27926 | delete arg8; | |
27927 | } | |
27928 | { | |
27929 | if (temp10) | |
27930 | delete arg10; | |
27931 | } | |
27932 | return NULL; | |
27933 | } | |
27934 | ||
27935 | ||
27936 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27937 | PyObject *resultobj; | |
27938 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27939 | wxString *arg2 = 0 ; | |
27940 | bool result; | |
e811c8ce | 27941 | bool temp2 = False ; |
d14a1e28 RD |
27942 | PyObject * obj0 = 0 ; |
27943 | PyObject * obj1 = 0 ; | |
27944 | char *kwnames[] = { | |
27945 | (char *) "self",(char *) "path", NULL | |
27946 | }; | |
27947 | ||
27948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27951 | { |
27952 | arg2 = wxString_in_helper(obj1); | |
27953 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27954 | temp2 = True; |
d14a1e28 RD |
27955 | } |
27956 | { | |
27957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27958 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
27959 | ||
27960 | wxPyEndAllowThreads(__tstate); | |
27961 | if (PyErr_Occurred()) SWIG_fail; | |
27962 | } | |
4f89f6a3 RD |
27963 | { |
27964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27965 | } | |
d14a1e28 RD |
27966 | { |
27967 | if (temp2) | |
27968 | delete arg2; | |
27969 | } | |
27970 | return resultobj; | |
27971 | fail: | |
27972 | { | |
27973 | if (temp2) | |
27974 | delete arg2; | |
27975 | } | |
27976 | return NULL; | |
27977 | } | |
27978 | ||
27979 | ||
27980 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27981 | PyObject *resultobj; | |
27982 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27983 | wxString result; | |
27984 | PyObject * obj0 = 0 ; | |
27985 | char *kwnames[] = { | |
27986 | (char *) "self", NULL | |
27987 | }; | |
27988 | ||
27989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27992 | { |
27993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27994 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
27995 | ||
27996 | wxPyEndAllowThreads(__tstate); | |
27997 | if (PyErr_Occurred()) SWIG_fail; | |
27998 | } | |
27999 | { | |
28000 | #if wxUSE_UNICODE | |
28001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28002 | #else | |
28003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28004 | #endif | |
28005 | } | |
28006 | return resultobj; | |
28007 | fail: | |
28008 | return NULL; | |
28009 | } | |
28010 | ||
28011 | ||
28012 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28013 | PyObject *resultobj; | |
28014 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28015 | wxString *arg2 = 0 ; | |
e811c8ce | 28016 | bool temp2 = False ; |
d14a1e28 RD |
28017 | PyObject * obj0 = 0 ; |
28018 | PyObject * obj1 = 0 ; | |
28019 | char *kwnames[] = { | |
28020 | (char *) "self",(char *) "path", NULL | |
28021 | }; | |
28022 | ||
28023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28026 | { |
28027 | arg2 = wxString_in_helper(obj1); | |
28028 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28029 | temp2 = True; |
d14a1e28 RD |
28030 | } |
28031 | { | |
28032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28033 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28034 | ||
28035 | wxPyEndAllowThreads(__tstate); | |
28036 | if (PyErr_Occurred()) SWIG_fail; | |
28037 | } | |
28038 | Py_INCREF(Py_None); resultobj = Py_None; | |
28039 | { | |
28040 | if (temp2) | |
28041 | delete arg2; | |
28042 | } | |
28043 | return resultobj; | |
28044 | fail: | |
28045 | { | |
28046 | if (temp2) | |
28047 | delete arg2; | |
28048 | } | |
28049 | return NULL; | |
28050 | } | |
28051 | ||
28052 | ||
28053 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28054 | PyObject *resultobj; | |
28055 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28056 | wxString result; | |
28057 | PyObject * obj0 = 0 ; | |
28058 | char *kwnames[] = { | |
28059 | (char *) "self", NULL | |
28060 | }; | |
28061 | ||
28062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28065 | { |
28066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28067 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28068 | ||
28069 | wxPyEndAllowThreads(__tstate); | |
28070 | if (PyErr_Occurred()) SWIG_fail; | |
28071 | } | |
28072 | { | |
28073 | #if wxUSE_UNICODE | |
28074 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28075 | #else | |
28076 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28077 | #endif | |
28078 | } | |
28079 | return resultobj; | |
28080 | fail: | |
28081 | return NULL; | |
28082 | } | |
28083 | ||
28084 | ||
28085 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28086 | PyObject *resultobj; | |
28087 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28088 | wxString result; | |
28089 | PyObject * obj0 = 0 ; | |
28090 | char *kwnames[] = { | |
28091 | (char *) "self", NULL | |
28092 | }; | |
28093 | ||
28094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28097 | { |
28098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28099 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28100 | ||
28101 | wxPyEndAllowThreads(__tstate); | |
28102 | if (PyErr_Occurred()) SWIG_fail; | |
28103 | } | |
28104 | { | |
28105 | #if wxUSE_UNICODE | |
28106 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28107 | #else | |
28108 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28109 | #endif | |
28110 | } | |
28111 | return resultobj; | |
28112 | fail: | |
28113 | return NULL; | |
28114 | } | |
28115 | ||
28116 | ||
28117 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28118 | PyObject *resultobj; | |
28119 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28120 | wxString *arg2 = 0 ; | |
e811c8ce | 28121 | bool temp2 = False ; |
d14a1e28 RD |
28122 | PyObject * obj0 = 0 ; |
28123 | PyObject * obj1 = 0 ; | |
28124 | char *kwnames[] = { | |
28125 | (char *) "self",(char *) "path", NULL | |
28126 | }; | |
28127 | ||
28128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28131 | { |
28132 | arg2 = wxString_in_helper(obj1); | |
28133 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28134 | temp2 = True; |
d14a1e28 RD |
28135 | } |
28136 | { | |
28137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28138 | (arg1)->SetPath((wxString const &)*arg2); | |
28139 | ||
28140 | wxPyEndAllowThreads(__tstate); | |
28141 | if (PyErr_Occurred()) SWIG_fail; | |
28142 | } | |
28143 | Py_INCREF(Py_None); resultobj = Py_None; | |
28144 | { | |
28145 | if (temp2) | |
28146 | delete arg2; | |
28147 | } | |
28148 | return resultobj; | |
28149 | fail: | |
28150 | { | |
28151 | if (temp2) | |
28152 | delete arg2; | |
28153 | } | |
28154 | return NULL; | |
28155 | } | |
28156 | ||
28157 | ||
28158 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28159 | PyObject *resultobj; | |
28160 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28161 | bool arg2 ; | |
28162 | PyObject * obj0 = 0 ; | |
28163 | PyObject * obj1 = 0 ; | |
28164 | char *kwnames[] = { | |
28165 | (char *) "self",(char *) "show", NULL | |
28166 | }; | |
28167 | ||
28168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28171 | arg2 = (bool) SWIG_AsBool(obj1); | |
28172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28173 | { |
28174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28175 | (arg1)->ShowHidden(arg2); | |
28176 | ||
28177 | wxPyEndAllowThreads(__tstate); | |
28178 | if (PyErr_Occurred()) SWIG_fail; | |
28179 | } | |
28180 | Py_INCREF(Py_None); resultobj = Py_None; | |
28181 | return resultobj; | |
28182 | fail: | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
28187 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28188 | PyObject *resultobj; | |
28189 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28190 | bool result; | |
28191 | PyObject * obj0 = 0 ; | |
28192 | char *kwnames[] = { | |
28193 | (char *) "self", NULL | |
28194 | }; | |
28195 | ||
28196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28199 | { |
28200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28201 | result = (bool)(arg1)->GetShowHidden(); | |
28202 | ||
28203 | wxPyEndAllowThreads(__tstate); | |
28204 | if (PyErr_Occurred()) SWIG_fail; | |
28205 | } | |
4f89f6a3 RD |
28206 | { |
28207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28208 | } | |
d14a1e28 RD |
28209 | return resultobj; |
28210 | fail: | |
28211 | return NULL; | |
28212 | } | |
28213 | ||
28214 | ||
28215 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28216 | PyObject *resultobj; | |
28217 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28218 | wxString result; | |
28219 | PyObject * obj0 = 0 ; | |
28220 | char *kwnames[] = { | |
28221 | (char *) "self", NULL | |
28222 | }; | |
28223 | ||
28224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28227 | { |
28228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28229 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28230 | ||
28231 | wxPyEndAllowThreads(__tstate); | |
28232 | if (PyErr_Occurred()) SWIG_fail; | |
28233 | } | |
28234 | { | |
28235 | #if wxUSE_UNICODE | |
28236 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28237 | #else | |
28238 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28239 | #endif | |
28240 | } | |
28241 | return resultobj; | |
28242 | fail: | |
28243 | return NULL; | |
28244 | } | |
28245 | ||
28246 | ||
28247 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28248 | PyObject *resultobj; | |
28249 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28250 | wxString *arg2 = 0 ; | |
e811c8ce | 28251 | bool temp2 = False ; |
d14a1e28 RD |
28252 | PyObject * obj0 = 0 ; |
28253 | PyObject * obj1 = 0 ; | |
28254 | char *kwnames[] = { | |
28255 | (char *) "self",(char *) "filter", NULL | |
28256 | }; | |
28257 | ||
28258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28261 | { |
28262 | arg2 = wxString_in_helper(obj1); | |
28263 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28264 | temp2 = True; |
d14a1e28 RD |
28265 | } |
28266 | { | |
28267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28268 | (arg1)->SetFilter((wxString const &)*arg2); | |
28269 | ||
28270 | wxPyEndAllowThreads(__tstate); | |
28271 | if (PyErr_Occurred()) SWIG_fail; | |
28272 | } | |
28273 | Py_INCREF(Py_None); resultobj = Py_None; | |
28274 | { | |
28275 | if (temp2) | |
28276 | delete arg2; | |
28277 | } | |
28278 | return resultobj; | |
28279 | fail: | |
28280 | { | |
28281 | if (temp2) | |
28282 | delete arg2; | |
28283 | } | |
28284 | return NULL; | |
28285 | } | |
28286 | ||
28287 | ||
28288 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28289 | PyObject *resultobj; | |
28290 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28291 | int result; | |
28292 | PyObject * obj0 = 0 ; | |
28293 | char *kwnames[] = { | |
28294 | (char *) "self", NULL | |
28295 | }; | |
28296 | ||
28297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28300 | { |
28301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28302 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28303 | ||
28304 | wxPyEndAllowThreads(__tstate); | |
28305 | if (PyErr_Occurred()) SWIG_fail; | |
28306 | } | |
15afbcd0 | 28307 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
28308 | return resultobj; |
28309 | fail: | |
28310 | return NULL; | |
28311 | } | |
28312 | ||
28313 | ||
28314 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28315 | PyObject *resultobj; | |
28316 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28317 | int arg2 ; | |
28318 | PyObject * obj0 = 0 ; | |
994141e6 | 28319 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28320 | char *kwnames[] = { |
28321 | (char *) "self",(char *) "n", NULL | |
28322 | }; | |
28323 | ||
994141e6 | 28324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28327 | arg2 = (int) SWIG_AsInt(obj1); | |
28328 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28329 | { |
28330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28331 | (arg1)->SetFilterIndex(arg2); | |
28332 | ||
28333 | wxPyEndAllowThreads(__tstate); | |
28334 | if (PyErr_Occurred()) SWIG_fail; | |
28335 | } | |
28336 | Py_INCREF(Py_None); resultobj = Py_None; | |
28337 | return resultobj; | |
28338 | fail: | |
28339 | return NULL; | |
28340 | } | |
28341 | ||
28342 | ||
28343 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28344 | PyObject *resultobj; | |
28345 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28346 | wxTreeItemId result; | |
28347 | PyObject * obj0 = 0 ; | |
28348 | char *kwnames[] = { | |
28349 | (char *) "self", NULL | |
28350 | }; | |
28351 | ||
28352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28355 | { |
28356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28357 | result = (arg1)->GetRootId(); | |
28358 | ||
28359 | wxPyEndAllowThreads(__tstate); | |
28360 | if (PyErr_Occurred()) SWIG_fail; | |
28361 | } | |
28362 | { | |
28363 | wxTreeItemId * resultptr; | |
28364 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28365 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28366 | } |
28367 | return resultobj; | |
28368 | fail: | |
28369 | return NULL; | |
28370 | } | |
28371 | ||
28372 | ||
28373 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28374 | PyObject *resultobj; | |
28375 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 28376 | wxPyTreeCtrl *result; |
d14a1e28 RD |
28377 | PyObject * obj0 = 0 ; |
28378 | char *kwnames[] = { | |
28379 | (char *) "self", NULL | |
28380 | }; | |
28381 | ||
28382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28385 | { |
28386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 28387 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
28388 | |
28389 | wxPyEndAllowThreads(__tstate); | |
28390 | if (PyErr_Occurred()) SWIG_fail; | |
28391 | } | |
28392 | { | |
28393 | resultobj = wxPyMake_wxObject(result); | |
28394 | } | |
28395 | return resultobj; | |
28396 | fail: | |
28397 | return NULL; | |
28398 | } | |
28399 | ||
28400 | ||
28401 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28402 | PyObject *resultobj; | |
28403 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28404 | wxDirFilterListCtrl *result; | |
28405 | PyObject * obj0 = 0 ; | |
28406 | char *kwnames[] = { | |
28407 | (char *) "self", NULL | |
28408 | }; | |
28409 | ||
28410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28413 | { |
28414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28415 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28416 | ||
28417 | wxPyEndAllowThreads(__tstate); | |
28418 | if (PyErr_Occurred()) SWIG_fail; | |
28419 | } | |
15afbcd0 | 28420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
28421 | return resultobj; |
28422 | fail: | |
28423 | return NULL; | |
28424 | } | |
28425 | ||
28426 | ||
28427 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28428 | PyObject *resultobj; | |
28429 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28430 | wxTreeItemId arg2 ; | |
28431 | wxString *arg3 = 0 ; | |
28432 | bool *arg4 = 0 ; | |
28433 | wxTreeItemId result; | |
28434 | wxTreeItemId *argp2 ; | |
e811c8ce | 28435 | bool temp3 = False ; |
d14a1e28 RD |
28436 | bool temp4 ; |
28437 | PyObject * obj0 = 0 ; | |
28438 | PyObject * obj1 = 0 ; | |
28439 | PyObject * obj2 = 0 ; | |
28440 | char *kwnames[] = { | |
28441 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28442 | }; | |
28443 | ||
28444 | arg4 = &temp4; | |
28445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28448 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28449 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28450 | arg2 = *argp2; | |
d14a1e28 RD |
28451 | { |
28452 | arg3 = wxString_in_helper(obj2); | |
28453 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28454 | temp3 = True; |
d14a1e28 RD |
28455 | } |
28456 | { | |
28457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28458 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28459 | ||
28460 | wxPyEndAllowThreads(__tstate); | |
28461 | if (PyErr_Occurred()) SWIG_fail; | |
28462 | } | |
28463 | { | |
28464 | wxTreeItemId * resultptr; | |
28465 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28467 | } |
28468 | { | |
28469 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28470 | resultobj = t_output_helper(resultobj,o); | |
28471 | } | |
28472 | { | |
28473 | if (temp3) | |
28474 | delete arg3; | |
28475 | } | |
28476 | return resultobj; | |
28477 | fail: | |
28478 | { | |
28479 | if (temp3) | |
28480 | delete arg3; | |
28481 | } | |
28482 | return NULL; | |
28483 | } | |
28484 | ||
28485 | ||
28486 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28487 | PyObject *resultobj; | |
28488 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28489 | PyObject * obj0 = 0 ; | |
28490 | char *kwnames[] = { | |
28491 | (char *) "self", NULL | |
28492 | }; | |
28493 | ||
28494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28497 | { |
28498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28499 | (arg1)->DoResize(); | |
28500 | ||
28501 | wxPyEndAllowThreads(__tstate); | |
28502 | if (PyErr_Occurred()) SWIG_fail; | |
28503 | } | |
28504 | Py_INCREF(Py_None); resultobj = Py_None; | |
28505 | return resultobj; | |
28506 | fail: | |
28507 | return NULL; | |
28508 | } | |
28509 | ||
28510 | ||
28511 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28512 | PyObject *resultobj; | |
28513 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28514 | PyObject * obj0 = 0 ; | |
28515 | char *kwnames[] = { | |
28516 | (char *) "self", NULL | |
28517 | }; | |
28518 | ||
28519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28522 | { |
28523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28524 | (arg1)->ReCreateTree(); | |
28525 | ||
28526 | wxPyEndAllowThreads(__tstate); | |
28527 | if (PyErr_Occurred()) SWIG_fail; | |
28528 | } | |
28529 | Py_INCREF(Py_None); resultobj = Py_None; | |
28530 | return resultobj; | |
28531 | fail: | |
28532 | return NULL; | |
28533 | } | |
28534 | ||
28535 | ||
28536 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28537 | PyObject *obj; | |
28538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28539 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28540 | Py_INCREF(obj); | |
28541 | return Py_BuildValue((char *)""); | |
28542 | } | |
28543 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28544 | PyObject *resultobj; | |
28545 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28546 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28547 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28548 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28549 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28550 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28551 | long arg5 = (long) 0 ; | |
28552 | wxDirFilterListCtrl *result; | |
28553 | wxPoint temp3 ; | |
28554 | wxSize temp4 ; | |
28555 | PyObject * obj0 = 0 ; | |
994141e6 | 28556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28557 | PyObject * obj2 = 0 ; |
28558 | PyObject * obj3 = 0 ; | |
994141e6 | 28559 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28560 | char *kwnames[] = { |
28561 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28562 | }; | |
28563 | ||
994141e6 | 28564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28567 | if (obj1) { |
15afbcd0 RD |
28568 | arg2 = (int const) SWIG_AsInt(obj1); |
28569 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28570 | } |
d14a1e28 RD |
28571 | if (obj2) { |
28572 | { | |
28573 | arg3 = &temp3; | |
28574 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28575 | } | |
28576 | } | |
28577 | if (obj3) { | |
28578 | { | |
28579 | arg4 = &temp4; | |
28580 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28581 | } | |
28582 | } | |
994141e6 | 28583 | if (obj4) { |
15afbcd0 RD |
28584 | arg5 = (long) SWIG_AsLong(obj4); |
28585 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28586 | } |
d14a1e28 RD |
28587 | { |
28588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28589 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28590 | ||
28591 | wxPyEndAllowThreads(__tstate); | |
28592 | if (PyErr_Occurred()) SWIG_fail; | |
28593 | } | |
15afbcd0 | 28594 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28595 | return resultobj; |
28596 | fail: | |
28597 | return NULL; | |
28598 | } | |
28599 | ||
28600 | ||
28601 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28602 | PyObject *resultobj; | |
28603 | wxDirFilterListCtrl *result; | |
28604 | char *kwnames[] = { | |
28605 | NULL | |
28606 | }; | |
28607 | ||
28608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28609 | { | |
28610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28611 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28612 | ||
28613 | wxPyEndAllowThreads(__tstate); | |
28614 | if (PyErr_Occurred()) SWIG_fail; | |
28615 | } | |
15afbcd0 | 28616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28617 | return resultobj; |
28618 | fail: | |
28619 | return NULL; | |
28620 | } | |
28621 | ||
28622 | ||
28623 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28624 | PyObject *resultobj; | |
28625 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28626 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28627 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28628 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28629 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28630 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28631 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28632 | long arg6 = (long) 0 ; | |
28633 | bool result; | |
28634 | wxPoint temp4 ; | |
28635 | wxSize temp5 ; | |
28636 | PyObject * obj0 = 0 ; | |
28637 | PyObject * obj1 = 0 ; | |
994141e6 | 28638 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28639 | PyObject * obj3 = 0 ; |
28640 | PyObject * obj4 = 0 ; | |
994141e6 | 28641 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28642 | char *kwnames[] = { |
28643 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28644 | }; | |
28645 | ||
994141e6 | 28646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28651 | if (obj2) { |
15afbcd0 RD |
28652 | arg3 = (int const) SWIG_AsInt(obj2); |
28653 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28654 | } |
d14a1e28 RD |
28655 | if (obj3) { |
28656 | { | |
28657 | arg4 = &temp4; | |
28658 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28659 | } | |
28660 | } | |
28661 | if (obj4) { | |
28662 | { | |
28663 | arg5 = &temp5; | |
28664 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28665 | } | |
28666 | } | |
994141e6 | 28667 | if (obj5) { |
15afbcd0 RD |
28668 | arg6 = (long) SWIG_AsLong(obj5); |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28670 | } |
d14a1e28 RD |
28671 | { |
28672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28673 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28674 | ||
28675 | wxPyEndAllowThreads(__tstate); | |
28676 | if (PyErr_Occurred()) SWIG_fail; | |
28677 | } | |
4f89f6a3 RD |
28678 | { |
28679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28680 | } | |
d14a1e28 RD |
28681 | return resultobj; |
28682 | fail: | |
28683 | return NULL; | |
28684 | } | |
28685 | ||
28686 | ||
28687 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28688 | PyObject *resultobj; | |
28689 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28690 | wxString *arg2 = 0 ; | |
28691 | int arg3 ; | |
e811c8ce | 28692 | bool temp2 = False ; |
d14a1e28 RD |
28693 | PyObject * obj0 = 0 ; |
28694 | PyObject * obj1 = 0 ; | |
994141e6 | 28695 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28696 | char *kwnames[] = { |
28697 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28698 | }; | |
28699 | ||
994141e6 | 28700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
28701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28703 | { |
28704 | arg2 = wxString_in_helper(obj1); | |
28705 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28706 | temp2 = True; |
d14a1e28 | 28707 | } |
15afbcd0 RD |
28708 | arg3 = (int) SWIG_AsInt(obj2); |
28709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28710 | { |
28711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28712 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28713 | ||
28714 | wxPyEndAllowThreads(__tstate); | |
28715 | if (PyErr_Occurred()) SWIG_fail; | |
28716 | } | |
28717 | Py_INCREF(Py_None); resultobj = Py_None; | |
28718 | { | |
28719 | if (temp2) | |
28720 | delete arg2; | |
28721 | } | |
28722 | return resultobj; | |
28723 | fail: | |
28724 | { | |
28725 | if (temp2) | |
28726 | delete arg2; | |
28727 | } | |
28728 | return NULL; | |
28729 | } | |
28730 | ||
28731 | ||
28732 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28733 | PyObject *obj; | |
28734 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28735 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28736 | Py_INCREF(obj); | |
28737 | return Py_BuildValue((char *)""); | |
28738 | } | |
28739 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28740 | PyObject *resultobj; | |
28741 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 28742 | int arg2 ; |
d14a1e28 RD |
28743 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28744 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28745 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28746 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28747 | long arg5 = (long) 0 ; | |
28748 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28749 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28750 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28751 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28752 | wxPyControl *result; | |
28753 | wxPoint temp3 ; | |
28754 | wxSize temp4 ; | |
e811c8ce | 28755 | bool temp7 = False ; |
d14a1e28 | 28756 | PyObject * obj0 = 0 ; |
994141e6 | 28757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28758 | PyObject * obj2 = 0 ; |
28759 | PyObject * obj3 = 0 ; | |
994141e6 | 28760 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28761 | PyObject * obj5 = 0 ; |
28762 | PyObject * obj6 = 0 ; | |
28763 | char *kwnames[] = { | |
28764 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28765 | }; | |
28766 | ||
994141e6 | 28767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
28768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28770 | arg2 = (int const) SWIG_AsInt(obj1); | |
28771 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28772 | if (obj2) { |
28773 | { | |
28774 | arg3 = &temp3; | |
28775 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28776 | } | |
28777 | } | |
28778 | if (obj3) { | |
28779 | { | |
28780 | arg4 = &temp4; | |
28781 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28782 | } | |
28783 | } | |
994141e6 | 28784 | if (obj4) { |
15afbcd0 RD |
28785 | arg5 = (long) SWIG_AsLong(obj4); |
28786 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28787 | } |
d14a1e28 | 28788 | if (obj5) { |
15afbcd0 RD |
28789 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
28790 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28791 | SWIG_fail; | |
d14a1e28 | 28792 | if (arg6 == NULL) { |
15afbcd0 RD |
28793 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28794 | SWIG_fail; | |
d14a1e28 RD |
28795 | } |
28796 | } | |
28797 | if (obj6) { | |
28798 | { | |
28799 | arg7 = wxString_in_helper(obj6); | |
28800 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 28801 | temp7 = True; |
d14a1e28 RD |
28802 | } |
28803 | } | |
28804 | { | |
28805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28806 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28807 | ||
28808 | wxPyEndAllowThreads(__tstate); | |
28809 | if (PyErr_Occurred()) SWIG_fail; | |
28810 | } | |
15afbcd0 | 28811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
28812 | { |
28813 | if (temp7) | |
28814 | delete arg7; | |
28815 | } | |
28816 | return resultobj; | |
28817 | fail: | |
28818 | { | |
28819 | if (temp7) | |
28820 | delete arg7; | |
28821 | } | |
28822 | return NULL; | |
28823 | } | |
28824 | ||
28825 | ||
1cb4a8aa RD |
28826 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
28827 | PyObject *resultobj; | |
28828 | wxPyControl *result; | |
28829 | char *kwnames[] = { | |
28830 | NULL | |
28831 | }; | |
28832 | ||
28833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
28834 | { | |
28835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28836 | result = (wxPyControl *)new wxPyControl(); | |
28837 | ||
28838 | wxPyEndAllowThreads(__tstate); | |
28839 | if (PyErr_Occurred()) SWIG_fail; | |
28840 | } | |
28841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28842 | return resultobj; | |
28843 | fail: | |
28844 | return NULL; | |
28845 | } | |
28846 | ||
28847 | ||
d14a1e28 RD |
28848 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
28849 | PyObject *resultobj; | |
28850 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28851 | PyObject *arg2 = (PyObject *) 0 ; | |
28852 | PyObject *arg3 = (PyObject *) 0 ; | |
28853 | PyObject * obj0 = 0 ; | |
28854 | PyObject * obj1 = 0 ; | |
28855 | PyObject * obj2 = 0 ; | |
28856 | char *kwnames[] = { | |
28857 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28858 | }; | |
28859 | ||
28860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28863 | arg2 = obj1; |
28864 | arg3 = obj2; | |
28865 | { | |
28866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28867 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28868 | ||
28869 | wxPyEndAllowThreads(__tstate); | |
28870 | if (PyErr_Occurred()) SWIG_fail; | |
28871 | } | |
28872 | Py_INCREF(Py_None); resultobj = Py_None; | |
28873 | return resultobj; | |
28874 | fail: | |
28875 | return NULL; | |
28876 | } | |
28877 | ||
28878 | ||
db3e571a RD |
28879 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
28880 | PyObject *resultobj; | |
28881 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28882 | wxSize *arg2 = 0 ; | |
28883 | wxSize temp2 ; | |
28884 | PyObject * obj0 = 0 ; | |
28885 | PyObject * obj1 = 0 ; | |
28886 | char *kwnames[] = { | |
28887 | (char *) "self",(char *) "size", NULL | |
28888 | }; | |
28889 | ||
28890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
28891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28893 | { | |
28894 | arg2 = &temp2; | |
28895 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28896 | } | |
28897 | { | |
28898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28899 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
28900 | ||
28901 | wxPyEndAllowThreads(__tstate); | |
28902 | if (PyErr_Occurred()) SWIG_fail; | |
28903 | } | |
28904 | Py_INCREF(Py_None); resultobj = Py_None; | |
28905 | return resultobj; | |
28906 | fail: | |
28907 | return NULL; | |
28908 | } | |
28909 | ||
28910 | ||
d14a1e28 RD |
28911 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
28912 | PyObject *resultobj; | |
28913 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28914 | int arg2 ; | |
28915 | int arg3 ; | |
28916 | int arg4 ; | |
28917 | int arg5 ; | |
28918 | PyObject * obj0 = 0 ; | |
994141e6 RD |
28919 | PyObject * obj1 = 0 ; |
28920 | PyObject * obj2 = 0 ; | |
28921 | PyObject * obj3 = 0 ; | |
28922 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
28923 | char *kwnames[] = { |
28924 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
28925 | }; | |
28926 | ||
994141e6 | 28927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28930 | arg2 = (int) SWIG_AsInt(obj1); | |
28931 | if (PyErr_Occurred()) SWIG_fail; | |
28932 | arg3 = (int) SWIG_AsInt(obj2); | |
28933 | if (PyErr_Occurred()) SWIG_fail; | |
28934 | arg4 = (int) SWIG_AsInt(obj3); | |
28935 | if (PyErr_Occurred()) SWIG_fail; | |
28936 | arg5 = (int) SWIG_AsInt(obj4); | |
28937 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28938 | { |
28939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28940 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
28941 | ||
28942 | wxPyEndAllowThreads(__tstate); | |
28943 | if (PyErr_Occurred()) SWIG_fail; | |
28944 | } | |
28945 | Py_INCREF(Py_None); resultobj = Py_None; | |
28946 | return resultobj; | |
28947 | fail: | |
28948 | return NULL; | |
28949 | } | |
28950 | ||
28951 | ||
28952 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28953 | PyObject *resultobj; | |
28954 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28955 | int arg2 ; | |
28956 | int arg3 ; | |
28957 | int arg4 ; | |
28958 | int arg5 ; | |
28959 | int arg6 = (int) wxSIZE_AUTO ; | |
28960 | PyObject * obj0 = 0 ; | |
994141e6 RD |
28961 | PyObject * obj1 = 0 ; |
28962 | PyObject * obj2 = 0 ; | |
28963 | PyObject * obj3 = 0 ; | |
28964 | PyObject * obj4 = 0 ; | |
28965 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
28966 | char *kwnames[] = { |
28967 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
28968 | }; | |
28969 | ||
994141e6 | 28970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28973 | arg2 = (int) SWIG_AsInt(obj1); | |
28974 | if (PyErr_Occurred()) SWIG_fail; | |
28975 | arg3 = (int) SWIG_AsInt(obj2); | |
28976 | if (PyErr_Occurred()) SWIG_fail; | |
28977 | arg4 = (int) SWIG_AsInt(obj3); | |
28978 | if (PyErr_Occurred()) SWIG_fail; | |
28979 | arg5 = (int) SWIG_AsInt(obj4); | |
28980 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28981 | if (obj5) { |
15afbcd0 RD |
28982 | arg6 = (int) SWIG_AsInt(obj5); |
28983 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28984 | } |
d14a1e28 RD |
28985 | { |
28986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28987 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
28988 | ||
28989 | wxPyEndAllowThreads(__tstate); | |
28990 | if (PyErr_Occurred()) SWIG_fail; | |
28991 | } | |
28992 | Py_INCREF(Py_None); resultobj = Py_None; | |
28993 | return resultobj; | |
28994 | fail: | |
28995 | return NULL; | |
28996 | } | |
28997 | ||
28998 | ||
28999 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29000 | PyObject *resultobj; | |
29001 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29002 | int arg2 ; | |
29003 | int arg3 ; | |
29004 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29005 | PyObject * obj1 = 0 ; |
29006 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29007 | char *kwnames[] = { |
29008 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29009 | }; | |
29010 | ||
994141e6 | 29011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29014 | arg2 = (int) SWIG_AsInt(obj1); | |
29015 | if (PyErr_Occurred()) SWIG_fail; | |
29016 | arg3 = (int) SWIG_AsInt(obj2); | |
29017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29018 | { |
29019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29020 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29021 | ||
29022 | wxPyEndAllowThreads(__tstate); | |
29023 | if (PyErr_Occurred()) SWIG_fail; | |
29024 | } | |
29025 | Py_INCREF(Py_None); resultobj = Py_None; | |
29026 | return resultobj; | |
29027 | fail: | |
29028 | return NULL; | |
29029 | } | |
29030 | ||
29031 | ||
29032 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29033 | PyObject *resultobj; | |
29034 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29035 | int arg2 ; | |
29036 | int arg3 ; | |
29037 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29038 | PyObject * obj1 = 0 ; |
29039 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29040 | char *kwnames[] = { |
29041 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29042 | }; | |
29043 | ||
994141e6 | 29044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29047 | arg2 = (int) SWIG_AsInt(obj1); | |
29048 | if (PyErr_Occurred()) SWIG_fail; | |
29049 | arg3 = (int) SWIG_AsInt(obj2); | |
29050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29051 | { |
29052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29053 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29054 | ||
29055 | wxPyEndAllowThreads(__tstate); | |
29056 | if (PyErr_Occurred()) SWIG_fail; | |
29057 | } | |
29058 | Py_INCREF(Py_None); resultobj = Py_None; | |
29059 | return resultobj; | |
29060 | fail: | |
29061 | return NULL; | |
29062 | } | |
29063 | ||
29064 | ||
29065 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29066 | PyObject *resultobj; | |
29067 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29068 | int *arg2 = (int *) 0 ; | |
29069 | int *arg3 = (int *) 0 ; | |
29070 | int temp2 ; | |
29071 | int temp3 ; | |
29072 | PyObject * obj0 = 0 ; | |
29073 | char *kwnames[] = { | |
29074 | (char *) "self", NULL | |
29075 | }; | |
29076 | ||
29077 | arg2 = &temp2; | |
29078 | arg3 = &temp3; | |
29079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29082 | { |
29083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29084 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29085 | ||
29086 | wxPyEndAllowThreads(__tstate); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | } | |
29089 | Py_INCREF(Py_None); resultobj = Py_None; | |
29090 | { | |
29091 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29092 | resultobj = t_output_helper(resultobj,o); | |
29093 | } | |
29094 | { | |
29095 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29096 | resultobj = t_output_helper(resultobj,o); | |
29097 | } | |
29098 | return resultobj; | |
29099 | fail: | |
29100 | return NULL; | |
29101 | } | |
29102 | ||
29103 | ||
29104 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29105 | PyObject *resultobj; | |
29106 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29107 | int *arg2 = (int *) 0 ; | |
29108 | int *arg3 = (int *) 0 ; | |
29109 | int temp2 ; | |
29110 | int temp3 ; | |
29111 | PyObject * obj0 = 0 ; | |
29112 | char *kwnames[] = { | |
29113 | (char *) "self", NULL | |
29114 | }; | |
29115 | ||
29116 | arg2 = &temp2; | |
29117 | arg3 = &temp3; | |
29118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29121 | { |
29122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29123 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29124 | ||
29125 | wxPyEndAllowThreads(__tstate); | |
29126 | if (PyErr_Occurred()) SWIG_fail; | |
29127 | } | |
29128 | Py_INCREF(Py_None); resultobj = Py_None; | |
29129 | { | |
29130 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29131 | resultobj = t_output_helper(resultobj,o); | |
29132 | } | |
29133 | { | |
29134 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29135 | resultobj = t_output_helper(resultobj,o); | |
29136 | } | |
29137 | return resultobj; | |
29138 | fail: | |
29139 | return NULL; | |
29140 | } | |
29141 | ||
29142 | ||
29143 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29144 | PyObject *resultobj; | |
29145 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29146 | int *arg2 = (int *) 0 ; | |
29147 | int *arg3 = (int *) 0 ; | |
29148 | int temp2 ; | |
29149 | int temp3 ; | |
29150 | PyObject * obj0 = 0 ; | |
29151 | char *kwnames[] = { | |
29152 | (char *) "self", NULL | |
29153 | }; | |
29154 | ||
29155 | arg2 = &temp2; | |
29156 | arg3 = &temp3; | |
29157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29160 | { |
29161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29162 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29163 | ||
29164 | wxPyEndAllowThreads(__tstate); | |
29165 | if (PyErr_Occurred()) SWIG_fail; | |
29166 | } | |
29167 | Py_INCREF(Py_None); resultobj = Py_None; | |
29168 | { | |
29169 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29170 | resultobj = t_output_helper(resultobj,o); | |
29171 | } | |
29172 | { | |
29173 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29174 | resultobj = t_output_helper(resultobj,o); | |
29175 | } | |
29176 | return resultobj; | |
29177 | fail: | |
29178 | return NULL; | |
29179 | } | |
29180 | ||
29181 | ||
29182 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29183 | PyObject *resultobj; | |
29184 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29185 | wxSize result; | |
29186 | PyObject * obj0 = 0 ; | |
29187 | char *kwnames[] = { | |
29188 | (char *) "self", NULL | |
29189 | }; | |
29190 | ||
29191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29194 | { |
29195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29196 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29197 | ||
29198 | wxPyEndAllowThreads(__tstate); | |
29199 | if (PyErr_Occurred()) SWIG_fail; | |
29200 | } | |
29201 | { | |
29202 | wxSize * resultptr; | |
29203 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29205 | } |
29206 | return resultobj; | |
29207 | fail: | |
29208 | return NULL; | |
29209 | } | |
29210 | ||
29211 | ||
29212 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29213 | PyObject *resultobj; | |
29214 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29215 | wxSize result; | |
29216 | PyObject * obj0 = 0 ; | |
29217 | char *kwnames[] = { | |
29218 | (char *) "self", NULL | |
29219 | }; | |
29220 | ||
29221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29224 | { |
29225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29226 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29227 | ||
29228 | wxPyEndAllowThreads(__tstate); | |
29229 | if (PyErr_Occurred()) SWIG_fail; | |
29230 | } | |
29231 | { | |
29232 | wxSize * resultptr; | |
29233 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29235 | } |
29236 | return resultobj; | |
29237 | fail: | |
29238 | return NULL; | |
29239 | } | |
29240 | ||
29241 | ||
29242 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29243 | PyObject *resultobj; | |
29244 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29245 | PyObject * obj0 = 0 ; | |
29246 | char *kwnames[] = { | |
29247 | (char *) "self", NULL | |
29248 | }; | |
29249 | ||
29250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29253 | { |
29254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29255 | (arg1)->base_InitDialog(); | |
29256 | ||
29257 | wxPyEndAllowThreads(__tstate); | |
29258 | if (PyErr_Occurred()) SWIG_fail; | |
29259 | } | |
29260 | Py_INCREF(Py_None); resultobj = Py_None; | |
29261 | return resultobj; | |
29262 | fail: | |
29263 | return NULL; | |
29264 | } | |
29265 | ||
29266 | ||
29267 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29268 | PyObject *resultobj; | |
29269 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29270 | bool result; | |
29271 | PyObject * obj0 = 0 ; | |
29272 | char *kwnames[] = { | |
29273 | (char *) "self", NULL | |
29274 | }; | |
29275 | ||
29276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29279 | { |
29280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29281 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29282 | ||
29283 | wxPyEndAllowThreads(__tstate); | |
29284 | if (PyErr_Occurred()) SWIG_fail; | |
29285 | } | |
4f89f6a3 RD |
29286 | { |
29287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29288 | } | |
d14a1e28 RD |
29289 | return resultobj; |
29290 | fail: | |
29291 | return NULL; | |
29292 | } | |
29293 | ||
29294 | ||
29295 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29296 | PyObject *resultobj; | |
29297 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29298 | bool result; | |
29299 | PyObject * obj0 = 0 ; | |
29300 | char *kwnames[] = { | |
29301 | (char *) "self", NULL | |
29302 | }; | |
29303 | ||
29304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29307 | { |
29308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29309 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29310 | ||
29311 | wxPyEndAllowThreads(__tstate); | |
29312 | if (PyErr_Occurred()) SWIG_fail; | |
29313 | } | |
4f89f6a3 RD |
29314 | { |
29315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29316 | } | |
d14a1e28 RD |
29317 | return resultobj; |
29318 | fail: | |
29319 | return NULL; | |
29320 | } | |
29321 | ||
29322 | ||
29323 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29324 | PyObject *resultobj; | |
29325 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29326 | bool result; | |
29327 | PyObject * obj0 = 0 ; | |
29328 | char *kwnames[] = { | |
29329 | (char *) "self", NULL | |
29330 | }; | |
29331 | ||
29332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29335 | { |
29336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29337 | result = (bool)(arg1)->base_Validate(); | |
29338 | ||
29339 | wxPyEndAllowThreads(__tstate); | |
29340 | if (PyErr_Occurred()) SWIG_fail; | |
29341 | } | |
4f89f6a3 RD |
29342 | { |
29343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29344 | } | |
d14a1e28 RD |
29345 | return resultobj; |
29346 | fail: | |
29347 | return NULL; | |
29348 | } | |
29349 | ||
29350 | ||
29351 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29352 | PyObject *resultobj; | |
29353 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29354 | bool result; | |
29355 | PyObject * obj0 = 0 ; | |
29356 | char *kwnames[] = { | |
29357 | (char *) "self", NULL | |
29358 | }; | |
29359 | ||
29360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29363 | { |
29364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29365 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29366 | ||
29367 | wxPyEndAllowThreads(__tstate); | |
29368 | if (PyErr_Occurred()) SWIG_fail; | |
29369 | } | |
4f89f6a3 RD |
29370 | { |
29371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29372 | } | |
d14a1e28 RD |
29373 | return resultobj; |
29374 | fail: | |
29375 | return NULL; | |
29376 | } | |
29377 | ||
29378 | ||
29379 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29380 | PyObject *resultobj; | |
29381 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29382 | bool result; | |
29383 | PyObject * obj0 = 0 ; | |
29384 | char *kwnames[] = { | |
29385 | (char *) "self", NULL | |
29386 | }; | |
29387 | ||
29388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29391 | { |
29392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29393 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29394 | ||
29395 | wxPyEndAllowThreads(__tstate); | |
29396 | if (PyErr_Occurred()) SWIG_fail; | |
29397 | } | |
4f89f6a3 RD |
29398 | { |
29399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29400 | } | |
d14a1e28 RD |
29401 | return resultobj; |
29402 | fail: | |
29403 | return NULL; | |
29404 | } | |
29405 | ||
29406 | ||
29407 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29408 | PyObject *resultobj; | |
29409 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29410 | wxSize result; | |
29411 | PyObject * obj0 = 0 ; | |
29412 | char *kwnames[] = { | |
29413 | (char *) "self", NULL | |
29414 | }; | |
29415 | ||
29416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29419 | { |
29420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29421 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29422 | ||
29423 | wxPyEndAllowThreads(__tstate); | |
29424 | if (PyErr_Occurred()) SWIG_fail; | |
29425 | } | |
29426 | { | |
29427 | wxSize * resultptr; | |
29428 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29429 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29430 | } |
29431 | return resultobj; | |
29432 | fail: | |
29433 | return NULL; | |
29434 | } | |
29435 | ||
29436 | ||
29437 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29438 | PyObject *resultobj; | |
29439 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29440 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29441 | PyObject * obj0 = 0 ; | |
29442 | PyObject * obj1 = 0 ; | |
29443 | char *kwnames[] = { | |
29444 | (char *) "self",(char *) "child", NULL | |
29445 | }; | |
29446 | ||
29447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29452 | { |
29453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29454 | (arg1)->base_AddChild(arg2); | |
29455 | ||
29456 | wxPyEndAllowThreads(__tstate); | |
29457 | if (PyErr_Occurred()) SWIG_fail; | |
29458 | } | |
29459 | Py_INCREF(Py_None); resultobj = Py_None; | |
29460 | return resultobj; | |
29461 | fail: | |
29462 | return NULL; | |
29463 | } | |
29464 | ||
29465 | ||
29466 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29467 | PyObject *resultobj; | |
29468 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29469 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29470 | PyObject * obj0 = 0 ; | |
29471 | PyObject * obj1 = 0 ; | |
29472 | char *kwnames[] = { | |
29473 | (char *) "self",(char *) "child", NULL | |
29474 | }; | |
29475 | ||
29476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29481 | { |
29482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29483 | (arg1)->base_RemoveChild(arg2); | |
29484 | ||
29485 | wxPyEndAllowThreads(__tstate); | |
29486 | if (PyErr_Occurred()) SWIG_fail; | |
29487 | } | |
29488 | Py_INCREF(Py_None); resultobj = Py_None; | |
29489 | return resultobj; | |
29490 | fail: | |
29491 | return NULL; | |
29492 | } | |
29493 | ||
29494 | ||
1cb4a8aa RD |
29495 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { |
29496 | PyObject *resultobj; | |
29497 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29498 | bool result; | |
29499 | PyObject * obj0 = 0 ; | |
29500 | char *kwnames[] = { | |
29501 | (char *) "self", NULL | |
29502 | }; | |
29503 | ||
29504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29507 | { | |
29508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 29509 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
29510 | |
29511 | wxPyEndAllowThreads(__tstate); | |
29512 | if (PyErr_Occurred()) SWIG_fail; | |
29513 | } | |
29514 | { | |
29515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29516 | } | |
29517 | return resultobj; | |
29518 | fail: | |
29519 | return NULL; | |
29520 | } | |
29521 | ||
29522 | ||
29523 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29524 | PyObject *resultobj; | |
29525 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29526 | wxColour *arg2 = 0 ; | |
29527 | wxColour temp2 ; | |
29528 | PyObject * obj0 = 0 ; | |
29529 | PyObject * obj1 = 0 ; | |
29530 | char *kwnames[] = { | |
29531 | (char *) "self",(char *) "c", NULL | |
29532 | }; | |
29533 | ||
29534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29537 | { | |
29538 | arg2 = &temp2; | |
29539 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29540 | } | |
29541 | { | |
29542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29543 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29544 | ||
29545 | wxPyEndAllowThreads(__tstate); | |
29546 | if (PyErr_Occurred()) SWIG_fail; | |
29547 | } | |
29548 | Py_INCREF(Py_None); resultobj = Py_None; | |
29549 | return resultobj; | |
29550 | fail: | |
29551 | return NULL; | |
29552 | } | |
29553 | ||
29554 | ||
db3e571a RD |
29555 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
29556 | PyObject *resultobj; | |
29557 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29558 | wxVisualAttributes result; | |
29559 | PyObject * obj0 = 0 ; | |
29560 | char *kwnames[] = { | |
29561 | (char *) "self", NULL | |
29562 | }; | |
29563 | ||
29564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29567 | { | |
29568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29569 | result = (arg1)->base_GetDefaultAttributes(); | |
29570 | ||
29571 | wxPyEndAllowThreads(__tstate); | |
29572 | if (PyErr_Occurred()) SWIG_fail; | |
29573 | } | |
29574 | { | |
29575 | wxVisualAttributes * resultptr; | |
29576 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29577 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29578 | } | |
29579 | return resultobj; | |
29580 | fail: | |
29581 | return NULL; | |
29582 | } | |
29583 | ||
29584 | ||
d14a1e28 RD |
29585 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
29586 | PyObject *obj; | |
29587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29588 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29589 | Py_INCREF(obj); | |
29590 | return Py_BuildValue((char *)""); | |
29591 | } | |
29592 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29593 | PyObject *resultobj; | |
29594 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 29595 | int arg2 = (int) 0 ; |
d14a1e28 RD |
29596 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29597 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29598 | wxHelpEvent *result; | |
29599 | wxPoint temp3 ; | |
994141e6 RD |
29600 | PyObject * obj0 = 0 ; |
29601 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
29602 | PyObject * obj2 = 0 ; |
29603 | char *kwnames[] = { | |
29604 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29605 | }; | |
29606 | ||
994141e6 RD |
29607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
29608 | if (obj0) { | |
15afbcd0 RD |
29609 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
29610 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
29611 | } |
29612 | if (obj1) { | |
15afbcd0 RD |
29613 | arg2 = (int) SWIG_AsInt(obj1); |
29614 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29615 | } |
d14a1e28 RD |
29616 | if (obj2) { |
29617 | { | |
29618 | arg3 = &temp3; | |
29619 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29620 | } | |
29621 | } | |
29622 | { | |
29623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29624 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29625 | ||
29626 | wxPyEndAllowThreads(__tstate); | |
29627 | if (PyErr_Occurred()) SWIG_fail; | |
29628 | } | |
15afbcd0 | 29629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
29630 | return resultobj; |
29631 | fail: | |
29632 | return NULL; | |
29633 | } | |
29634 | ||
29635 | ||
29636 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29637 | PyObject *resultobj; | |
29638 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 29639 | wxPoint result; |
d14a1e28 RD |
29640 | PyObject * obj0 = 0 ; |
29641 | char *kwnames[] = { | |
29642 | (char *) "self", NULL | |
29643 | }; | |
29644 | ||
29645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29648 | { |
29649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 29650 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
29651 | |
29652 | wxPyEndAllowThreads(__tstate); | |
29653 | if (PyErr_Occurred()) SWIG_fail; | |
29654 | } | |
15afbcd0 RD |
29655 | { |
29656 | wxPoint * resultptr; | |
29657 | resultptr = new wxPoint((wxPoint &) result); | |
29658 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29659 | } | |
d14a1e28 RD |
29660 | return resultobj; |
29661 | fail: | |
29662 | return NULL; | |
29663 | } | |
29664 | ||
29665 | ||
29666 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29667 | PyObject *resultobj; | |
29668 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29669 | wxPoint *arg2 = 0 ; | |
29670 | wxPoint temp2 ; | |
29671 | PyObject * obj0 = 0 ; | |
29672 | PyObject * obj1 = 0 ; | |
29673 | char *kwnames[] = { | |
29674 | (char *) "self",(char *) "pos", NULL | |
29675 | }; | |
29676 | ||
29677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29680 | { |
29681 | arg2 = &temp2; | |
29682 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29683 | } | |
29684 | { | |
29685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29686 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
29687 | ||
29688 | wxPyEndAllowThreads(__tstate); | |
29689 | if (PyErr_Occurred()) SWIG_fail; | |
29690 | } | |
29691 | Py_INCREF(Py_None); resultobj = Py_None; | |
29692 | return resultobj; | |
29693 | fail: | |
29694 | return NULL; | |
29695 | } | |
29696 | ||
29697 | ||
29698 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29699 | PyObject *resultobj; | |
29700 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29701 | wxString *result; | |
29702 | PyObject * obj0 = 0 ; | |
29703 | char *kwnames[] = { | |
29704 | (char *) "self", NULL | |
29705 | }; | |
29706 | ||
29707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29710 | { |
29711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29712 | { | |
29713 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29714 | result = (wxString *) &_result_ref; | |
29715 | } | |
29716 | ||
29717 | wxPyEndAllowThreads(__tstate); | |
29718 | if (PyErr_Occurred()) SWIG_fail; | |
29719 | } | |
cc6dd355 RD |
29720 | { |
29721 | #if wxUSE_UNICODE | |
29722 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29723 | #else | |
29724 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29725 | #endif | |
29726 | } | |
d14a1e28 RD |
29727 | return resultobj; |
29728 | fail: | |
29729 | return NULL; | |
29730 | } | |
29731 | ||
29732 | ||
29733 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29734 | PyObject *resultobj; | |
29735 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29736 | wxString *arg2 = 0 ; | |
e811c8ce | 29737 | bool temp2 = False ; |
d14a1e28 RD |
29738 | PyObject * obj0 = 0 ; |
29739 | PyObject * obj1 = 0 ; | |
29740 | char *kwnames[] = { | |
29741 | (char *) "self",(char *) "link", NULL | |
29742 | }; | |
29743 | ||
29744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29747 | { |
29748 | arg2 = wxString_in_helper(obj1); | |
29749 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29750 | temp2 = True; |
d14a1e28 RD |
29751 | } |
29752 | { | |
29753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29754 | (arg1)->SetLink((wxString const &)*arg2); | |
29755 | ||
29756 | wxPyEndAllowThreads(__tstate); | |
29757 | if (PyErr_Occurred()) SWIG_fail; | |
29758 | } | |
29759 | Py_INCREF(Py_None); resultobj = Py_None; | |
29760 | { | |
29761 | if (temp2) | |
29762 | delete arg2; | |
29763 | } | |
29764 | return resultobj; | |
29765 | fail: | |
29766 | { | |
29767 | if (temp2) | |
29768 | delete arg2; | |
29769 | } | |
29770 | return NULL; | |
29771 | } | |
29772 | ||
29773 | ||
29774 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29775 | PyObject *resultobj; | |
29776 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29777 | wxString *result; | |
29778 | PyObject * obj0 = 0 ; | |
29779 | char *kwnames[] = { | |
29780 | (char *) "self", NULL | |
29781 | }; | |
29782 | ||
29783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29786 | { |
29787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29788 | { | |
29789 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29790 | result = (wxString *) &_result_ref; | |
29791 | } | |
29792 | ||
29793 | wxPyEndAllowThreads(__tstate); | |
29794 | if (PyErr_Occurred()) SWIG_fail; | |
29795 | } | |
cc6dd355 RD |
29796 | { |
29797 | #if wxUSE_UNICODE | |
29798 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29799 | #else | |
29800 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29801 | #endif | |
29802 | } | |
d14a1e28 RD |
29803 | return resultobj; |
29804 | fail: | |
29805 | return NULL; | |
29806 | } | |
29807 | ||
29808 | ||
29809 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29810 | PyObject *resultobj; | |
29811 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29812 | wxString *arg2 = 0 ; | |
e811c8ce | 29813 | bool temp2 = False ; |
d14a1e28 RD |
29814 | PyObject * obj0 = 0 ; |
29815 | PyObject * obj1 = 0 ; | |
29816 | char *kwnames[] = { | |
29817 | (char *) "self",(char *) "target", NULL | |
29818 | }; | |
29819 | ||
29820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29823 | { |
29824 | arg2 = wxString_in_helper(obj1); | |
29825 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29826 | temp2 = True; |
d14a1e28 RD |
29827 | } |
29828 | { | |
29829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29830 | (arg1)->SetTarget((wxString const &)*arg2); | |
29831 | ||
29832 | wxPyEndAllowThreads(__tstate); | |
29833 | if (PyErr_Occurred()) SWIG_fail; | |
29834 | } | |
29835 | Py_INCREF(Py_None); resultobj = Py_None; | |
29836 | { | |
29837 | if (temp2) | |
29838 | delete arg2; | |
29839 | } | |
29840 | return resultobj; | |
29841 | fail: | |
29842 | { | |
29843 | if (temp2) | |
29844 | delete arg2; | |
29845 | } | |
29846 | return NULL; | |
29847 | } | |
29848 | ||
29849 | ||
29850 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
29851 | PyObject *obj; | |
29852 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29853 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
29854 | Py_INCREF(obj); | |
29855 | return Py_BuildValue((char *)""); | |
29856 | } | |
29857 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29858 | PyObject *resultobj; | |
29859 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 29860 | bool arg2 = (bool) True ; |
d14a1e28 RD |
29861 | wxContextHelp *result; |
29862 | PyObject * obj0 = 0 ; | |
29863 | PyObject * obj1 = 0 ; | |
29864 | char *kwnames[] = { | |
29865 | (char *) "window",(char *) "doNow", NULL | |
29866 | }; | |
29867 | ||
29868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29869 | if (obj0) { | |
15afbcd0 RD |
29870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29872 | } |
29873 | if (obj1) { | |
15afbcd0 RD |
29874 | arg2 = (bool) SWIG_AsBool(obj1); |
29875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29876 | } |
29877 | { | |
29878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29879 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
29880 | ||
29881 | wxPyEndAllowThreads(__tstate); | |
29882 | if (PyErr_Occurred()) SWIG_fail; | |
29883 | } | |
15afbcd0 | 29884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
29885 | return resultobj; |
29886 | fail: | |
29887 | return NULL; | |
29888 | } | |
29889 | ||
29890 | ||
29891 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29892 | PyObject *resultobj; | |
29893 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29894 | PyObject * obj0 = 0 ; | |
29895 | char *kwnames[] = { | |
29896 | (char *) "self", NULL | |
29897 | }; | |
29898 | ||
29899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29902 | { |
29903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29904 | delete arg1; | |
29905 | ||
29906 | wxPyEndAllowThreads(__tstate); | |
29907 | if (PyErr_Occurred()) SWIG_fail; | |
29908 | } | |
29909 | Py_INCREF(Py_None); resultobj = Py_None; | |
29910 | return resultobj; | |
29911 | fail: | |
29912 | return NULL; | |
29913 | } | |
29914 | ||
29915 | ||
29916 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29917 | PyObject *resultobj; | |
29918 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29919 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29920 | bool result; | |
29921 | PyObject * obj0 = 0 ; | |
29922 | PyObject * obj1 = 0 ; | |
29923 | char *kwnames[] = { | |
29924 | (char *) "self",(char *) "window", NULL | |
29925 | }; | |
29926 | ||
29927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29930 | if (obj1) { |
15afbcd0 RD |
29931 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29933 | } |
29934 | { | |
29935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29936 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
29937 | ||
29938 | wxPyEndAllowThreads(__tstate); | |
29939 | if (PyErr_Occurred()) SWIG_fail; | |
29940 | } | |
4f89f6a3 RD |
29941 | { |
29942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29943 | } | |
d14a1e28 RD |
29944 | return resultobj; |
29945 | fail: | |
29946 | return NULL; | |
29947 | } | |
29948 | ||
29949 | ||
29950 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29951 | PyObject *resultobj; | |
29952 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29953 | bool result; | |
29954 | PyObject * obj0 = 0 ; | |
29955 | char *kwnames[] = { | |
29956 | (char *) "self", NULL | |
29957 | }; | |
29958 | ||
29959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29962 | { |
29963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29964 | result = (bool)(arg1)->EndContextHelp(); | |
29965 | ||
29966 | wxPyEndAllowThreads(__tstate); | |
29967 | if (PyErr_Occurred()) SWIG_fail; | |
29968 | } | |
4f89f6a3 RD |
29969 | { |
29970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29971 | } | |
d14a1e28 RD |
29972 | return resultobj; |
29973 | fail: | |
29974 | return NULL; | |
29975 | } | |
29976 | ||
29977 | ||
29978 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
29979 | PyObject *obj; | |
29980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29981 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
29982 | Py_INCREF(obj); | |
29983 | return Py_BuildValue((char *)""); | |
29984 | } | |
29985 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29986 | PyObject *resultobj; | |
29987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 29988 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
29989 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29990 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29991 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29992 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29993 | long arg5 = (long) wxBU_AUTODRAW ; | |
29994 | wxContextHelpButton *result; | |
29995 | wxPoint temp3 ; | |
29996 | wxSize temp4 ; | |
29997 | PyObject * obj0 = 0 ; | |
994141e6 | 29998 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29999 | PyObject * obj2 = 0 ; |
30000 | PyObject * obj3 = 0 ; | |
994141e6 | 30001 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30002 | char *kwnames[] = { |
30003 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30004 | }; | |
30005 | ||
994141e6 | 30006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 30009 | if (obj1) { |
15afbcd0 RD |
30010 | arg2 = (int) SWIG_AsInt(obj1); |
30011 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30012 | } |
d14a1e28 RD |
30013 | if (obj2) { |
30014 | { | |
30015 | arg3 = &temp3; | |
30016 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30017 | } | |
30018 | } | |
30019 | if (obj3) { | |
30020 | { | |
30021 | arg4 = &temp4; | |
30022 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30023 | } | |
30024 | } | |
994141e6 | 30025 | if (obj4) { |
15afbcd0 RD |
30026 | arg5 = (long) SWIG_AsLong(obj4); |
30027 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30028 | } |
d14a1e28 RD |
30029 | { |
30030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30031 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30032 | ||
30033 | wxPyEndAllowThreads(__tstate); | |
30034 | if (PyErr_Occurred()) SWIG_fail; | |
30035 | } | |
15afbcd0 | 30036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
30037 | return resultobj; |
30038 | fail: | |
30039 | return NULL; | |
30040 | } | |
30041 | ||
30042 | ||
30043 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
30044 | PyObject *obj; | |
30045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30046 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30047 | Py_INCREF(obj); | |
30048 | return Py_BuildValue((char *)""); | |
30049 | } | |
30050 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30051 | PyObject *resultobj; | |
30052 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30053 | wxHelpProvider *result; | |
30054 | PyObject * obj0 = 0 ; | |
30055 | char *kwnames[] = { | |
30056 | (char *) "helpProvider", NULL | |
30057 | }; | |
30058 | ||
30059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30062 | { |
30063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30064 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30065 | ||
30066 | wxPyEndAllowThreads(__tstate); | |
30067 | if (PyErr_Occurred()) SWIG_fail; | |
30068 | } | |
15afbcd0 | 30069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30070 | return resultobj; |
30071 | fail: | |
30072 | return NULL; | |
30073 | } | |
30074 | ||
30075 | ||
30076 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30077 | PyObject *resultobj; | |
30078 | wxHelpProvider *result; | |
30079 | char *kwnames[] = { | |
30080 | NULL | |
30081 | }; | |
30082 | ||
30083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30084 | { | |
30085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30086 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30087 | ||
30088 | wxPyEndAllowThreads(__tstate); | |
30089 | if (PyErr_Occurred()) SWIG_fail; | |
30090 | } | |
15afbcd0 | 30091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30092 | return resultobj; |
30093 | fail: | |
30094 | return NULL; | |
30095 | } | |
30096 | ||
30097 | ||
30098 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30099 | PyObject *resultobj; | |
30100 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30101 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30102 | wxString result; | |
30103 | PyObject * obj0 = 0 ; | |
30104 | PyObject * obj1 = 0 ; | |
30105 | char *kwnames[] = { | |
30106 | (char *) "self",(char *) "window", NULL | |
30107 | }; | |
30108 | ||
30109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30114 | { |
30115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30116 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30117 | ||
30118 | wxPyEndAllowThreads(__tstate); | |
30119 | if (PyErr_Occurred()) SWIG_fail; | |
30120 | } | |
30121 | { | |
30122 | #if wxUSE_UNICODE | |
30123 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30124 | #else | |
30125 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30126 | #endif | |
30127 | } | |
30128 | return resultobj; | |
30129 | fail: | |
30130 | return NULL; | |
30131 | } | |
30132 | ||
30133 | ||
30134 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30135 | PyObject *resultobj; | |
30136 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30137 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30138 | bool result; | |
30139 | PyObject * obj0 = 0 ; | |
30140 | PyObject * obj1 = 0 ; | |
30141 | char *kwnames[] = { | |
30142 | (char *) "self",(char *) "window", NULL | |
30143 | }; | |
30144 | ||
30145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30150 | { |
30151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30152 | result = (bool)(arg1)->ShowHelp(arg2); | |
30153 | ||
30154 | wxPyEndAllowThreads(__tstate); | |
30155 | if (PyErr_Occurred()) SWIG_fail; | |
30156 | } | |
4f89f6a3 RD |
30157 | { |
30158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30159 | } | |
d14a1e28 RD |
30160 | return resultobj; |
30161 | fail: | |
30162 | return NULL; | |
30163 | } | |
30164 | ||
30165 | ||
30166 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30167 | PyObject *resultobj; | |
30168 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30169 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30170 | wxString *arg3 = 0 ; | |
e811c8ce | 30171 | bool temp3 = False ; |
d14a1e28 RD |
30172 | PyObject * obj0 = 0 ; |
30173 | PyObject * obj1 = 0 ; | |
30174 | PyObject * obj2 = 0 ; | |
30175 | char *kwnames[] = { | |
30176 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30177 | }; | |
30178 | ||
30179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30182 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30184 | { |
30185 | arg3 = wxString_in_helper(obj2); | |
30186 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30187 | temp3 = True; |
d14a1e28 RD |
30188 | } |
30189 | { | |
30190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30191 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30192 | ||
30193 | wxPyEndAllowThreads(__tstate); | |
30194 | if (PyErr_Occurred()) SWIG_fail; | |
30195 | } | |
30196 | Py_INCREF(Py_None); resultobj = Py_None; | |
30197 | { | |
30198 | if (temp3) | |
30199 | delete arg3; | |
30200 | } | |
30201 | return resultobj; | |
30202 | fail: | |
30203 | { | |
30204 | if (temp3) | |
30205 | delete arg3; | |
30206 | } | |
30207 | return NULL; | |
30208 | } | |
30209 | ||
30210 | ||
30211 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30212 | PyObject *resultobj; | |
30213 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 30214 | int arg2 ; |
d14a1e28 | 30215 | wxString *arg3 = 0 ; |
e811c8ce | 30216 | bool temp3 = False ; |
d14a1e28 | 30217 | PyObject * obj0 = 0 ; |
994141e6 | 30218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30219 | PyObject * obj2 = 0 ; |
30220 | char *kwnames[] = { | |
30221 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30222 | }; | |
30223 | ||
994141e6 | 30224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30227 | arg2 = (int) SWIG_AsInt(obj1); | |
30228 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30229 | { |
30230 | arg3 = wxString_in_helper(obj2); | |
30231 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30232 | temp3 = True; |
d14a1e28 RD |
30233 | } |
30234 | { | |
30235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30236 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30237 | ||
30238 | wxPyEndAllowThreads(__tstate); | |
30239 | if (PyErr_Occurred()) SWIG_fail; | |
30240 | } | |
30241 | Py_INCREF(Py_None); resultobj = Py_None; | |
30242 | { | |
30243 | if (temp3) | |
30244 | delete arg3; | |
30245 | } | |
30246 | return resultobj; | |
30247 | fail: | |
30248 | { | |
30249 | if (temp3) | |
30250 | delete arg3; | |
30251 | } | |
30252 | return NULL; | |
30253 | } | |
30254 | ||
30255 | ||
15afbcd0 RD |
30256 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
30257 | PyObject *resultobj; | |
30258 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30259 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30260 | PyObject * obj0 = 0 ; | |
30261 | PyObject * obj1 = 0 ; | |
30262 | char *kwnames[] = { | |
30263 | (char *) "self",(char *) "window", NULL | |
30264 | }; | |
30265 | ||
30266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30271 | { | |
30272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30273 | (arg1)->RemoveHelp(arg2); | |
30274 | ||
30275 | wxPyEndAllowThreads(__tstate); | |
30276 | if (PyErr_Occurred()) SWIG_fail; | |
30277 | } | |
30278 | Py_INCREF(Py_None); resultobj = Py_None; | |
30279 | return resultobj; | |
30280 | fail: | |
30281 | return NULL; | |
30282 | } | |
30283 | ||
30284 | ||
d14a1e28 RD |
30285 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
30286 | PyObject *resultobj; | |
30287 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30288 | PyObject * obj0 = 0 ; | |
30289 | char *kwnames[] = { | |
30290 | (char *) "self", NULL | |
30291 | }; | |
30292 | ||
30293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30296 | { |
30297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30298 | wxHelpProvider_Destroy(arg1); | |
30299 | ||
30300 | wxPyEndAllowThreads(__tstate); | |
30301 | if (PyErr_Occurred()) SWIG_fail; | |
30302 | } | |
30303 | Py_INCREF(Py_None); resultobj = Py_None; | |
30304 | return resultobj; | |
30305 | fail: | |
30306 | return NULL; | |
30307 | } | |
30308 | ||
30309 | ||
30310 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30311 | PyObject *obj; | |
30312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30313 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30314 | Py_INCREF(obj); | |
30315 | return Py_BuildValue((char *)""); | |
30316 | } | |
30317 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30318 | PyObject *resultobj; | |
30319 | wxSimpleHelpProvider *result; | |
30320 | char *kwnames[] = { | |
30321 | NULL | |
30322 | }; | |
30323 | ||
30324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30325 | { | |
30326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30327 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30328 | ||
30329 | wxPyEndAllowThreads(__tstate); | |
30330 | if (PyErr_Occurred()) SWIG_fail; | |
30331 | } | |
15afbcd0 | 30332 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
30333 | return resultobj; |
30334 | fail: | |
30335 | return NULL; | |
30336 | } | |
30337 | ||
30338 | ||
30339 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30340 | PyObject *obj; | |
30341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30342 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30343 | Py_INCREF(obj); | |
30344 | return Py_BuildValue((char *)""); | |
30345 | } | |
e811c8ce RD |
30346 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
30347 | PyObject *resultobj; | |
30348 | wxBitmap *arg1 = 0 ; | |
30349 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30350 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30351 | wxGenericDragImage *result; | |
30352 | PyObject * obj0 = 0 ; | |
30353 | PyObject * obj1 = 0 ; | |
30354 | char *kwnames[] = { | |
30355 | (char *) "image",(char *) "cursor", NULL | |
30356 | }; | |
30357 | ||
30358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
30360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30361 | SWIG_fail; | |
e811c8ce | 30362 | if (arg1 == NULL) { |
15afbcd0 RD |
30363 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30364 | SWIG_fail; | |
e811c8ce RD |
30365 | } |
30366 | if (obj1) { | |
15afbcd0 RD |
30367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30369 | SWIG_fail; | |
e811c8ce | 30370 | if (arg2 == NULL) { |
15afbcd0 RD |
30371 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30372 | SWIG_fail; | |
e811c8ce RD |
30373 | } |
30374 | } | |
30375 | { | |
30376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30377 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30378 | ||
30379 | wxPyEndAllowThreads(__tstate); | |
30380 | if (PyErr_Occurred()) SWIG_fail; | |
30381 | } | |
15afbcd0 | 30382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30383 | return resultobj; |
30384 | fail: | |
30385 | return NULL; | |
30386 | } | |
30387 | ||
30388 | ||
30389 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30390 | PyObject *resultobj; | |
30391 | wxIcon *arg1 = 0 ; | |
30392 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30393 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30394 | wxGenericDragImage *result; | |
30395 | PyObject * obj0 = 0 ; | |
30396 | PyObject * obj1 = 0 ; | |
30397 | char *kwnames[] = { | |
30398 | (char *) "image",(char *) "cursor", NULL | |
30399 | }; | |
30400 | ||
30401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
30403 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30404 | SWIG_fail; | |
e811c8ce | 30405 | if (arg1 == NULL) { |
15afbcd0 RD |
30406 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30407 | SWIG_fail; | |
e811c8ce RD |
30408 | } |
30409 | if (obj1) { | |
15afbcd0 RD |
30410 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30411 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30412 | SWIG_fail; | |
e811c8ce | 30413 | if (arg2 == NULL) { |
15afbcd0 RD |
30414 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30415 | SWIG_fail; | |
e811c8ce RD |
30416 | } |
30417 | } | |
30418 | { | |
30419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30420 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30421 | ||
30422 | wxPyEndAllowThreads(__tstate); | |
30423 | if (PyErr_Occurred()) SWIG_fail; | |
30424 | } | |
15afbcd0 | 30425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30426 | return resultobj; |
30427 | fail: | |
30428 | return NULL; | |
30429 | } | |
30430 | ||
30431 | ||
30432 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30433 | PyObject *resultobj; | |
30434 | wxString *arg1 = 0 ; | |
30435 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30436 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30437 | wxGenericDragImage *result; | |
30438 | bool temp1 = False ; | |
30439 | PyObject * obj0 = 0 ; | |
30440 | PyObject * obj1 = 0 ; | |
30441 | char *kwnames[] = { | |
30442 | (char *) "str",(char *) "cursor", NULL | |
30443 | }; | |
30444 | ||
30445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30446 | { | |
30447 | arg1 = wxString_in_helper(obj0); | |
30448 | if (arg1 == NULL) SWIG_fail; | |
30449 | temp1 = True; | |
30450 | } | |
30451 | if (obj1) { | |
15afbcd0 RD |
30452 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30453 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30454 | SWIG_fail; | |
e811c8ce | 30455 | if (arg2 == NULL) { |
15afbcd0 RD |
30456 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30457 | SWIG_fail; | |
e811c8ce RD |
30458 | } |
30459 | } | |
30460 | { | |
30461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30462 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30463 | ||
30464 | wxPyEndAllowThreads(__tstate); | |
30465 | if (PyErr_Occurred()) SWIG_fail; | |
30466 | } | |
15afbcd0 | 30467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30468 | { |
30469 | if (temp1) | |
30470 | delete arg1; | |
30471 | } | |
30472 | return resultobj; | |
30473 | fail: | |
30474 | { | |
30475 | if (temp1) | |
30476 | delete arg1; | |
30477 | } | |
30478 | return NULL; | |
30479 | } | |
30480 | ||
30481 | ||
30482 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30483 | PyObject *resultobj; | |
30484 | wxPyTreeCtrl *arg1 = 0 ; | |
30485 | wxTreeItemId *arg2 = 0 ; | |
30486 | wxGenericDragImage *result; | |
30487 | PyObject * obj0 = 0 ; | |
30488 | PyObject * obj1 = 0 ; | |
30489 | char *kwnames[] = { | |
30490 | (char *) "treeCtrl",(char *) "id", NULL | |
30491 | }; | |
30492 | ||
30493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
30495 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30496 | SWIG_fail; | |
e811c8ce | 30497 | if (arg1 == NULL) { |
15afbcd0 RD |
30498 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30499 | SWIG_fail; | |
e811c8ce | 30500 | } |
15afbcd0 RD |
30501 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
30502 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30503 | SWIG_fail; | |
e811c8ce | 30504 | if (arg2 == NULL) { |
15afbcd0 RD |
30505 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30506 | SWIG_fail; | |
e811c8ce RD |
30507 | } |
30508 | { | |
30509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30510 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30511 | ||
30512 | wxPyEndAllowThreads(__tstate); | |
30513 | if (PyErr_Occurred()) SWIG_fail; | |
30514 | } | |
15afbcd0 | 30515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30516 | return resultobj; |
30517 | fail: | |
30518 | return NULL; | |
30519 | } | |
30520 | ||
30521 | ||
30522 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30523 | PyObject *resultobj; | |
30524 | wxPyListCtrl *arg1 = 0 ; | |
30525 | long arg2 ; | |
30526 | wxGenericDragImage *result; | |
30527 | PyObject * obj0 = 0 ; | |
994141e6 | 30528 | PyObject * obj1 = 0 ; |
e811c8ce RD |
30529 | char *kwnames[] = { |
30530 | (char *) "listCtrl",(char *) "id", NULL | |
30531 | }; | |
30532 | ||
994141e6 | 30533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
30535 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30536 | SWIG_fail; | |
e811c8ce | 30537 | if (arg1 == NULL) { |
15afbcd0 RD |
30538 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30539 | SWIG_fail; | |
994141e6 | 30540 | } |
15afbcd0 RD |
30541 | arg2 = (long) SWIG_AsLong(obj1); |
30542 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
30543 | { |
30544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30545 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30546 | ||
30547 | wxPyEndAllowThreads(__tstate); | |
30548 | if (PyErr_Occurred()) SWIG_fail; | |
30549 | } | |
15afbcd0 | 30550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30551 | return resultobj; |
30552 | fail: | |
30553 | return NULL; | |
30554 | } | |
30555 | ||
30556 | ||
30557 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30558 | PyObject *resultobj; | |
30559 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30560 | PyObject * obj0 = 0 ; | |
30561 | char *kwnames[] = { | |
30562 | (char *) "self", NULL | |
30563 | }; | |
30564 | ||
30565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30568 | { |
30569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30570 | delete arg1; | |
30571 | ||
30572 | wxPyEndAllowThreads(__tstate); | |
30573 | if (PyErr_Occurred()) SWIG_fail; | |
30574 | } | |
30575 | Py_INCREF(Py_None); resultobj = Py_None; | |
30576 | return resultobj; | |
30577 | fail: | |
30578 | return NULL; | |
30579 | } | |
30580 | ||
30581 | ||
30582 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30583 | PyObject *resultobj; | |
30584 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30585 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30586 | PyObject * obj0 = 0 ; | |
30587 | PyObject * obj1 = 0 ; | |
30588 | char *kwnames[] = { | |
30589 | (char *) "self",(char *) "bitmap", NULL | |
30590 | }; | |
30591 | ||
30592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30597 | { |
30598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30599 | (arg1)->SetBackingBitmap(arg2); | |
30600 | ||
30601 | wxPyEndAllowThreads(__tstate); | |
30602 | if (PyErr_Occurred()) SWIG_fail; | |
30603 | } | |
30604 | Py_INCREF(Py_None); resultobj = Py_None; | |
30605 | return resultobj; | |
30606 | fail: | |
30607 | return NULL; | |
30608 | } | |
30609 | ||
30610 | ||
30611 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30612 | PyObject *resultobj; | |
30613 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30614 | wxPoint *arg2 = 0 ; | |
30615 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30616 | bool arg4 = (bool) False ; | |
30617 | wxRect *arg5 = (wxRect *) NULL ; | |
30618 | bool result; | |
30619 | wxPoint temp2 ; | |
30620 | PyObject * obj0 = 0 ; | |
30621 | PyObject * obj1 = 0 ; | |
30622 | PyObject * obj2 = 0 ; | |
30623 | PyObject * obj3 = 0 ; | |
30624 | PyObject * obj4 = 0 ; | |
30625 | char *kwnames[] = { | |
30626 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30627 | }; | |
30628 | ||
30629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30632 | { |
30633 | arg2 = &temp2; | |
30634 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30635 | } | |
15afbcd0 RD |
30636 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 30638 | if (obj3) { |
15afbcd0 RD |
30639 | arg4 = (bool) SWIG_AsBool(obj3); |
30640 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
30641 | } |
30642 | if (obj4) { | |
15afbcd0 RD |
30643 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
30644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30645 | } |
30646 | { | |
30647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30648 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30649 | ||
30650 | wxPyEndAllowThreads(__tstate); | |
30651 | if (PyErr_Occurred()) SWIG_fail; | |
30652 | } | |
4f89f6a3 RD |
30653 | { |
30654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30655 | } | |
e811c8ce RD |
30656 | return resultobj; |
30657 | fail: | |
30658 | return NULL; | |
30659 | } | |
30660 | ||
30661 | ||
30662 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30663 | PyObject *resultobj; | |
30664 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30665 | wxPoint *arg2 = 0 ; | |
30666 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30667 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30668 | bool result; | |
30669 | wxPoint temp2 ; | |
30670 | PyObject * obj0 = 0 ; | |
30671 | PyObject * obj1 = 0 ; | |
30672 | PyObject * obj2 = 0 ; | |
30673 | PyObject * obj3 = 0 ; | |
30674 | char *kwnames[] = { | |
30675 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30676 | }; | |
30677 | ||
30678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30681 | { |
30682 | arg2 = &temp2; | |
30683 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30684 | } | |
15afbcd0 RD |
30685 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30687 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
30688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30689 | { |
30690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30691 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
30692 | ||
30693 | wxPyEndAllowThreads(__tstate); | |
30694 | if (PyErr_Occurred()) SWIG_fail; | |
30695 | } | |
4f89f6a3 RD |
30696 | { |
30697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30698 | } | |
e811c8ce RD |
30699 | return resultobj; |
30700 | fail: | |
30701 | return NULL; | |
30702 | } | |
30703 | ||
30704 | ||
30705 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30706 | PyObject *resultobj; | |
30707 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30708 | bool result; | |
30709 | PyObject * obj0 = 0 ; | |
30710 | char *kwnames[] = { | |
30711 | (char *) "self", NULL | |
30712 | }; | |
30713 | ||
30714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30717 | { |
30718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30719 | result = (bool)(arg1)->EndDrag(); | |
30720 | ||
30721 | wxPyEndAllowThreads(__tstate); | |
30722 | if (PyErr_Occurred()) SWIG_fail; | |
30723 | } | |
4f89f6a3 RD |
30724 | { |
30725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30726 | } | |
e811c8ce RD |
30727 | return resultobj; |
30728 | fail: | |
30729 | return NULL; | |
30730 | } | |
30731 | ||
30732 | ||
30733 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30734 | PyObject *resultobj; | |
30735 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30736 | wxPoint *arg2 = 0 ; | |
30737 | bool result; | |
30738 | wxPoint temp2 ; | |
30739 | PyObject * obj0 = 0 ; | |
30740 | PyObject * obj1 = 0 ; | |
30741 | char *kwnames[] = { | |
30742 | (char *) "self",(char *) "pt", NULL | |
30743 | }; | |
30744 | ||
30745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30748 | { |
30749 | arg2 = &temp2; | |
30750 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30751 | } | |
30752 | { | |
30753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30754 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30755 | ||
30756 | wxPyEndAllowThreads(__tstate); | |
30757 | if (PyErr_Occurred()) SWIG_fail; | |
30758 | } | |
4f89f6a3 RD |
30759 | { |
30760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30761 | } | |
e811c8ce RD |
30762 | return resultobj; |
30763 | fail: | |
30764 | return NULL; | |
30765 | } | |
30766 | ||
30767 | ||
30768 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30769 | PyObject *resultobj; | |
30770 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30771 | bool result; | |
30772 | PyObject * obj0 = 0 ; | |
30773 | char *kwnames[] = { | |
30774 | (char *) "self", NULL | |
30775 | }; | |
30776 | ||
30777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30780 | { |
30781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30782 | result = (bool)(arg1)->Show(); | |
30783 | ||
30784 | wxPyEndAllowThreads(__tstate); | |
30785 | if (PyErr_Occurred()) SWIG_fail; | |
30786 | } | |
4f89f6a3 RD |
30787 | { |
30788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30789 | } | |
e811c8ce RD |
30790 | return resultobj; |
30791 | fail: | |
30792 | return NULL; | |
30793 | } | |
30794 | ||
30795 | ||
30796 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30797 | PyObject *resultobj; | |
30798 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30799 | bool result; | |
30800 | PyObject * obj0 = 0 ; | |
30801 | char *kwnames[] = { | |
30802 | (char *) "self", NULL | |
30803 | }; | |
30804 | ||
30805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30808 | { |
30809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30810 | result = (bool)(arg1)->Hide(); | |
30811 | ||
30812 | wxPyEndAllowThreads(__tstate); | |
30813 | if (PyErr_Occurred()) SWIG_fail; | |
30814 | } | |
4f89f6a3 RD |
30815 | { |
30816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30817 | } | |
e811c8ce RD |
30818 | return resultobj; |
30819 | fail: | |
30820 | return NULL; | |
30821 | } | |
30822 | ||
30823 | ||
30824 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30825 | PyObject *resultobj; | |
30826 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30827 | wxPoint *arg2 = 0 ; | |
30828 | wxRect result; | |
30829 | wxPoint temp2 ; | |
30830 | PyObject * obj0 = 0 ; | |
30831 | PyObject * obj1 = 0 ; | |
30832 | char *kwnames[] = { | |
30833 | (char *) "self",(char *) "pos", NULL | |
30834 | }; | |
30835 | ||
30836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30839 | { |
30840 | arg2 = &temp2; | |
30841 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30842 | } | |
30843 | { | |
30844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30845 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
30846 | ||
30847 | wxPyEndAllowThreads(__tstate); | |
30848 | if (PyErr_Occurred()) SWIG_fail; | |
30849 | } | |
30850 | { | |
30851 | wxRect * resultptr; | |
30852 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 30853 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
30854 | } |
30855 | return resultobj; | |
30856 | fail: | |
30857 | return NULL; | |
30858 | } | |
30859 | ||
30860 | ||
30861 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30862 | PyObject *resultobj; | |
30863 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30864 | wxDC *arg2 = 0 ; | |
30865 | wxPoint *arg3 = 0 ; | |
30866 | bool result; | |
30867 | wxPoint temp3 ; | |
30868 | PyObject * obj0 = 0 ; | |
30869 | PyObject * obj1 = 0 ; | |
30870 | PyObject * obj2 = 0 ; | |
30871 | char *kwnames[] = { | |
30872 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
30873 | }; | |
30874 | ||
30875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30878 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30879 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30880 | SWIG_fail; | |
e811c8ce | 30881 | if (arg2 == NULL) { |
15afbcd0 RD |
30882 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30883 | SWIG_fail; | |
e811c8ce RD |
30884 | } |
30885 | { | |
30886 | arg3 = &temp3; | |
30887 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30888 | } | |
30889 | { | |
30890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30891 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
30892 | ||
30893 | wxPyEndAllowThreads(__tstate); | |
30894 | if (PyErr_Occurred()) SWIG_fail; | |
30895 | } | |
4f89f6a3 RD |
30896 | { |
30897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30898 | } | |
e811c8ce RD |
30899 | return resultobj; |
30900 | fail: | |
30901 | return NULL; | |
30902 | } | |
30903 | ||
30904 | ||
30905 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30906 | PyObject *resultobj; | |
30907 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30908 | wxDC *arg2 = 0 ; | |
30909 | wxMemoryDC *arg3 = 0 ; | |
30910 | wxRect *arg4 = 0 ; | |
30911 | wxRect *arg5 = 0 ; | |
30912 | bool result; | |
30913 | wxRect temp4 ; | |
30914 | wxRect temp5 ; | |
30915 | PyObject * obj0 = 0 ; | |
30916 | PyObject * obj1 = 0 ; | |
30917 | PyObject * obj2 = 0 ; | |
30918 | PyObject * obj3 = 0 ; | |
30919 | PyObject * obj4 = 0 ; | |
30920 | char *kwnames[] = { | |
30921 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
30922 | }; | |
30923 | ||
30924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30928 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30929 | SWIG_fail; | |
e811c8ce | 30930 | if (arg2 == NULL) { |
15afbcd0 RD |
30931 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30932 | SWIG_fail; | |
e811c8ce | 30933 | } |
15afbcd0 RD |
30934 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
30935 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30936 | SWIG_fail; | |
e811c8ce | 30937 | if (arg3 == NULL) { |
15afbcd0 RD |
30938 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30939 | SWIG_fail; | |
e811c8ce RD |
30940 | } |
30941 | { | |
30942 | arg4 = &temp4; | |
30943 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30944 | } | |
30945 | { | |
30946 | arg5 = &temp5; | |
30947 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
30948 | } | |
30949 | { | |
30950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30951 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
30952 | ||
30953 | wxPyEndAllowThreads(__tstate); | |
30954 | if (PyErr_Occurred()) SWIG_fail; | |
30955 | } | |
4f89f6a3 RD |
30956 | { |
30957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30958 | } | |
e811c8ce RD |
30959 | return resultobj; |
30960 | fail: | |
30961 | return NULL; | |
30962 | } | |
30963 | ||
30964 | ||
30965 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30966 | PyObject *resultobj; | |
30967 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30968 | wxPoint *arg2 = 0 ; | |
30969 | wxPoint *arg3 = 0 ; | |
30970 | bool arg4 ; | |
30971 | bool arg5 ; | |
30972 | bool result; | |
30973 | wxPoint temp2 ; | |
30974 | wxPoint temp3 ; | |
30975 | PyObject * obj0 = 0 ; | |
30976 | PyObject * obj1 = 0 ; | |
30977 | PyObject * obj2 = 0 ; | |
30978 | PyObject * obj3 = 0 ; | |
30979 | PyObject * obj4 = 0 ; | |
30980 | char *kwnames[] = { | |
30981 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
30982 | }; | |
30983 | ||
30984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30987 | { |
30988 | arg2 = &temp2; | |
30989 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30990 | } | |
30991 | { | |
30992 | arg3 = &temp3; | |
30993 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30994 | } | |
15afbcd0 RD |
30995 | arg4 = (bool) SWIG_AsBool(obj3); |
30996 | if (PyErr_Occurred()) SWIG_fail; | |
30997 | arg5 = (bool) SWIG_AsBool(obj4); | |
30998 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
30999 | { |
31000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31001 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31002 | ||
31003 | wxPyEndAllowThreads(__tstate); | |
31004 | if (PyErr_Occurred()) SWIG_fail; | |
31005 | } | |
4f89f6a3 RD |
31006 | { |
31007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31008 | } | |
e811c8ce RD |
31009 | return resultobj; |
31010 | fail: | |
31011 | return NULL; | |
31012 | } | |
31013 | ||
31014 | ||
31015 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
31016 | PyObject *obj; | |
31017 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31018 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31019 | Py_INCREF(obj); | |
31020 | return Py_BuildValue((char *)""); | |
31021 | } | |
31022 | static PyMethodDef SwigMethods[] = { | |
31023 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
31024 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
31025 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
31026 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
31027 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31028 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31029 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, |
31030 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31031 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31032 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31033 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31034 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31035 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31036 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31037 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31038 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31039 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31040 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31041 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31042 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
31043 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
31044 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
31045 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31046 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31047 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31048 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31049 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31050 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31051 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31052 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31053 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
31054 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31055 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31056 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, |
31057 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
31058 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
31059 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31060 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
31061 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31062 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31063 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31064 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, |
31065 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31066 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31067 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31068 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31069 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31070 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31071 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31072 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31073 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31074 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31075 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31076 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
fd3f2efe | 31077 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 31078 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
121b9a67 RD |
31079 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
31080 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31081 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
31082 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31083 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31084 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31085 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, |
31086 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
31087 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
31088 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
31089 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31090 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31091 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31092 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31093 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31094 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31095 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31096 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
31097 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31098 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31099 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, |
31100 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31101 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31102 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31103 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31104 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, |
31105 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31106 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31107 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
31108 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31109 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31110 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31111 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, |
31112 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
31113 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
31114 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31115 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31116 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, |
31117 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31118 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31119 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
31120 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31121 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31122 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31123 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31124 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, |
31125 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
31126 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
31127 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31128 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
31129 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
31130 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
31131 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31132 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31133 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
31134 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
31135 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31136 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31137 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31138 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
31139 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
31140 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31141 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31142 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
c3eb6258 RD |
31143 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
31144 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31145 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31146 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31147 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
31148 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31149 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31150 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31151 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31152 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
31153 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
31154 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31155 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
31156 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
31157 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
994141e6 | 31158 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31159 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
31160 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31161 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31162 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31163 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31164 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31165 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31166 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31167 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31168 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31169 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31170 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31171 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31172 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
31173 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31174 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31175 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
31176 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31177 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31178 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31179 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31180 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31181 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31182 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31183 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31184 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
31185 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
31186 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
31187 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31188 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31189 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31190 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31191 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31192 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31193 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
31194 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
31195 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
31196 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
31197 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
31198 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
31199 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
31200 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31201 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31202 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31203 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31204 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
31205 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
31206 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
31207 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
31208 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
31209 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
31210 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
31211 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
31212 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
31213 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31214 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31215 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31216 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31217 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
31218 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
31219 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 31220 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31221 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
31222 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31223 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31224 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
31225 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
31226 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
31227 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31228 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
31229 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
31230 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
31231 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31232 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31233 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31234 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31235 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31236 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
31237 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
31238 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
31239 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31240 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31241 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, |
31242 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31243 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
31244 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
31245 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
31246 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
31247 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31248 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31249 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31250 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31251 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
31252 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31253 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31254 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31255 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31256 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31257 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31258 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, |
31259 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31260 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31261 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31262 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31263 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31264 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31265 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31266 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31267 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31268 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31269 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31270 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31271 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, |
31272 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31273 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31274 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31275 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31276 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31277 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
31278 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31279 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31280 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31281 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31282 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31283 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, |
d1e20054 RD |
31284 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
31285 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31286 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31287 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31288 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
31289 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31290 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31291 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31292 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31293 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31294 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31295 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31296 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
31297 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
31298 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
31299 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
31300 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
31301 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31302 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31303 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31304 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31305 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, |
31306 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31307 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31308 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31309 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31310 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31311 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31312 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, |
31313 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
31314 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
31315 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
31316 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31317 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31318 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31319 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31320 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31321 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31322 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31323 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31324 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31325 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31326 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31327 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31328 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31329 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31330 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31331 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
31332 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
31333 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
31334 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
31335 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
31336 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31337 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31338 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, |
31339 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31340 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31341 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31342 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31343 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31344 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31345 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31346 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, |
31347 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
31348 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
31349 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31350 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31351 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31352 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31353 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31354 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31355 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31356 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31357 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31358 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31359 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
31360 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
31361 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
31362 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
31363 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
31364 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31365 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31366 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31367 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, |
31368 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31369 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31370 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31371 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31372 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31373 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
31374 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
31375 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31376 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31377 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31378 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
31379 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
31380 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31381 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31382 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31383 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, |
31384 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31385 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
31386 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
31387 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
31388 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31389 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31390 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
31391 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31392 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
31393 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
31394 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31395 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31396 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31397 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
31398 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
31399 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31400 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31401 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31402 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
31403 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31404 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31405 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31406 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
31407 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
31408 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31409 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31410 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
31411 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31412 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
31413 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
31414 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31415 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31416 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31417 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31418 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31419 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31420 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
31421 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31422 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31423 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31424 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31425 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31426 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31427 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31428 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
31429 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
31430 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31431 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31432 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
31433 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
31434 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 RD |
31435 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
31436 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31437 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
31438 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
31439 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
31440 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31441 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31442 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
31443 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
31444 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
31445 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
31446 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
31447 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
31448 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
31449 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31450 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31451 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31452 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
31453 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
31454 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31455 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31456 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31457 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31458 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31459 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
31460 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31461 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31462 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31463 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
31464 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31465 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31466 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31467 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
31468 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
31469 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
31470 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
31471 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31472 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31473 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
31474 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 | 31475 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31476 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
31477 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
31478 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31479 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31480 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31481 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31482 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31483 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, |
31484 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
31485 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31486 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31487 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31488 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31489 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31490 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31491 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31492 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31493 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31494 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31495 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
31496 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31497 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31498 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31499 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31500 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
31501 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31502 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31503 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
31504 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
31505 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
31506 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
31507 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31508 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31509 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31510 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31511 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31512 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31513 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31514 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31515 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31516 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
31517 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31518 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31519 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31520 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31521 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31522 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31523 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31524 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31525 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31526 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31527 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31528 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31529 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31530 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31531 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31532 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31533 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31534 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31535 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31536 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31537 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31538 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31539 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31540 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31541 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31542 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31543 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31544 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31545 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31546 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31547 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31548 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31549 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31550 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31551 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31552 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31553 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31554 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31555 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31556 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31557 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
31558 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
31559 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
31560 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31561 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
31562 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31563 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31564 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31565 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31566 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31567 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31568 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31569 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31570 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
31571 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
31572 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31573 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31574 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
31575 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31576 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31577 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31578 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31579 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31580 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31581 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31582 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31583 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31584 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31585 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
31586 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
31587 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31588 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31589 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31590 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31591 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31592 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31593 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31594 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31595 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31596 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31597 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31598 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
31599 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31600 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31601 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31602 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31603 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31604 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31605 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31606 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31607 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
31608 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
31609 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
31610 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
31611 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31612 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31613 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 31614 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31615 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, |
31616 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
31617 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
31618 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
31619 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
31620 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31621 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31622 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31623 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
31624 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31625 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31626 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
31627 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
31628 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
31629 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31630 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31631 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31632 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
31633 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31634 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
31635 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
31636 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31637 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
31638 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31639 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31640 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31641 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31642 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
31643 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31644 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31645 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, |
31646 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
31647 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
31648 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
31649 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
31650 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
31651 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
31652 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
31653 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
31654 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31655 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31656 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31657 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
31658 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31659 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31660 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
31661 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
31662 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
31663 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
31664 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
31665 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
31666 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
31667 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31668 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31669 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31670 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31671 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31672 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
31673 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
31674 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31675 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31676 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31677 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31678 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31679 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31680 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31681 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31682 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31683 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31684 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31685 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31686 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 31687 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31688 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
31689 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31690 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31691 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31692 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31693 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31694 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31695 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31696 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31697 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31698 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31699 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31700 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31701 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31702 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31703 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31704 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31705 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31706 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31707 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31708 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31709 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31710 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31711 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31712 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31713 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31714 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31715 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31716 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
31717 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31718 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31719 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31720 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
31721 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31722 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
31723 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31724 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
31725 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
31726 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
31727 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31728 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31729 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31730 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31731 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31732 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31733 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31734 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31735 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31736 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31737 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31738 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31739 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31740 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31741 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31742 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31743 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31744 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31745 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31746 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31747 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31748 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31749 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31750 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31751 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31752 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
31753 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31754 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31755 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
31756 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31757 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31758 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31759 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31760 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31761 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31762 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31763 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, |
31764 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31765 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31766 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31767 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31768 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31769 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31770 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31771 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31772 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31773 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31774 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31775 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31776 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31777 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31778 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31779 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31780 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31781 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31782 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31783 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31784 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31785 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31786 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31787 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31788 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31789 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31790 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31791 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa | 31792 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31793 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
db3e571a | 31794 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31795 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
31796 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
31797 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31798 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31799 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
31800 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31801 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31802 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31803 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
31804 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
31805 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
31806 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31807 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
31808 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
31809 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
31810 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
31811 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
31812 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa RD |
31813 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, |
31814 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
db3e571a | 31815 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31816 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
31817 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
31818 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31819 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31820 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
31821 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
31822 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31823 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31824 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
31825 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31826 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31827 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31828 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31829 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
31830 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
31831 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
31832 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
31833 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
31834 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
31835 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
31836 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
31837 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 31838 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31839 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
31840 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
31841 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
31842 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
31843 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
31844 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
31845 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
31846 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
31847 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
31848 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
31849 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31850 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
31851 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
31852 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
31853 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
31854 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
31855 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
31856 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
31857 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31858 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31859 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31860 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31861 | { NULL, NULL } |
31862 | }; | |
31863 | ||
31864 | ||
31865 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31866 | ||
31867 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
31868 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31869 | } | |
31870 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
31871 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31872 | } | |
31873 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
31874 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
31875 | } | |
31876 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
31877 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31878 | } | |
31879 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
31880 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31881 | } | |
31882 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
31883 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
31884 | } | |
31885 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
31886 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31887 | } | |
31888 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
31889 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
31890 | } | |
31891 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
31892 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
31893 | } | |
31894 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
31895 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
31896 | } | |
31897 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31898 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31899 | } | |
31900 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31901 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31902 | } | |
31903 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31904 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31905 | } | |
31906 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31907 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31908 | } | |
31909 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31910 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31911 | } | |
31912 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
31913 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31914 | } | |
31915 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31916 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31917 | } | |
31918 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31919 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31920 | } | |
31921 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31922 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31923 | } | |
31924 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
31925 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31926 | } | |
31927 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
31928 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31929 | } | |
31930 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31931 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31932 | } | |
31933 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31934 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31935 | } | |
31936 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
31937 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31938 | } | |
31939 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
31940 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31941 | } | |
31942 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
31943 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31944 | } | |
31945 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
31946 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
31947 | } | |
31948 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31949 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31950 | } | |
31951 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31952 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31953 | } | |
31954 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31955 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31956 | } | |
31957 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31958 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31959 | } | |
31960 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31961 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31962 | } | |
31963 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31964 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31965 | } | |
31966 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31967 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31968 | } | |
31969 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31970 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31971 | } | |
31972 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
31973 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31974 | } | |
31975 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31976 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31977 | } | |
31978 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31979 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31980 | } | |
31981 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31982 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31983 | } | |
31984 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31985 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31986 | } | |
31987 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31988 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31989 | } | |
31990 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31991 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31992 | } | |
31993 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31994 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31995 | } | |
31996 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31997 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31998 | } | |
31999 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32000 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32001 | } | |
32002 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32003 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32004 | } | |
32005 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32006 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32007 | } | |
32008 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32009 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32010 | } | |
32011 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32012 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32013 | } | |
32014 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32015 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32016 | } | |
32017 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32018 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32019 | } | |
32020 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32021 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32022 | } | |
d1e20054 RD |
32023 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
32024 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32025 | } | |
d14a1e28 RD |
32026 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
32027 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32028 | } | |
32029 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32030 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32031 | } | |
32032 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32033 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32034 | } | |
32035 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32036 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32037 | } | |
32038 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32039 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32040 | } | |
32041 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32042 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32043 | } | |
32044 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32045 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32046 | } | |
32047 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32048 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32049 | } | |
32050 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32051 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32052 | } | |
32053 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32054 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32055 | } | |
32056 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32057 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32058 | } | |
32059 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32060 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32061 | } | |
32062 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32063 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
32064 | } | |
32065 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32066 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32067 | } | |
32068 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32069 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32070 | } | |
32071 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32072 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32073 | } | |
32074 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32075 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32076 | } | |
32077 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32078 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32079 | } | |
32080 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32081 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32082 | } | |
32083 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32084 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32085 | } | |
32086 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32087 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32088 | } | |
32089 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32090 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32091 | } | |
32092 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32093 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32094 | } | |
32095 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32096 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32097 | } | |
32098 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32099 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32100 | } | |
32101 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32102 | return (void *)((wxControl *) ((wxButton *) x)); | |
32103 | } | |
32104 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32105 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32106 | } | |
32107 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32108 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32109 | } | |
32110 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32111 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32112 | } | |
32113 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32114 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32115 | } | |
32116 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32117 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32118 | } | |
32119 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32120 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32121 | } | |
32122 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32123 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32124 | } | |
32125 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32126 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32127 | } | |
32128 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32129 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32130 | } | |
32131 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32132 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32133 | } | |
32134 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32135 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32136 | } | |
32137 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32138 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32139 | } | |
32140 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32141 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32142 | } | |
32143 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32144 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32145 | } | |
32146 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32147 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32148 | } | |
32149 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32150 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32151 | } | |
32152 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32153 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32154 | } | |
32155 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32156 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32157 | } | |
32158 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32159 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32160 | } | |
d1e20054 RD |
32161 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
32162 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32163 | } | |
d14a1e28 RD |
32164 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
32165 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32166 | } | |
32167 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32168 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32169 | } | |
32170 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32171 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32172 | } | |
32173 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32174 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32175 | } | |
32176 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32177 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32178 | } | |
32179 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32180 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32181 | } | |
32182 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32183 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32184 | } | |
32185 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32186 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32187 | } | |
32188 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32189 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32190 | } | |
32191 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32192 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32193 | } | |
32194 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32195 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32196 | } | |
32197 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32198 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32199 | } | |
32200 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32201 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32202 | } | |
32203 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32204 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32205 | } | |
32206 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32207 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32208 | } | |
32209 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32210 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32211 | } | |
32212 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32213 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32214 | } | |
32215 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32216 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32217 | } | |
32218 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32219 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32220 | } | |
32221 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32222 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32223 | } | |
32224 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32225 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32226 | } | |
32227 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32228 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32229 | } | |
32230 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32231 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32232 | } | |
32233 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32234 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32235 | } | |
32236 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32237 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32238 | } | |
32239 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32240 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32241 | } | |
32242 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32243 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32244 | } | |
32245 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32246 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32247 | } | |
32248 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32249 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32250 | } | |
32251 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32252 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32253 | } | |
32254 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32255 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32256 | } | |
32257 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32258 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32259 | } | |
32260 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32261 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32262 | } | |
32263 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32264 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32265 | } | |
32266 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32267 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32268 | } | |
32269 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32270 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32271 | } | |
32272 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32273 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32274 | } | |
32275 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32276 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32277 | } | |
32278 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32279 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32280 | } | |
32281 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32282 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32283 | } | |
32284 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32285 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32286 | } | |
32287 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32288 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32289 | } | |
32290 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32291 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32292 | } | |
32293 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32294 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32295 | } | |
32296 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32297 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32298 | } | |
32299 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32300 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32301 | } | |
32302 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32303 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32304 | } | |
32305 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32306 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32307 | } | |
32308 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32309 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32310 | } | |
32311 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32312 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32313 | } | |
32314 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32315 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32316 | } | |
32317 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32318 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32319 | } | |
32320 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32321 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32322 | } | |
32323 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32324 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32325 | } | |
32326 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32327 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32328 | } | |
32329 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32330 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32331 | } | |
32332 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32333 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32334 | } | |
32335 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32336 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32337 | } | |
32338 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32339 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32340 | } | |
32341 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32342 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32343 | } | |
32344 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32345 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32346 | } | |
32347 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32348 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32349 | } | |
32350 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32351 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32352 | } | |
32353 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32354 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32355 | } | |
32356 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32357 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32358 | } | |
32359 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32360 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32361 | } | |
32362 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32363 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32364 | } | |
32365 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32366 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32367 | } | |
32368 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32369 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32370 | } | |
32371 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32372 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32373 | } | |
32374 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32375 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32376 | } | |
32377 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32378 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32379 | } | |
32380 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32381 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32382 | } | |
32383 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32384 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32385 | } | |
32386 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32387 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32388 | } | |
32389 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32390 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32391 | } | |
32392 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32393 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32394 | } | |
32395 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32396 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32397 | } | |
32398 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32399 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32400 | } | |
32401 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32402 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32403 | } | |
32404 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32405 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32406 | } | |
32407 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32408 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32409 | } | |
32410 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32411 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32412 | } | |
32413 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32414 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32415 | } | |
32416 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32417 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32418 | } | |
32419 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32420 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32421 | } | |
32422 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32423 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32424 | } | |
32425 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32426 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32427 | } | |
32428 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32429 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32430 | } | |
32431 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32432 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32433 | } | |
32434 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32435 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32436 | } | |
32437 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32438 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32439 | } | |
32440 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32441 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32442 | } | |
32443 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32444 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32445 | } | |
32446 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32447 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32448 | } | |
32449 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32450 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32451 | } | |
32452 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32453 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32454 | } | |
32455 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32456 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32457 | } | |
32458 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32459 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32460 | } | |
32461 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32462 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32463 | } | |
32464 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32465 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32466 | } | |
32467 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32468 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32469 | } | |
32470 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32471 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32472 | } | |
32473 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32474 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32475 | } | |
32476 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32477 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32478 | } | |
32479 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32480 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32481 | } | |
32482 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32483 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32484 | } | |
32485 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32486 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32487 | } | |
32488 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32489 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32490 | } | |
32491 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32492 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32493 | } | |
32494 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32495 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32496 | } | |
32497 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32498 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32499 | } | |
32500 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32501 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32502 | } | |
32503 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32504 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32505 | } | |
32506 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32507 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32508 | } | |
32509 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32510 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32511 | } | |
32512 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32513 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32514 | } | |
32515 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32516 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32517 | } | |
32518 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32519 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32520 | } | |
32521 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32522 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32523 | } | |
32524 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32525 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32526 | } | |
32527 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32528 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32529 | } | |
32530 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32531 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32532 | } | |
32533 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32534 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32535 | } | |
d14a1e28 RD |
32536 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
32537 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32538 | } | |
1e0c8722 RD |
32539 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
32540 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32541 | } | |
d14a1e28 RD |
32542 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
32543 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32544 | } | |
32545 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32546 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32547 | } | |
1e0c8722 RD |
32548 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32549 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32550 | } | |
d14a1e28 RD |
32551 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
32552 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32553 | } | |
32554 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32555 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32556 | } | |
32557 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32558 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32559 | } | |
32560 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32561 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32562 | } | |
32563 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32564 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32565 | } | |
32566 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32567 | return (void *)((wxObject *) ((wxImage *) x)); | |
32568 | } | |
32569 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32570 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32571 | } | |
32572 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32573 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32574 | } | |
d1e20054 RD |
32575 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
32576 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32577 | } | |
e811c8ce RD |
32578 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
32579 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32580 | } | |
d14a1e28 RD |
32581 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
32582 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32583 | } | |
32584 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32585 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32586 | } | |
32587 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32588 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32589 | } | |
32590 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32591 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32592 | } | |
32593 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32594 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32595 | } | |
32596 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32597 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32598 | } | |
32599 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32600 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32601 | } | |
32602 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32603 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32604 | } | |
32605 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32606 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32607 | } | |
32608 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32609 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32610 | } | |
32611 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32612 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32613 | } | |
32614 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32615 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32616 | } | |
32617 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32618 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32619 | } | |
32620 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32621 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32622 | } | |
32623 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32624 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32625 | } | |
32626 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32627 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32628 | } | |
32629 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32630 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32631 | } | |
32632 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32633 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32634 | } | |
32635 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32636 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32637 | } | |
32638 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32639 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32640 | } | |
32641 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32642 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32643 | } | |
32644 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32645 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32646 | } | |
32647 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32648 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32649 | } | |
32650 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32651 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32652 | } | |
32653 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32654 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32655 | } | |
32656 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32657 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32658 | } | |
32659 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32660 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32661 | } | |
32662 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32663 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32664 | } | |
32665 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32666 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32667 | } | |
32668 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32669 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32670 | } | |
32671 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32672 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32673 | } | |
32674 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32675 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32676 | } | |
32677 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
32678 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
32679 | } | |
32680 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
32681 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
32682 | } | |
32683 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
32684 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
32685 | } | |
32686 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32687 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32688 | } | |
32689 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
32690 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
32691 | } | |
32692 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
32693 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32694 | } | |
32695 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
32696 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
32697 | } | |
32698 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
32699 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
32700 | } | |
32701 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
32702 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
32703 | } | |
32704 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
32705 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
32706 | } | |
32707 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32708 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32709 | } | |
32710 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
32711 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
32712 | } | |
32713 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
32714 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
32715 | } | |
32716 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
32717 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32718 | } | |
32719 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
32720 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
32721 | } | |
32722 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
32723 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
32724 | } | |
32725 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
32726 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
32727 | } | |
32728 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32729 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32730 | } | |
32731 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32732 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32733 | } | |
32734 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32735 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32736 | } | |
32737 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32738 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32739 | } | |
32740 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32741 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32742 | } | |
32743 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32744 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32745 | } | |
32746 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32747 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32748 | } | |
32749 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32750 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32751 | } | |
32752 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32753 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32754 | } | |
32755 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32756 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32757 | } | |
32758 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32759 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32760 | } | |
32761 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32762 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32763 | } | |
32764 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32765 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32766 | } | |
32767 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32768 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32769 | } | |
32770 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32771 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32772 | } | |
32773 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32774 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32775 | } | |
32776 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32777 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32778 | } | |
32779 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32780 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32781 | } | |
32782 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32783 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32784 | } | |
32785 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32786 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32787 | } | |
32788 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32789 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32790 | } | |
32791 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32792 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32793 | } | |
32794 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
32795 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32796 | } | |
32797 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
32798 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32799 | } | |
32800 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
32801 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
32802 | } | |
32803 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32804 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32805 | } | |
32806 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
32807 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32808 | } | |
d1e20054 RD |
32809 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
32810 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32811 | } | |
d14a1e28 RD |
32812 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
32813 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
32814 | } | |
32815 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32816 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32817 | } | |
32818 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
32819 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32820 | } | |
32821 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
32822 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32823 | } | |
32824 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
32825 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
32826 | } | |
32827 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
32828 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
32829 | } | |
32830 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
32831 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
32832 | } | |
32833 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
32834 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
32835 | } | |
15afbcd0 RD |
32836 | 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}}; |
32837 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32838 | 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}}; | |
32839 | 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}}; | |
32840 | 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}}; | |
32841 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32842 | 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}}; | |
32843 | 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}}; | |
32844 | 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}}; | |
32845 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
15afbcd0 | 32846 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
74a57fcd | 32847 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
32848 | 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}}; |
32849 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32850 | 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}}; | |
32851 | 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}}; | |
32852 | 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}}; | |
32853 | 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}}; | |
32854 | 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}}; | |
32855 | 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}}; | |
32856 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32857 | 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}}; | |
32858 | 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}}; | |
32859 | 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}}; | |
32860 | 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}}; | |
32861 | 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}}; | |
32862 | 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}}; | |
32863 | 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}}; | |
32864 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
74a57fcd | 32865 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
32866 | 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}}; |
32867 | 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}}; | |
32868 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32869 | 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}}; | |
32870 | 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}}; | |
32871 | 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}}; | |
32872 | 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}}; | |
32873 | 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}}; | |
32874 | 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}}; | |
32875 | 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}}; | |
32876 | 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}}; | |
32877 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32878 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
15afbcd0 | 32879 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
74a57fcd | 32880 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
32881 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
32882 | 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}}; | |
32883 | 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}}; | |
32884 | 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}}; | |
32885 | 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}}; | |
32886 | 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}}; | |
32887 | 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}}; | |
32888 | 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}}; | |
32889 | 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}}; | |
32890 | 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}}; | |
32891 | 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}}; | |
32892 | 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}}; | |
32893 | 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}}; | |
32894 | 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}}; | |
32895 | 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}}; | |
32896 | 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}}; | |
32897 | 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}}; | |
32898 | 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}}; | |
32899 | 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}}; | |
32900 | 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}}; | |
32901 | 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}}; | |
32902 | 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}}; | |
32903 | 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}}; | |
32904 | 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}}; | |
32905 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32906 | 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}}; | |
32907 | 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}}; | |
32908 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32909 | 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}}; | |
32910 | 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}}; | |
32911 | 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}}; | |
32912 | 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}}; | |
32913 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32914 | 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}}; | |
32915 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32916 | 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}}; | |
32917 | 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}}; | |
32918 | 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}}; | |
32919 | 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}}; | |
32920 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d14a1e28 RD |
32921 | |
32922 | static swig_type_info *swig_types_initial[] = { | |
32923 | _swigt__p_wxTextUrlEvent, | |
32924 | _swigt__p_wxBookCtrlEvent, | |
32925 | _swigt__p_wxSizer, | |
d14a1e28 RD |
32926 | _swigt__p_wxCheckBox, |
32927 | _swigt__p_wxPyTreeCtrl, | |
32928 | _swigt__p_wxEvent, | |
32929 | _swigt__p_wxGenericDirCtrl, | |
32930 | _swigt__p_bool, | |
32931 | _swigt__p_wxPyTreeItemData, | |
32932 | _swigt__p_wxItemContainer, | |
d14a1e28 | 32933 | _swigt__p_wxPyListCtrl, |
74a57fcd | 32934 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
32935 | _swigt__p_wxStaticLine, |
32936 | _swigt__p_wxControl, | |
32937 | _swigt__p_wxPyControl, | |
32938 | _swigt__p_wxGauge, | |
32939 | _swigt__p_wxToolBarBase, | |
32940 | _swigt__p_wxFont, | |
32941 | _swigt__p_wxToggleButton, | |
32942 | _swigt__p_wxRadioButton, | |
32943 | _swigt__p_wxChoice, | |
e811c8ce | 32944 | _swigt__p_wxMemoryDC, |
d14a1e28 | 32945 | _swigt__p_wxListItemAttr, |
58203fa6 | 32946 | _swigt__p_void, |
d14a1e28 RD |
32947 | _swigt__p_int, |
32948 | _swigt__p_wxSize, | |
e811c8ce | 32949 | _swigt__p_wxDC, |
d14a1e28 RD |
32950 | _swigt__p_wxListView, |
32951 | _swigt__p_wxIcon, | |
74a57fcd | 32952 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
32953 | _swigt__p_wxTextCtrl, |
32954 | _swigt__p_wxNotebook, | |
32955 | _swigt__p_wxNotifyEvent, | |
32956 | _swigt__p_wxArrayString, | |
32957 | _swigt__p_wxListbook, | |
32958 | _swigt__p_wxStaticBitmap, | |
32959 | _swigt__p_wxSlider, | |
32960 | _swigt__p_wxStaticBox, | |
32961 | _swigt__p_wxArrayInt, | |
32962 | _swigt__p_wxContextHelp, | |
32963 | _swigt__p_long, | |
32964 | _swigt__p_wxEvtHandler, | |
32965 | _swigt__p_wxListEvent, | |
d14a1e28 | 32966 | _swigt__p_wxCheckListBox, |
74a57fcd | 32967 | _swigt__p_wxListBox, |
d14a1e28 RD |
32968 | _swigt__p_wxBookCtrl, |
32969 | _swigt__p_wxSpinButton, | |
32970 | _swigt__p_wxButton, | |
32971 | _swigt__p_wxBitmapButton, | |
32972 | _swigt__p_wxRect, | |
32973 | _swigt__p_wxContextHelpButton, | |
32974 | _swigt__p_wxRadioBox, | |
32975 | _swigt__p_wxScrollBar, | |
994141e6 | 32976 | _swigt__p_char, |
d14a1e28 RD |
32977 | _swigt__p_wxTreeItemId, |
32978 | _swigt__p_wxComboBox, | |
32979 | _swigt__p_wxHelpEvent, | |
32980 | _swigt__p_wxListItem, | |
32981 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 32982 | _swigt__p_wxSpinEvent, |
e811c8ce | 32983 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
32984 | _swigt__p_wxSpinCtrl, |
32985 | _swigt__p_wxImageList, | |
32986 | _swigt__p_wxHelpProvider, | |
32987 | _swigt__p_wxTextAttr, | |
32988 | _swigt__p_wxSimpleHelpProvider, | |
32989 | _swigt__p_wxPoint, | |
32990 | _swigt__p_wxListbookEvent, | |
32991 | _swigt__p_wxNotebookEvent, | |
32992 | _swigt__p_wxObject, | |
e811c8ce | 32993 | _swigt__p_wxCursor, |
d14a1e28 RD |
32994 | _swigt__p_wxKeyEvent, |
32995 | _swigt__p_wxWindow, | |
32996 | _swigt__p_wxString, | |
32997 | _swigt__p_wxBitmap, | |
32998 | _swigt__p_wxTreeEvent, | |
32999 | _swigt__p_wxMouseEvent, | |
33000 | _swigt__p_wxCommandEvent, | |
33001 | _swigt__p_wxStaticText, | |
33002 | _swigt__p_wxControlWithItems, | |
33003 | _swigt__p_wxToolBarToolBase, | |
33004 | _swigt__p_wxColour, | |
33005 | _swigt__p_wxToolBar, | |
33006 | _swigt__p_wxBookCtrlSizer, | |
33007 | _swigt__p_wxValidator, | |
33008 | 0 | |
33009 | }; | |
33010 | ||
33011 | ||
33012 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33013 | ||
33014 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
33015 | {0}}; |
33016 | ||
33017 | #ifdef __cplusplus | |
33018 | } | |
33019 | #endif | |
33020 | ||
33021 | #ifdef __cplusplus | |
33022 | extern "C" | |
33023 | #endif | |
33024 | SWIGEXPORT(void) SWIG_init(void) { | |
33025 | static PyObject *SWIG_globals = 0; | |
33026 | static int typeinit = 0; | |
33027 | PyObject *m, *d; | |
33028 | int i; | |
33029 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33030 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33031 | d = PyModule_GetDict(m); | |
33032 | ||
33033 | if (!typeinit) { | |
33034 | for (i = 0; swig_types_initial[i]; i++) { | |
33035 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33036 | } | |
33037 | typeinit = 1; | |
33038 | } | |
33039 | SWIG_InstallConstants(d,swig_const_table); | |
33040 | ||
b2dc1044 RD |
33041 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
33042 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
15afbcd0 RD |
33043 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); |
33044 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
33045 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
33046 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
33047 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
33048 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
b2dc1044 | 33049 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
15afbcd0 RD |
33050 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); |
33051 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
33052 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33053 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
33054 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
33055 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
33056 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
33057 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33058 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
15afbcd0 RD |
33059 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); |
33060 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
33061 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
33062 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
33063 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
33064 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33065 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33066 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33067 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
15afbcd0 RD |
33068 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); |
33069 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
33070 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
33071 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
33072 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
33073 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
33074 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
33075 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
33076 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
33077 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
33078 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
33079 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
33080 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
33081 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
33082 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
33083 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
33084 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
33085 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
33086 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33087 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
33088 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33089 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
33090 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33091 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33092 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33093 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33094 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
33095 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
33096 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33097 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33098 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33099 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
33100 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
33101 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33102 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33103 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
33104 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
33105 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
33106 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
33107 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
33108 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
33109 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
33110 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33111 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33112 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
33113 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
33114 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33115 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
15afbcd0 RD |
33116 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); |
33117 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
33118 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
33119 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 33120 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
33121 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
33122 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33123 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33124 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 33125 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 33126 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
15afbcd0 RD |
33127 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); |
33128 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
33129 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
33130 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
33131 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
33132 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
33133 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
33134 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
33135 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
33136 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
33137 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
33138 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33139 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); |
33140 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
33141 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
33142 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
33143 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
33144 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
33145 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
33146 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33147 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); |
33148 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
33149 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
33150 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
33151 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
33152 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
33153 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
33154 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
33155 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
33156 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
33157 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
33158 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
33159 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
33160 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 33161 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
15afbcd0 RD |
33162 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); |
33163 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
33164 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
33165 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
33166 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
33167 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
33168 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
33169 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
33170 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
33171 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
33172 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
33173 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
33174 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
33175 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
33176 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
33177 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
33178 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
33179 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
33180 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
33181 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
33182 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
33183 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
33184 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
33185 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
33186 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
33187 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
33188 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
33189 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
33190 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
33191 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
33192 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
33193 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
33194 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
33195 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
33196 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
33197 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
33198 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
33199 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
33200 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
33201 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
33202 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33203 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33204 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33205 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
33206 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
33207 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
33208 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
33209 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
33210 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
33211 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
33212 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
33213 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
33214 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
33215 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
33216 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33217 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
33218 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
33219 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
33220 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
33221 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
33222 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33223 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
33224 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
33225 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
33226 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
33227 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
33228 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
33229 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
33230 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
33231 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33232 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33233 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33234 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33235 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33236 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33237 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33238 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33239 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33240 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33241 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33242 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33243 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33244 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33245 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33246 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33247 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33248 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33249 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33250 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33251 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33252 | ||
33253 | // Map renamed classes back to their common name for OOR | |
33254 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33255 | ||
b2dc1044 | 33256 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
15afbcd0 RD |
33257 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); |
33258 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
33259 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
33260 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
33261 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
33262 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
33263 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
33264 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33265 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
33266 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
33267 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
33268 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33269 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
33270 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
33271 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
33272 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
33273 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
33274 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
33275 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
33276 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
33277 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
33278 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
33279 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
33280 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
33281 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33282 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
33283 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33284 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33285 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33286 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33287 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
33288 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
33289 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33290 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33291 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
33292 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
33293 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33294 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33295 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33296 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33297 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33298 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33299 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33300 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33301 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33302 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33303 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33304 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33305 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33306 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33307 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33308 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33309 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33310 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 33311 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
33312 | |
33313 | // Map renamed classes back to their common name for OOR | |
33314 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33315 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33316 | ||
b2dc1044 | 33317 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
15afbcd0 RD |
33318 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
33319 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
33320 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
33321 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
33322 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
33323 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
33324 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
33325 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
33326 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
33327 | |
33328 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33329 | ||
d14a1e28 RD |
33330 | } |
33331 |