]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 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 | |
9fd4be55 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 | ||
0f774bef 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 |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 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 { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 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 *); | |
0f774bef 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 | ||
0f774bef | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2dbef272 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
0f774bef RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
8edf1c75 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
423f194a | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
234 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
235 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
58203fa6 RD |
236 | #define SWIGTYPE_p_wxCheckBox swig_types[3] |
237 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
238 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
239 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
240 | #define SWIGTYPE_p_bool swig_types[7] | |
241 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
242 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
243 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
244 | #define SWIGTYPE_p_wxPyListCtrl swig_types[11] | |
245 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
246 | #define SWIGTYPE_p_wxControl swig_types[13] | |
247 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
248 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
249 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
250 | #define SWIGTYPE_p_wxFont swig_types[17] | |
251 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
252 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
253 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
254 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
255 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
256 | #define SWIGTYPE_p_void swig_types[23] | |
257 | #define SWIGTYPE_p_int swig_types[24] | |
258 | #define SWIGTYPE_p_wxSize swig_types[25] | |
259 | #define SWIGTYPE_p_wxDC swig_types[26] | |
260 | #define SWIGTYPE_p_wxListView swig_types[27] | |
261 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
262 | #define SWIGTYPE_p_wxTextCtrl swig_types[29] | |
263 | #define SWIGTYPE_p_wxNotebook swig_types[30] | |
264 | #define SWIGTYPE_p_wxNotifyEvent swig_types[31] | |
265 | #define SWIGTYPE_p_wxArrayString swig_types[32] | |
266 | #define SWIGTYPE_p_wxListbook swig_types[33] | |
267 | #define SWIGTYPE_p_wxStaticBitmap swig_types[34] | |
268 | #define SWIGTYPE_p_wxSlider swig_types[35] | |
269 | #define SWIGTYPE_p_wxStaticBox swig_types[36] | |
270 | #define SWIGTYPE_p_wxArrayInt swig_types[37] | |
271 | #define SWIGTYPE_p_wxContextHelp swig_types[38] | |
272 | #define SWIGTYPE_p_long swig_types[39] | |
273 | #define SWIGTYPE_p_wxEvtHandler swig_types[40] | |
274 | #define SWIGTYPE_p_wxListEvent swig_types[41] | |
275 | #define SWIGTYPE_p_wxListBox swig_types[42] | |
276 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
277 | #define SWIGTYPE_p_wxBookCtrl swig_types[44] | |
278 | #define SWIGTYPE_p_wxSpinButton swig_types[45] | |
279 | #define SWIGTYPE_p_wxButton swig_types[46] | |
280 | #define SWIGTYPE_p_wxBitmapButton swig_types[47] | |
281 | #define SWIGTYPE_p_wxRect swig_types[48] | |
282 | #define SWIGTYPE_p_wxContextHelpButton swig_types[49] | |
283 | #define SWIGTYPE_p_wxRadioBox swig_types[50] | |
284 | #define SWIGTYPE_p_wxScrollBar swig_types[51] | |
8edf1c75 RD |
285 | #define SWIGTYPE_p_char swig_types[52] |
286 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
287 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
288 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
289 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
290 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
291 | #define SWIGTYPE_p_wxSpinEvent swig_types[58] | |
292 | #define SWIGTYPE_p_wxGenericDragImage swig_types[59] | |
293 | #define SWIGTYPE_p_wxSpinCtrl swig_types[60] | |
294 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
295 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
296 | #define SWIGTYPE_p_wxTextAttr swig_types[63] | |
297 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64] | |
298 | #define SWIGTYPE_p_wxPoint swig_types[65] | |
299 | #define SWIGTYPE_p_wxListbookEvent swig_types[66] | |
300 | #define SWIGTYPE_p_wxNotebookEvent swig_types[67] | |
301 | #define SWIGTYPE_p_wxObject swig_types[68] | |
302 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
303 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
304 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
305 | #define SWIGTYPE_p_wxString swig_types[72] | |
306 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
307 | #define SWIGTYPE_p_wxTreeEvent swig_types[74] | |
308 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
309 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
310 | #define SWIGTYPE_p_wxStaticText swig_types[77] | |
311 | #define SWIGTYPE_p_wxControlWithItems swig_types[78] | |
312 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[79] | |
313 | #define SWIGTYPE_p_wxColour swig_types[80] | |
314 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
315 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82] | |
316 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
317 | static swig_type_info *swig_types[85]; | |
d14a1e28 RD |
318 | |
319 | /* -------- TYPES TABLE (END) -------- */ | |
320 | ||
321 | ||
322 | /*----------------------------------------------- | |
323 | @(target):= _controls.so | |
324 | ------------------------------------------------*/ | |
325 | #define SWIG_init init_controls | |
326 | ||
327 | #define SWIG_name "_controls" | |
328 | ||
8edf1c75 RD |
329 | #include <limits.h> |
330 | #include <float.h> | |
331 | #include <string.h> | |
332 | ||
333 | #ifndef SWIGSTATIC | |
334 | #ifdef __cplusplus | |
335 | #define SWIGSTATIC(a) static inline a | |
336 | #else | |
337 | #define SWIGSTATIC(a) static a | |
338 | #endif | |
339 | #endif | |
340 | ||
341 | #ifndef numeric_cast | |
342 | #ifdef __cplusplus | |
343 | #ifdef HAVE_NUMERIC_CAST | |
344 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
345 | #else | |
346 | #define numeric_cast(type,a) static_cast<type>(a) | |
347 | #endif | |
348 | #else | |
349 | #define numeric_cast(type,a) (type)(a) | |
350 | #endif | |
351 | #endif | |
352 | ||
353 | ||
354 | ||
355 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
356 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
357 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
358 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
359 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
360 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
361 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
362 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
363 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
364 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
365 | ||
366 | ||
d14a1e28 RD |
367 | #include "wx/wxPython/wxPython.h" |
368 | #include "wx/wxPython/pyclasses.h" | |
369 | ||
cbd72d4f RD |
370 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
371 | static const wxString wxPyEmptyString(wxEmptyString); | |
372 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
02a34c4c RD |
373 | |
374 | const wxArrayString wxPyEmptyStringArray; | |
375 | ||
cbd72d4f | 376 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
8edf1c75 RD |
377 | |
378 | SWIGSTATIC(int) | |
379 | SWIG_PyObj_AsInt(PyObject *obj) | |
380 | { | |
381 | return numeric_cast(int, | |
382 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATIC(long) | |
387 | SWIG_PyObj_AsLong(PyObject * obj) | |
388 | { | |
389 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
390 | } | |
391 | ||
cbd72d4f | 392 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
8edf1c75 RD |
393 | |
394 | SWIGSTATIC(bool) | |
395 | SWIG_PyObj_AsBool(PyObject *obj) | |
396 | { | |
397 | return PyObject_IsTrue(obj) ? true : false; | |
398 | } | |
399 | ||
cbd72d4f RD |
400 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
401 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
402 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
403 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
404 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
405 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
406 | |
407 | #include <wx/checklst.h> | |
408 | ||
d14a1e28 | 409 | |
cbd72d4f | 410 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
411 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
412 | if (clientData) { | |
413 | wxPyClientData* data = new wxPyClientData(clientData); | |
414 | self->Insert(item, pos, data); | |
415 | } else | |
416 | self->Insert(item, pos); | |
417 | } | |
418 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
419 | wxArrayInt lst; | |
420 | self->GetSelections(lst); | |
421 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
422 | for(size_t i=0; i<lst.GetCount(); i++) { | |
423 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
424 | } | |
425 | return tup; | |
426 | } | |
cbd72d4f | 427 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
428 | |
429 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
430 | PyObject* o2; | |
431 | PyObject* o3; | |
432 | ||
433 | if (!target) { | |
434 | target = o; | |
435 | } else if (target == Py_None) { | |
436 | Py_DECREF(Py_None); | |
437 | target = o; | |
438 | } else { | |
439 | if (!PyTuple_Check(target)) { | |
440 | o2 = target; | |
441 | target = PyTuple_New(1); | |
442 | PyTuple_SetItem(target, 0, o2); | |
443 | } | |
444 | o3 = PyTuple_New(1); | |
445 | PyTuple_SetItem(o3, 0, o); | |
446 | ||
447 | o2 = target; | |
448 | target = PySequence_Concat(o2, o3); | |
449 | Py_DECREF(o2); | |
450 | Py_DECREF(o3); | |
451 | } | |
452 | return target; | |
453 | } | |
454 | ||
455 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
456 | self->AppendText(text); | |
457 | } | |
458 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
459 | return self->GetValue().Mid(from, to - from); | |
460 | } | |
cbd72d4f RD |
461 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
462 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
32958cea | 463 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
cbd72d4f RD |
464 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
465 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
466 | |
467 | #include <wx/slider.h> | |
468 | ||
d14a1e28 | 469 | |
cbd72d4f | 470 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
32958cea | 471 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 472 | |
d896a793 | 473 | #if defined(__WXMAC__) || defined(__WXX11__) |
d14a1e28 RD |
474 | // implement dummy classes and such for wxMac |
475 | ||
476 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
477 | ||
478 | class wxToggleButton : public wxControl | |
479 | { | |
480 | public: | |
481 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
482 | const wxPoint&, const wxSize&, long, | |
483 | const wxValidator&, const wxString&) | |
cbd72d4f | 484 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
485 | |
486 | wxToggleButton() | |
cbd72d4f | 487 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
488 | }; |
489 | #endif | |
490 | ||
cbd72d4f | 491 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
8edf1c75 RD |
492 | |
493 | SWIGSTATIC(PyObject* ) | |
494 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
495 | { | |
496 | return (value > (unsigned long)(LONG_MAX)) ? | |
497 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
498 | } | |
499 | ||
cbd72d4f | 500 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
501 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
502 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
503 | if (udata) { | |
504 | Py_INCREF(udata->m_obj); | |
505 | return udata->m_obj; | |
506 | } else { | |
507 | Py_INCREF(Py_None); | |
508 | return Py_None; | |
509 | } | |
510 | } | |
511 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
512 | self->SetClientData(new wxPyUserData(clientData)); | |
513 | } | |
514 | 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){ | |
515 | wxPyUserData* udata = NULL; | |
516 | if (clientData && clientData != Py_None) | |
517 | udata = new wxPyUserData(clientData); | |
518 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
519 | shortHelp, longHelp, udata); | |
520 | } | |
521 | 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){ | |
522 | wxPyUserData* udata = NULL; | |
523 | if (clientData && clientData != Py_None) | |
524 | udata = new wxPyUserData(clientData); | |
525 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
526 | shortHelp, longHelp, udata); | |
527 | } | |
528 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
529 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
530 | if (udata) { | |
531 | Py_INCREF(udata->m_obj); | |
532 | return udata->m_obj; | |
533 | } else { | |
534 | Py_INCREF(Py_None); | |
535 | return Py_None; | |
536 | } | |
537 | } | |
538 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
539 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
540 | } | |
541 | ||
542 | #include <wx/listctrl.h> | |
543 | ||
d14a1e28 | 544 | |
32958cea | 545 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
546 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
547 | // Python aware sorting function for wxPyListCtrl | |
548 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
549 | int retval = 0; | |
550 | PyObject* func = (PyObject*)funcPtr; | |
551 | wxPyBeginBlockThreads(); | |
552 | ||
553 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
554 | PyObject* result = PyEval_CallObject(func, args); | |
555 | Py_DECREF(args); | |
556 | if (result) { | |
557 | retval = PyInt_AsLong(result); | |
558 | Py_DECREF(result); | |
559 | } | |
560 | ||
561 | wxPyEndBlockThreads(); | |
562 | return retval; | |
563 | } | |
564 | ||
565 | // C++ Version of a Python aware class | |
566 | class wxPyListCtrl : public wxListCtrl { | |
567 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
568 | public: | |
569 | wxPyListCtrl() : wxListCtrl() {} | |
570 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
571 | const wxPoint& pos, | |
572 | const wxSize& size, | |
573 | long style, | |
574 | const wxValidator& validator, | |
575 | const wxString& name) : | |
576 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
577 | ||
578 | bool Create(wxWindow* parent, wxWindowID id, | |
579 | const wxPoint& pos, | |
580 | const wxSize& size, | |
581 | long style, | |
582 | const wxValidator& validator, | |
583 | const wxString& name) { | |
584 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
585 | } | |
586 | ||
587 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
588 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
589 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
590 | ||
591 | PYPRIVATE; | |
592 | }; | |
593 | ||
594 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
595 | ||
596 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
597 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
598 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
599 | ||
600 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
601 | wxListItem item; | |
602 | item.SetMask( wxLIST_MASK_STATE | | |
603 | wxLIST_MASK_TEXT | | |
604 | wxLIST_MASK_IMAGE | | |
605 | wxLIST_MASK_DATA | | |
606 | wxLIST_SET_ITEM | | |
607 | wxLIST_MASK_WIDTH | | |
608 | wxLIST_MASK_FORMAT | |
609 | ); | |
610 | if (self->GetColumn(col, item)) | |
611 | return new wxListItem(item); | |
612 | else | |
613 | return NULL; | |
614 | } | |
615 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
616 | wxListItem* info = new wxListItem; | |
617 | info->m_itemId = itemId; | |
618 | info->m_col = col; | |
619 | info->m_mask = 0xFFFF; | |
620 | self->GetItem(*info); | |
621 | return info; | |
622 | } | |
623 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
624 | wxPoint pos; | |
625 | self->GetItemPosition(item, pos); | |
626 | return pos; | |
627 | } | |
628 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
629 | wxRect rect; | |
630 | self->GetItemRect(item, rect, code); | |
631 | return rect; | |
632 | } | |
633 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
634 | if (!PyCallable_Check(func)) | |
423f194a | 635 | return False; |
d14a1e28 RD |
636 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
637 | } | |
638 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
639 | ||
640 | ||
641 | ||
642 | return (wxWindow*)self->m_mainWin; | |
643 | ||
644 | } | |
645 | ||
646 | #include <wx/treectrl.h> | |
647 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 648 | |
32958cea | 649 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
d14a1e28 | 650 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ |
423f194a | 651 | if (!other) return False; |
d14a1e28 RD |
652 | return *self == *other; |
653 | } | |
654 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
423f194a | 655 | if (!other) return True; |
d14a1e28 RD |
656 | return *self != *other; |
657 | } | |
658 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
659 | // C++ version of Python aware wxTreeCtrl | |
660 | class wxPyTreeCtrl : public wxTreeCtrl { | |
661 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
662 | public: | |
663 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
664 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
665 | const wxPoint& pos, | |
666 | const wxSize& size, | |
667 | long style, | |
668 | const wxValidator& validator, | |
669 | const wxString& name) : | |
670 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
671 | ||
672 | bool Create(wxWindow *parent, wxWindowID id, | |
673 | const wxPoint& pos, | |
674 | const wxSize& size, | |
675 | long style, | |
676 | const wxValidator& validator, | |
677 | const wxString& name) { | |
678 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
679 | } | |
680 | ||
681 | ||
682 | int OnCompareItems(const wxTreeItemId& item1, | |
683 | const wxTreeItemId& item2) { | |
684 | int rval = 0; | |
685 | bool found; | |
686 | wxPyBeginBlockThreads(); | |
687 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
423f194a RD |
688 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
689 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
690 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
691 | Py_DECREF(o1); | |
692 | Py_DECREF(o2); | |
693 | } | |
694 | wxPyEndBlockThreads(); | |
695 | if (! found) | |
696 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
697 | return rval; | |
698 | } | |
699 | PYPRIVATE; | |
700 | }; | |
701 | ||
702 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
703 | ||
704 | ||
8edf1c75 RD |
705 | |
706 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
707 | ||
708 | ||
709 | SWIGSTATIC(unsigned int) | |
710 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
711 | { | |
712 | return numeric_cast(unsigned int, | |
713 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
714 | } | |
715 | ||
d14a1e28 RD |
716 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
717 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
718 | if (data == NULL) { | |
719 | data = new wxPyTreeItemData(); | |
720 | data->SetId(item); // set the id | |
721 | self->SetItemData(item, data); | |
722 | } | |
723 | return data; | |
724 | } | |
725 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
726 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
727 | if (data == NULL) { | |
728 | data = new wxPyTreeItemData(); | |
729 | data->SetId(item); // set the id | |
730 | self->SetItemData(item, data); | |
731 | } | |
732 | return data->GetData(); | |
733 | } | |
734 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
735 | data->SetId(item); // set the id | |
736 | self->SetItemData(item, data); | |
737 | } | |
738 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
739 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
740 | if (data == NULL) { | |
741 | data = new wxPyTreeItemData(obj); | |
742 | data->SetId(item); // set the id | |
743 | self->SetItemData(item, data); | |
744 | } else | |
745 | data->SetData(obj); | |
746 | } | |
747 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
748 | wxPyBeginBlockThreads(); | |
749 | PyObject* rval = PyList_New(0); | |
750 | wxArrayTreeItemIds array; | |
751 | size_t num, x; | |
752 | num = self->GetSelections(array); | |
753 | for (x=0; x < num; x++) { | |
754 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 755 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
756 | PyList_Append(rval, item); |
757 | } | |
758 | wxPyEndBlockThreads(); | |
759 | return rval; | |
760 | } | |
761 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
762 | void* cookie = 0; |
763 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
d14a1e28 RD |
764 | wxPyBeginBlockThreads(); |
765 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
766 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
767 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
768 | wxPyEndBlockThreads(); |
769 | return tup; | |
770 | } | |
58203fa6 RD |
771 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
772 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
d14a1e28 RD |
773 | wxPyBeginBlockThreads(); |
774 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
775 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
776 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
777 | wxPyEndBlockThreads(); |
778 | return tup; | |
779 | } | |
780 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
781 | wxRect rect; | |
782 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
783 | wxPyBeginBlockThreads(); | |
784 | wxRect* r = new wxRect(rect); | |
423f194a | 785 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
786 | wxPyEndBlockThreads(); |
787 | return val; | |
788 | } | |
789 | else | |
790 | RETURN_NONE(); | |
791 | } | |
cbd72d4f | 792 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
793 | // C++ version of Python aware wxControl |
794 | class wxPyControl : public wxControl | |
795 | { | |
796 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
797 | public: | |
798 | wxPyControl() : wxControl() {} | |
799 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
800 | const wxPoint& pos = wxDefaultPosition, | |
801 | const wxSize& size = wxDefaultSize, | |
802 | long style = 0, | |
803 | const wxValidator& validator=wxDefaultValidator, | |
804 | const wxString& name = wxPyControlNameStr) | |
805 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
806 | ||
807 | ||
808 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
809 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
810 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
811 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
812 | ||
813 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
814 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
815 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
816 | ||
817 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
818 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
819 | ||
820 | DEC_PYCALLBACK__(InitDialog); | |
821 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
822 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
823 | DEC_PYCALLBACK_BOOL_(Validate); | |
824 | ||
825 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
826 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
827 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
828 | ||
829 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
830 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
831 | ||
832 | PYPRIVATE; | |
833 | }; | |
834 | ||
835 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
836 | ||
837 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
838 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
839 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
840 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
841 | ||
842 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
843 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
844 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
845 | ||
846 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
847 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
848 | ||
849 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
850 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
851 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
852 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
853 | ||
854 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
855 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
856 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
857 | ||
858 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
859 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
860 | ||
861 | ||
862 | ||
863 | ||
864 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
865 | |
866 | #include <wx/generic/dragimgg.h> | |
867 | ||
d14a1e28 RD |
868 | #ifdef __cplusplus |
869 | extern "C" { | |
870 | #endif | |
8edf1c75 | 871 | static int _wrap_ButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
872 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
873 | return 1; | |
874 | } | |
875 | ||
876 | ||
877 | static PyObject *_wrap_ButtonNameStr_get() { | |
878 | PyObject *pyobj; | |
879 | ||
880 | { | |
881 | #if wxUSE_UNICODE | |
882 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
883 | #else | |
884 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
885 | #endif | |
886 | } | |
887 | return pyobj; | |
888 | } | |
889 | ||
890 | ||
d14a1e28 RD |
891 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
892 | PyObject *resultobj; | |
893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 894 | int arg2 ; |
d14a1e28 RD |
895 | wxString *arg3 = 0 ; |
896 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
897 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
898 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
899 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
900 | long arg6 = (long) 0 ; | |
901 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
902 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
903 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
904 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
905 | wxButton *result; | |
423f194a | 906 | bool temp3 = False ; |
d14a1e28 RD |
907 | wxPoint temp4 ; |
908 | wxSize temp5 ; | |
423f194a | 909 | bool temp8 = False ; |
d14a1e28 | 910 | PyObject * obj0 = 0 ; |
8edf1c75 | 911 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
912 | PyObject * obj2 = 0 ; |
913 | PyObject * obj3 = 0 ; | |
914 | PyObject * obj4 = 0 ; | |
8edf1c75 | 915 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
916 | PyObject * obj6 = 0 ; |
917 | PyObject * obj7 = 0 ; | |
918 | char *kwnames[] = { | |
919 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
920 | }; | |
921 | ||
8edf1c75 | 922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
924 | { |
925 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
926 | if (PyErr_Occurred()) SWIG_fail; | |
927 | } | |
d14a1e28 RD |
928 | { |
929 | arg3 = wxString_in_helper(obj2); | |
930 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 931 | temp3 = True; |
d14a1e28 RD |
932 | } |
933 | if (obj3) { | |
934 | { | |
935 | arg4 = &temp4; | |
936 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
937 | } | |
938 | } | |
939 | if (obj4) { | |
940 | { | |
941 | arg5 = &temp5; | |
942 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
943 | } | |
944 | } | |
8edf1c75 RD |
945 | if (obj5) { |
946 | { | |
947 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
948 | if (PyErr_Occurred()) SWIG_fail; | |
949 | } | |
950 | } | |
d14a1e28 RD |
951 | if (obj6) { |
952 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
953 | if (arg7 == NULL) { | |
954 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
955 | } | |
956 | } | |
957 | if (obj7) { | |
958 | { | |
959 | arg8 = wxString_in_helper(obj7); | |
960 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 961 | temp8 = True; |
d14a1e28 RD |
962 | } |
963 | } | |
964 | { | |
965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
966 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
967 | ||
968 | wxPyEndAllowThreads(__tstate); | |
969 | if (PyErr_Occurred()) SWIG_fail; | |
970 | } | |
971 | { | |
972 | resultobj = wxPyMake_wxObject(result); | |
973 | } | |
974 | { | |
975 | if (temp3) | |
976 | delete arg3; | |
977 | } | |
978 | { | |
979 | if (temp8) | |
980 | delete arg8; | |
981 | } | |
982 | return resultobj; | |
983 | fail: | |
984 | { | |
985 | if (temp3) | |
986 | delete arg3; | |
987 | } | |
988 | { | |
989 | if (temp8) | |
990 | delete arg8; | |
991 | } | |
992 | return NULL; | |
993 | } | |
994 | ||
995 | ||
996 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
997 | PyObject *resultobj; | |
998 | wxButton *result; | |
999 | char *kwnames[] = { | |
1000 | NULL | |
1001 | }; | |
1002 | ||
1003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1004 | { | |
1005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1006 | result = (wxButton *)new wxButton(); | |
1007 | ||
1008 | wxPyEndAllowThreads(__tstate); | |
1009 | if (PyErr_Occurred()) SWIG_fail; | |
1010 | } | |
1011 | { | |
1012 | resultobj = wxPyMake_wxObject(result); | |
1013 | } | |
1014 | return resultobj; | |
1015 | fail: | |
1016 | return NULL; | |
1017 | } | |
1018 | ||
1019 | ||
1020 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1021 | PyObject *resultobj; | |
1022 | wxButton *arg1 = (wxButton *) 0 ; | |
1023 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1024 | int arg3 ; |
d14a1e28 RD |
1025 | wxString *arg4 = 0 ; |
1026 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1027 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1028 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1029 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1030 | long arg7 = (long) 0 ; | |
1031 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1032 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1033 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1034 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1035 | bool result; | |
423f194a | 1036 | bool temp4 = False ; |
d14a1e28 RD |
1037 | wxPoint temp5 ; |
1038 | wxSize temp6 ; | |
423f194a | 1039 | bool temp9 = False ; |
d14a1e28 RD |
1040 | PyObject * obj0 = 0 ; |
1041 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1042 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1043 | PyObject * obj3 = 0 ; |
1044 | PyObject * obj4 = 0 ; | |
1045 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1046 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1047 | PyObject * obj7 = 0 ; |
1048 | PyObject * obj8 = 0 ; | |
1049 | char *kwnames[] = { | |
1050 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1051 | }; | |
1052 | ||
8edf1c75 | 1053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1055 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1056 | { |
1057 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1058 | if (PyErr_Occurred()) SWIG_fail; | |
1059 | } | |
d14a1e28 RD |
1060 | { |
1061 | arg4 = wxString_in_helper(obj3); | |
1062 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1063 | temp4 = True; |
d14a1e28 RD |
1064 | } |
1065 | if (obj4) { | |
1066 | { | |
1067 | arg5 = &temp5; | |
1068 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1069 | } | |
1070 | } | |
1071 | if (obj5) { | |
1072 | { | |
1073 | arg6 = &temp6; | |
1074 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1075 | } | |
1076 | } | |
8edf1c75 RD |
1077 | if (obj6) { |
1078 | { | |
1079 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1080 | if (PyErr_Occurred()) SWIG_fail; | |
1081 | } | |
1082 | } | |
d14a1e28 RD |
1083 | if (obj7) { |
1084 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1085 | if (arg8 == NULL) { | |
1086 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1087 | } | |
1088 | } | |
1089 | if (obj8) { | |
1090 | { | |
1091 | arg9 = wxString_in_helper(obj8); | |
1092 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1093 | temp9 = True; |
d14a1e28 RD |
1094 | } |
1095 | } | |
1096 | { | |
1097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1098 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1099 | ||
1100 | wxPyEndAllowThreads(__tstate); | |
1101 | if (PyErr_Occurred()) SWIG_fail; | |
1102 | } | |
02a34c4c | 1103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1104 | { |
1105 | if (temp4) | |
1106 | delete arg4; | |
1107 | } | |
1108 | { | |
1109 | if (temp9) | |
1110 | delete arg9; | |
1111 | } | |
1112 | return resultobj; | |
1113 | fail: | |
1114 | { | |
1115 | if (temp4) | |
1116 | delete arg4; | |
1117 | } | |
1118 | { | |
1119 | if (temp9) | |
1120 | delete arg9; | |
1121 | } | |
1122 | return NULL; | |
1123 | } | |
1124 | ||
1125 | ||
1126 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1127 | PyObject *resultobj; | |
1128 | wxButton *arg1 = (wxButton *) 0 ; | |
1129 | PyObject * obj0 = 0 ; | |
1130 | char *kwnames[] = { | |
1131 | (char *) "self", NULL | |
1132 | }; | |
1133 | ||
1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1136 | { | |
1137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1138 | (arg1)->SetDefault(); | |
1139 | ||
1140 | wxPyEndAllowThreads(__tstate); | |
1141 | if (PyErr_Occurred()) SWIG_fail; | |
1142 | } | |
1143 | Py_INCREF(Py_None); resultobj = Py_None; | |
1144 | return resultobj; | |
1145 | fail: | |
1146 | return NULL; | |
1147 | } | |
1148 | ||
1149 | ||
1150 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1151 | PyObject *resultobj; | |
1152 | wxSize result; | |
1153 | char *kwnames[] = { | |
1154 | NULL | |
1155 | }; | |
1156 | ||
1157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1158 | { | |
1159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1160 | result = wxButton::GetDefaultSize(); | |
1161 | ||
1162 | wxPyEndAllowThreads(__tstate); | |
1163 | if (PyErr_Occurred()) SWIG_fail; | |
1164 | } | |
1165 | { | |
1166 | wxSize * resultptr; | |
1167 | resultptr = new wxSize((wxSize &) result); | |
1168 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1169 | } | |
1170 | return resultobj; | |
1171 | fail: | |
1172 | return NULL; | |
1173 | } | |
1174 | ||
1175 | ||
1176 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1177 | PyObject *obj; | |
1178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1179 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1180 | Py_INCREF(obj); | |
1181 | return Py_BuildValue((char *)""); | |
1182 | } | |
1183 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1184 | PyObject *resultobj; | |
1185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1186 | int arg2 ; |
d14a1e28 RD |
1187 | wxBitmap *arg3 = 0 ; |
1188 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1189 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1190 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1191 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1192 | long arg6 = (long) wxBU_AUTODRAW ; | |
1193 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1194 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1195 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1196 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1197 | wxBitmapButton *result; | |
1198 | wxPoint temp4 ; | |
1199 | wxSize temp5 ; | |
423f194a | 1200 | bool temp8 = False ; |
d14a1e28 | 1201 | PyObject * obj0 = 0 ; |
8edf1c75 | 1202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1203 | PyObject * obj2 = 0 ; |
1204 | PyObject * obj3 = 0 ; | |
1205 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1206 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1207 | PyObject * obj6 = 0 ; |
1208 | PyObject * obj7 = 0 ; | |
1209 | char *kwnames[] = { | |
1210 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1211 | }; | |
1212 | ||
8edf1c75 | 1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1215 | { |
1216 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1217 | if (PyErr_Occurred()) SWIG_fail; | |
1218 | } | |
d14a1e28 RD |
1219 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1220 | if (arg3 == NULL) { | |
1221 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1222 | } | |
1223 | if (obj3) { | |
1224 | { | |
1225 | arg4 = &temp4; | |
1226 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1227 | } | |
1228 | } | |
1229 | if (obj4) { | |
1230 | { | |
1231 | arg5 = &temp5; | |
1232 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1233 | } | |
1234 | } | |
8edf1c75 RD |
1235 | if (obj5) { |
1236 | { | |
1237 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1238 | if (PyErr_Occurred()) SWIG_fail; | |
1239 | } | |
1240 | } | |
d14a1e28 RD |
1241 | if (obj6) { |
1242 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1243 | if (arg7 == NULL) { | |
1244 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1245 | } | |
1246 | } | |
1247 | if (obj7) { | |
1248 | { | |
1249 | arg8 = wxString_in_helper(obj7); | |
1250 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1251 | temp8 = True; |
d14a1e28 RD |
1252 | } |
1253 | } | |
1254 | { | |
1255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1256 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1257 | ||
1258 | wxPyEndAllowThreads(__tstate); | |
1259 | if (PyErr_Occurred()) SWIG_fail; | |
1260 | } | |
1261 | { | |
1262 | resultobj = wxPyMake_wxObject(result); | |
1263 | } | |
1264 | { | |
1265 | if (temp8) | |
1266 | delete arg8; | |
1267 | } | |
1268 | return resultobj; | |
1269 | fail: | |
1270 | { | |
1271 | if (temp8) | |
1272 | delete arg8; | |
1273 | } | |
1274 | return NULL; | |
1275 | } | |
1276 | ||
1277 | ||
1278 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1279 | PyObject *resultobj; | |
1280 | wxBitmapButton *result; | |
1281 | char *kwnames[] = { | |
1282 | NULL | |
1283 | }; | |
1284 | ||
1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1286 | { | |
1287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1288 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1289 | ||
1290 | wxPyEndAllowThreads(__tstate); | |
1291 | if (PyErr_Occurred()) SWIG_fail; | |
1292 | } | |
1293 | { | |
1294 | resultobj = wxPyMake_wxObject(result); | |
1295 | } | |
1296 | return resultobj; | |
1297 | fail: | |
1298 | return NULL; | |
1299 | } | |
1300 | ||
1301 | ||
1302 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1303 | PyObject *resultobj; | |
1304 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1305 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1306 | int arg3 ; |
d14a1e28 RD |
1307 | wxBitmap *arg4 = 0 ; |
1308 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1309 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1310 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1311 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1312 | long arg7 = (long) wxBU_AUTODRAW ; | |
1313 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1314 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1315 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1316 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1317 | bool result; | |
1318 | wxPoint temp5 ; | |
1319 | wxSize temp6 ; | |
423f194a | 1320 | bool temp9 = False ; |
d14a1e28 RD |
1321 | PyObject * obj0 = 0 ; |
1322 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1323 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1324 | PyObject * obj3 = 0 ; |
1325 | PyObject * obj4 = 0 ; | |
1326 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1327 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1328 | PyObject * obj7 = 0 ; |
1329 | PyObject * obj8 = 0 ; | |
1330 | char *kwnames[] = { | |
1331 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1332 | }; | |
1333 | ||
8edf1c75 | 1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1336 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1337 | { |
1338 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1339 | if (PyErr_Occurred()) SWIG_fail; | |
1340 | } | |
d14a1e28 RD |
1341 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1342 | if (arg4 == NULL) { | |
1343 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1344 | } | |
1345 | if (obj4) { | |
1346 | { | |
1347 | arg5 = &temp5; | |
1348 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1349 | } | |
1350 | } | |
1351 | if (obj5) { | |
1352 | { | |
1353 | arg6 = &temp6; | |
1354 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1355 | } | |
1356 | } | |
8edf1c75 RD |
1357 | if (obj6) { |
1358 | { | |
1359 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1360 | if (PyErr_Occurred()) SWIG_fail; | |
1361 | } | |
1362 | } | |
d14a1e28 RD |
1363 | if (obj7) { |
1364 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1365 | if (arg8 == NULL) { | |
1366 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1367 | } | |
1368 | } | |
1369 | if (obj8) { | |
1370 | { | |
1371 | arg9 = wxString_in_helper(obj8); | |
1372 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1373 | temp9 = True; |
d14a1e28 RD |
1374 | } |
1375 | } | |
1376 | { | |
1377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1378 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1379 | ||
1380 | wxPyEndAllowThreads(__tstate); | |
1381 | if (PyErr_Occurred()) SWIG_fail; | |
1382 | } | |
02a34c4c | 1383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1384 | { |
1385 | if (temp9) | |
1386 | delete arg9; | |
1387 | } | |
1388 | return resultobj; | |
1389 | fail: | |
1390 | { | |
1391 | if (temp9) | |
1392 | delete arg9; | |
1393 | } | |
1394 | return NULL; | |
1395 | } | |
1396 | ||
1397 | ||
1398 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1399 | PyObject *resultobj; | |
1400 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1401 | wxBitmap result; | |
1402 | PyObject * obj0 = 0 ; | |
1403 | char *kwnames[] = { | |
1404 | (char *) "self", NULL | |
1405 | }; | |
1406 | ||
1407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1409 | { | |
1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1411 | result = (arg1)->GetBitmapLabel(); | |
1412 | ||
1413 | wxPyEndAllowThreads(__tstate); | |
1414 | if (PyErr_Occurred()) SWIG_fail; | |
1415 | } | |
1416 | { | |
1417 | wxBitmap * resultptr; | |
1418 | resultptr = new wxBitmap((wxBitmap &) result); | |
1419 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1420 | } | |
1421 | return resultobj; | |
1422 | fail: | |
1423 | return NULL; | |
1424 | } | |
1425 | ||
1426 | ||
1427 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1428 | PyObject *resultobj; | |
1429 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1430 | wxBitmap result; | |
1431 | PyObject * obj0 = 0 ; | |
1432 | char *kwnames[] = { | |
1433 | (char *) "self", NULL | |
1434 | }; | |
1435 | ||
1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1438 | { | |
1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1440 | result = (arg1)->GetBitmapDisabled(); | |
1441 | ||
1442 | wxPyEndAllowThreads(__tstate); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
1445 | { | |
1446 | wxBitmap * resultptr; | |
1447 | resultptr = new wxBitmap((wxBitmap &) result); | |
1448 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1449 | } | |
1450 | return resultobj; | |
1451 | fail: | |
1452 | return NULL; | |
1453 | } | |
1454 | ||
1455 | ||
1456 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1457 | PyObject *resultobj; | |
1458 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1459 | wxBitmap result; | |
1460 | PyObject * obj0 = 0 ; | |
1461 | char *kwnames[] = { | |
1462 | (char *) "self", NULL | |
1463 | }; | |
1464 | ||
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1467 | { | |
1468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1469 | result = (arg1)->GetBitmapFocus(); | |
1470 | ||
1471 | wxPyEndAllowThreads(__tstate); | |
1472 | if (PyErr_Occurred()) SWIG_fail; | |
1473 | } | |
1474 | { | |
1475 | wxBitmap * resultptr; | |
1476 | resultptr = new wxBitmap((wxBitmap &) result); | |
1477 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1478 | } | |
1479 | return resultobj; | |
1480 | fail: | |
1481 | return NULL; | |
1482 | } | |
1483 | ||
1484 | ||
1485 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject *resultobj; | |
1487 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1488 | wxBitmap result; | |
1489 | PyObject * obj0 = 0 ; | |
1490 | char *kwnames[] = { | |
1491 | (char *) "self", NULL | |
1492 | }; | |
1493 | ||
1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1496 | { | |
1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1498 | result = (arg1)->GetBitmapSelected(); | |
1499 | ||
1500 | wxPyEndAllowThreads(__tstate); | |
1501 | if (PyErr_Occurred()) SWIG_fail; | |
1502 | } | |
1503 | { | |
1504 | wxBitmap * resultptr; | |
1505 | resultptr = new wxBitmap((wxBitmap &) result); | |
1506 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1507 | } | |
1508 | return resultobj; | |
1509 | fail: | |
1510 | return NULL; | |
1511 | } | |
1512 | ||
1513 | ||
1514 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1515 | PyObject *resultobj; | |
1516 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1517 | wxBitmap *arg2 = 0 ; | |
1518 | PyObject * obj0 = 0 ; | |
1519 | PyObject * obj1 = 0 ; | |
1520 | char *kwnames[] = { | |
1521 | (char *) "self",(char *) "bitmap", NULL | |
1522 | }; | |
1523 | ||
1524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1526 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1527 | if (arg2 == NULL) { | |
1528 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1529 | } | |
1530 | { | |
1531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1532 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1533 | ||
1534 | wxPyEndAllowThreads(__tstate); | |
1535 | if (PyErr_Occurred()) SWIG_fail; | |
1536 | } | |
1537 | Py_INCREF(Py_None); resultobj = Py_None; | |
1538 | return resultobj; | |
1539 | fail: | |
1540 | return NULL; | |
1541 | } | |
1542 | ||
1543 | ||
1544 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1545 | PyObject *resultobj; | |
1546 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1547 | wxBitmap *arg2 = 0 ; | |
1548 | PyObject * obj0 = 0 ; | |
1549 | PyObject * obj1 = 0 ; | |
1550 | char *kwnames[] = { | |
1551 | (char *) "self",(char *) "bitmap", NULL | |
1552 | }; | |
1553 | ||
1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1557 | if (arg2 == NULL) { | |
1558 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1559 | } | |
1560 | { | |
1561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1562 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1563 | ||
1564 | wxPyEndAllowThreads(__tstate); | |
1565 | if (PyErr_Occurred()) SWIG_fail; | |
1566 | } | |
1567 | Py_INCREF(Py_None); resultobj = Py_None; | |
1568 | return resultobj; | |
1569 | fail: | |
1570 | return NULL; | |
1571 | } | |
1572 | ||
1573 | ||
1574 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1575 | PyObject *resultobj; | |
1576 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1577 | wxBitmap *arg2 = 0 ; | |
1578 | PyObject * obj0 = 0 ; | |
1579 | PyObject * obj1 = 0 ; | |
1580 | char *kwnames[] = { | |
1581 | (char *) "self",(char *) "bitmap", NULL | |
1582 | }; | |
1583 | ||
1584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1586 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1587 | if (arg2 == NULL) { | |
1588 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1589 | } | |
1590 | { | |
1591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1592 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1593 | ||
1594 | wxPyEndAllowThreads(__tstate); | |
1595 | if (PyErr_Occurred()) SWIG_fail; | |
1596 | } | |
1597 | Py_INCREF(Py_None); resultobj = Py_None; | |
1598 | return resultobj; | |
1599 | fail: | |
1600 | return NULL; | |
1601 | } | |
1602 | ||
1603 | ||
1604 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1605 | PyObject *resultobj; | |
1606 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1607 | wxBitmap *arg2 = 0 ; | |
1608 | PyObject * obj0 = 0 ; | |
1609 | PyObject * obj1 = 0 ; | |
1610 | char *kwnames[] = { | |
1611 | (char *) "self",(char *) "bitmap", NULL | |
1612 | }; | |
1613 | ||
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1616 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1617 | if (arg2 == NULL) { | |
1618 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1619 | } | |
1620 | { | |
1621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1622 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1623 | ||
1624 | wxPyEndAllowThreads(__tstate); | |
1625 | if (PyErr_Occurred()) SWIG_fail; | |
1626 | } | |
1627 | Py_INCREF(Py_None); resultobj = Py_None; | |
1628 | return resultobj; | |
1629 | fail: | |
1630 | return NULL; | |
1631 | } | |
1632 | ||
1633 | ||
1634 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1635 | PyObject *resultobj; | |
1636 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1637 | int arg2 ; | |
1638 | int arg3 ; | |
1639 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1640 | PyObject * obj1 = 0 ; |
1641 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1642 | char *kwnames[] = { |
1643 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1644 | }; | |
1645 | ||
8edf1c75 | 1646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1648 | { |
1649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1650 | if (PyErr_Occurred()) SWIG_fail; | |
1651 | } | |
1652 | { | |
1653 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1654 | if (PyErr_Occurred()) SWIG_fail; | |
1655 | } | |
d14a1e28 RD |
1656 | { |
1657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1658 | (arg1)->SetMargins(arg2,arg3); | |
1659 | ||
1660 | wxPyEndAllowThreads(__tstate); | |
1661 | if (PyErr_Occurred()) SWIG_fail; | |
1662 | } | |
1663 | Py_INCREF(Py_None); resultobj = Py_None; | |
1664 | return resultobj; | |
1665 | fail: | |
1666 | return NULL; | |
1667 | } | |
1668 | ||
1669 | ||
1670 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1671 | PyObject *resultobj; | |
1672 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1673 | int result; | |
1674 | PyObject * obj0 = 0 ; | |
1675 | char *kwnames[] = { | |
1676 | (char *) "self", NULL | |
1677 | }; | |
1678 | ||
1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1681 | { | |
1682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1683 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1684 | ||
1685 | wxPyEndAllowThreads(__tstate); | |
1686 | if (PyErr_Occurred()) SWIG_fail; | |
1687 | } | |
8edf1c75 | 1688 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1689 | return resultobj; |
1690 | fail: | |
1691 | return NULL; | |
1692 | } | |
1693 | ||
1694 | ||
1695 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject *resultobj; | |
1697 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1698 | int result; | |
1699 | PyObject * obj0 = 0 ; | |
1700 | char *kwnames[] = { | |
1701 | (char *) "self", NULL | |
1702 | }; | |
1703 | ||
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1706 | { | |
1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1708 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1709 | ||
1710 | wxPyEndAllowThreads(__tstate); | |
1711 | if (PyErr_Occurred()) SWIG_fail; | |
1712 | } | |
8edf1c75 | 1713 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1714 | return resultobj; |
1715 | fail: | |
1716 | return NULL; | |
1717 | } | |
1718 | ||
1719 | ||
1720 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1721 | PyObject *obj; | |
1722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1723 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1724 | Py_INCREF(obj); | |
1725 | return Py_BuildValue((char *)""); | |
1726 | } | |
8edf1c75 | 1727 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
1728 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
1729 | return 1; | |
1730 | } | |
1731 | ||
1732 | ||
1733 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1734 | PyObject *pyobj; | |
1735 | ||
1736 | { | |
1737 | #if wxUSE_UNICODE | |
1738 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1739 | #else | |
1740 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1741 | #endif | |
1742 | } | |
1743 | return pyobj; | |
1744 | } | |
1745 | ||
1746 | ||
d14a1e28 RD |
1747 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1748 | PyObject *resultobj; | |
1749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1750 | int arg2 ; |
d14a1e28 RD |
1751 | wxString *arg3 = 0 ; |
1752 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1753 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1754 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1755 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1756 | long arg6 = (long) 0 ; | |
1757 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1758 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1759 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1760 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1761 | wxCheckBox *result; | |
423f194a | 1762 | bool temp3 = False ; |
d14a1e28 RD |
1763 | wxPoint temp4 ; |
1764 | wxSize temp5 ; | |
423f194a | 1765 | bool temp8 = False ; |
d14a1e28 | 1766 | PyObject * obj0 = 0 ; |
8edf1c75 | 1767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1768 | PyObject * obj2 = 0 ; |
1769 | PyObject * obj3 = 0 ; | |
1770 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1771 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1772 | PyObject * obj6 = 0 ; |
1773 | PyObject * obj7 = 0 ; | |
1774 | char *kwnames[] = { | |
1775 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1776 | }; | |
1777 | ||
8edf1c75 | 1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1780 | { |
1781 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1782 | if (PyErr_Occurred()) SWIG_fail; | |
1783 | } | |
d14a1e28 RD |
1784 | { |
1785 | arg3 = wxString_in_helper(obj2); | |
1786 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1787 | temp3 = True; |
d14a1e28 RD |
1788 | } |
1789 | if (obj3) { | |
1790 | { | |
1791 | arg4 = &temp4; | |
1792 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1793 | } | |
1794 | } | |
1795 | if (obj4) { | |
1796 | { | |
1797 | arg5 = &temp5; | |
1798 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1799 | } | |
1800 | } | |
8edf1c75 RD |
1801 | if (obj5) { |
1802 | { | |
1803 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | } | |
1806 | } | |
d14a1e28 RD |
1807 | if (obj6) { |
1808 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1809 | if (arg7 == NULL) { | |
1810 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1811 | } | |
1812 | } | |
1813 | if (obj7) { | |
1814 | { | |
1815 | arg8 = wxString_in_helper(obj7); | |
1816 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1817 | temp8 = True; |
d14a1e28 RD |
1818 | } |
1819 | } | |
1820 | { | |
1821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1822 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1823 | ||
1824 | wxPyEndAllowThreads(__tstate); | |
1825 | if (PyErr_Occurred()) SWIG_fail; | |
1826 | } | |
1827 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1828 | { | |
1829 | if (temp3) | |
1830 | delete arg3; | |
1831 | } | |
1832 | { | |
1833 | if (temp8) | |
1834 | delete arg8; | |
1835 | } | |
1836 | return resultobj; | |
1837 | fail: | |
1838 | { | |
1839 | if (temp3) | |
1840 | delete arg3; | |
1841 | } | |
1842 | { | |
1843 | if (temp8) | |
1844 | delete arg8; | |
1845 | } | |
1846 | return NULL; | |
1847 | } | |
1848 | ||
1849 | ||
1850 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1851 | PyObject *resultobj; | |
1852 | wxCheckBox *result; | |
1853 | char *kwnames[] = { | |
1854 | NULL | |
1855 | }; | |
1856 | ||
1857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1858 | { | |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | result = (wxCheckBox *)new wxCheckBox(); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
1865 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1866 | return resultobj; | |
1867 | fail: | |
1868 | return NULL; | |
1869 | } | |
1870 | ||
1871 | ||
1872 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject *resultobj; | |
1874 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1875 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1876 | int arg3 ; |
d14a1e28 RD |
1877 | wxString *arg4 = 0 ; |
1878 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1879 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1880 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1881 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1882 | long arg7 = (long) 0 ; | |
1883 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1884 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1885 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1886 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1887 | bool result; | |
423f194a | 1888 | bool temp4 = False ; |
d14a1e28 RD |
1889 | wxPoint temp5 ; |
1890 | wxSize temp6 ; | |
423f194a | 1891 | bool temp9 = False ; |
d14a1e28 RD |
1892 | PyObject * obj0 = 0 ; |
1893 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1894 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1895 | PyObject * obj3 = 0 ; |
1896 | PyObject * obj4 = 0 ; | |
1897 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1898 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1899 | PyObject * obj7 = 0 ; |
1900 | PyObject * obj8 = 0 ; | |
1901 | char *kwnames[] = { | |
1902 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1903 | }; | |
1904 | ||
8edf1c75 | 1905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1907 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1908 | { |
1909 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1910 | if (PyErr_Occurred()) SWIG_fail; | |
1911 | } | |
d14a1e28 RD |
1912 | { |
1913 | arg4 = wxString_in_helper(obj3); | |
1914 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1915 | temp4 = True; |
d14a1e28 RD |
1916 | } |
1917 | if (obj4) { | |
1918 | { | |
1919 | arg5 = &temp5; | |
1920 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1921 | } | |
1922 | } | |
1923 | if (obj5) { | |
1924 | { | |
1925 | arg6 = &temp6; | |
1926 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1927 | } | |
1928 | } | |
8edf1c75 RD |
1929 | if (obj6) { |
1930 | { | |
1931 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1932 | if (PyErr_Occurred()) SWIG_fail; | |
1933 | } | |
1934 | } | |
d14a1e28 RD |
1935 | if (obj7) { |
1936 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1937 | if (arg8 == NULL) { | |
1938 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1939 | } | |
1940 | } | |
1941 | if (obj8) { | |
1942 | { | |
1943 | arg9 = wxString_in_helper(obj8); | |
1944 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1945 | temp9 = True; |
d14a1e28 RD |
1946 | } |
1947 | } | |
1948 | { | |
1949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1950 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1951 | ||
1952 | wxPyEndAllowThreads(__tstate); | |
1953 | if (PyErr_Occurred()) SWIG_fail; | |
1954 | } | |
02a34c4c | 1955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1956 | { |
1957 | if (temp4) | |
1958 | delete arg4; | |
1959 | } | |
1960 | { | |
1961 | if (temp9) | |
1962 | delete arg9; | |
1963 | } | |
1964 | return resultobj; | |
1965 | fail: | |
1966 | { | |
1967 | if (temp4) | |
1968 | delete arg4; | |
1969 | } | |
1970 | { | |
1971 | if (temp9) | |
1972 | delete arg9; | |
1973 | } | |
1974 | return NULL; | |
1975 | } | |
1976 | ||
1977 | ||
1978 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1979 | PyObject *resultobj; | |
1980 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1981 | bool result; | |
1982 | PyObject * obj0 = 0 ; | |
1983 | char *kwnames[] = { | |
1984 | (char *) "self", NULL | |
1985 | }; | |
1986 | ||
1987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
1988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1989 | { | |
1990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1991 | result = (bool)(arg1)->GetValue(); | |
1992 | ||
1993 | wxPyEndAllowThreads(__tstate); | |
1994 | if (PyErr_Occurred()) SWIG_fail; | |
1995 | } | |
02a34c4c | 1996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1997 | return resultobj; |
1998 | fail: | |
1999 | return NULL; | |
2000 | } | |
2001 | ||
2002 | ||
2003 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2004 | PyObject *resultobj; | |
2005 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2006 | bool result; | |
2007 | PyObject * obj0 = 0 ; | |
2008 | char *kwnames[] = { | |
2009 | (char *) "self", NULL | |
2010 | }; | |
2011 | ||
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2014 | { | |
2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2016 | result = (bool)(arg1)->IsChecked(); | |
2017 | ||
2018 | wxPyEndAllowThreads(__tstate); | |
2019 | if (PyErr_Occurred()) SWIG_fail; | |
2020 | } | |
02a34c4c | 2021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2022 | return resultobj; |
2023 | fail: | |
2024 | return NULL; | |
2025 | } | |
2026 | ||
2027 | ||
2028 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject *resultobj; | |
2030 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2031 | bool arg2 ; | |
2032 | PyObject * obj0 = 0 ; | |
2033 | PyObject * obj1 = 0 ; | |
2034 | char *kwnames[] = { | |
2035 | (char *) "self",(char *) "state", NULL | |
2036 | }; | |
2037 | ||
2038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 2040 | { |
8edf1c75 | 2041 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
2042 | if (PyErr_Occurred()) SWIG_fail; |
2043 | } | |
d14a1e28 RD |
2044 | { |
2045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2046 | (arg1)->SetValue(arg2); | |
2047 | ||
2048 | wxPyEndAllowThreads(__tstate); | |
2049 | if (PyErr_Occurred()) SWIG_fail; | |
2050 | } | |
2051 | Py_INCREF(Py_None); resultobj = Py_None; | |
2052 | return resultobj; | |
2053 | fail: | |
2054 | return NULL; | |
2055 | } | |
2056 | ||
2057 | ||
2058 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2059 | PyObject *resultobj; | |
2060 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2061 | int result; | |
2062 | PyObject * obj0 = 0 ; | |
2063 | char *kwnames[] = { | |
2064 | (char *) "self", NULL | |
2065 | }; | |
2066 | ||
2067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2069 | { | |
2070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2071 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2072 | ||
2073 | wxPyEndAllowThreads(__tstate); | |
2074 | if (PyErr_Occurred()) SWIG_fail; | |
2075 | } | |
8edf1c75 | 2076 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2077 | return resultobj; |
2078 | fail: | |
2079 | return NULL; | |
2080 | } | |
2081 | ||
2082 | ||
2083 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2084 | PyObject *resultobj; | |
2085 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2086 | int arg2 ; | |
2087 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2088 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2089 | char *kwnames[] = { |
2090 | (char *) "self",(char *) "state", NULL | |
2091 | }; | |
2092 | ||
8edf1c75 | 2093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2095 | { |
2096 | arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1); | |
2097 | if (PyErr_Occurred()) SWIG_fail; | |
2098 | } | |
d14a1e28 RD |
2099 | { |
2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2101 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2102 | ||
2103 | wxPyEndAllowThreads(__tstate); | |
2104 | if (PyErr_Occurred()) SWIG_fail; | |
2105 | } | |
2106 | Py_INCREF(Py_None); resultobj = Py_None; | |
2107 | return resultobj; | |
2108 | fail: | |
2109 | return NULL; | |
2110 | } | |
2111 | ||
2112 | ||
2113 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2114 | PyObject *resultobj; | |
2115 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2116 | bool result; | |
2117 | PyObject * obj0 = 0 ; | |
2118 | char *kwnames[] = { | |
2119 | (char *) "self", NULL | |
2120 | }; | |
2121 | ||
2122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2124 | { | |
2125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2126 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2127 | ||
2128 | wxPyEndAllowThreads(__tstate); | |
2129 | if (PyErr_Occurred()) SWIG_fail; | |
2130 | } | |
02a34c4c | 2131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2132 | return resultobj; |
2133 | fail: | |
2134 | return NULL; | |
2135 | } | |
2136 | ||
2137 | ||
2138 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject *resultobj; | |
2140 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2141 | bool result; | |
2142 | PyObject * obj0 = 0 ; | |
2143 | char *kwnames[] = { | |
2144 | (char *) "self", NULL | |
2145 | }; | |
2146 | ||
2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2149 | { | |
2150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2151 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2152 | ||
2153 | wxPyEndAllowThreads(__tstate); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | } | |
02a34c4c | 2156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2157 | return resultobj; |
2158 | fail: | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
2163 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2164 | PyObject *obj; | |
2165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2166 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2167 | Py_INCREF(obj); | |
2168 | return Py_BuildValue((char *)""); | |
2169 | } | |
8edf1c75 | 2170 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
cbd72d4f RD |
2171 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2172 | return 1; | |
2173 | } | |
2174 | ||
2175 | ||
2176 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2177 | PyObject *pyobj; | |
2178 | ||
2179 | { | |
2180 | #if wxUSE_UNICODE | |
2181 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2182 | #else | |
2183 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2184 | #endif | |
2185 | } | |
2186 | return pyobj; | |
2187 | } | |
2188 | ||
2189 | ||
d14a1e28 RD |
2190 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2191 | PyObject *resultobj; | |
2192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2193 | int arg2 ; |
d14a1e28 RD |
2194 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2195 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2196 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2197 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
2198 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2199 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2200 | long arg6 = (long) 0 ; | |
2201 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2202 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2203 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2204 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2205 | wxChoice *result; |
2206 | wxPoint temp3 ; | |
2207 | wxSize temp4 ; | |
423f194a | 2208 | bool temp8 = False ; |
d14a1e28 | 2209 | PyObject * obj0 = 0 ; |
8edf1c75 | 2210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2211 | PyObject * obj2 = 0 ; |
2212 | PyObject * obj3 = 0 ; | |
2213 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2214 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2215 | PyObject * obj6 = 0 ; |
2216 | PyObject * obj7 = 0 ; | |
2217 | char *kwnames[] = { | |
2218 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2219 | }; | |
2220 | ||
8edf1c75 | 2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 2222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2223 | { |
2224 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2225 | if (PyErr_Occurred()) SWIG_fail; | |
2226 | } | |
d14a1e28 RD |
2227 | if (obj2) { |
2228 | { | |
2229 | arg3 = &temp3; | |
2230 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2231 | } | |
2232 | } | |
2233 | if (obj3) { | |
2234 | { | |
2235 | arg4 = &temp4; | |
2236 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2237 | } | |
2238 | } | |
2239 | if (obj4) { | |
2240 | { | |
02a34c4c RD |
2241 | if (! PySequence_Check(obj4)) { |
2242 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2243 | SWIG_fail; | |
2244 | } | |
2245 | arg5 = new wxArrayString; | |
2246 | int i, len=PySequence_Length(obj4); | |
2247 | for (i=0; i<len; i++) { | |
2248 | PyObject* item = PySequence_GetItem(obj4, i); | |
2249 | #if wxUSE_UNICODE | |
2250 | PyObject* str = PyObject_Unicode(item); | |
2251 | #else | |
2252 | PyObject* str = PyObject_Str(item); | |
2253 | #endif | |
2254 | arg5->Add(Py2wxString(str)); | |
2255 | Py_DECREF(item); | |
2256 | Py_DECREF(str); | |
2257 | } | |
d14a1e28 RD |
2258 | } |
2259 | } | |
8edf1c75 RD |
2260 | if (obj5) { |
2261 | { | |
02a34c4c | 2262 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
2263 | if (PyErr_Occurred()) SWIG_fail; |
2264 | } | |
2265 | } | |
d14a1e28 | 2266 | if (obj6) { |
02a34c4c RD |
2267 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2268 | if (arg7 == NULL) { | |
d14a1e28 RD |
2269 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2270 | } | |
2271 | } | |
2272 | if (obj7) { | |
2273 | { | |
02a34c4c RD |
2274 | arg8 = wxString_in_helper(obj7); |
2275 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 2276 | temp8 = True; |
d14a1e28 RD |
2277 | } |
2278 | } | |
2279 | { | |
2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2281 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2282 | |
2283 | wxPyEndAllowThreads(__tstate); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | } | |
2286 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2287 | { | |
02a34c4c | 2288 | if (arg5) delete arg5; |
d14a1e28 RD |
2289 | } |
2290 | { | |
2291 | if (temp8) | |
02a34c4c | 2292 | delete arg8; |
d14a1e28 RD |
2293 | } |
2294 | return resultobj; | |
2295 | fail: | |
2296 | { | |
02a34c4c | 2297 | if (arg5) delete arg5; |
d14a1e28 RD |
2298 | } |
2299 | { | |
2300 | if (temp8) | |
02a34c4c | 2301 | delete arg8; |
d14a1e28 RD |
2302 | } |
2303 | return NULL; | |
2304 | } | |
2305 | ||
2306 | ||
2307 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2308 | PyObject *resultobj; | |
2309 | wxChoice *result; | |
2310 | char *kwnames[] = { | |
2311 | NULL | |
2312 | }; | |
2313 | ||
2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2315 | { | |
2316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2317 | result = (wxChoice *)new wxChoice(); | |
2318 | ||
2319 | wxPyEndAllowThreads(__tstate); | |
2320 | if (PyErr_Occurred()) SWIG_fail; | |
2321 | } | |
2322 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2323 | return resultobj; | |
2324 | fail: | |
2325 | return NULL; | |
2326 | } | |
2327 | ||
2328 | ||
2329 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2330 | PyObject *resultobj; | |
2331 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2332 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2333 | int arg3 ; |
d14a1e28 RD |
2334 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2335 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2336 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2337 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
2338 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2339 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2340 | long arg7 = (long) 0 ; | |
2341 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2342 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2343 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2344 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2345 | bool result; |
2346 | wxPoint temp4 ; | |
2347 | wxSize temp5 ; | |
423f194a | 2348 | bool temp9 = False ; |
d14a1e28 RD |
2349 | PyObject * obj0 = 0 ; |
2350 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2351 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2352 | PyObject * obj3 = 0 ; |
2353 | PyObject * obj4 = 0 ; | |
2354 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2355 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2356 | PyObject * obj7 = 0 ; |
2357 | PyObject * obj8 = 0 ; | |
2358 | char *kwnames[] = { | |
2359 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2360 | }; | |
2361 | ||
8edf1c75 | 2362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2364 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2365 | { |
2366 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2367 | if (PyErr_Occurred()) SWIG_fail; | |
2368 | } | |
d14a1e28 RD |
2369 | if (obj3) { |
2370 | { | |
2371 | arg4 = &temp4; | |
2372 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2373 | } | |
2374 | } | |
2375 | if (obj4) { | |
2376 | { | |
2377 | arg5 = &temp5; | |
2378 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2379 | } | |
2380 | } | |
2381 | if (obj5) { | |
2382 | { | |
02a34c4c RD |
2383 | if (! PySequence_Check(obj5)) { |
2384 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2385 | SWIG_fail; | |
2386 | } | |
2387 | arg6 = new wxArrayString; | |
2388 | int i, len=PySequence_Length(obj5); | |
2389 | for (i=0; i<len; i++) { | |
2390 | PyObject* item = PySequence_GetItem(obj5, i); | |
2391 | #if wxUSE_UNICODE | |
2392 | PyObject* str = PyObject_Unicode(item); | |
2393 | #else | |
2394 | PyObject* str = PyObject_Str(item); | |
2395 | #endif | |
2396 | arg6->Add(Py2wxString(str)); | |
2397 | Py_DECREF(item); | |
2398 | Py_DECREF(str); | |
2399 | } | |
d14a1e28 RD |
2400 | } |
2401 | } | |
8edf1c75 RD |
2402 | if (obj6) { |
2403 | { | |
02a34c4c | 2404 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2405 | if (PyErr_Occurred()) SWIG_fail; |
2406 | } | |
2407 | } | |
d14a1e28 | 2408 | if (obj7) { |
02a34c4c RD |
2409 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2410 | if (arg8 == NULL) { | |
d14a1e28 RD |
2411 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2412 | } | |
2413 | } | |
2414 | if (obj8) { | |
2415 | { | |
02a34c4c RD |
2416 | arg9 = wxString_in_helper(obj8); |
2417 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2418 | temp9 = True; |
d14a1e28 RD |
2419 | } |
2420 | } | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2423 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2424 | |
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
02a34c4c | 2428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2429 | { |
02a34c4c | 2430 | if (arg6) delete arg6; |
d14a1e28 RD |
2431 | } |
2432 | { | |
2433 | if (temp9) | |
02a34c4c | 2434 | delete arg9; |
d14a1e28 RD |
2435 | } |
2436 | return resultobj; | |
2437 | fail: | |
2438 | { | |
02a34c4c | 2439 | if (arg6) delete arg6; |
d14a1e28 RD |
2440 | } |
2441 | { | |
2442 | if (temp9) | |
02a34c4c | 2443 | delete arg9; |
d14a1e28 RD |
2444 | } |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject *resultobj; | |
2451 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2452 | int result; | |
2453 | PyObject * obj0 = 0 ; | |
2454 | char *kwnames[] = { | |
2455 | (char *) "self", NULL | |
2456 | }; | |
2457 | ||
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2460 | { | |
2461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2462 | result = (int)(arg1)->GetColumns(); | |
2463 | ||
2464 | wxPyEndAllowThreads(__tstate); | |
2465 | if (PyErr_Occurred()) SWIG_fail; | |
2466 | } | |
8edf1c75 | 2467 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2468 | return resultobj; |
2469 | fail: | |
2470 | return NULL; | |
2471 | } | |
2472 | ||
2473 | ||
2474 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2475 | PyObject *resultobj; | |
2476 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2477 | int arg2 = (int) (int)1 ; | |
2478 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2480 | char *kwnames[] = { |
2481 | (char *) "self",(char *) "n", NULL | |
2482 | }; | |
2483 | ||
8edf1c75 | 2484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Choice_SetColumns",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2486 | if (obj1) { |
2487 | { | |
2488 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2489 | if (PyErr_Occurred()) SWIG_fail; | |
2490 | } | |
2491 | } | |
d14a1e28 RD |
2492 | { |
2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2494 | (arg1)->SetColumns(arg2); | |
2495 | ||
2496 | wxPyEndAllowThreads(__tstate); | |
2497 | if (PyErr_Occurred()) SWIG_fail; | |
2498 | } | |
2499 | Py_INCREF(Py_None); resultobj = Py_None; | |
2500 | return resultobj; | |
2501 | fail: | |
2502 | return NULL; | |
2503 | } | |
2504 | ||
2505 | ||
2506 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2507 | PyObject *resultobj; | |
2508 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2509 | int arg2 ; | |
2510 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2512 | char *kwnames[] = { |
2513 | (char *) "self",(char *) "n", NULL | |
2514 | }; | |
2515 | ||
8edf1c75 | 2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2518 | { |
2519 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2520 | if (PyErr_Occurred()) SWIG_fail; | |
2521 | } | |
d14a1e28 RD |
2522 | { |
2523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2524 | (arg1)->SetSelection(arg2); | |
2525 | ||
2526 | wxPyEndAllowThreads(__tstate); | |
2527 | if (PyErr_Occurred()) SWIG_fail; | |
2528 | } | |
2529 | Py_INCREF(Py_None); resultobj = Py_None; | |
2530 | return resultobj; | |
2531 | fail: | |
2532 | return NULL; | |
2533 | } | |
2534 | ||
2535 | ||
2536 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2537 | PyObject *resultobj; | |
2538 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2539 | wxString *arg2 = 0 ; | |
423f194a | 2540 | bool temp2 = False ; |
d14a1e28 RD |
2541 | PyObject * obj0 = 0 ; |
2542 | PyObject * obj1 = 0 ; | |
2543 | char *kwnames[] = { | |
2544 | (char *) "self",(char *) "string", NULL | |
2545 | }; | |
2546 | ||
2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2549 | { | |
2550 | arg2 = wxString_in_helper(obj1); | |
2551 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2552 | temp2 = True; |
d14a1e28 RD |
2553 | } |
2554 | { | |
2555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2556 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2557 | ||
2558 | wxPyEndAllowThreads(__tstate); | |
2559 | if (PyErr_Occurred()) SWIG_fail; | |
2560 | } | |
2561 | Py_INCREF(Py_None); resultobj = Py_None; | |
2562 | { | |
2563 | if (temp2) | |
2564 | delete arg2; | |
2565 | } | |
2566 | return resultobj; | |
2567 | fail: | |
2568 | { | |
2569 | if (temp2) | |
2570 | delete arg2; | |
2571 | } | |
2572 | return NULL; | |
2573 | } | |
2574 | ||
2575 | ||
2576 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2577 | PyObject *resultobj; | |
2578 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2579 | int arg2 ; | |
2580 | wxString *arg3 = 0 ; | |
423f194a | 2581 | bool temp3 = False ; |
d14a1e28 | 2582 | PyObject * obj0 = 0 ; |
8edf1c75 | 2583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2584 | PyObject * obj2 = 0 ; |
2585 | char *kwnames[] = { | |
2586 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2587 | }; | |
2588 | ||
8edf1c75 | 2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2591 | { |
2592 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2593 | if (PyErr_Occurred()) SWIG_fail; | |
2594 | } | |
d14a1e28 RD |
2595 | { |
2596 | arg3 = wxString_in_helper(obj2); | |
2597 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2598 | temp3 = True; |
d14a1e28 RD |
2599 | } |
2600 | { | |
2601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2602 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2603 | ||
2604 | wxPyEndAllowThreads(__tstate); | |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
2606 | } | |
2607 | Py_INCREF(Py_None); resultobj = Py_None; | |
2608 | { | |
2609 | if (temp3) | |
2610 | delete arg3; | |
2611 | } | |
2612 | return resultobj; | |
2613 | fail: | |
2614 | { | |
2615 | if (temp3) | |
2616 | delete arg3; | |
2617 | } | |
2618 | return NULL; | |
2619 | } | |
2620 | ||
2621 | ||
2622 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2623 | PyObject *obj; | |
2624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2625 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2626 | Py_INCREF(obj); | |
2627 | return Py_BuildValue((char *)""); | |
2628 | } | |
8edf1c75 | 2629 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
2630 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2631 | return 1; | |
2632 | } | |
2633 | ||
2634 | ||
2635 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2636 | PyObject *pyobj; | |
2637 | ||
2638 | { | |
2639 | #if wxUSE_UNICODE | |
2640 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2641 | #else | |
2642 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2643 | #endif | |
2644 | } | |
2645 | return pyobj; | |
2646 | } | |
2647 | ||
2648 | ||
d14a1e28 RD |
2649 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2650 | PyObject *resultobj; | |
2651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2652 | int arg2 ; |
d14a1e28 RD |
2653 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2654 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2655 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2656 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2657 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2658 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
2659 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2660 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2661 | long arg7 = (long) 0 ; | |
2662 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2663 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2664 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2665 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2666 | wxComboBox *result; |
423f194a | 2667 | bool temp3 = False ; |
d14a1e28 RD |
2668 | wxPoint temp4 ; |
2669 | wxSize temp5 ; | |
423f194a | 2670 | bool temp9 = False ; |
d14a1e28 | 2671 | PyObject * obj0 = 0 ; |
8edf1c75 | 2672 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2673 | PyObject * obj2 = 0 ; |
2674 | PyObject * obj3 = 0 ; | |
2675 | PyObject * obj4 = 0 ; | |
2676 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2677 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2678 | PyObject * obj7 = 0 ; |
2679 | PyObject * obj8 = 0 ; | |
2680 | char *kwnames[] = { | |
2681 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2682 | }; | |
2683 | ||
8edf1c75 | 2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 2685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2686 | { |
2687 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
d14a1e28 RD |
2690 | if (obj2) { |
2691 | { | |
2692 | arg3 = wxString_in_helper(obj2); | |
2693 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2694 | temp3 = True; |
d14a1e28 RD |
2695 | } |
2696 | } | |
2697 | if (obj3) { | |
2698 | { | |
2699 | arg4 = &temp4; | |
2700 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2701 | } | |
2702 | } | |
2703 | if (obj4) { | |
2704 | { | |
2705 | arg5 = &temp5; | |
2706 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2707 | } | |
2708 | } | |
2709 | if (obj5) { | |
2710 | { | |
02a34c4c RD |
2711 | if (! PySequence_Check(obj5)) { |
2712 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2713 | SWIG_fail; | |
2714 | } | |
2715 | arg6 = new wxArrayString; | |
2716 | int i, len=PySequence_Length(obj5); | |
2717 | for (i=0; i<len; i++) { | |
2718 | PyObject* item = PySequence_GetItem(obj5, i); | |
2719 | #if wxUSE_UNICODE | |
2720 | PyObject* str = PyObject_Unicode(item); | |
2721 | #else | |
2722 | PyObject* str = PyObject_Str(item); | |
2723 | #endif | |
2724 | arg6->Add(Py2wxString(str)); | |
2725 | Py_DECREF(item); | |
2726 | Py_DECREF(str); | |
2727 | } | |
d14a1e28 RD |
2728 | } |
2729 | } | |
8edf1c75 RD |
2730 | if (obj6) { |
2731 | { | |
02a34c4c | 2732 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2733 | if (PyErr_Occurred()) SWIG_fail; |
2734 | } | |
2735 | } | |
d14a1e28 | 2736 | if (obj7) { |
02a34c4c RD |
2737 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2738 | if (arg8 == NULL) { | |
d14a1e28 RD |
2739 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2740 | } | |
2741 | } | |
2742 | if (obj8) { | |
2743 | { | |
02a34c4c RD |
2744 | arg9 = wxString_in_helper(obj8); |
2745 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2746 | temp9 = True; |
d14a1e28 RD |
2747 | } |
2748 | } | |
2749 | { | |
2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2751 | 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 |
2752 | |
2753 | wxPyEndAllowThreads(__tstate); | |
2754 | if (PyErr_Occurred()) SWIG_fail; | |
2755 | } | |
2756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2757 | { | |
2758 | if (temp3) | |
2759 | delete arg3; | |
2760 | } | |
2761 | { | |
02a34c4c | 2762 | if (arg6) delete arg6; |
d14a1e28 RD |
2763 | } |
2764 | { | |
2765 | if (temp9) | |
02a34c4c | 2766 | delete arg9; |
d14a1e28 RD |
2767 | } |
2768 | return resultobj; | |
2769 | fail: | |
2770 | { | |
2771 | if (temp3) | |
2772 | delete arg3; | |
2773 | } | |
2774 | { | |
02a34c4c | 2775 | if (arg6) delete arg6; |
d14a1e28 RD |
2776 | } |
2777 | { | |
2778 | if (temp9) | |
02a34c4c | 2779 | delete arg9; |
d14a1e28 RD |
2780 | } |
2781 | return NULL; | |
2782 | } | |
2783 | ||
2784 | ||
2785 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2786 | PyObject *resultobj; | |
2787 | wxComboBox *result; | |
2788 | char *kwnames[] = { | |
2789 | NULL | |
2790 | }; | |
2791 | ||
2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2793 | { | |
2794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2795 | result = (wxComboBox *)new wxComboBox(); | |
2796 | ||
2797 | wxPyEndAllowThreads(__tstate); | |
2798 | if (PyErr_Occurred()) SWIG_fail; | |
2799 | } | |
2800 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2801 | return resultobj; | |
2802 | fail: | |
2803 | return NULL; | |
2804 | } | |
2805 | ||
2806 | ||
2807 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2808 | PyObject *resultobj; | |
2809 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2810 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2811 | int arg3 ; |
d14a1e28 RD |
2812 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2813 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2814 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2815 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2816 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2817 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
02a34c4c RD |
2818 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2819 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2820 | long arg8 = (long) 0 ; | |
2821 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2822 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2823 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2824 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 2825 | bool result; |
423f194a | 2826 | bool temp4 = False ; |
d14a1e28 RD |
2827 | wxPoint temp5 ; |
2828 | wxSize temp6 ; | |
423f194a | 2829 | bool temp10 = False ; |
d14a1e28 RD |
2830 | PyObject * obj0 = 0 ; |
2831 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2832 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2833 | PyObject * obj3 = 0 ; |
2834 | PyObject * obj4 = 0 ; | |
2835 | PyObject * obj5 = 0 ; | |
2836 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2837 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2838 | PyObject * obj8 = 0 ; |
2839 | PyObject * obj9 = 0 ; | |
2840 | char *kwnames[] = { | |
2841 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2842 | }; | |
2843 | ||
8edf1c75 | 2844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 RD |
2845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2846 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2847 | { |
2848 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2849 | if (PyErr_Occurred()) SWIG_fail; | |
2850 | } | |
d14a1e28 RD |
2851 | if (obj3) { |
2852 | { | |
2853 | arg4 = wxString_in_helper(obj3); | |
2854 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2855 | temp4 = True; |
d14a1e28 RD |
2856 | } |
2857 | } | |
2858 | if (obj4) { | |
2859 | { | |
2860 | arg5 = &temp5; | |
2861 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2862 | } | |
2863 | } | |
2864 | if (obj5) { | |
2865 | { | |
2866 | arg6 = &temp6; | |
2867 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2868 | } | |
2869 | } | |
2870 | if (obj6) { | |
2871 | { | |
02a34c4c RD |
2872 | if (! PySequence_Check(obj6)) { |
2873 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2874 | SWIG_fail; | |
2875 | } | |
2876 | arg7 = new wxArrayString; | |
2877 | int i, len=PySequence_Length(obj6); | |
2878 | for (i=0; i<len; i++) { | |
2879 | PyObject* item = PySequence_GetItem(obj6, i); | |
2880 | #if wxUSE_UNICODE | |
2881 | PyObject* str = PyObject_Unicode(item); | |
2882 | #else | |
2883 | PyObject* str = PyObject_Str(item); | |
2884 | #endif | |
2885 | arg7->Add(Py2wxString(str)); | |
2886 | Py_DECREF(item); | |
2887 | Py_DECREF(str); | |
2888 | } | |
d14a1e28 RD |
2889 | } |
2890 | } | |
8edf1c75 RD |
2891 | if (obj7) { |
2892 | { | |
02a34c4c | 2893 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
2894 | if (PyErr_Occurred()) SWIG_fail; |
2895 | } | |
2896 | } | |
d14a1e28 | 2897 | if (obj8) { |
02a34c4c RD |
2898 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2899 | if (arg9 == NULL) { | |
d14a1e28 RD |
2900 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2901 | } | |
2902 | } | |
2903 | if (obj9) { | |
2904 | { | |
02a34c4c RD |
2905 | arg10 = wxString_in_helper(obj9); |
2906 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2907 | temp10 = True; |
d14a1e28 RD |
2908 | } |
2909 | } | |
2910 | { | |
2911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2912 | 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 |
2913 | |
2914 | wxPyEndAllowThreads(__tstate); | |
2915 | if (PyErr_Occurred()) SWIG_fail; | |
2916 | } | |
02a34c4c | 2917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2918 | { |
2919 | if (temp4) | |
2920 | delete arg4; | |
2921 | } | |
2922 | { | |
02a34c4c | 2923 | if (arg7) delete arg7; |
d14a1e28 RD |
2924 | } |
2925 | { | |
2926 | if (temp10) | |
02a34c4c | 2927 | delete arg10; |
d14a1e28 RD |
2928 | } |
2929 | return resultobj; | |
2930 | fail: | |
2931 | { | |
2932 | if (temp4) | |
2933 | delete arg4; | |
2934 | } | |
2935 | { | |
02a34c4c | 2936 | if (arg7) delete arg7; |
d14a1e28 RD |
2937 | } |
2938 | { | |
2939 | if (temp10) | |
02a34c4c | 2940 | delete arg10; |
d14a1e28 RD |
2941 | } |
2942 | return NULL; | |
2943 | } | |
2944 | ||
2945 | ||
2946 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2947 | PyObject *resultobj; | |
2948 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2949 | wxString result; | |
2950 | PyObject * obj0 = 0 ; | |
2951 | char *kwnames[] = { | |
2952 | (char *) "self", NULL | |
2953 | }; | |
2954 | ||
2955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2957 | { | |
2958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2959 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2960 | ||
2961 | wxPyEndAllowThreads(__tstate); | |
2962 | if (PyErr_Occurred()) SWIG_fail; | |
2963 | } | |
2964 | { | |
2965 | #if wxUSE_UNICODE | |
2966 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2967 | #else | |
2968 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2969 | #endif | |
2970 | } | |
2971 | return resultobj; | |
2972 | fail: | |
2973 | return NULL; | |
2974 | } | |
2975 | ||
2976 | ||
2977 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2978 | PyObject *resultobj; | |
2979 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2980 | wxString *arg2 = 0 ; | |
423f194a | 2981 | bool temp2 = False ; |
d14a1e28 RD |
2982 | PyObject * obj0 = 0 ; |
2983 | PyObject * obj1 = 0 ; | |
2984 | char *kwnames[] = { | |
2985 | (char *) "self",(char *) "value", NULL | |
2986 | }; | |
2987 | ||
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2990 | { | |
2991 | arg2 = wxString_in_helper(obj1); | |
2992 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2993 | temp2 = True; |
d14a1e28 RD |
2994 | } |
2995 | { | |
2996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2997 | (arg1)->SetValue((wxString const &)*arg2); | |
2998 | ||
2999 | wxPyEndAllowThreads(__tstate); | |
3000 | if (PyErr_Occurred()) SWIG_fail; | |
3001 | } | |
3002 | Py_INCREF(Py_None); resultobj = Py_None; | |
3003 | { | |
3004 | if (temp2) | |
3005 | delete arg2; | |
3006 | } | |
3007 | return resultobj; | |
3008 | fail: | |
3009 | { | |
3010 | if (temp2) | |
3011 | delete arg2; | |
3012 | } | |
3013 | return NULL; | |
3014 | } | |
3015 | ||
3016 | ||
3017 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3018 | PyObject *resultobj; | |
3019 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3020 | PyObject * obj0 = 0 ; | |
3021 | char *kwnames[] = { | |
3022 | (char *) "self", NULL | |
3023 | }; | |
3024 | ||
3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3027 | { | |
3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3029 | (arg1)->Copy(); | |
3030 | ||
3031 | wxPyEndAllowThreads(__tstate); | |
3032 | if (PyErr_Occurred()) SWIG_fail; | |
3033 | } | |
3034 | Py_INCREF(Py_None); resultobj = Py_None; | |
3035 | return resultobj; | |
3036 | fail: | |
3037 | return NULL; | |
3038 | } | |
3039 | ||
3040 | ||
3041 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3042 | PyObject *resultobj; | |
3043 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3044 | PyObject * obj0 = 0 ; | |
3045 | char *kwnames[] = { | |
3046 | (char *) "self", NULL | |
3047 | }; | |
3048 | ||
3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3051 | { | |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | (arg1)->Cut(); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
3058 | Py_INCREF(Py_None); resultobj = Py_None; | |
3059 | return resultobj; | |
3060 | fail: | |
3061 | return NULL; | |
3062 | } | |
3063 | ||
3064 | ||
3065 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3066 | PyObject *resultobj; | |
3067 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3068 | PyObject * obj0 = 0 ; | |
3069 | char *kwnames[] = { | |
3070 | (char *) "self", NULL | |
3071 | }; | |
3072 | ||
3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3075 | { | |
3076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3077 | (arg1)->Paste(); | |
3078 | ||
3079 | wxPyEndAllowThreads(__tstate); | |
3080 | if (PyErr_Occurred()) SWIG_fail; | |
3081 | } | |
3082 | Py_INCREF(Py_None); resultobj = Py_None; | |
3083 | return resultobj; | |
3084 | fail: | |
3085 | return NULL; | |
3086 | } | |
3087 | ||
3088 | ||
3089 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3090 | PyObject *resultobj; | |
3091 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3092 | long arg2 ; | |
3093 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3094 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3095 | char *kwnames[] = { |
3096 | (char *) "self",(char *) "pos", NULL | |
3097 | }; | |
3098 | ||
8edf1c75 | 3099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3101 | { |
3102 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3103 | if (PyErr_Occurred()) SWIG_fail; | |
3104 | } | |
d14a1e28 RD |
3105 | { |
3106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3107 | (arg1)->SetInsertionPoint(arg2); | |
3108 | ||
3109 | wxPyEndAllowThreads(__tstate); | |
3110 | if (PyErr_Occurred()) SWIG_fail; | |
3111 | } | |
3112 | Py_INCREF(Py_None); resultobj = Py_None; | |
3113 | return resultobj; | |
3114 | fail: | |
3115 | return NULL; | |
3116 | } | |
3117 | ||
3118 | ||
3119 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3120 | PyObject *resultobj; | |
3121 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3122 | long result; | |
3123 | PyObject * obj0 = 0 ; | |
3124 | char *kwnames[] = { | |
3125 | (char *) "self", NULL | |
3126 | }; | |
3127 | ||
3128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3130 | { | |
3131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3132 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3133 | ||
3134 | wxPyEndAllowThreads(__tstate); | |
3135 | if (PyErr_Occurred()) SWIG_fail; | |
3136 | } | |
8edf1c75 | 3137 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3138 | return resultobj; |
3139 | fail: | |
3140 | return NULL; | |
3141 | } | |
3142 | ||
3143 | ||
3144 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3145 | PyObject *resultobj; | |
3146 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3147 | long result; | |
3148 | PyObject * obj0 = 0 ; | |
3149 | char *kwnames[] = { | |
3150 | (char *) "self", NULL | |
3151 | }; | |
3152 | ||
3153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3155 | { | |
3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3157 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3158 | ||
3159 | wxPyEndAllowThreads(__tstate); | |
3160 | if (PyErr_Occurred()) SWIG_fail; | |
3161 | } | |
8edf1c75 | 3162 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3163 | return resultobj; |
3164 | fail: | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3172 | long arg2 ; | |
3173 | long arg3 ; | |
3174 | wxString *arg4 = 0 ; | |
423f194a | 3175 | bool temp4 = False ; |
d14a1e28 | 3176 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3177 | PyObject * obj1 = 0 ; |
3178 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3179 | PyObject * obj3 = 0 ; |
3180 | char *kwnames[] = { | |
3181 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3182 | }; | |
3183 | ||
8edf1c75 | 3184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 3185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3186 | { |
3187 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3188 | if (PyErr_Occurred()) SWIG_fail; | |
3189 | } | |
3190 | { | |
3191 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
d14a1e28 RD |
3194 | { |
3195 | arg4 = wxString_in_helper(obj3); | |
3196 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3197 | temp4 = True; |
d14a1e28 RD |
3198 | } |
3199 | { | |
3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3201 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3202 | ||
3203 | wxPyEndAllowThreads(__tstate); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
3206 | Py_INCREF(Py_None); resultobj = Py_None; | |
3207 | { | |
3208 | if (temp4) | |
3209 | delete arg4; | |
3210 | } | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | { | |
3214 | if (temp4) | |
3215 | delete arg4; | |
3216 | } | |
3217 | return NULL; | |
3218 | } | |
3219 | ||
3220 | ||
100c4552 RD |
3221 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3222 | PyObject *resultobj; | |
3223 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3224 | int arg2 ; | |
3225 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3226 | PyObject * obj1 = 0 ; |
100c4552 RD |
3227 | char *kwnames[] = { |
3228 | (char *) "self",(char *) "n", NULL | |
3229 | }; | |
3230 | ||
8edf1c75 | 3231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
100c4552 | 3232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3233 | { |
3234 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3235 | if (PyErr_Occurred()) SWIG_fail; | |
3236 | } | |
100c4552 RD |
3237 | { |
3238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3239 | (arg1)->SetSelection(arg2); | |
3240 | ||
3241 | wxPyEndAllowThreads(__tstate); | |
3242 | if (PyErr_Occurred()) SWIG_fail; | |
3243 | } | |
3244 | Py_INCREF(Py_None); resultobj = Py_None; | |
3245 | return resultobj; | |
3246 | fail: | |
3247 | return NULL; | |
3248 | } | |
3249 | ||
3250 | ||
d14a1e28 RD |
3251 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3252 | PyObject *resultobj; | |
3253 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3254 | long arg2 ; | |
3255 | long arg3 ; | |
3256 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3257 | PyObject * obj1 = 0 ; |
3258 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3259 | char *kwnames[] = { |
3260 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3261 | }; | |
3262 | ||
8edf1c75 | 3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3265 | { |
3266 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3267 | if (PyErr_Occurred()) SWIG_fail; | |
3268 | } | |
3269 | { | |
3270 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | } | |
d14a1e28 RD |
3273 | { |
3274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3275 | (arg1)->SetSelection(arg2,arg3); | |
3276 | ||
3277 | wxPyEndAllowThreads(__tstate); | |
3278 | if (PyErr_Occurred()) SWIG_fail; | |
3279 | } | |
3280 | Py_INCREF(Py_None); resultobj = Py_None; | |
3281 | return resultobj; | |
3282 | fail: | |
3283 | return NULL; | |
3284 | } | |
3285 | ||
3286 | ||
3287 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3288 | PyObject *resultobj; | |
3289 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3290 | bool arg2 ; | |
3291 | PyObject * obj0 = 0 ; | |
3292 | PyObject * obj1 = 0 ; | |
3293 | char *kwnames[] = { | |
3294 | (char *) "self",(char *) "editable", NULL | |
3295 | }; | |
3296 | ||
3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 3299 | { |
8edf1c75 | 3300 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
3301 | if (PyErr_Occurred()) SWIG_fail; |
3302 | } | |
d14a1e28 RD |
3303 | { |
3304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3305 | (arg1)->SetEditable(arg2); | |
3306 | ||
3307 | wxPyEndAllowThreads(__tstate); | |
3308 | if (PyErr_Occurred()) SWIG_fail; | |
3309 | } | |
3310 | Py_INCREF(Py_None); resultobj = Py_None; | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | return NULL; | |
3314 | } | |
3315 | ||
3316 | ||
3317 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3318 | PyObject *resultobj; | |
3319 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3320 | PyObject * obj0 = 0 ; | |
3321 | char *kwnames[] = { | |
3322 | (char *) "self", NULL | |
3323 | }; | |
3324 | ||
3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3327 | { | |
3328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3329 | (arg1)->SetInsertionPointEnd(); | |
3330 | ||
3331 | wxPyEndAllowThreads(__tstate); | |
3332 | if (PyErr_Occurred()) SWIG_fail; | |
3333 | } | |
3334 | Py_INCREF(Py_None); resultobj = Py_None; | |
3335 | return resultobj; | |
3336 | fail: | |
3337 | return NULL; | |
3338 | } | |
3339 | ||
3340 | ||
3341 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3342 | PyObject *resultobj; | |
3343 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3344 | long arg2 ; | |
3345 | long arg3 ; | |
3346 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3347 | PyObject * obj1 = 0 ; |
3348 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3349 | char *kwnames[] = { |
3350 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3351 | }; | |
3352 | ||
8edf1c75 | 3353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3355 | { |
3356 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | } | |
3359 | { | |
3360 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3361 | if (PyErr_Occurred()) SWIG_fail; | |
3362 | } | |
d14a1e28 RD |
3363 | { |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3365 | (arg1)->Remove(arg2,arg3); | |
3366 | ||
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | Py_INCREF(Py_None); resultobj = Py_None; | |
3371 | return resultobj; | |
3372 | fail: | |
3373 | return NULL; | |
3374 | } | |
3375 | ||
3376 | ||
3377 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3378 | PyObject *obj; | |
3379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3380 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3381 | Py_INCREF(obj); | |
3382 | return Py_BuildValue((char *)""); | |
3383 | } | |
8edf1c75 | 3384 | static int _wrap_GaugeNameStr_set(PyObject *) { |
cbd72d4f RD |
3385 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3386 | return 1; | |
3387 | } | |
3388 | ||
3389 | ||
3390 | static PyObject *_wrap_GaugeNameStr_get() { | |
3391 | PyObject *pyobj; | |
3392 | ||
3393 | { | |
3394 | #if wxUSE_UNICODE | |
3395 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3396 | #else | |
3397 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3398 | #endif | |
3399 | } | |
3400 | return pyobj; | |
3401 | } | |
3402 | ||
3403 | ||
d14a1e28 RD |
3404 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3405 | PyObject *resultobj; | |
3406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3407 | int arg2 ; |
d14a1e28 RD |
3408 | int arg3 ; |
3409 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3410 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3411 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3412 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3413 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3414 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3415 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3416 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3417 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3418 | wxGauge *result; | |
3419 | wxPoint temp4 ; | |
3420 | wxSize temp5 ; | |
423f194a | 3421 | bool temp8 = False ; |
d14a1e28 | 3422 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3423 | PyObject * obj1 = 0 ; |
3424 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3425 | PyObject * obj3 = 0 ; |
3426 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3427 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3428 | PyObject * obj6 = 0 ; |
3429 | PyObject * obj7 = 0 ; | |
3430 | char *kwnames[] = { | |
3431 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3432 | }; | |
3433 | ||
8edf1c75 | 3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 3435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3436 | { |
3437 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3438 | if (PyErr_Occurred()) SWIG_fail; | |
3439 | } | |
3440 | { | |
3441 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
d14a1e28 RD |
3444 | if (obj3) { |
3445 | { | |
3446 | arg4 = &temp4; | |
3447 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3448 | } | |
3449 | } | |
3450 | if (obj4) { | |
3451 | { | |
3452 | arg5 = &temp5; | |
3453 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3454 | } | |
3455 | } | |
8edf1c75 RD |
3456 | if (obj5) { |
3457 | { | |
3458 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3459 | if (PyErr_Occurred()) SWIG_fail; | |
3460 | } | |
3461 | } | |
d14a1e28 RD |
3462 | if (obj6) { |
3463 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3464 | if (arg7 == NULL) { | |
3465 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3466 | } | |
3467 | } | |
3468 | if (obj7) { | |
3469 | { | |
3470 | arg8 = wxString_in_helper(obj7); | |
3471 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3472 | temp8 = True; |
d14a1e28 RD |
3473 | } |
3474 | } | |
3475 | { | |
3476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3477 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3478 | ||
3479 | wxPyEndAllowThreads(__tstate); | |
3480 | if (PyErr_Occurred()) SWIG_fail; | |
3481 | } | |
3482 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3483 | { | |
3484 | if (temp8) | |
3485 | delete arg8; | |
3486 | } | |
3487 | return resultobj; | |
3488 | fail: | |
3489 | { | |
3490 | if (temp8) | |
3491 | delete arg8; | |
3492 | } | |
3493 | return NULL; | |
3494 | } | |
3495 | ||
3496 | ||
3497 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3498 | PyObject *resultobj; | |
3499 | wxGauge *result; | |
3500 | char *kwnames[] = { | |
3501 | NULL | |
3502 | }; | |
3503 | ||
3504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3505 | { | |
3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3507 | result = (wxGauge *)new wxGauge(); | |
3508 | ||
3509 | wxPyEndAllowThreads(__tstate); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | } | |
3512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3513 | return resultobj; | |
3514 | fail: | |
3515 | return NULL; | |
3516 | } | |
3517 | ||
3518 | ||
3519 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3520 | PyObject *resultobj; | |
3521 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3523 | int arg3 ; |
d14a1e28 RD |
3524 | int arg4 ; |
3525 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3526 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3527 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3528 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3529 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3530 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3531 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3532 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3533 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3534 | bool result; | |
3535 | wxPoint temp5 ; | |
3536 | wxSize temp6 ; | |
423f194a | 3537 | bool temp9 = False ; |
d14a1e28 RD |
3538 | PyObject * obj0 = 0 ; |
3539 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3540 | PyObject * obj2 = 0 ; |
3541 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3542 | PyObject * obj4 = 0 ; |
3543 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3544 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3545 | PyObject * obj7 = 0 ; |
3546 | PyObject * obj8 = 0 ; | |
3547 | char *kwnames[] = { | |
3548 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3549 | }; | |
3550 | ||
8edf1c75 | 3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3553 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
3554 | { |
3555 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3556 | if (PyErr_Occurred()) SWIG_fail; | |
3557 | } | |
3558 | { | |
3559 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3560 | if (PyErr_Occurred()) SWIG_fail; | |
3561 | } | |
d14a1e28 RD |
3562 | if (obj4) { |
3563 | { | |
3564 | arg5 = &temp5; | |
3565 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3566 | } | |
3567 | } | |
3568 | if (obj5) { | |
3569 | { | |
3570 | arg6 = &temp6; | |
3571 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3572 | } | |
3573 | } | |
8edf1c75 RD |
3574 | if (obj6) { |
3575 | { | |
3576 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | } | |
d14a1e28 RD |
3580 | if (obj7) { |
3581 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3582 | if (arg8 == NULL) { | |
3583 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3584 | } | |
3585 | } | |
3586 | if (obj8) { | |
3587 | { | |
3588 | arg9 = wxString_in_helper(obj8); | |
3589 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3590 | temp9 = True; |
d14a1e28 RD |
3591 | } |
3592 | } | |
3593 | { | |
3594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3595 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3596 | ||
3597 | wxPyEndAllowThreads(__tstate); | |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
3599 | } | |
02a34c4c | 3600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3601 | { |
3602 | if (temp9) | |
3603 | delete arg9; | |
3604 | } | |
3605 | return resultobj; | |
3606 | fail: | |
3607 | { | |
3608 | if (temp9) | |
3609 | delete arg9; | |
3610 | } | |
3611 | return NULL; | |
3612 | } | |
3613 | ||
3614 | ||
3615 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3616 | PyObject *resultobj; | |
3617 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3618 | int arg2 ; | |
3619 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3621 | char *kwnames[] = { |
3622 | (char *) "self",(char *) "range", NULL | |
3623 | }; | |
3624 | ||
8edf1c75 | 3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3627 | { |
3628 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3629 | if (PyErr_Occurred()) SWIG_fail; | |
3630 | } | |
d14a1e28 RD |
3631 | { |
3632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3633 | (arg1)->SetRange(arg2); | |
3634 | ||
3635 | wxPyEndAllowThreads(__tstate); | |
3636 | if (PyErr_Occurred()) SWIG_fail; | |
3637 | } | |
3638 | Py_INCREF(Py_None); resultobj = Py_None; | |
3639 | return resultobj; | |
3640 | fail: | |
3641 | return NULL; | |
3642 | } | |
3643 | ||
3644 | ||
3645 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3646 | PyObject *resultobj; | |
3647 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3648 | int result; | |
3649 | PyObject * obj0 = 0 ; | |
3650 | char *kwnames[] = { | |
3651 | (char *) "self", NULL | |
3652 | }; | |
3653 | ||
3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3656 | { | |
3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3658 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3659 | ||
3660 | wxPyEndAllowThreads(__tstate); | |
3661 | if (PyErr_Occurred()) SWIG_fail; | |
3662 | } | |
8edf1c75 | 3663 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3664 | return resultobj; |
3665 | fail: | |
3666 | return NULL; | |
3667 | } | |
3668 | ||
3669 | ||
3670 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3671 | PyObject *resultobj; | |
3672 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3673 | int arg2 ; | |
3674 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3676 | char *kwnames[] = { |
3677 | (char *) "self",(char *) "pos", NULL | |
3678 | }; | |
3679 | ||
8edf1c75 | 3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3682 | { |
3683 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3684 | if (PyErr_Occurred()) SWIG_fail; | |
3685 | } | |
d14a1e28 RD |
3686 | { |
3687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3688 | (arg1)->SetValue(arg2); | |
3689 | ||
3690 | wxPyEndAllowThreads(__tstate); | |
3691 | if (PyErr_Occurred()) SWIG_fail; | |
3692 | } | |
3693 | Py_INCREF(Py_None); resultobj = Py_None; | |
3694 | return resultobj; | |
3695 | fail: | |
3696 | return NULL; | |
3697 | } | |
3698 | ||
3699 | ||
3700 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3701 | PyObject *resultobj; | |
3702 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3703 | int result; | |
3704 | PyObject * obj0 = 0 ; | |
3705 | char *kwnames[] = { | |
3706 | (char *) "self", NULL | |
3707 | }; | |
3708 | ||
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3711 | { | |
3712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3713 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3714 | ||
3715 | wxPyEndAllowThreads(__tstate); | |
3716 | if (PyErr_Occurred()) SWIG_fail; | |
3717 | } | |
8edf1c75 | 3718 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3719 | return resultobj; |
3720 | fail: | |
3721 | return NULL; | |
3722 | } | |
3723 | ||
3724 | ||
3725 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3726 | PyObject *resultobj; | |
3727 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3728 | bool result; | |
3729 | PyObject * obj0 = 0 ; | |
3730 | char *kwnames[] = { | |
3731 | (char *) "self", NULL | |
3732 | }; | |
3733 | ||
3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3736 | { | |
3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3738 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
02a34c4c | 3743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3744 | return resultobj; |
3745 | fail: | |
3746 | return NULL; | |
3747 | } | |
3748 | ||
3749 | ||
3750 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3751 | PyObject *resultobj; | |
3752 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3753 | int arg2 ; | |
3754 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3756 | char *kwnames[] = { |
3757 | (char *) "self",(char *) "w", NULL | |
3758 | }; | |
3759 | ||
8edf1c75 | 3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3762 | { |
3763 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3764 | if (PyErr_Occurred()) SWIG_fail; | |
3765 | } | |
d14a1e28 RD |
3766 | { |
3767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3768 | (arg1)->SetShadowWidth(arg2); | |
3769 | ||
3770 | wxPyEndAllowThreads(__tstate); | |
3771 | if (PyErr_Occurred()) SWIG_fail; | |
3772 | } | |
3773 | Py_INCREF(Py_None); resultobj = Py_None; | |
3774 | return resultobj; | |
3775 | fail: | |
3776 | return NULL; | |
3777 | } | |
3778 | ||
3779 | ||
3780 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3781 | PyObject *resultobj; | |
3782 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3783 | int result; | |
3784 | PyObject * obj0 = 0 ; | |
3785 | char *kwnames[] = { | |
3786 | (char *) "self", NULL | |
3787 | }; | |
3788 | ||
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3791 | { | |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3793 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3794 | ||
3795 | wxPyEndAllowThreads(__tstate); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
8edf1c75 | 3798 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3799 | return resultobj; |
3800 | fail: | |
3801 | return NULL; | |
3802 | } | |
3803 | ||
3804 | ||
3805 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject *resultobj; | |
3807 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3808 | int arg2 ; | |
3809 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3811 | char *kwnames[] = { |
3812 | (char *) "self",(char *) "w", NULL | |
3813 | }; | |
3814 | ||
8edf1c75 | 3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3817 | { |
3818 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3819 | if (PyErr_Occurred()) SWIG_fail; | |
3820 | } | |
d14a1e28 RD |
3821 | { |
3822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3823 | (arg1)->SetBezelFace(arg2); | |
3824 | ||
3825 | wxPyEndAllowThreads(__tstate); | |
3826 | if (PyErr_Occurred()) SWIG_fail; | |
3827 | } | |
3828 | Py_INCREF(Py_None); resultobj = Py_None; | |
3829 | return resultobj; | |
3830 | fail: | |
3831 | return NULL; | |
3832 | } | |
3833 | ||
3834 | ||
3835 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3836 | PyObject *resultobj; | |
3837 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3838 | int result; | |
3839 | PyObject * obj0 = 0 ; | |
3840 | char *kwnames[] = { | |
3841 | (char *) "self", NULL | |
3842 | }; | |
3843 | ||
3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3846 | { | |
3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3848 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
3852 | } | |
8edf1c75 | 3853 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3854 | return resultobj; |
3855 | fail: | |
3856 | return NULL; | |
3857 | } | |
3858 | ||
3859 | ||
3860 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3861 | PyObject *obj; | |
3862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3863 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3864 | Py_INCREF(obj); | |
3865 | return Py_BuildValue((char *)""); | |
3866 | } | |
8edf1c75 | 3867 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
cbd72d4f RD |
3868 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
3869 | return 1; | |
3870 | } | |
3871 | ||
3872 | ||
3873 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3874 | PyObject *pyobj; | |
3875 | ||
3876 | { | |
3877 | #if wxUSE_UNICODE | |
3878 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3879 | #else | |
3880 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3881 | #endif | |
3882 | } | |
3883 | return pyobj; | |
3884 | } | |
3885 | ||
3886 | ||
8edf1c75 | 3887 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
3888 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
3889 | return 1; | |
3890 | } | |
3891 | ||
3892 | ||
3893 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3894 | PyObject *pyobj; | |
3895 | ||
3896 | { | |
3897 | #if wxUSE_UNICODE | |
3898 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3899 | #else | |
3900 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3901 | #endif | |
3902 | } | |
3903 | return pyobj; | |
3904 | } | |
3905 | ||
3906 | ||
8edf1c75 | 3907 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
cbd72d4f RD |
3908 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
3909 | return 1; | |
3910 | } | |
3911 | ||
3912 | ||
3913 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3914 | PyObject *pyobj; | |
3915 | ||
3916 | { | |
3917 | #if wxUSE_UNICODE | |
3918 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3919 | #else | |
3920 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3921 | #endif | |
3922 | } | |
3923 | return pyobj; | |
3924 | } | |
3925 | ||
3926 | ||
d14a1e28 RD |
3927 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3928 | PyObject *resultobj; | |
3929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3930 | int arg2 ; |
d14a1e28 RD |
3931 | wxString *arg3 = 0 ; |
3932 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3933 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3934 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3935 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3936 | long arg6 = (long) 0 ; | |
3937 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3938 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3939 | wxStaticBox *result; | |
423f194a | 3940 | bool temp3 = False ; |
d14a1e28 RD |
3941 | wxPoint temp4 ; |
3942 | wxSize temp5 ; | |
423f194a | 3943 | bool temp7 = False ; |
d14a1e28 | 3944 | PyObject * obj0 = 0 ; |
8edf1c75 | 3945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3946 | PyObject * obj2 = 0 ; |
3947 | PyObject * obj3 = 0 ; | |
3948 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3949 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3950 | PyObject * obj6 = 0 ; |
3951 | char *kwnames[] = { | |
3952 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3953 | }; | |
3954 | ||
8edf1c75 | 3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 3956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3957 | { |
3958 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
d14a1e28 RD |
3961 | { |
3962 | arg3 = wxString_in_helper(obj2); | |
3963 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3964 | temp3 = True; |
d14a1e28 RD |
3965 | } |
3966 | if (obj3) { | |
3967 | { | |
3968 | arg4 = &temp4; | |
3969 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3970 | } | |
3971 | } | |
3972 | if (obj4) { | |
3973 | { | |
3974 | arg5 = &temp5; | |
3975 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3976 | } | |
3977 | } | |
8edf1c75 RD |
3978 | if (obj5) { |
3979 | { | |
3980 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | } | |
d14a1e28 RD |
3984 | if (obj6) { |
3985 | { | |
3986 | arg7 = wxString_in_helper(obj6); | |
3987 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3988 | temp7 = True; |
d14a1e28 RD |
3989 | } |
3990 | } | |
3991 | { | |
3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3993 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3994 | ||
3995 | wxPyEndAllowThreads(__tstate); | |
3996 | if (PyErr_Occurred()) SWIG_fail; | |
3997 | } | |
3998 | { | |
3999 | resultobj = wxPyMake_wxObject(result); | |
4000 | } | |
4001 | { | |
4002 | if (temp3) | |
4003 | delete arg3; | |
4004 | } | |
4005 | { | |
4006 | if (temp7) | |
4007 | delete arg7; | |
4008 | } | |
4009 | return resultobj; | |
4010 | fail: | |
4011 | { | |
4012 | if (temp3) | |
4013 | delete arg3; | |
4014 | } | |
4015 | { | |
4016 | if (temp7) | |
4017 | delete arg7; | |
4018 | } | |
4019 | return NULL; | |
4020 | } | |
4021 | ||
4022 | ||
4023 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject *resultobj; | |
4025 | wxStaticBox *result; | |
4026 | char *kwnames[] = { | |
4027 | NULL | |
4028 | }; | |
4029 | ||
4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | result = (wxStaticBox *)new wxStaticBox(); | |
4034 | ||
4035 | wxPyEndAllowThreads(__tstate); | |
4036 | if (PyErr_Occurred()) SWIG_fail; | |
4037 | } | |
4038 | { | |
4039 | resultobj = wxPyMake_wxObject(result); | |
4040 | } | |
4041 | return resultobj; | |
4042 | fail: | |
4043 | return NULL; | |
4044 | } | |
4045 | ||
4046 | ||
4047 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4048 | PyObject *resultobj; | |
4049 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4050 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4051 | int arg3 ; |
d14a1e28 RD |
4052 | wxString *arg4 = 0 ; |
4053 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4054 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4055 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4056 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4057 | long arg7 = (long) 0 ; | |
4058 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4059 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4060 | bool result; | |
423f194a | 4061 | bool temp4 = False ; |
d14a1e28 RD |
4062 | wxPoint temp5 ; |
4063 | wxSize temp6 ; | |
423f194a | 4064 | bool temp8 = False ; |
d14a1e28 RD |
4065 | PyObject * obj0 = 0 ; |
4066 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4067 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4068 | PyObject * obj3 = 0 ; |
4069 | PyObject * obj4 = 0 ; | |
4070 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4071 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4072 | PyObject * obj7 = 0 ; |
4073 | char *kwnames[] = { | |
4074 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4075 | }; | |
4076 | ||
8edf1c75 | 4077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4080 | { |
4081 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | } | |
d14a1e28 RD |
4084 | { |
4085 | arg4 = wxString_in_helper(obj3); | |
4086 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4087 | temp4 = True; |
d14a1e28 RD |
4088 | } |
4089 | if (obj4) { | |
4090 | { | |
4091 | arg5 = &temp5; | |
4092 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4093 | } | |
4094 | } | |
4095 | if (obj5) { | |
4096 | { | |
4097 | arg6 = &temp6; | |
4098 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4099 | } | |
4100 | } | |
8edf1c75 RD |
4101 | if (obj6) { |
4102 | { | |
4103 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4104 | if (PyErr_Occurred()) SWIG_fail; | |
4105 | } | |
4106 | } | |
d14a1e28 RD |
4107 | if (obj7) { |
4108 | { | |
4109 | arg8 = wxString_in_helper(obj7); | |
4110 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4111 | temp8 = True; |
d14a1e28 RD |
4112 | } |
4113 | } | |
4114 | { | |
4115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4116 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4117 | ||
4118 | wxPyEndAllowThreads(__tstate); | |
4119 | if (PyErr_Occurred()) SWIG_fail; | |
4120 | } | |
02a34c4c | 4121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4122 | { |
4123 | if (temp4) | |
4124 | delete arg4; | |
4125 | } | |
4126 | { | |
4127 | if (temp8) | |
4128 | delete arg8; | |
4129 | } | |
4130 | return resultobj; | |
4131 | fail: | |
4132 | { | |
4133 | if (temp4) | |
4134 | delete arg4; | |
4135 | } | |
4136 | { | |
4137 | if (temp8) | |
4138 | delete arg8; | |
4139 | } | |
4140 | return NULL; | |
4141 | } | |
4142 | ||
4143 | ||
4144 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4145 | PyObject *obj; | |
4146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4147 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4148 | Py_INCREF(obj); | |
4149 | return Py_BuildValue((char *)""); | |
4150 | } | |
4151 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject *resultobj; | |
4153 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4154 | int arg2 ; |
d14a1e28 RD |
4155 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4156 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4157 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4158 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4159 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4160 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4161 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4162 | wxStaticLine *result; | |
4163 | wxPoint temp3 ; | |
4164 | wxSize temp4 ; | |
423f194a | 4165 | bool temp6 = False ; |
d14a1e28 | 4166 | PyObject * obj0 = 0 ; |
8edf1c75 | 4167 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4168 | PyObject * obj2 = 0 ; |
4169 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4170 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4171 | PyObject * obj5 = 0 ; |
4172 | char *kwnames[] = { | |
4173 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4174 | }; | |
4175 | ||
8edf1c75 | 4176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4178 | { |
4179 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4180 | if (PyErr_Occurred()) SWIG_fail; | |
4181 | } | |
d14a1e28 RD |
4182 | if (obj2) { |
4183 | { | |
4184 | arg3 = &temp3; | |
4185 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4186 | } | |
4187 | } | |
4188 | if (obj3) { | |
4189 | { | |
4190 | arg4 = &temp4; | |
4191 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4192 | } | |
4193 | } | |
8edf1c75 RD |
4194 | if (obj4) { |
4195 | { | |
4196 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
4199 | } | |
d14a1e28 RD |
4200 | if (obj5) { |
4201 | { | |
4202 | arg6 = wxString_in_helper(obj5); | |
4203 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4204 | temp6 = True; |
d14a1e28 RD |
4205 | } |
4206 | } | |
4207 | { | |
4208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4209 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4210 | ||
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4215 | { | |
4216 | if (temp6) | |
4217 | delete arg6; | |
4218 | } | |
4219 | return resultobj; | |
4220 | fail: | |
4221 | { | |
4222 | if (temp6) | |
4223 | delete arg6; | |
4224 | } | |
4225 | return NULL; | |
4226 | } | |
4227 | ||
4228 | ||
4229 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject *resultobj; | |
4231 | wxStaticLine *result; | |
4232 | char *kwnames[] = { | |
4233 | NULL | |
4234 | }; | |
4235 | ||
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4237 | { | |
4238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4239 | result = (wxStaticLine *)new wxStaticLine(); | |
4240 | ||
4241 | wxPyEndAllowThreads(__tstate); | |
4242 | if (PyErr_Occurred()) SWIG_fail; | |
4243 | } | |
4244 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4245 | return resultobj; | |
4246 | fail: | |
4247 | return NULL; | |
4248 | } | |
4249 | ||
4250 | ||
4251 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4252 | PyObject *resultobj; | |
4253 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4255 | int arg3 ; |
d14a1e28 RD |
4256 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4257 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4258 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4259 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4260 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4261 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4262 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4263 | bool result; | |
4264 | wxPoint temp4 ; | |
4265 | wxSize temp5 ; | |
423f194a | 4266 | bool temp7 = False ; |
d14a1e28 RD |
4267 | PyObject * obj0 = 0 ; |
4268 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4269 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4270 | PyObject * obj3 = 0 ; |
4271 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4272 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4273 | PyObject * obj6 = 0 ; |
4274 | char *kwnames[] = { | |
4275 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4276 | }; | |
4277 | ||
8edf1c75 | 4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
4279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4280 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4281 | { |
4282 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4283 | if (PyErr_Occurred()) SWIG_fail; | |
4284 | } | |
d14a1e28 RD |
4285 | if (obj3) { |
4286 | { | |
4287 | arg4 = &temp4; | |
4288 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4289 | } | |
4290 | } | |
4291 | if (obj4) { | |
4292 | { | |
4293 | arg5 = &temp5; | |
4294 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4295 | } | |
4296 | } | |
8edf1c75 RD |
4297 | if (obj5) { |
4298 | { | |
4299 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4300 | if (PyErr_Occurred()) SWIG_fail; | |
4301 | } | |
4302 | } | |
d14a1e28 RD |
4303 | if (obj6) { |
4304 | { | |
4305 | arg7 = wxString_in_helper(obj6); | |
4306 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4307 | temp7 = True; |
d14a1e28 RD |
4308 | } |
4309 | } | |
4310 | { | |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
02a34c4c | 4317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4318 | { |
4319 | if (temp7) | |
4320 | delete arg7; | |
4321 | } | |
4322 | return resultobj; | |
4323 | fail: | |
4324 | { | |
4325 | if (temp7) | |
4326 | delete arg7; | |
4327 | } | |
4328 | return NULL; | |
4329 | } | |
4330 | ||
4331 | ||
4332 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4333 | PyObject *resultobj; | |
4334 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4335 | bool result; | |
4336 | PyObject * obj0 = 0 ; | |
4337 | char *kwnames[] = { | |
4338 | (char *) "self", NULL | |
4339 | }; | |
4340 | ||
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4343 | { | |
4344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4345 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4346 | ||
4347 | wxPyEndAllowThreads(__tstate); | |
4348 | if (PyErr_Occurred()) SWIG_fail; | |
4349 | } | |
02a34c4c | 4350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4351 | return resultobj; |
4352 | fail: | |
4353 | return NULL; | |
4354 | } | |
4355 | ||
4356 | ||
4357 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4358 | PyObject *resultobj; | |
4359 | int result; | |
4360 | char *kwnames[] = { | |
4361 | NULL | |
4362 | }; | |
4363 | ||
4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4365 | { | |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (int)wxStaticLine::GetDefaultSize(); | |
4368 | ||
4369 | wxPyEndAllowThreads(__tstate); | |
4370 | if (PyErr_Occurred()) SWIG_fail; | |
4371 | } | |
8edf1c75 | 4372 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4373 | return resultobj; |
4374 | fail: | |
4375 | return NULL; | |
4376 | } | |
4377 | ||
4378 | ||
4379 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4380 | PyObject *obj; | |
4381 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4382 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4383 | Py_INCREF(obj); | |
4384 | return Py_BuildValue((char *)""); | |
4385 | } | |
4386 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4387 | PyObject *resultobj; | |
4388 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4389 | int arg2 ; |
d14a1e28 RD |
4390 | wxString *arg3 = 0 ; |
4391 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4392 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4393 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4394 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4395 | long arg6 = (long) 0 ; | |
4396 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4397 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4398 | wxStaticText *result; | |
423f194a | 4399 | bool temp3 = False ; |
d14a1e28 RD |
4400 | wxPoint temp4 ; |
4401 | wxSize temp5 ; | |
423f194a | 4402 | bool temp7 = False ; |
d14a1e28 | 4403 | PyObject * obj0 = 0 ; |
8edf1c75 | 4404 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4405 | PyObject * obj2 = 0 ; |
4406 | PyObject * obj3 = 0 ; | |
4407 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4408 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4409 | PyObject * obj6 = 0 ; |
4410 | char *kwnames[] = { | |
4411 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4412 | }; | |
4413 | ||
8edf1c75 | 4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4416 | { |
4417 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | } | |
d14a1e28 RD |
4420 | { |
4421 | arg3 = wxString_in_helper(obj2); | |
4422 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4423 | temp3 = True; |
d14a1e28 RD |
4424 | } |
4425 | if (obj3) { | |
4426 | { | |
4427 | arg4 = &temp4; | |
4428 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4429 | } | |
4430 | } | |
4431 | if (obj4) { | |
4432 | { | |
4433 | arg5 = &temp5; | |
4434 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4435 | } | |
4436 | } | |
8edf1c75 RD |
4437 | if (obj5) { |
4438 | { | |
4439 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4440 | if (PyErr_Occurred()) SWIG_fail; | |
4441 | } | |
4442 | } | |
d14a1e28 RD |
4443 | if (obj6) { |
4444 | { | |
4445 | arg7 = wxString_in_helper(obj6); | |
4446 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4447 | temp7 = True; |
d14a1e28 RD |
4448 | } |
4449 | } | |
4450 | { | |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4458 | { | |
4459 | if (temp3) | |
4460 | delete arg3; | |
4461 | } | |
4462 | { | |
4463 | if (temp7) | |
4464 | delete arg7; | |
4465 | } | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | { | |
4469 | if (temp3) | |
4470 | delete arg3; | |
4471 | } | |
4472 | { | |
4473 | if (temp7) | |
4474 | delete arg7; | |
4475 | } | |
4476 | return NULL; | |
4477 | } | |
4478 | ||
4479 | ||
4480 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4481 | PyObject *resultobj; | |
4482 | wxStaticText *result; | |
4483 | char *kwnames[] = { | |
4484 | NULL | |
4485 | }; | |
4486 | ||
4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4488 | { | |
4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4490 | result = (wxStaticText *)new wxStaticText(); | |
4491 | ||
4492 | wxPyEndAllowThreads(__tstate); | |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
4494 | } | |
4495 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4496 | return resultobj; | |
4497 | fail: | |
4498 | return NULL; | |
4499 | } | |
4500 | ||
4501 | ||
4502 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject *resultobj; | |
4504 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4505 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4506 | int arg3 ; |
d14a1e28 RD |
4507 | wxString *arg4 = 0 ; |
4508 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4509 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4510 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4511 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4512 | long arg7 = (long) 0 ; | |
4513 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4514 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4515 | bool result; | |
423f194a | 4516 | bool temp4 = False ; |
d14a1e28 RD |
4517 | wxPoint temp5 ; |
4518 | wxSize temp6 ; | |
423f194a | 4519 | bool temp8 = False ; |
d14a1e28 RD |
4520 | PyObject * obj0 = 0 ; |
4521 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4522 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4523 | PyObject * obj3 = 0 ; |
4524 | PyObject * obj4 = 0 ; | |
4525 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4526 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4527 | PyObject * obj7 = 0 ; |
4528 | char *kwnames[] = { | |
4529 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4530 | }; | |
4531 | ||
8edf1c75 | 4532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4534 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4535 | { |
4536 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4537 | if (PyErr_Occurred()) SWIG_fail; | |
4538 | } | |
d14a1e28 RD |
4539 | { |
4540 | arg4 = wxString_in_helper(obj3); | |
4541 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4542 | temp4 = True; |
d14a1e28 RD |
4543 | } |
4544 | if (obj4) { | |
4545 | { | |
4546 | arg5 = &temp5; | |
4547 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4548 | } | |
4549 | } | |
4550 | if (obj5) { | |
4551 | { | |
4552 | arg6 = &temp6; | |
4553 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4554 | } | |
4555 | } | |
8edf1c75 RD |
4556 | if (obj6) { |
4557 | { | |
4558 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4559 | if (PyErr_Occurred()) SWIG_fail; | |
4560 | } | |
4561 | } | |
d14a1e28 RD |
4562 | if (obj7) { |
4563 | { | |
4564 | arg8 = wxString_in_helper(obj7); | |
4565 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4566 | temp8 = True; |
d14a1e28 RD |
4567 | } |
4568 | } | |
4569 | { | |
4570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4571 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4572 | ||
4573 | wxPyEndAllowThreads(__tstate); | |
4574 | if (PyErr_Occurred()) SWIG_fail; | |
4575 | } | |
02a34c4c | 4576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4577 | { |
4578 | if (temp4) | |
4579 | delete arg4; | |
4580 | } | |
4581 | { | |
4582 | if (temp8) | |
4583 | delete arg8; | |
4584 | } | |
4585 | return resultobj; | |
4586 | fail: | |
4587 | { | |
4588 | if (temp4) | |
4589 | delete arg4; | |
4590 | } | |
4591 | { | |
4592 | if (temp8) | |
4593 | delete arg8; | |
4594 | } | |
4595 | return NULL; | |
4596 | } | |
4597 | ||
4598 | ||
4599 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4600 | PyObject *obj; | |
4601 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4602 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4603 | Py_INCREF(obj); | |
4604 | return Py_BuildValue((char *)""); | |
4605 | } | |
4606 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4607 | PyObject *resultobj; | |
4608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4609 | int arg2 ; |
d14a1e28 RD |
4610 | wxBitmap *arg3 = 0 ; |
4611 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4612 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4613 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4614 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4615 | long arg6 = (long) 0 ; | |
4616 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4617 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4618 | wxStaticBitmap *result; | |
4619 | wxPoint temp4 ; | |
4620 | wxSize temp5 ; | |
423f194a | 4621 | bool temp7 = False ; |
d14a1e28 | 4622 | PyObject * obj0 = 0 ; |
8edf1c75 | 4623 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4624 | PyObject * obj2 = 0 ; |
4625 | PyObject * obj3 = 0 ; | |
4626 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4627 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4628 | PyObject * obj6 = 0 ; |
4629 | char *kwnames[] = { | |
4630 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4631 | }; | |
4632 | ||
8edf1c75 | 4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4635 | { |
4636 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4637 | if (PyErr_Occurred()) SWIG_fail; | |
4638 | } | |
d14a1e28 RD |
4639 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4640 | if (arg3 == NULL) { | |
4641 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4642 | } | |
4643 | if (obj3) { | |
4644 | { | |
4645 | arg4 = &temp4; | |
4646 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4647 | } | |
4648 | } | |
4649 | if (obj4) { | |
4650 | { | |
4651 | arg5 = &temp5; | |
4652 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4653 | } | |
4654 | } | |
8edf1c75 RD |
4655 | if (obj5) { |
4656 | { | |
4657 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4658 | if (PyErr_Occurred()) SWIG_fail; | |
4659 | } | |
4660 | } | |
d14a1e28 RD |
4661 | if (obj6) { |
4662 | { | |
4663 | arg7 = wxString_in_helper(obj6); | |
4664 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4665 | temp7 = True; |
d14a1e28 RD |
4666 | } |
4667 | } | |
4668 | { | |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | } | |
4675 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4676 | { | |
4677 | if (temp7) | |
4678 | delete arg7; | |
4679 | } | |
4680 | return resultobj; | |
4681 | fail: | |
4682 | { | |
4683 | if (temp7) | |
4684 | delete arg7; | |
4685 | } | |
4686 | return NULL; | |
4687 | } | |
4688 | ||
4689 | ||
4690 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4691 | PyObject *resultobj; | |
4692 | wxStaticBitmap *result; | |
4693 | char *kwnames[] = { | |
4694 | NULL | |
4695 | }; | |
4696 | ||
4697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4698 | { | |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
4705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4706 | return resultobj; | |
4707 | fail: | |
4708 | return NULL; | |
4709 | } | |
4710 | ||
4711 | ||
4712 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4713 | PyObject *resultobj; | |
4714 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4715 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4716 | int arg3 ; |
d14a1e28 RD |
4717 | wxBitmap *arg4 = 0 ; |
4718 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4719 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4720 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4721 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4722 | long arg7 = (long) 0 ; | |
4723 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4724 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4725 | bool result; | |
4726 | wxPoint temp5 ; | |
4727 | wxSize temp6 ; | |
423f194a | 4728 | bool temp8 = False ; |
d14a1e28 RD |
4729 | PyObject * obj0 = 0 ; |
4730 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4731 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4732 | PyObject * obj3 = 0 ; |
4733 | PyObject * obj4 = 0 ; | |
4734 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4735 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4736 | PyObject * obj7 = 0 ; |
4737 | char *kwnames[] = { | |
4738 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4739 | }; | |
4740 | ||
8edf1c75 | 4741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4743 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4744 | { |
4745 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4746 | if (PyErr_Occurred()) SWIG_fail; | |
4747 | } | |
d14a1e28 RD |
4748 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4749 | if (arg4 == NULL) { | |
4750 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4751 | } | |
4752 | if (obj4) { | |
4753 | { | |
4754 | arg5 = &temp5; | |
4755 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4756 | } | |
4757 | } | |
4758 | if (obj5) { | |
4759 | { | |
4760 | arg6 = &temp6; | |
4761 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4762 | } | |
4763 | } | |
8edf1c75 RD |
4764 | if (obj6) { |
4765 | { | |
4766 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | } | |
d14a1e28 RD |
4770 | if (obj7) { |
4771 | { | |
4772 | arg8 = wxString_in_helper(obj7); | |
4773 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4774 | temp8 = True; |
d14a1e28 RD |
4775 | } |
4776 | } | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4780 | ||
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | } | |
02a34c4c | 4784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4785 | { |
4786 | if (temp8) | |
4787 | delete arg8; | |
4788 | } | |
4789 | return resultobj; | |
4790 | fail: | |
4791 | { | |
4792 | if (temp8) | |
4793 | delete arg8; | |
4794 | } | |
4795 | return NULL; | |
4796 | } | |
4797 | ||
4798 | ||
4799 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4800 | PyObject *resultobj; | |
4801 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4802 | wxBitmap result; | |
4803 | PyObject * obj0 = 0 ; | |
4804 | char *kwnames[] = { | |
4805 | (char *) "self", NULL | |
4806 | }; | |
4807 | ||
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | result = (arg1)->GetBitmap(); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
4816 | } | |
4817 | { | |
4818 | wxBitmap * resultptr; | |
4819 | resultptr = new wxBitmap((wxBitmap &) result); | |
4820 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4821 | } | |
4822 | return resultobj; | |
4823 | fail: | |
4824 | return NULL; | |
4825 | } | |
4826 | ||
4827 | ||
4828 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4829 | PyObject *resultobj; | |
4830 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4831 | wxBitmap *arg2 = 0 ; | |
4832 | PyObject * obj0 = 0 ; | |
4833 | PyObject * obj1 = 0 ; | |
4834 | char *kwnames[] = { | |
4835 | (char *) "self",(char *) "bitmap", NULL | |
4836 | }; | |
4837 | ||
4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4840 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4841 | if (arg2 == NULL) { | |
4842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4843 | } | |
4844 | { | |
4845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4846 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4847 | ||
4848 | wxPyEndAllowThreads(__tstate); | |
4849 | if (PyErr_Occurred()) SWIG_fail; | |
4850 | } | |
4851 | Py_INCREF(Py_None); resultobj = Py_None; | |
4852 | return resultobj; | |
4853 | fail: | |
4854 | return NULL; | |
4855 | } | |
4856 | ||
4857 | ||
4858 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject *resultobj; | |
4860 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4861 | wxIcon *arg2 = 0 ; | |
4862 | PyObject * obj0 = 0 ; | |
4863 | PyObject * obj1 = 0 ; | |
4864 | char *kwnames[] = { | |
4865 | (char *) "self",(char *) "icon", NULL | |
4866 | }; | |
4867 | ||
4868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4870 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4871 | if (arg2 == NULL) { | |
4872 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4873 | } | |
4874 | { | |
4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4876 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4877 | ||
4878 | wxPyEndAllowThreads(__tstate); | |
4879 | if (PyErr_Occurred()) SWIG_fail; | |
4880 | } | |
4881 | Py_INCREF(Py_None); resultobj = Py_None; | |
4882 | return resultobj; | |
4883 | fail: | |
4884 | return NULL; | |
4885 | } | |
4886 | ||
4887 | ||
4888 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4889 | PyObject *obj; | |
4890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4891 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4892 | Py_INCREF(obj); | |
4893 | return Py_BuildValue((char *)""); | |
4894 | } | |
8edf1c75 | 4895 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
4896 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
4897 | return 1; | |
4898 | } | |
4899 | ||
4900 | ||
4901 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4902 | PyObject *pyobj; | |
4903 | ||
4904 | { | |
4905 | #if wxUSE_UNICODE | |
4906 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4907 | #else | |
4908 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4909 | #endif | |
4910 | } | |
4911 | return pyobj; | |
4912 | } | |
4913 | ||
4914 | ||
d14a1e28 RD |
4915 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4916 | PyObject *resultobj; | |
4917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4918 | int arg2 ; |
d14a1e28 RD |
4919 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4920 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4921 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4922 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
4923 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
4924 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
4925 | long arg6 = (long) 0 ; | |
4926 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4927 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4928 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
4929 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
4930 | wxListBox *result; |
4931 | wxPoint temp3 ; | |
4932 | wxSize temp4 ; | |
423f194a | 4933 | bool temp8 = False ; |
d14a1e28 | 4934 | PyObject * obj0 = 0 ; |
8edf1c75 | 4935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4936 | PyObject * obj2 = 0 ; |
4937 | PyObject * obj3 = 0 ; | |
4938 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4939 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4940 | PyObject * obj6 = 0 ; |
4941 | PyObject * obj7 = 0 ; | |
4942 | char *kwnames[] = { | |
4943 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4944 | }; | |
4945 | ||
8edf1c75 | 4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 4947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4948 | { |
4949 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
4951 | } | |
d14a1e28 RD |
4952 | if (obj2) { |
4953 | { | |
4954 | arg3 = &temp3; | |
4955 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4956 | } | |
4957 | } | |
4958 | if (obj3) { | |
4959 | { | |
4960 | arg4 = &temp4; | |
4961 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4962 | } | |
4963 | } | |
4964 | if (obj4) { | |
4965 | { | |
02a34c4c RD |
4966 | if (! PySequence_Check(obj4)) { |
4967 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4968 | SWIG_fail; | |
4969 | } | |
4970 | arg5 = new wxArrayString; | |
4971 | int i, len=PySequence_Length(obj4); | |
4972 | for (i=0; i<len; i++) { | |
4973 | PyObject* item = PySequence_GetItem(obj4, i); | |
4974 | #if wxUSE_UNICODE | |
4975 | PyObject* str = PyObject_Unicode(item); | |
4976 | #else | |
4977 | PyObject* str = PyObject_Str(item); | |
4978 | #endif | |
4979 | arg5->Add(Py2wxString(str)); | |
4980 | Py_DECREF(item); | |
4981 | Py_DECREF(str); | |
4982 | } | |
d14a1e28 RD |
4983 | } |
4984 | } | |
8edf1c75 RD |
4985 | if (obj5) { |
4986 | { | |
02a34c4c | 4987 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
4988 | if (PyErr_Occurred()) SWIG_fail; |
4989 | } | |
4990 | } | |
d14a1e28 | 4991 | if (obj6) { |
02a34c4c RD |
4992 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4993 | if (arg7 == NULL) { | |
d14a1e28 RD |
4994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
4995 | } | |
4996 | } | |
4997 | if (obj7) { | |
4998 | { | |
02a34c4c RD |
4999 | arg8 = wxString_in_helper(obj7); |
5000 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5001 | temp8 = True; |
d14a1e28 RD |
5002 | } |
5003 | } | |
5004 | { | |
5005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5006 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5007 | |
5008 | wxPyEndAllowThreads(__tstate); | |
5009 | if (PyErr_Occurred()) SWIG_fail; | |
5010 | } | |
5011 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5012 | { | |
02a34c4c | 5013 | if (arg5) delete arg5; |
d14a1e28 RD |
5014 | } |
5015 | { | |
5016 | if (temp8) | |
02a34c4c | 5017 | delete arg8; |
d14a1e28 RD |
5018 | } |
5019 | return resultobj; | |
5020 | fail: | |
5021 | { | |
02a34c4c | 5022 | if (arg5) delete arg5; |
d14a1e28 RD |
5023 | } |
5024 | { | |
5025 | if (temp8) | |
02a34c4c | 5026 | delete arg8; |
d14a1e28 RD |
5027 | } |
5028 | return NULL; | |
5029 | } | |
5030 | ||
5031 | ||
5032 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject *resultobj; | |
5034 | wxListBox *result; | |
5035 | char *kwnames[] = { | |
5036 | NULL | |
5037 | }; | |
5038 | ||
5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5040 | { | |
5041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5042 | result = (wxListBox *)new wxListBox(); | |
5043 | ||
5044 | wxPyEndAllowThreads(__tstate); | |
5045 | if (PyErr_Occurred()) SWIG_fail; | |
5046 | } | |
5047 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5048 | return resultobj; | |
5049 | fail: | |
5050 | return NULL; | |
5051 | } | |
5052 | ||
5053 | ||
5054 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5055 | PyObject *resultobj; | |
5056 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5057 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5058 | int arg3 ; |
d14a1e28 RD |
5059 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5060 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5061 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5062 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
5063 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5064 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5065 | long arg7 = (long) 0 ; | |
5066 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5067 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5068 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5069 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5070 | bool result; |
5071 | wxPoint temp4 ; | |
5072 | wxSize temp5 ; | |
423f194a | 5073 | bool temp9 = False ; |
d14a1e28 RD |
5074 | PyObject * obj0 = 0 ; |
5075 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5076 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5077 | PyObject * obj3 = 0 ; |
5078 | PyObject * obj4 = 0 ; | |
5079 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5080 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5081 | PyObject * obj7 = 0 ; |
5082 | PyObject * obj8 = 0 ; | |
5083 | char *kwnames[] = { | |
5084 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5085 | }; | |
5086 | ||
8edf1c75 | 5087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5090 | { |
5091 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5092 | if (PyErr_Occurred()) SWIG_fail; | |
5093 | } | |
d14a1e28 RD |
5094 | if (obj3) { |
5095 | { | |
5096 | arg4 = &temp4; | |
5097 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5098 | } | |
5099 | } | |
5100 | if (obj4) { | |
5101 | { | |
5102 | arg5 = &temp5; | |
5103 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5104 | } | |
5105 | } | |
5106 | if (obj5) { | |
5107 | { | |
02a34c4c RD |
5108 | if (! PySequence_Check(obj5)) { |
5109 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5110 | SWIG_fail; | |
5111 | } | |
5112 | arg6 = new wxArrayString; | |
5113 | int i, len=PySequence_Length(obj5); | |
5114 | for (i=0; i<len; i++) { | |
5115 | PyObject* item = PySequence_GetItem(obj5, i); | |
5116 | #if wxUSE_UNICODE | |
5117 | PyObject* str = PyObject_Unicode(item); | |
5118 | #else | |
5119 | PyObject* str = PyObject_Str(item); | |
5120 | #endif | |
5121 | arg6->Add(Py2wxString(str)); | |
5122 | Py_DECREF(item); | |
5123 | Py_DECREF(str); | |
5124 | } | |
d14a1e28 RD |
5125 | } |
5126 | } | |
8edf1c75 RD |
5127 | if (obj6) { |
5128 | { | |
02a34c4c | 5129 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
5130 | if (PyErr_Occurred()) SWIG_fail; |
5131 | } | |
5132 | } | |
d14a1e28 | 5133 | if (obj7) { |
02a34c4c RD |
5134 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5135 | if (arg8 == NULL) { | |
d14a1e28 RD |
5136 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5137 | } | |
5138 | } | |
5139 | if (obj8) { | |
5140 | { | |
02a34c4c RD |
5141 | arg9 = wxString_in_helper(obj8); |
5142 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5143 | temp9 = True; |
d14a1e28 RD |
5144 | } |
5145 | } | |
5146 | { | |
5147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5148 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5149 | |
5150 | wxPyEndAllowThreads(__tstate); | |
5151 | if (PyErr_Occurred()) SWIG_fail; | |
5152 | } | |
02a34c4c | 5153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5154 | { |
02a34c4c | 5155 | if (arg6) delete arg6; |
d14a1e28 RD |
5156 | } |
5157 | { | |
5158 | if (temp9) | |
02a34c4c | 5159 | delete arg9; |
d14a1e28 RD |
5160 | } |
5161 | return resultobj; | |
5162 | fail: | |
5163 | { | |
02a34c4c | 5164 | if (arg6) delete arg6; |
d14a1e28 RD |
5165 | } |
5166 | { | |
5167 | if (temp9) | |
02a34c4c | 5168 | delete arg9; |
d14a1e28 RD |
5169 | } |
5170 | return NULL; | |
5171 | } | |
5172 | ||
5173 | ||
5174 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5175 | PyObject *resultobj; | |
5176 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5177 | wxString *arg2 = 0 ; | |
5178 | int arg3 ; | |
5179 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5180 | bool temp2 = False ; |
d14a1e28 RD |
5181 | PyObject * obj0 = 0 ; |
5182 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5183 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5184 | PyObject * obj3 = 0 ; |
5185 | char *kwnames[] = { | |
5186 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5187 | }; | |
5188 | ||
8edf1c75 | 5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5191 | { | |
5192 | arg2 = wxString_in_helper(obj1); | |
5193 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5194 | temp2 = True; |
d14a1e28 | 5195 | } |
8edf1c75 RD |
5196 | { |
5197 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5198 | if (PyErr_Occurred()) SWIG_fail; | |
5199 | } | |
d14a1e28 RD |
5200 | if (obj3) { |
5201 | arg4 = obj3; | |
5202 | } | |
5203 | { | |
5204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5205 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5206 | ||
5207 | wxPyEndAllowThreads(__tstate); | |
5208 | if (PyErr_Occurred()) SWIG_fail; | |
5209 | } | |
5210 | Py_INCREF(Py_None); resultobj = Py_None; | |
5211 | { | |
5212 | if (temp2) | |
5213 | delete arg2; | |
5214 | } | |
5215 | return resultobj; | |
5216 | fail: | |
5217 | { | |
5218 | if (temp2) | |
5219 | delete arg2; | |
5220 | } | |
5221 | return NULL; | |
5222 | } | |
5223 | ||
5224 | ||
5225 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5226 | PyObject *resultobj; | |
5227 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5228 | wxArrayString *arg2 = 0 ; | |
5229 | int arg3 ; | |
5230 | PyObject * obj0 = 0 ; | |
5231 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5232 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5233 | char *kwnames[] = { |
5234 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5235 | }; | |
5236 | ||
8edf1c75 | 5237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5239 | { | |
5240 | if (! PySequence_Check(obj1)) { | |
5241 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5242 | SWIG_fail; | |
5243 | } | |
5244 | arg2 = new wxArrayString; | |
5245 | int i, len=PySequence_Length(obj1); | |
5246 | for (i=0; i<len; i++) { | |
5247 | PyObject* item = PySequence_GetItem(obj1, i); | |
5248 | #if wxUSE_UNICODE | |
5249 | PyObject* str = PyObject_Unicode(item); | |
5250 | #else | |
5251 | PyObject* str = PyObject_Str(item); | |
5252 | #endif | |
5253 | arg2->Add(Py2wxString(str)); | |
5254 | Py_DECREF(item); | |
5255 | Py_DECREF(str); | |
5256 | } | |
5257 | } | |
8edf1c75 RD |
5258 | { |
5259 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5260 | if (PyErr_Occurred()) SWIG_fail; | |
5261 | } | |
d14a1e28 RD |
5262 | { |
5263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5264 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5265 | ||
5266 | wxPyEndAllowThreads(__tstate); | |
5267 | if (PyErr_Occurred()) SWIG_fail; | |
5268 | } | |
5269 | Py_INCREF(Py_None); resultobj = Py_None; | |
5270 | { | |
5271 | if (arg2) delete arg2; | |
5272 | } | |
5273 | return resultobj; | |
5274 | fail: | |
5275 | { | |
5276 | if (arg2) delete arg2; | |
5277 | } | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
5282 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5283 | PyObject *resultobj; | |
5284 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5285 | wxArrayString *arg2 = 0 ; | |
5286 | PyObject * obj0 = 0 ; | |
5287 | PyObject * obj1 = 0 ; | |
5288 | char *kwnames[] = { | |
5289 | (char *) "self",(char *) "items", NULL | |
5290 | }; | |
5291 | ||
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5294 | { | |
5295 | if (! PySequence_Check(obj1)) { | |
5296 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5297 | SWIG_fail; | |
5298 | } | |
5299 | arg2 = new wxArrayString; | |
5300 | int i, len=PySequence_Length(obj1); | |
5301 | for (i=0; i<len; i++) { | |
5302 | PyObject* item = PySequence_GetItem(obj1, i); | |
5303 | #if wxUSE_UNICODE | |
5304 | PyObject* str = PyObject_Unicode(item); | |
5305 | #else | |
5306 | PyObject* str = PyObject_Str(item); | |
5307 | #endif | |
5308 | arg2->Add(Py2wxString(str)); | |
5309 | Py_DECREF(item); | |
5310 | Py_DECREF(str); | |
5311 | } | |
5312 | } | |
5313 | { | |
5314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5315 | (arg1)->Set((wxArrayString const &)*arg2); | |
5316 | ||
5317 | wxPyEndAllowThreads(__tstate); | |
5318 | if (PyErr_Occurred()) SWIG_fail; | |
5319 | } | |
5320 | Py_INCREF(Py_None); resultobj = Py_None; | |
5321 | { | |
5322 | if (arg2) delete arg2; | |
5323 | } | |
5324 | return resultobj; | |
5325 | fail: | |
5326 | { | |
5327 | if (arg2) delete arg2; | |
5328 | } | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
5333 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5334 | PyObject *resultobj; | |
5335 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5336 | int arg2 ; | |
5337 | bool result; | |
5338 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5339 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5340 | char *kwnames[] = { |
5341 | (char *) "self",(char *) "n", NULL | |
5342 | }; | |
5343 | ||
8edf1c75 | 5344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5346 | { |
5347 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5348 | if (PyErr_Occurred()) SWIG_fail; | |
5349 | } | |
d14a1e28 RD |
5350 | { |
5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5352 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5353 | ||
5354 | wxPyEndAllowThreads(__tstate); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
02a34c4c | 5357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5358 | return resultobj; |
5359 | fail: | |
5360 | return NULL; | |
5361 | } | |
5362 | ||
5363 | ||
5364 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5365 | PyObject *resultobj; | |
5366 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5367 | int arg2 ; | |
423f194a | 5368 | bool arg3 = (bool) True ; |
d14a1e28 | 5369 | PyObject * obj0 = 0 ; |
8edf1c75 | 5370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5371 | PyObject * obj2 = 0 ; |
5372 | char *kwnames[] = { | |
5373 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5374 | }; | |
5375 | ||
8edf1c75 | 5376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5378 | { |
5379 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
d14a1e28 | 5382 | if (obj2) { |
2dbef272 | 5383 | { |
8edf1c75 | 5384 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
5385 | if (PyErr_Occurred()) SWIG_fail; |
5386 | } | |
d14a1e28 RD |
5387 | } |
5388 | { | |
5389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5390 | (arg1)->SetSelection(arg2,arg3); | |
5391 | ||
5392 | wxPyEndAllowThreads(__tstate); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
5395 | Py_INCREF(Py_None); resultobj = Py_None; | |
5396 | return resultobj; | |
5397 | fail: | |
5398 | return NULL; | |
5399 | } | |
5400 | ||
5401 | ||
5402 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject *resultobj; | |
5404 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5405 | int arg2 ; | |
5406 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5408 | char *kwnames[] = { |
5409 | (char *) "self",(char *) "n", NULL | |
5410 | }; | |
5411 | ||
8edf1c75 | 5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5414 | { |
5415 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5416 | if (PyErr_Occurred()) SWIG_fail; | |
5417 | } | |
d14a1e28 RD |
5418 | { |
5419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5420 | (arg1)->Select(arg2); | |
5421 | ||
5422 | wxPyEndAllowThreads(__tstate); | |
5423 | if (PyErr_Occurred()) SWIG_fail; | |
5424 | } | |
5425 | Py_INCREF(Py_None); resultobj = Py_None; | |
5426 | return resultobj; | |
5427 | fail: | |
5428 | return NULL; | |
5429 | } | |
5430 | ||
5431 | ||
5432 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5433 | PyObject *resultobj; | |
5434 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5435 | int arg2 ; | |
5436 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5438 | char *kwnames[] = { |
5439 | (char *) "self",(char *) "n", NULL | |
5440 | }; | |
5441 | ||
8edf1c75 | 5442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5444 | { |
5445 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5446 | if (PyErr_Occurred()) SWIG_fail; | |
5447 | } | |
d14a1e28 RD |
5448 | { |
5449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5450 | (arg1)->Deselect(arg2); | |
5451 | ||
5452 | wxPyEndAllowThreads(__tstate); | |
5453 | if (PyErr_Occurred()) SWIG_fail; | |
5454 | } | |
5455 | Py_INCREF(Py_None); resultobj = Py_None; | |
5456 | return resultobj; | |
5457 | fail: | |
5458 | return NULL; | |
5459 | } | |
5460 | ||
5461 | ||
5462 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5463 | PyObject *resultobj; | |
5464 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5465 | int arg2 = (int) -1 ; | |
5466 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5468 | char *kwnames[] = { |
5469 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5470 | }; | |
5471 | ||
8edf1c75 | 5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5474 | if (obj1) { |
5475 | { | |
5476 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
5479 | } | |
d14a1e28 RD |
5480 | { |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5482 | (arg1)->DeselectAll(arg2); | |
5483 | ||
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
5487 | Py_INCREF(Py_None); resultobj = Py_None; | |
5488 | return resultobj; | |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
5494 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject *resultobj; | |
5496 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5497 | wxString *arg2 = 0 ; | |
423f194a | 5498 | bool arg3 = (bool) True ; |
d14a1e28 | 5499 | bool result; |
423f194a | 5500 | bool temp2 = False ; |
d14a1e28 RD |
5501 | PyObject * obj0 = 0 ; |
5502 | PyObject * obj1 = 0 ; | |
5503 | PyObject * obj2 = 0 ; | |
5504 | char *kwnames[] = { | |
5505 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5506 | }; | |
5507 | ||
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5510 | { | |
5511 | arg2 = wxString_in_helper(obj1); | |
5512 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5513 | temp2 = True; |
d14a1e28 RD |
5514 | } |
5515 | if (obj2) { | |
2dbef272 | 5516 | { |
8edf1c75 | 5517 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
5518 | if (PyErr_Occurred()) SWIG_fail; |
5519 | } | |
d14a1e28 RD |
5520 | } |
5521 | { | |
5522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5523 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5524 | ||
5525 | wxPyEndAllowThreads(__tstate); | |
5526 | if (PyErr_Occurred()) SWIG_fail; | |
5527 | } | |
02a34c4c | 5528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5529 | { |
5530 | if (temp2) | |
5531 | delete arg2; | |
5532 | } | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | { | |
5536 | if (temp2) | |
5537 | delete arg2; | |
5538 | } | |
5539 | return NULL; | |
5540 | } | |
5541 | ||
5542 | ||
5543 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5544 | PyObject *resultobj; | |
5545 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5546 | PyObject *result; | |
5547 | PyObject * obj0 = 0 ; | |
5548 | char *kwnames[] = { | |
5549 | (char *) "self", NULL | |
5550 | }; | |
5551 | ||
5552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5554 | { | |
5555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5556 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5557 | ||
5558 | wxPyEndAllowThreads(__tstate); | |
5559 | if (PyErr_Occurred()) SWIG_fail; | |
5560 | } | |
5561 | resultobj = result; | |
5562 | return resultobj; | |
5563 | fail: | |
5564 | return NULL; | |
5565 | } | |
5566 | ||
5567 | ||
5568 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5569 | PyObject *resultobj; | |
5570 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5571 | int arg2 ; | |
5572 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5573 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5574 | char *kwnames[] = { |
5575 | (char *) "self",(char *) "n", NULL | |
5576 | }; | |
5577 | ||
8edf1c75 | 5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5580 | { |
5581 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
d14a1e28 RD |
5584 | { |
5585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5586 | (arg1)->SetFirstItem(arg2); | |
5587 | ||
5588 | wxPyEndAllowThreads(__tstate); | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
5591 | Py_INCREF(Py_None); resultobj = Py_None; | |
5592 | return resultobj; | |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
5598 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject *resultobj; | |
5600 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5601 | wxString *arg2 = 0 ; | |
423f194a | 5602 | bool temp2 = False ; |
d14a1e28 RD |
5603 | PyObject * obj0 = 0 ; |
5604 | PyObject * obj1 = 0 ; | |
5605 | char *kwnames[] = { | |
5606 | (char *) "self",(char *) "s", NULL | |
5607 | }; | |
5608 | ||
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5611 | { | |
5612 | arg2 = wxString_in_helper(obj1); | |
5613 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5614 | temp2 = True; |
d14a1e28 RD |
5615 | } |
5616 | { | |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5619 | ||
5620 | wxPyEndAllowThreads(__tstate); | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | } | |
5623 | Py_INCREF(Py_None); resultobj = Py_None; | |
5624 | { | |
5625 | if (temp2) | |
5626 | delete arg2; | |
5627 | } | |
5628 | return resultobj; | |
5629 | fail: | |
5630 | { | |
5631 | if (temp2) | |
5632 | delete arg2; | |
5633 | } | |
5634 | return NULL; | |
5635 | } | |
5636 | ||
5637 | ||
5638 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5639 | PyObject *resultobj; | |
5640 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5641 | int arg2 ; | |
5642 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5643 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5644 | char *kwnames[] = { |
5645 | (char *) "self",(char *) "n", NULL | |
5646 | }; | |
5647 | ||
8edf1c75 | 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5650 | { |
5651 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5652 | if (PyErr_Occurred()) SWIG_fail; | |
5653 | } | |
d14a1e28 RD |
5654 | { |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | (arg1)->EnsureVisible(arg2); | |
5657 | ||
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
5661 | Py_INCREF(Py_None); resultobj = Py_None; | |
5662 | return resultobj; | |
5663 | fail: | |
5664 | return NULL; | |
5665 | } | |
5666 | ||
5667 | ||
5668 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5669 | PyObject *resultobj; | |
5670 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5671 | wxString *arg2 = 0 ; | |
423f194a | 5672 | bool temp2 = False ; |
d14a1e28 RD |
5673 | PyObject * obj0 = 0 ; |
5674 | PyObject * obj1 = 0 ; | |
5675 | char *kwnames[] = { | |
5676 | (char *) "self",(char *) "s", NULL | |
5677 | }; | |
5678 | ||
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5681 | { | |
5682 | arg2 = wxString_in_helper(obj1); | |
5683 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5684 | temp2 = True; |
d14a1e28 RD |
5685 | } |
5686 | { | |
5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5688 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5689 | ||
5690 | wxPyEndAllowThreads(__tstate); | |
5691 | if (PyErr_Occurred()) SWIG_fail; | |
5692 | } | |
5693 | Py_INCREF(Py_None); resultobj = Py_None; | |
5694 | { | |
5695 | if (temp2) | |
5696 | delete arg2; | |
5697 | } | |
5698 | return resultobj; | |
5699 | fail: | |
5700 | { | |
5701 | if (temp2) | |
5702 | delete arg2; | |
5703 | } | |
5704 | return NULL; | |
5705 | } | |
5706 | ||
5707 | ||
5708 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject *resultobj; | |
5710 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5711 | bool result; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5719 | { | |
5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5721 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5722 | ||
5723 | wxPyEndAllowThreads(__tstate); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
02a34c4c | 5726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5727 | return resultobj; |
5728 | fail: | |
5729 | return NULL; | |
5730 | } | |
5731 | ||
5732 | ||
5733 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
5734 | PyObject *obj; | |
5735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5736 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5737 | Py_INCREF(obj); | |
5738 | return Py_BuildValue((char *)""); | |
5739 | } | |
5740 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject *resultobj; | |
5742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5743 | int arg2 ; |
d14a1e28 RD |
5744 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5745 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5746 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5747 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
5748 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5749 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5750 | long arg6 = (long) 0 ; | |
5751 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5752 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5753 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5754 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5755 | wxCheckListBox *result; |
5756 | wxPoint temp3 ; | |
5757 | wxSize temp4 ; | |
423f194a | 5758 | bool temp8 = False ; |
d14a1e28 | 5759 | PyObject * obj0 = 0 ; |
8edf1c75 | 5760 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5761 | PyObject * obj2 = 0 ; |
5762 | PyObject * obj3 = 0 ; | |
5763 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5764 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5765 | PyObject * obj6 = 0 ; |
5766 | PyObject * obj7 = 0 ; | |
5767 | char *kwnames[] = { | |
5768 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5769 | }; | |
5770 | ||
8edf1c75 | 5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 5772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5773 | { |
5774 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5775 | if (PyErr_Occurred()) SWIG_fail; | |
5776 | } | |
d14a1e28 RD |
5777 | if (obj2) { |
5778 | { | |
5779 | arg3 = &temp3; | |
5780 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5781 | } | |
5782 | } | |
5783 | if (obj3) { | |
5784 | { | |
5785 | arg4 = &temp4; | |
5786 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5787 | } | |
5788 | } | |
5789 | if (obj4) { | |
5790 | { | |
02a34c4c RD |
5791 | if (! PySequence_Check(obj4)) { |
5792 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5793 | SWIG_fail; | |
5794 | } | |
5795 | arg5 = new wxArrayString; | |
5796 | int i, len=PySequence_Length(obj4); | |
5797 | for (i=0; i<len; i++) { | |
5798 | PyObject* item = PySequence_GetItem(obj4, i); | |
5799 | #if wxUSE_UNICODE | |
5800 | PyObject* str = PyObject_Unicode(item); | |
5801 | #else | |
5802 | PyObject* str = PyObject_Str(item); | |
5803 | #endif | |
5804 | arg5->Add(Py2wxString(str)); | |
5805 | Py_DECREF(item); | |
5806 | Py_DECREF(str); | |
5807 | } | |
d14a1e28 RD |
5808 | } |
5809 | } | |
8edf1c75 RD |
5810 | if (obj5) { |
5811 | { | |
02a34c4c | 5812 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
5813 | if (PyErr_Occurred()) SWIG_fail; |
5814 | } | |
5815 | } | |
d14a1e28 | 5816 | if (obj6) { |
02a34c4c RD |
5817 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5818 | if (arg7 == NULL) { | |
d14a1e28 RD |
5819 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5820 | } | |
5821 | } | |
5822 | if (obj7) { | |
5823 | { | |
02a34c4c RD |
5824 | arg8 = wxString_in_helper(obj7); |
5825 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5826 | temp8 = True; |
d14a1e28 RD |
5827 | } |
5828 | } | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5831 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5832 | |
5833 | wxPyEndAllowThreads(__tstate); | |
5834 | if (PyErr_Occurred()) SWIG_fail; | |
5835 | } | |
5836 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5837 | { | |
02a34c4c | 5838 | if (arg5) delete arg5; |
d14a1e28 RD |
5839 | } |
5840 | { | |
5841 | if (temp8) | |
02a34c4c | 5842 | delete arg8; |
d14a1e28 RD |
5843 | } |
5844 | return resultobj; | |
5845 | fail: | |
5846 | { | |
02a34c4c | 5847 | if (arg5) delete arg5; |
d14a1e28 RD |
5848 | } |
5849 | { | |
5850 | if (temp8) | |
02a34c4c | 5851 | delete arg8; |
d14a1e28 RD |
5852 | } |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject *resultobj; | |
5859 | wxCheckListBox *result; | |
5860 | char *kwnames[] = { | |
5861 | NULL | |
5862 | }; | |
5863 | ||
5864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5865 | { | |
5866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5867 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5868 | ||
5869 | wxPyEndAllowThreads(__tstate); | |
5870 | if (PyErr_Occurred()) SWIG_fail; | |
5871 | } | |
5872 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5873 | return resultobj; | |
5874 | fail: | |
5875 | return NULL; | |
5876 | } | |
5877 | ||
5878 | ||
5879 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5880 | PyObject *resultobj; | |
5881 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5882 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5883 | int arg3 ; |
d14a1e28 RD |
5884 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5885 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5886 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5887 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
5888 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5889 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5890 | long arg7 = (long) 0 ; | |
5891 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5892 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5893 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5894 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5895 | bool result; |
5896 | wxPoint temp4 ; | |
5897 | wxSize temp5 ; | |
423f194a | 5898 | bool temp9 = False ; |
d14a1e28 RD |
5899 | PyObject * obj0 = 0 ; |
5900 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5901 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5902 | PyObject * obj3 = 0 ; |
5903 | PyObject * obj4 = 0 ; | |
5904 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5905 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5906 | PyObject * obj7 = 0 ; |
5907 | PyObject * obj8 = 0 ; | |
5908 | char *kwnames[] = { | |
5909 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5910 | }; | |
5911 | ||
8edf1c75 | 5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5914 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5915 | { |
5916 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5917 | if (PyErr_Occurred()) SWIG_fail; | |
5918 | } | |
d14a1e28 RD |
5919 | if (obj3) { |
5920 | { | |
5921 | arg4 = &temp4; | |
5922 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5923 | } | |
5924 | } | |
5925 | if (obj4) { | |
5926 | { | |
5927 | arg5 = &temp5; | |
5928 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5929 | } | |
5930 | } | |
5931 | if (obj5) { | |
5932 | { | |
02a34c4c RD |
5933 | if (! PySequence_Check(obj5)) { |
5934 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5935 | SWIG_fail; | |
5936 | } | |
5937 | arg6 = new wxArrayString; | |
5938 | int i, len=PySequence_Length(obj5); | |
5939 | for (i=0; i<len; i++) { | |
5940 | PyObject* item = PySequence_GetItem(obj5, i); | |
5941 | #if wxUSE_UNICODE | |
5942 | PyObject* str = PyObject_Unicode(item); | |
5943 | #else | |
5944 | PyObject* str = PyObject_Str(item); | |
5945 | #endif | |
5946 | arg6->Add(Py2wxString(str)); | |
5947 | Py_DECREF(item); | |
5948 | Py_DECREF(str); | |
5949 | } | |
d14a1e28 RD |
5950 | } |
5951 | } | |
8edf1c75 RD |
5952 | if (obj6) { |
5953 | { | |
02a34c4c | 5954 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
5955 | if (PyErr_Occurred()) SWIG_fail; |
5956 | } | |
5957 | } | |
d14a1e28 | 5958 | if (obj7) { |
02a34c4c RD |
5959 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5960 | if (arg8 == NULL) { | |
d14a1e28 RD |
5961 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5962 | } | |
5963 | } | |
5964 | if (obj8) { | |
5965 | { | |
02a34c4c RD |
5966 | arg9 = wxString_in_helper(obj8); |
5967 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5968 | temp9 = True; |
d14a1e28 RD |
5969 | } |
5970 | } | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5973 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5974 | |
5975 | wxPyEndAllowThreads(__tstate); | |
5976 | if (PyErr_Occurred()) SWIG_fail; | |
5977 | } | |
02a34c4c | 5978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5979 | { |
02a34c4c | 5980 | if (arg6) delete arg6; |
d14a1e28 RD |
5981 | } |
5982 | { | |
5983 | if (temp9) | |
02a34c4c | 5984 | delete arg9; |
d14a1e28 RD |
5985 | } |
5986 | return resultobj; | |
5987 | fail: | |
5988 | { | |
02a34c4c | 5989 | if (arg6) delete arg6; |
d14a1e28 RD |
5990 | } |
5991 | { | |
5992 | if (temp9) | |
02a34c4c | 5993 | delete arg9; |
d14a1e28 RD |
5994 | } |
5995 | return NULL; | |
5996 | } | |
5997 | ||
5998 | ||
5999 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6000 | PyObject *resultobj; | |
6001 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6002 | int arg2 ; | |
6003 | bool result; | |
6004 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6006 | char *kwnames[] = { |
6007 | (char *) "self",(char *) "index", NULL | |
6008 | }; | |
6009 | ||
8edf1c75 | 6010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6012 | { |
6013 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
d14a1e28 RD |
6016 | { |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | result = (bool)(arg1)->IsChecked(arg2); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) SWIG_fail; | |
6022 | } | |
02a34c4c | 6023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6024 | return resultobj; |
6025 | fail: | |
6026 | return NULL; | |
6027 | } | |
6028 | ||
6029 | ||
6030 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6031 | PyObject *resultobj; | |
6032 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6033 | int arg2 ; | |
423f194a | 6034 | int arg3 = (int) True ; |
d14a1e28 | 6035 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6036 | PyObject * obj1 = 0 ; |
6037 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6038 | char *kwnames[] = { |
6039 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6040 | }; | |
6041 | ||
8edf1c75 | 6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6044 | { |
6045 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | if (obj2) { | |
6049 | { | |
6050 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6051 | if (PyErr_Occurred()) SWIG_fail; | |
6052 | } | |
6053 | } | |
d14a1e28 RD |
6054 | { |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | (arg1)->Check(arg2,arg3); | |
6057 | ||
6058 | wxPyEndAllowThreads(__tstate); | |
6059 | if (PyErr_Occurred()) SWIG_fail; | |
6060 | } | |
6061 | Py_INCREF(Py_None); resultobj = Py_None; | |
6062 | return resultobj; | |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
6068 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject *resultobj; | |
6070 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6071 | wxPoint *arg2 = 0 ; | |
6072 | int result; | |
6073 | wxPoint temp2 ; | |
6074 | PyObject * obj0 = 0 ; | |
6075 | PyObject * obj1 = 0 ; | |
6076 | char *kwnames[] = { | |
6077 | (char *) "self",(char *) "pt", NULL | |
6078 | }; | |
6079 | ||
6080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6082 | { | |
6083 | arg2 = &temp2; | |
6084 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6085 | } | |
6086 | { | |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6089 | ||
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
8edf1c75 | 6093 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6094 | return resultobj; |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
6100 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject *resultobj; | |
6102 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6103 | int arg2 ; |
6104 | int arg3 ; | |
d14a1e28 RD |
6105 | int result; |
6106 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6107 | PyObject * obj1 = 0 ; |
6108 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6109 | char *kwnames[] = { |
6110 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6111 | }; | |
6112 | ||
8edf1c75 | 6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6115 | { |
6116 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6117 | if (PyErr_Occurred()) SWIG_fail; | |
6118 | } | |
6119 | { | |
6120 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
d14a1e28 RD |
6123 | { |
6124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6125 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6126 | ||
6127 | wxPyEndAllowThreads(__tstate); | |
6128 | if (PyErr_Occurred()) SWIG_fail; | |
6129 | } | |
8edf1c75 | 6130 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6131 | return resultobj; |
6132 | fail: | |
6133 | return NULL; | |
6134 | } | |
6135 | ||
6136 | ||
6137 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6138 | PyObject *obj; | |
6139 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6140 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6141 | Py_INCREF(obj); | |
6142 | return Py_BuildValue((char *)""); | |
6143 | } | |
8edf1c75 | 6144 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
6145 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6146 | return 1; | |
6147 | } | |
6148 | ||
6149 | ||
6150 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6151 | PyObject *pyobj; | |
6152 | ||
6153 | { | |
6154 | #if wxUSE_UNICODE | |
6155 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6156 | #else | |
6157 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6158 | #endif | |
6159 | } | |
6160 | return pyobj; | |
6161 | } | |
6162 | ||
6163 | ||
d14a1e28 RD |
6164 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6165 | PyObject *resultobj; | |
6166 | wxTextAttr *result; | |
6167 | ||
6168 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6169 | { | |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | result = (wxTextAttr *)new wxTextAttr(); | |
6172 | ||
6173 | wxPyEndAllowThreads(__tstate); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | } | |
6176 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6177 | return resultobj; | |
6178 | fail: | |
6179 | return NULL; | |
6180 | } | |
6181 | ||
6182 | ||
6183 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6184 | PyObject *resultobj; | |
6185 | wxColour *arg1 = 0 ; | |
6186 | wxColour const &arg2_defvalue = wxNullColour ; | |
6187 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6188 | wxFont const &arg3_defvalue = wxNullFont ; | |
6189 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6190 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6191 | wxTextAttr *result; | |
6192 | wxColour temp1 ; | |
6193 | wxColour temp2 ; | |
6194 | PyObject * obj0 = 0 ; | |
6195 | PyObject * obj1 = 0 ; | |
6196 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6197 | PyObject * obj3 = 0 ; |
d14a1e28 | 6198 | |
8edf1c75 | 6199 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6200 | { |
6201 | arg1 = &temp1; | |
6202 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6203 | } | |
6204 | if (obj1) { | |
6205 | { | |
6206 | arg2 = &temp2; | |
6207 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6208 | } | |
6209 | } | |
6210 | if (obj2) { | |
6211 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6212 | if (arg3 == NULL) { | |
6213 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6214 | } | |
6215 | } | |
8edf1c75 RD |
6216 | if (obj3) { |
6217 | { | |
6218 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6219 | if (PyErr_Occurred()) SWIG_fail; | |
6220 | } | |
6221 | } | |
d14a1e28 RD |
6222 | { |
6223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6224 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6225 | ||
6226 | wxPyEndAllowThreads(__tstate); | |
6227 | if (PyErr_Occurred()) SWIG_fail; | |
6228 | } | |
6229 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6230 | return resultobj; | |
6231 | fail: | |
6232 | return NULL; | |
6233 | } | |
6234 | ||
6235 | ||
6236 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6237 | int argc; | |
6238 | PyObject *argv[5]; | |
6239 | int ii; | |
6240 | ||
6241 | argc = PyObject_Length(args); | |
6242 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6243 | argv[ii] = PyTuple_GetItem(args,ii); | |
6244 | } | |
6245 | if (argc == 0) { | |
6246 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6247 | } | |
6248 | if ((argc >= 1) && (argc <= 4)) { | |
6249 | int _v; | |
6250 | { | |
6251 | _v = wxColour_typecheck(argv[0]); | |
6252 | } | |
6253 | if (_v) { | |
6254 | if (argc <= 1) { | |
6255 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6256 | } | |
6257 | { | |
6258 | _v = wxColour_typecheck(argv[1]); | |
6259 | } | |
6260 | if (_v) { | |
6261 | if (argc <= 2) { | |
6262 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6263 | } | |
6264 | { | |
6265 | void *ptr; | |
6266 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6267 | _v = 0; | |
6268 | PyErr_Clear(); | |
6269 | } else { | |
6270 | _v = 1; | |
6271 | } | |
6272 | } | |
6273 | if (_v) { | |
6274 | if (argc <= 3) { | |
6275 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6276 | } | |
8edf1c75 RD |
6277 | { |
6278 | SWIG_PyObj_AsInt(argv[3]); | |
6279 | if (PyErr_Occurred()) { | |
6280 | _v = 0; | |
6281 | PyErr_Clear(); | |
6282 | } else { | |
6283 | _v = 1; | |
6284 | } | |
6285 | } | |
6286 | if (_v) { | |
6287 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6288 | } | |
d14a1e28 RD |
6289 | } |
6290 | } | |
6291 | } | |
6292 | } | |
6293 | ||
6294 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
8edf1c75 | 6299 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6300 | PyObject *resultobj; |
6301 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6302 | PyObject * obj0 = 0 ; | |
6303 | char *kwnames[] = { | |
6304 | (char *) "self", NULL | |
6305 | }; | |
6306 | ||
8edf1c75 | 6307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
6308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8edf1c75 | 6311 | delete arg1; |
d14a1e28 RD |
6312 | |
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | Py_INCREF(Py_None); resultobj = Py_None; | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
8edf1c75 RD |
6323 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6324 | PyObject *resultobj; | |
6325 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6326 | PyObject * obj0 = 0 ; | |
6327 | char *kwnames[] = { | |
6328 | (char *) "self", NULL | |
6329 | }; | |
6330 | ||
6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6333 | { | |
6334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6335 | (arg1)->Init(); | |
6336 | ||
6337 | wxPyEndAllowThreads(__tstate); | |
6338 | if (PyErr_Occurred()) SWIG_fail; | |
6339 | } | |
6340 | Py_INCREF(Py_None); resultobj = Py_None; | |
6341 | return resultobj; | |
6342 | fail: | |
6343 | return NULL; | |
6344 | } | |
6345 | ||
6346 | ||
6347 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
6348 | PyObject *resultobj; |
6349 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6350 | wxColour *arg2 = 0 ; | |
6351 | wxColour temp2 ; | |
6352 | PyObject * obj0 = 0 ; | |
6353 | PyObject * obj1 = 0 ; | |
6354 | char *kwnames[] = { | |
6355 | (char *) "self",(char *) "colText", NULL | |
6356 | }; | |
6357 | ||
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6360 | { | |
6361 | arg2 = &temp2; | |
6362 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6363 | } | |
6364 | { | |
6365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6366 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6367 | ||
6368 | wxPyEndAllowThreads(__tstate); | |
6369 | if (PyErr_Occurred()) SWIG_fail; | |
6370 | } | |
6371 | Py_INCREF(Py_None); resultobj = Py_None; | |
6372 | return resultobj; | |
6373 | fail: | |
6374 | return NULL; | |
6375 | } | |
6376 | ||
6377 | ||
6378 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6379 | PyObject *resultobj; | |
6380 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6381 | wxColour *arg2 = 0 ; | |
6382 | wxColour temp2 ; | |
6383 | PyObject * obj0 = 0 ; | |
6384 | PyObject * obj1 = 0 ; | |
6385 | char *kwnames[] = { | |
6386 | (char *) "self",(char *) "colBack", NULL | |
6387 | }; | |
6388 | ||
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6391 | { | |
6392 | arg2 = &temp2; | |
6393 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6394 | } | |
6395 | { | |
6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6397 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6398 | ||
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
6402 | Py_INCREF(Py_None); resultobj = Py_None; | |
6403 | return resultobj; | |
6404 | fail: | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
6409 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6410 | PyObject *resultobj; | |
6411 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6412 | wxFont *arg2 = 0 ; | |
6413 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6414 | PyObject * obj0 = 0 ; | |
6415 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6416 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6417 | char *kwnames[] = { |
6418 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6419 | }; | |
6420 | ||
8edf1c75 | 6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6423 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6424 | if (arg2 == NULL) { | |
6425 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6426 | } | |
8edf1c75 RD |
6427 | if (obj2) { |
6428 | { | |
6429 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6430 | if (PyErr_Occurred()) SWIG_fail; | |
6431 | } | |
6432 | } | |
d14a1e28 RD |
6433 | { |
6434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6435 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6436 | ||
6437 | wxPyEndAllowThreads(__tstate); | |
6438 | if (PyErr_Occurred()) SWIG_fail; | |
6439 | } | |
6440 | Py_INCREF(Py_None); resultobj = Py_None; | |
6441 | return resultobj; | |
6442 | fail: | |
6443 | return NULL; | |
6444 | } | |
6445 | ||
6446 | ||
6447 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6448 | PyObject *resultobj; | |
6449 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6450 | int arg2 ; | |
6451 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6452 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6453 | char *kwnames[] = { |
6454 | (char *) "self",(char *) "alignment", NULL | |
6455 | }; | |
6456 | ||
8edf1c75 | 6457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6459 | { |
6460 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6461 | if (PyErr_Occurred()) SWIG_fail; | |
6462 | } | |
d14a1e28 RD |
6463 | { |
6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6465 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6466 | ||
6467 | wxPyEndAllowThreads(__tstate); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | } | |
6470 | Py_INCREF(Py_None); resultobj = Py_None; | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | return NULL; | |
6474 | } | |
6475 | ||
6476 | ||
6477 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6478 | PyObject *resultobj; | |
6479 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6480 | wxArrayInt *arg2 = 0 ; | |
6481 | PyObject * obj0 = 0 ; | |
6482 | PyObject * obj1 = 0 ; | |
6483 | char *kwnames[] = { | |
6484 | (char *) "self",(char *) "tabs", NULL | |
6485 | }; | |
6486 | ||
6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6489 | { | |
6490 | if (! PySequence_Check(obj1)) { | |
6491 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6492 | SWIG_fail; | |
6493 | } | |
6494 | arg2 = new wxArrayInt; | |
6495 | int i, len=PySequence_Length(obj1); | |
6496 | for (i=0; i<len; i++) { | |
6497 | PyObject* item = PySequence_GetItem(obj1, i); | |
6498 | PyObject* number = PyNumber_Int(item); | |
6499 | arg2->Add(PyInt_AS_LONG(number)); | |
6500 | Py_DECREF(item); | |
6501 | Py_DECREF(number); | |
6502 | } | |
6503 | } | |
6504 | { | |
6505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6506 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6507 | ||
6508 | wxPyEndAllowThreads(__tstate); | |
6509 | if (PyErr_Occurred()) SWIG_fail; | |
6510 | } | |
6511 | Py_INCREF(Py_None); resultobj = Py_None; | |
6512 | { | |
6513 | if (arg2) delete arg2; | |
6514 | } | |
6515 | return resultobj; | |
6516 | fail: | |
6517 | { | |
6518 | if (arg2) delete arg2; | |
6519 | } | |
6520 | return NULL; | |
6521 | } | |
6522 | ||
6523 | ||
6524 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6525 | PyObject *resultobj; | |
6526 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6527 | int arg2 ; | |
6528 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6529 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6530 | char *kwnames[] = { |
6531 | (char *) "self",(char *) "indent", NULL | |
6532 | }; | |
6533 | ||
8edf1c75 | 6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6536 | { |
6537 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6538 | if (PyErr_Occurred()) SWIG_fail; | |
6539 | } | |
d14a1e28 RD |
6540 | { |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | (arg1)->SetLeftIndent(arg2); | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | Py_INCREF(Py_None); resultobj = Py_None; | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | return NULL; | |
6551 | } | |
6552 | ||
6553 | ||
6554 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6555 | PyObject *resultobj; | |
6556 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6557 | int arg2 ; | |
6558 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6560 | char *kwnames[] = { |
6561 | (char *) "self",(char *) "indent", NULL | |
6562 | }; | |
6563 | ||
8edf1c75 | 6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6566 | { |
6567 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
d14a1e28 RD |
6570 | { |
6571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6572 | (arg1)->SetRightIndent(arg2); | |
6573 | ||
6574 | wxPyEndAllowThreads(__tstate); | |
6575 | if (PyErr_Occurred()) SWIG_fail; | |
6576 | } | |
6577 | Py_INCREF(Py_None); resultobj = Py_None; | |
6578 | return resultobj; | |
6579 | fail: | |
6580 | return NULL; | |
6581 | } | |
6582 | ||
6583 | ||
6584 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6585 | PyObject *resultobj; | |
6586 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6587 | long arg2 ; | |
6588 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6590 | char *kwnames[] = { |
6591 | (char *) "self",(char *) "flags", NULL | |
6592 | }; | |
6593 | ||
8edf1c75 | 6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6596 | { |
6597 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6598 | if (PyErr_Occurred()) SWIG_fail; | |
6599 | } | |
d14a1e28 RD |
6600 | { |
6601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6602 | (arg1)->SetFlags(arg2); | |
6603 | ||
6604 | wxPyEndAllowThreads(__tstate); | |
6605 | if (PyErr_Occurred()) SWIG_fail; | |
6606 | } | |
6607 | Py_INCREF(Py_None); resultobj = Py_None; | |
6608 | return resultobj; | |
6609 | fail: | |
6610 | return NULL; | |
6611 | } | |
6612 | ||
6613 | ||
6614 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6615 | PyObject *resultobj; | |
6616 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6617 | bool result; | |
6618 | PyObject * obj0 = 0 ; | |
6619 | char *kwnames[] = { | |
6620 | (char *) "self", NULL | |
6621 | }; | |
6622 | ||
6623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6625 | { | |
6626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6627 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6628 | ||
6629 | wxPyEndAllowThreads(__tstate); | |
6630 | if (PyErr_Occurred()) SWIG_fail; | |
6631 | } | |
02a34c4c | 6632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6633 | return resultobj; |
6634 | fail: | |
6635 | return NULL; | |
6636 | } | |
6637 | ||
6638 | ||
6639 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6640 | PyObject *resultobj; | |
6641 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6642 | bool result; | |
6643 | PyObject * obj0 = 0 ; | |
6644 | char *kwnames[] = { | |
6645 | (char *) "self", NULL | |
6646 | }; | |
6647 | ||
6648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6650 | { | |
6651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6652 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6653 | ||
6654 | wxPyEndAllowThreads(__tstate); | |
6655 | if (PyErr_Occurred()) SWIG_fail; | |
6656 | } | |
02a34c4c | 6657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6658 | return resultobj; |
6659 | fail: | |
6660 | return NULL; | |
6661 | } | |
6662 | ||
6663 | ||
6664 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6665 | PyObject *resultobj; | |
6666 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6667 | bool result; | |
6668 | PyObject * obj0 = 0 ; | |
6669 | char *kwnames[] = { | |
6670 | (char *) "self", NULL | |
6671 | }; | |
6672 | ||
6673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6675 | { | |
6676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6677 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6678 | ||
6679 | wxPyEndAllowThreads(__tstate); | |
6680 | if (PyErr_Occurred()) SWIG_fail; | |
6681 | } | |
02a34c4c | 6682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6683 | return resultobj; |
6684 | fail: | |
6685 | return NULL; | |
6686 | } | |
6687 | ||
6688 | ||
6689 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject *resultobj; | |
6691 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6692 | bool result; | |
6693 | PyObject * obj0 = 0 ; | |
6694 | char *kwnames[] = { | |
6695 | (char *) "self", NULL | |
6696 | }; | |
6697 | ||
6698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6700 | { | |
6701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6702 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6703 | ||
6704 | wxPyEndAllowThreads(__tstate); | |
6705 | if (PyErr_Occurred()) SWIG_fail; | |
6706 | } | |
02a34c4c | 6707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6708 | return resultobj; |
6709 | fail: | |
6710 | return NULL; | |
6711 | } | |
6712 | ||
6713 | ||
6714 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6715 | PyObject *resultobj; | |
6716 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6717 | bool result; | |
6718 | PyObject * obj0 = 0 ; | |
6719 | char *kwnames[] = { | |
6720 | (char *) "self", NULL | |
6721 | }; | |
6722 | ||
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6728 | ||
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
02a34c4c | 6732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6733 | return resultobj; |
6734 | fail: | |
6735 | return NULL; | |
6736 | } | |
6737 | ||
6738 | ||
6739 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6740 | PyObject *resultobj; | |
6741 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6742 | bool result; | |
6743 | PyObject * obj0 = 0 ; | |
6744 | char *kwnames[] = { | |
6745 | (char *) "self", NULL | |
6746 | }; | |
6747 | ||
6748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6750 | { | |
6751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6752 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6753 | ||
6754 | wxPyEndAllowThreads(__tstate); | |
6755 | if (PyErr_Occurred()) SWIG_fail; | |
6756 | } | |
02a34c4c | 6757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6758 | return resultobj; |
6759 | fail: | |
6760 | return NULL; | |
6761 | } | |
6762 | ||
6763 | ||
6764 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6765 | PyObject *resultobj; | |
6766 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6767 | bool result; | |
6768 | PyObject * obj0 = 0 ; | |
6769 | char *kwnames[] = { | |
6770 | (char *) "self", NULL | |
6771 | }; | |
6772 | ||
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6775 | { | |
6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6777 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6778 | ||
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
02a34c4c | 6782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6783 | return resultobj; |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
6789 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6790 | PyObject *resultobj; | |
6791 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6792 | long arg2 ; | |
6793 | bool result; | |
6794 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6795 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6796 | char *kwnames[] = { |
6797 | (char *) "self",(char *) "flag", NULL | |
6798 | }; | |
6799 | ||
8edf1c75 | 6800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6802 | { |
6803 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6804 | if (PyErr_Occurred()) SWIG_fail; | |
6805 | } | |
d14a1e28 RD |
6806 | { |
6807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6808 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6809 | ||
6810 | wxPyEndAllowThreads(__tstate); | |
6811 | if (PyErr_Occurred()) SWIG_fail; | |
6812 | } | |
02a34c4c | 6813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6814 | return resultobj; |
6815 | fail: | |
6816 | return NULL; | |
6817 | } | |
6818 | ||
6819 | ||
6820 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6821 | PyObject *resultobj; | |
6822 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6823 | wxColour *result; | |
6824 | PyObject * obj0 = 0 ; | |
6825 | char *kwnames[] = { | |
6826 | (char *) "self", NULL | |
6827 | }; | |
6828 | ||
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6831 | { | |
6832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6833 | { | |
6834 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6835 | result = (wxColour *) &_result_ref; | |
6836 | } | |
6837 | ||
6838 | wxPyEndAllowThreads(__tstate); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
6840 | } | |
6841 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6842 | return resultobj; | |
6843 | fail: | |
6844 | return NULL; | |
6845 | } | |
6846 | ||
6847 | ||
6848 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6849 | PyObject *resultobj; | |
6850 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6851 | wxColour *result; | |
6852 | PyObject * obj0 = 0 ; | |
6853 | char *kwnames[] = { | |
6854 | (char *) "self", NULL | |
6855 | }; | |
6856 | ||
6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6859 | { | |
6860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6861 | { | |
6862 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6863 | result = (wxColour *) &_result_ref; | |
6864 | } | |
6865 | ||
6866 | wxPyEndAllowThreads(__tstate); | |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
6868 | } | |
6869 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6870 | return resultobj; | |
6871 | fail: | |
6872 | return NULL; | |
6873 | } | |
6874 | ||
6875 | ||
6876 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6877 | PyObject *resultobj; | |
6878 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6879 | wxFont *result; | |
6880 | PyObject * obj0 = 0 ; | |
6881 | char *kwnames[] = { | |
6882 | (char *) "self", NULL | |
6883 | }; | |
6884 | ||
6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6887 | { | |
6888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6889 | { | |
6890 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6891 | result = (wxFont *) &_result_ref; | |
6892 | } | |
6893 | ||
6894 | wxPyEndAllowThreads(__tstate); | |
6895 | if (PyErr_Occurred()) SWIG_fail; | |
6896 | } | |
6897 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6898 | return resultobj; | |
6899 | fail: | |
6900 | return NULL; | |
6901 | } | |
6902 | ||
6903 | ||
6904 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6905 | PyObject *resultobj; | |
6906 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6907 | int result; | |
6908 | PyObject * obj0 = 0 ; | |
6909 | char *kwnames[] = { | |
6910 | (char *) "self", NULL | |
6911 | }; | |
6912 | ||
6913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
6914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6915 | { | |
6916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6917 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
6918 | ||
6919 | wxPyEndAllowThreads(__tstate); | |
6920 | if (PyErr_Occurred()) SWIG_fail; | |
6921 | } | |
8edf1c75 | 6922 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6923 | return resultobj; |
6924 | fail: | |
6925 | return NULL; | |
6926 | } | |
6927 | ||
6928 | ||
6929 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6930 | PyObject *resultobj; | |
6931 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6932 | wxArrayInt *result; | |
6933 | PyObject * obj0 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
6939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6940 | { | |
6941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6942 | { | |
6943 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
6944 | result = (wxArrayInt *) &_result_ref; | |
6945 | } | |
6946 | ||
6947 | wxPyEndAllowThreads(__tstate); | |
6948 | if (PyErr_Occurred()) SWIG_fail; | |
6949 | } | |
6950 | { | |
6951 | resultobj = PyList_New(0); | |
6952 | size_t idx; | |
6953 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
6954 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
6955 | PyList_Append(resultobj, val); | |
6956 | Py_DECREF(val); | |
6957 | } | |
6958 | } | |
6959 | return resultobj; | |
6960 | fail: | |
6961 | return NULL; | |
6962 | } | |
6963 | ||
6964 | ||
6965 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6966 | PyObject *resultobj; | |
6967 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6968 | long result; | |
6969 | PyObject * obj0 = 0 ; | |
6970 | char *kwnames[] = { | |
6971 | (char *) "self", NULL | |
6972 | }; | |
6973 | ||
6974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
6975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6976 | { | |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
6979 | ||
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
8edf1c75 | 6983 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
6984 | return resultobj; |
6985 | fail: | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6993 | long result; | |
6994 | PyObject * obj0 = 0 ; | |
6995 | char *kwnames[] = { | |
6996 | (char *) "self", NULL | |
6997 | }; | |
6998 | ||
6999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7001 | { | |
7002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7003 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7004 | ||
7005 | wxPyEndAllowThreads(__tstate); | |
7006 | if (PyErr_Occurred()) SWIG_fail; | |
7007 | } | |
8edf1c75 | 7008 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7009 | return resultobj; |
7010 | fail: | |
7011 | return NULL; | |
7012 | } | |
7013 | ||
7014 | ||
7015 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject *resultobj; | |
7017 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7018 | long result; | |
7019 | PyObject * obj0 = 0 ; | |
7020 | char *kwnames[] = { | |
7021 | (char *) "self", NULL | |
7022 | }; | |
7023 | ||
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7026 | { | |
7027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7028 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7029 | ||
7030 | wxPyEndAllowThreads(__tstate); | |
7031 | if (PyErr_Occurred()) SWIG_fail; | |
7032 | } | |
8edf1c75 | 7033 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7034 | return resultobj; |
7035 | fail: | |
7036 | return NULL; | |
7037 | } | |
7038 | ||
7039 | ||
7040 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7041 | PyObject *resultobj; | |
7042 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7043 | bool result; | |
7044 | PyObject * obj0 = 0 ; | |
7045 | char *kwnames[] = { | |
7046 | (char *) "self", NULL | |
7047 | }; | |
7048 | ||
7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7051 | { | |
7052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7053 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7054 | ||
7055 | wxPyEndAllowThreads(__tstate); | |
7056 | if (PyErr_Occurred()) SWIG_fail; | |
7057 | } | |
02a34c4c | 7058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7059 | return resultobj; |
7060 | fail: | |
7061 | return NULL; | |
7062 | } | |
7063 | ||
7064 | ||
7065 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7066 | PyObject *resultobj; | |
7067 | wxTextAttr *arg1 = 0 ; | |
7068 | wxTextAttr *arg2 = 0 ; | |
7069 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7070 | wxTextAttr result; | |
7071 | PyObject * obj0 = 0 ; | |
7072 | PyObject * obj1 = 0 ; | |
7073 | PyObject * obj2 = 0 ; | |
7074 | char *kwnames[] = { | |
7075 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7076 | }; | |
7077 | ||
7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7080 | if (arg1 == NULL) { | |
7081 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7082 | } | |
7083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7084 | if (arg2 == NULL) { | |
7085 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7086 | } | |
7087 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7088 | { | |
7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7090 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7091 | ||
7092 | wxPyEndAllowThreads(__tstate); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
7095 | { | |
7096 | wxTextAttr * resultptr; | |
7097 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7098 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
7099 | } | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
7106 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7107 | PyObject *obj; | |
7108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7109 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7110 | Py_INCREF(obj); | |
7111 | return Py_BuildValue((char *)""); | |
7112 | } | |
7113 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj; | |
7115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7116 | int arg2 ; |
d14a1e28 RD |
7117 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7118 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7119 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7120 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7121 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7122 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7123 | long arg6 = (long) 0 ; | |
7124 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7125 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7126 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7127 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7128 | wxTextCtrl *result; | |
423f194a | 7129 | bool temp3 = False ; |
d14a1e28 RD |
7130 | wxPoint temp4 ; |
7131 | wxSize temp5 ; | |
423f194a | 7132 | bool temp8 = False ; |
d14a1e28 | 7133 | PyObject * obj0 = 0 ; |
8edf1c75 | 7134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7135 | PyObject * obj2 = 0 ; |
7136 | PyObject * obj3 = 0 ; | |
7137 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7138 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7139 | PyObject * obj6 = 0 ; |
7140 | PyObject * obj7 = 0 ; | |
7141 | char *kwnames[] = { | |
7142 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7143 | }; | |
7144 | ||
8edf1c75 | 7145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 7146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7147 | { |
7148 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7149 | if (PyErr_Occurred()) SWIG_fail; | |
7150 | } | |
d14a1e28 RD |
7151 | if (obj2) { |
7152 | { | |
7153 | arg3 = wxString_in_helper(obj2); | |
7154 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7155 | temp3 = True; |
d14a1e28 RD |
7156 | } |
7157 | } | |
7158 | if (obj3) { | |
7159 | { | |
7160 | arg4 = &temp4; | |
7161 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7162 | } | |
7163 | } | |
7164 | if (obj4) { | |
7165 | { | |
7166 | arg5 = &temp5; | |
7167 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7168 | } | |
7169 | } | |
8edf1c75 RD |
7170 | if (obj5) { |
7171 | { | |
7172 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7173 | if (PyErr_Occurred()) SWIG_fail; | |
7174 | } | |
7175 | } | |
d14a1e28 RD |
7176 | if (obj6) { |
7177 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7178 | if (arg7 == NULL) { | |
7179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7180 | } | |
7181 | } | |
7182 | if (obj7) { | |
7183 | { | |
7184 | arg8 = wxString_in_helper(obj7); | |
7185 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7186 | temp8 = True; |
d14a1e28 RD |
7187 | } |
7188 | } | |
7189 | { | |
7190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7191 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7192 | ||
7193 | wxPyEndAllowThreads(__tstate); | |
7194 | if (PyErr_Occurred()) SWIG_fail; | |
7195 | } | |
7196 | { | |
7197 | resultobj = wxPyMake_wxObject(result); | |
7198 | } | |
7199 | { | |
7200 | if (temp3) | |
7201 | delete arg3; | |
7202 | } | |
7203 | { | |
7204 | if (temp8) | |
7205 | delete arg8; | |
7206 | } | |
7207 | return resultobj; | |
7208 | fail: | |
7209 | { | |
7210 | if (temp3) | |
7211 | delete arg3; | |
7212 | } | |
7213 | { | |
7214 | if (temp8) | |
7215 | delete arg8; | |
7216 | } | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj; | |
7223 | wxTextCtrl *result; | |
7224 | char *kwnames[] = { | |
7225 | NULL | |
7226 | }; | |
7227 | ||
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7229 | { | |
7230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7231 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7232 | ||
7233 | wxPyEndAllowThreads(__tstate); | |
7234 | if (PyErr_Occurred()) SWIG_fail; | |
7235 | } | |
7236 | { | |
7237 | resultobj = wxPyMake_wxObject(result); | |
7238 | } | |
7239 | return resultobj; | |
7240 | fail: | |
7241 | return NULL; | |
7242 | } | |
7243 | ||
7244 | ||
7245 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject *resultobj; | |
7247 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7248 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7249 | int arg3 ; |
d14a1e28 RD |
7250 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7251 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7252 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7253 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7254 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7255 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7256 | long arg7 = (long) 0 ; | |
7257 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7258 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7259 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7260 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7261 | bool result; | |
423f194a | 7262 | bool temp4 = False ; |
d14a1e28 RD |
7263 | wxPoint temp5 ; |
7264 | wxSize temp6 ; | |
423f194a | 7265 | bool temp9 = False ; |
d14a1e28 RD |
7266 | PyObject * obj0 = 0 ; |
7267 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7268 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7269 | PyObject * obj3 = 0 ; |
7270 | PyObject * obj4 = 0 ; | |
7271 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7272 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7273 | PyObject * obj7 = 0 ; |
7274 | PyObject * obj8 = 0 ; | |
7275 | char *kwnames[] = { | |
7276 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7277 | }; | |
7278 | ||
8edf1c75 | 7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
7280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7281 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7282 | { |
7283 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
d14a1e28 RD |
7286 | if (obj3) { |
7287 | { | |
7288 | arg4 = wxString_in_helper(obj3); | |
7289 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7290 | temp4 = True; |
d14a1e28 RD |
7291 | } |
7292 | } | |
7293 | if (obj4) { | |
7294 | { | |
7295 | arg5 = &temp5; | |
7296 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7297 | } | |
7298 | } | |
7299 | if (obj5) { | |
7300 | { | |
7301 | arg6 = &temp6; | |
7302 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7303 | } | |
7304 | } | |
8edf1c75 RD |
7305 | if (obj6) { |
7306 | { | |
7307 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | } | |
7310 | } | |
d14a1e28 RD |
7311 | if (obj7) { |
7312 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7313 | if (arg8 == NULL) { | |
7314 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7315 | } | |
7316 | } | |
7317 | if (obj8) { | |
7318 | { | |
7319 | arg9 = wxString_in_helper(obj8); | |
7320 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7321 | temp9 = True; |
d14a1e28 RD |
7322 | } |
7323 | } | |
7324 | { | |
7325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7326 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7327 | ||
7328 | wxPyEndAllowThreads(__tstate); | |
7329 | if (PyErr_Occurred()) SWIG_fail; | |
7330 | } | |
02a34c4c | 7331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7332 | { |
7333 | if (temp4) | |
7334 | delete arg4; | |
7335 | } | |
7336 | { | |
7337 | if (temp9) | |
7338 | delete arg9; | |
7339 | } | |
7340 | return resultobj; | |
7341 | fail: | |
7342 | { | |
7343 | if (temp4) | |
7344 | delete arg4; | |
7345 | } | |
7346 | { | |
7347 | if (temp9) | |
7348 | delete arg9; | |
7349 | } | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
7354 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7355 | PyObject *resultobj; | |
7356 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7357 | wxString result; | |
7358 | PyObject * obj0 = 0 ; | |
7359 | char *kwnames[] = { | |
7360 | (char *) "self", NULL | |
7361 | }; | |
7362 | ||
7363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7365 | { | |
7366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7367 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7368 | ||
7369 | wxPyEndAllowThreads(__tstate); | |
7370 | if (PyErr_Occurred()) SWIG_fail; | |
7371 | } | |
7372 | { | |
7373 | #if wxUSE_UNICODE | |
7374 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7375 | #else | |
7376 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7377 | #endif | |
7378 | } | |
7379 | return resultobj; | |
7380 | fail: | |
7381 | return NULL; | |
7382 | } | |
7383 | ||
7384 | ||
7385 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7386 | PyObject *resultobj; | |
7387 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7388 | wxString *arg2 = 0 ; | |
423f194a | 7389 | bool temp2 = False ; |
d14a1e28 RD |
7390 | PyObject * obj0 = 0 ; |
7391 | PyObject * obj1 = 0 ; | |
7392 | char *kwnames[] = { | |
7393 | (char *) "self",(char *) "value", NULL | |
7394 | }; | |
7395 | ||
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7398 | { | |
7399 | arg2 = wxString_in_helper(obj1); | |
7400 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7401 | temp2 = True; |
d14a1e28 RD |
7402 | } |
7403 | { | |
7404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7405 | (arg1)->SetValue((wxString const &)*arg2); | |
7406 | ||
7407 | wxPyEndAllowThreads(__tstate); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
7410 | Py_INCREF(Py_None); resultobj = Py_None; | |
7411 | { | |
7412 | if (temp2) | |
7413 | delete arg2; | |
7414 | } | |
7415 | return resultobj; | |
7416 | fail: | |
7417 | { | |
7418 | if (temp2) | |
7419 | delete arg2; | |
7420 | } | |
7421 | return NULL; | |
7422 | } | |
7423 | ||
7424 | ||
7425 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7426 | PyObject *resultobj; | |
7427 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7428 | long arg2 ; | |
7429 | long arg3 ; | |
7430 | wxString result; | |
7431 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7432 | PyObject * obj1 = 0 ; |
7433 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7434 | char *kwnames[] = { |
7435 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7436 | }; | |
7437 | ||
8edf1c75 | 7438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7440 | { |
7441 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7442 | if (PyErr_Occurred()) SWIG_fail; | |
7443 | } | |
7444 | { | |
7445 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7446 | if (PyErr_Occurred()) SWIG_fail; | |
7447 | } | |
d14a1e28 RD |
7448 | { |
7449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7450 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7451 | ||
7452 | wxPyEndAllowThreads(__tstate); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | } | |
7455 | { | |
7456 | #if wxUSE_UNICODE | |
7457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7458 | #else | |
7459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7460 | #endif | |
7461 | } | |
7462 | return resultobj; | |
7463 | fail: | |
7464 | return NULL; | |
7465 | } | |
7466 | ||
7467 | ||
7468 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7469 | PyObject *resultobj; | |
7470 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7471 | long arg2 ; | |
7472 | int result; | |
7473 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7475 | char *kwnames[] = { |
7476 | (char *) "self",(char *) "lineNo", NULL | |
7477 | }; | |
7478 | ||
8edf1c75 | 7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7481 | { |
7482 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7483 | if (PyErr_Occurred()) SWIG_fail; | |
7484 | } | |
d14a1e28 RD |
7485 | { |
7486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7487 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7488 | ||
7489 | wxPyEndAllowThreads(__tstate); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
7491 | } | |
8edf1c75 | 7492 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7493 | return resultobj; |
7494 | fail: | |
7495 | return NULL; | |
7496 | } | |
7497 | ||
7498 | ||
7499 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7500 | PyObject *resultobj; | |
7501 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7502 | long arg2 ; | |
7503 | wxString result; | |
7504 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7505 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7506 | char *kwnames[] = { |
7507 | (char *) "self",(char *) "lineNo", NULL | |
7508 | }; | |
7509 | ||
8edf1c75 | 7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7512 | { |
7513 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7514 | if (PyErr_Occurred()) SWIG_fail; | |
7515 | } | |
d14a1e28 RD |
7516 | { |
7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7518 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7519 | ||
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) SWIG_fail; | |
7522 | } | |
7523 | { | |
7524 | #if wxUSE_UNICODE | |
7525 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7526 | #else | |
7527 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7528 | #endif | |
7529 | } | |
7530 | return resultobj; | |
7531 | fail: | |
7532 | return NULL; | |
7533 | } | |
7534 | ||
7535 | ||
7536 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject *resultobj; | |
7538 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7539 | int result; | |
7540 | PyObject * obj0 = 0 ; | |
7541 | char *kwnames[] = { | |
7542 | (char *) "self", NULL | |
7543 | }; | |
7544 | ||
7545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7547 | { | |
7548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7549 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7550 | ||
7551 | wxPyEndAllowThreads(__tstate); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | } | |
8edf1c75 | 7554 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7555 | return resultobj; |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
7561 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7562 | PyObject *resultobj; | |
7563 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7564 | bool result; | |
7565 | PyObject * obj0 = 0 ; | |
7566 | char *kwnames[] = { | |
7567 | (char *) "self", NULL | |
7568 | }; | |
7569 | ||
7570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7572 | { | |
7573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7574 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7575 | ||
7576 | wxPyEndAllowThreads(__tstate); | |
7577 | if (PyErr_Occurred()) SWIG_fail; | |
7578 | } | |
02a34c4c | 7579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7580 | return resultobj; |
7581 | fail: | |
7582 | return NULL; | |
7583 | } | |
7584 | ||
7585 | ||
7586 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7587 | PyObject *resultobj; | |
7588 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7589 | bool result; | |
7590 | PyObject * obj0 = 0 ; | |
7591 | char *kwnames[] = { | |
7592 | (char *) "self", NULL | |
7593 | }; | |
7594 | ||
7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7597 | { | |
7598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7599 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7600 | ||
7601 | wxPyEndAllowThreads(__tstate); | |
7602 | if (PyErr_Occurred()) SWIG_fail; | |
7603 | } | |
02a34c4c | 7604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7605 | return resultobj; |
7606 | fail: | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
7611 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7612 | PyObject *resultobj; | |
7613 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7614 | bool result; | |
7615 | PyObject * obj0 = 0 ; | |
7616 | char *kwnames[] = { | |
7617 | (char *) "self", NULL | |
7618 | }; | |
7619 | ||
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7622 | { | |
7623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7624 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7625 | ||
7626 | wxPyEndAllowThreads(__tstate); | |
7627 | if (PyErr_Occurred()) SWIG_fail; | |
7628 | } | |
02a34c4c | 7629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7630 | return resultobj; |
7631 | fail: | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
7636 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7637 | PyObject *resultobj; | |
7638 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7639 | bool result; | |
7640 | PyObject * obj0 = 0 ; | |
7641 | char *kwnames[] = { | |
7642 | (char *) "self", NULL | |
7643 | }; | |
7644 | ||
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7647 | { | |
7648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7649 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7650 | ||
7651 | wxPyEndAllowThreads(__tstate); | |
7652 | if (PyErr_Occurred()) SWIG_fail; | |
7653 | } | |
02a34c4c | 7654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7655 | return resultobj; |
7656 | fail: | |
7657 | return NULL; | |
7658 | } | |
7659 | ||
7660 | ||
7661 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7662 | PyObject *resultobj; | |
7663 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7664 | long *arg2 = (long *) 0 ; | |
7665 | long *arg3 = (long *) 0 ; | |
7666 | long temp2 ; | |
7667 | long temp3 ; | |
7668 | PyObject * obj0 = 0 ; | |
7669 | char *kwnames[] = { | |
7670 | (char *) "self", NULL | |
7671 | }; | |
7672 | ||
7673 | arg2 = &temp2; | |
7674 | arg3 = &temp3; | |
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7677 | { | |
7678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7679 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7680 | ||
7681 | wxPyEndAllowThreads(__tstate); | |
7682 | if (PyErr_Occurred()) SWIG_fail; | |
7683 | } | |
7684 | Py_INCREF(Py_None); resultobj = Py_None; | |
7685 | { | |
7686 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7687 | resultobj = t_output_helper(resultobj,o); | |
7688 | } | |
7689 | { | |
7690 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7691 | resultobj = t_output_helper(resultobj,o); | |
7692 | } | |
7693 | return resultobj; | |
7694 | fail: | |
7695 | return NULL; | |
7696 | } | |
7697 | ||
7698 | ||
7699 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7700 | PyObject *resultobj; | |
7701 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7702 | wxString result; | |
7703 | PyObject * obj0 = 0 ; | |
7704 | char *kwnames[] = { | |
7705 | (char *) "self", NULL | |
7706 | }; | |
7707 | ||
7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7710 | { | |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) SWIG_fail; | |
7716 | } | |
7717 | { | |
7718 | #if wxUSE_UNICODE | |
7719 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7720 | #else | |
7721 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7722 | #endif | |
7723 | } | |
7724 | return resultobj; | |
7725 | fail: | |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
7730 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7731 | PyObject *resultobj; | |
7732 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7733 | PyObject * obj0 = 0 ; | |
7734 | char *kwnames[] = { | |
7735 | (char *) "self", NULL | |
7736 | }; | |
7737 | ||
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7740 | { | |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | (arg1)->Clear(); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
7747 | Py_INCREF(Py_None); resultobj = Py_None; | |
7748 | return resultobj; | |
7749 | fail: | |
7750 | return NULL; | |
7751 | } | |
7752 | ||
7753 | ||
7754 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7755 | PyObject *resultobj; | |
7756 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7757 | long arg2 ; | |
7758 | long arg3 ; | |
7759 | wxString *arg4 = 0 ; | |
423f194a | 7760 | bool temp4 = False ; |
d14a1e28 | 7761 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
7762 | PyObject * obj1 = 0 ; |
7763 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7764 | PyObject * obj3 = 0 ; |
7765 | char *kwnames[] = { | |
7766 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7767 | }; | |
7768 | ||
8edf1c75 | 7769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7771 | { |
7772 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7773 | if (PyErr_Occurred()) SWIG_fail; | |
7774 | } | |
7775 | { | |
7776 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7777 | if (PyErr_Occurred()) SWIG_fail; | |
7778 | } | |
d14a1e28 RD |
7779 | { |
7780 | arg4 = wxString_in_helper(obj3); | |
7781 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7782 | temp4 = True; |
d14a1e28 RD |
7783 | } |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) SWIG_fail; | |
7790 | } | |
7791 | Py_INCREF(Py_None); resultobj = Py_None; | |
7792 | { | |
7793 | if (temp4) | |
7794 | delete arg4; | |
7795 | } | |
7796 | return resultobj; | |
7797 | fail: | |
7798 | { | |
7799 | if (temp4) | |
7800 | delete arg4; | |
7801 | } | |
7802 | return NULL; | |
7803 | } | |
7804 | ||
7805 | ||
7806 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7807 | PyObject *resultobj; | |
7808 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7809 | long arg2 ; | |
7810 | long arg3 ; | |
7811 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7812 | PyObject * obj1 = 0 ; |
7813 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7814 | char *kwnames[] = { |
7815 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7816 | }; | |
7817 | ||
8edf1c75 | 7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7820 | { |
7821 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7822 | if (PyErr_Occurred()) SWIG_fail; | |
7823 | } | |
7824 | { | |
7825 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
7827 | } | |
d14a1e28 RD |
7828 | { |
7829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7830 | (arg1)->Remove(arg2,arg3); | |
7831 | ||
7832 | wxPyEndAllowThreads(__tstate); | |
7833 | if (PyErr_Occurred()) SWIG_fail; | |
7834 | } | |
7835 | Py_INCREF(Py_None); resultobj = Py_None; | |
7836 | return resultobj; | |
7837 | fail: | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
7842 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7843 | PyObject *resultobj; | |
7844 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7845 | wxString *arg2 = 0 ; | |
7846 | bool result; | |
423f194a | 7847 | bool temp2 = False ; |
d14a1e28 RD |
7848 | PyObject * obj0 = 0 ; |
7849 | PyObject * obj1 = 0 ; | |
7850 | char *kwnames[] = { | |
7851 | (char *) "self",(char *) "file", NULL | |
7852 | }; | |
7853 | ||
7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7856 | { | |
7857 | arg2 = wxString_in_helper(obj1); | |
7858 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7859 | temp2 = True; |
d14a1e28 RD |
7860 | } |
7861 | { | |
7862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7863 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7864 | ||
7865 | wxPyEndAllowThreads(__tstate); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | } | |
02a34c4c | 7868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7869 | { |
7870 | if (temp2) | |
7871 | delete arg2; | |
7872 | } | |
7873 | return resultobj; | |
7874 | fail: | |
7875 | { | |
7876 | if (temp2) | |
7877 | delete arg2; | |
7878 | } | |
7879 | return NULL; | |
7880 | } | |
7881 | ||
7882 | ||
7883 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7884 | PyObject *resultobj; | |
7885 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7886 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7887 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7888 | bool result; | |
423f194a | 7889 | bool temp2 = False ; |
d14a1e28 RD |
7890 | PyObject * obj0 = 0 ; |
7891 | PyObject * obj1 = 0 ; | |
7892 | char *kwnames[] = { | |
7893 | (char *) "self",(char *) "file", NULL | |
7894 | }; | |
7895 | ||
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
7897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7898 | if (obj1) { | |
7899 | { | |
7900 | arg2 = wxString_in_helper(obj1); | |
7901 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7902 | temp2 = True; |
d14a1e28 RD |
7903 | } |
7904 | } | |
7905 | { | |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
7908 | ||
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
02a34c4c | 7912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7913 | { |
7914 | if (temp2) | |
7915 | delete arg2; | |
7916 | } | |
7917 | return resultobj; | |
7918 | fail: | |
7919 | { | |
7920 | if (temp2) | |
7921 | delete arg2; | |
7922 | } | |
7923 | return NULL; | |
7924 | } | |
7925 | ||
7926 | ||
7927 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7928 | PyObject *resultobj; | |
7929 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7930 | PyObject * obj0 = 0 ; | |
7931 | char *kwnames[] = { | |
7932 | (char *) "self", NULL | |
7933 | }; | |
7934 | ||
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
7936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7937 | { | |
7938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7939 | (arg1)->MarkDirty(); | |
7940 | ||
7941 | wxPyEndAllowThreads(__tstate); | |
7942 | if (PyErr_Occurred()) SWIG_fail; | |
7943 | } | |
7944 | Py_INCREF(Py_None); resultobj = Py_None; | |
7945 | return resultobj; | |
7946 | fail: | |
7947 | return NULL; | |
7948 | } | |
7949 | ||
7950 | ||
7951 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7952 | PyObject *resultobj; | |
7953 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7954 | PyObject * obj0 = 0 ; | |
7955 | char *kwnames[] = { | |
7956 | (char *) "self", NULL | |
7957 | }; | |
7958 | ||
7959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
7960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7961 | { | |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7963 | (arg1)->DiscardEdits(); | |
7964 | ||
7965 | wxPyEndAllowThreads(__tstate); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | } | |
7968 | Py_INCREF(Py_None); resultobj = Py_None; | |
7969 | return resultobj; | |
7970 | fail: | |
7971 | return NULL; | |
7972 | } | |
7973 | ||
7974 | ||
7975 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7976 | PyObject *resultobj; | |
7977 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7978 | unsigned long arg2 ; | |
7979 | PyObject * obj0 = 0 ; | |
7980 | PyObject * obj1 = 0 ; | |
7981 | char *kwnames[] = { | |
7982 | (char *) "self",(char *) "len", NULL | |
7983 | }; | |
7984 | ||
7985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
7986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 7987 | { |
8edf1c75 | 7988 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
7989 | if (PyErr_Occurred()) SWIG_fail; |
7990 | } | |
d14a1e28 RD |
7991 | { |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7993 | (arg1)->SetMaxLength(arg2); | |
7994 | ||
7995 | wxPyEndAllowThreads(__tstate); | |
7996 | if (PyErr_Occurred()) SWIG_fail; | |
7997 | } | |
7998 | Py_INCREF(Py_None); resultobj = Py_None; | |
7999 | return resultobj; | |
8000 | fail: | |
8001 | return NULL; | |
8002 | } | |
8003 | ||
8004 | ||
8005 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8006 | PyObject *resultobj; | |
8007 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8008 | wxString *arg2 = 0 ; | |
423f194a | 8009 | bool temp2 = False ; |
d14a1e28 RD |
8010 | PyObject * obj0 = 0 ; |
8011 | PyObject * obj1 = 0 ; | |
8012 | char *kwnames[] = { | |
8013 | (char *) "self",(char *) "text", NULL | |
8014 | }; | |
8015 | ||
8016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8018 | { | |
8019 | arg2 = wxString_in_helper(obj1); | |
8020 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8021 | temp2 = True; |
d14a1e28 RD |
8022 | } |
8023 | { | |
8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8025 | (arg1)->WriteText((wxString const &)*arg2); | |
8026 | ||
8027 | wxPyEndAllowThreads(__tstate); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
8029 | } | |
8030 | Py_INCREF(Py_None); resultobj = Py_None; | |
8031 | { | |
8032 | if (temp2) | |
8033 | delete arg2; | |
8034 | } | |
8035 | return resultobj; | |
8036 | fail: | |
8037 | { | |
8038 | if (temp2) | |
8039 | delete arg2; | |
8040 | } | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8046 | PyObject *resultobj; | |
8047 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8048 | wxString *arg2 = 0 ; | |
423f194a | 8049 | bool temp2 = False ; |
d14a1e28 RD |
8050 | PyObject * obj0 = 0 ; |
8051 | PyObject * obj1 = 0 ; | |
8052 | char *kwnames[] = { | |
8053 | (char *) "self",(char *) "text", NULL | |
8054 | }; | |
8055 | ||
8056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8058 | { | |
8059 | arg2 = wxString_in_helper(obj1); | |
8060 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8061 | temp2 = True; |
d14a1e28 RD |
8062 | } |
8063 | { | |
8064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8065 | (arg1)->AppendText((wxString const &)*arg2); | |
8066 | ||
8067 | wxPyEndAllowThreads(__tstate); | |
8068 | if (PyErr_Occurred()) SWIG_fail; | |
8069 | } | |
8070 | Py_INCREF(Py_None); resultobj = Py_None; | |
8071 | { | |
8072 | if (temp2) | |
8073 | delete arg2; | |
8074 | } | |
8075 | return resultobj; | |
8076 | fail: | |
8077 | { | |
8078 | if (temp2) | |
8079 | delete arg2; | |
8080 | } | |
8081 | return NULL; | |
8082 | } | |
8083 | ||
8084 | ||
8085 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8086 | PyObject *resultobj; | |
8087 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8088 | wxKeyEvent *arg2 = 0 ; | |
8089 | bool result; | |
8090 | PyObject * obj0 = 0 ; | |
8091 | PyObject * obj1 = 0 ; | |
8092 | char *kwnames[] = { | |
8093 | (char *) "self",(char *) "event", NULL | |
8094 | }; | |
8095 | ||
8096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8099 | if (arg2 == NULL) { | |
8100 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8101 | } | |
8102 | { | |
8103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8104 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8105 | ||
8106 | wxPyEndAllowThreads(__tstate); | |
8107 | if (PyErr_Occurred()) SWIG_fail; | |
8108 | } | |
02a34c4c | 8109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8110 | return resultobj; |
8111 | fail: | |
8112 | return NULL; | |
8113 | } | |
8114 | ||
8115 | ||
8116 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8117 | PyObject *resultobj; | |
8118 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8119 | long arg2 ; | |
8120 | long arg3 ; | |
8121 | wxTextAttr *arg4 = 0 ; | |
8122 | bool result; | |
8123 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8124 | PyObject * obj1 = 0 ; |
8125 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8126 | PyObject * obj3 = 0 ; |
8127 | char *kwnames[] = { | |
8128 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8129 | }; | |
8130 | ||
8edf1c75 | 8131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8133 | { |
8134 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | } | |
8137 | { | |
8138 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8139 | if (PyErr_Occurred()) SWIG_fail; | |
8140 | } | |
d14a1e28 RD |
8141 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8142 | if (arg4 == NULL) { | |
8143 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8144 | } | |
8145 | { | |
8146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8147 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8148 | ||
8149 | wxPyEndAllowThreads(__tstate); | |
8150 | if (PyErr_Occurred()) SWIG_fail; | |
8151 | } | |
02a34c4c | 8152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8153 | return resultobj; |
8154 | fail: | |
8155 | return NULL; | |
8156 | } | |
8157 | ||
8158 | ||
8159 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8160 | PyObject *resultobj; | |
8161 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8162 | long arg2 ; | |
8163 | wxTextAttr *arg3 = 0 ; | |
8164 | bool result; | |
8165 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8166 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8167 | PyObject * obj2 = 0 ; |
8168 | char *kwnames[] = { | |
8169 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8170 | }; | |
8171 | ||
8edf1c75 | 8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8174 | { |
8175 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | } | |
d14a1e28 RD |
8178 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8179 | if (arg3 == NULL) { | |
8180 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8181 | } | |
8182 | { | |
8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8184 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8185 | ||
8186 | wxPyEndAllowThreads(__tstate); | |
8187 | if (PyErr_Occurred()) SWIG_fail; | |
8188 | } | |
02a34c4c | 8189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8190 | return resultobj; |
8191 | fail: | |
8192 | return NULL; | |
8193 | } | |
8194 | ||
8195 | ||
8196 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8197 | PyObject *resultobj; | |
8198 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8199 | wxTextAttr *arg2 = 0 ; | |
8200 | bool result; | |
8201 | PyObject * obj0 = 0 ; | |
8202 | PyObject * obj1 = 0 ; | |
8203 | char *kwnames[] = { | |
8204 | (char *) "self",(char *) "style", NULL | |
8205 | }; | |
8206 | ||
8207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8209 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8210 | if (arg2 == NULL) { | |
8211 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8212 | } | |
8213 | { | |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
02a34c4c | 8220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8221 | return resultobj; |
8222 | fail: | |
8223 | return NULL; | |
8224 | } | |
8225 | ||
8226 | ||
8227 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8228 | PyObject *resultobj; | |
8229 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8230 | wxTextAttr *result; | |
8231 | PyObject * obj0 = 0 ; | |
8232 | char *kwnames[] = { | |
8233 | (char *) "self", NULL | |
8234 | }; | |
8235 | ||
8236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | { | |
8241 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8242 | result = (wxTextAttr *) &_result_ref; | |
8243 | } | |
8244 | ||
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8249 | return resultobj; | |
8250 | fail: | |
8251 | return NULL; | |
8252 | } | |
8253 | ||
8254 | ||
8255 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8256 | PyObject *resultobj; | |
8257 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8258 | long arg2 ; | |
8259 | long arg3 ; | |
8260 | long result; | |
8261 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8262 | PyObject * obj1 = 0 ; |
8263 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8264 | char *kwnames[] = { |
8265 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8266 | }; | |
8267 | ||
8edf1c75 | 8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8270 | { |
8271 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8272 | if (PyErr_Occurred()) SWIG_fail; | |
8273 | } | |
8274 | { | |
8275 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8276 | if (PyErr_Occurred()) SWIG_fail; | |
8277 | } | |
d14a1e28 RD |
8278 | { |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8edf1c75 | 8285 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8286 | return resultobj; |
8287 | fail: | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
8292 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8293 | PyObject *resultobj; | |
8294 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8295 | long arg2 ; | |
8296 | long *arg3 = (long *) 0 ; | |
8297 | long *arg4 = (long *) 0 ; | |
8298 | long temp3 ; | |
8299 | long temp4 ; | |
8300 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8302 | char *kwnames[] = { |
8303 | (char *) "self",(char *) "pos", NULL | |
8304 | }; | |
8305 | ||
8306 | arg3 = &temp3; | |
8307 | arg4 = &temp4; | |
8edf1c75 | 8308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8310 | { |
8311 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8312 | if (PyErr_Occurred()) SWIG_fail; | |
8313 | } | |
d14a1e28 RD |
8314 | { |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8316 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
8319 | if (PyErr_Occurred()) SWIG_fail; | |
8320 | } | |
8321 | Py_INCREF(Py_None); resultobj = Py_None; | |
8322 | { | |
8323 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8324 | resultobj = t_output_helper(resultobj,o); | |
8325 | } | |
8326 | { | |
8327 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8328 | resultobj = t_output_helper(resultobj,o); | |
8329 | } | |
8330 | return resultobj; | |
8331 | fail: | |
8332 | return NULL; | |
8333 | } | |
8334 | ||
8335 | ||
8336 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8337 | PyObject *resultobj; | |
8338 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8339 | long arg2 ; | |
8340 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8341 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8342 | char *kwnames[] = { |
8343 | (char *) "self",(char *) "pos", NULL | |
8344 | }; | |
8345 | ||
8edf1c75 | 8346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8348 | { |
8349 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8350 | if (PyErr_Occurred()) SWIG_fail; | |
8351 | } | |
d14a1e28 RD |
8352 | { |
8353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8354 | (arg1)->ShowPosition(arg2); | |
8355 | ||
8356 | wxPyEndAllowThreads(__tstate); | |
8357 | if (PyErr_Occurred()) SWIG_fail; | |
8358 | } | |
8359 | Py_INCREF(Py_None); resultobj = Py_None; | |
8360 | return resultobj; | |
8361 | fail: | |
8362 | return NULL; | |
8363 | } | |
8364 | ||
8365 | ||
02a34c4c RD |
8366 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8367 | PyObject *resultobj; | |
8368 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8369 | wxPoint *arg2 = 0 ; | |
8370 | long *arg3 = (long *) 0 ; | |
8371 | long *arg4 = (long *) 0 ; | |
8372 | int result; | |
8373 | wxPoint temp2 ; | |
8374 | long temp3 ; | |
8375 | long temp4 ; | |
8376 | PyObject * obj0 = 0 ; | |
8377 | PyObject * obj1 = 0 ; | |
8378 | char *kwnames[] = { | |
8379 | (char *) "self",(char *) "pt", NULL | |
8380 | }; | |
8381 | ||
8382 | arg3 = &temp3; | |
8383 | arg4 = &temp4; | |
8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8386 | { | |
8387 | arg2 = &temp2; | |
8388 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8389 | } | |
8390 | { | |
8391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8392 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8393 | ||
8394 | wxPyEndAllowThreads(__tstate); | |
8395 | if (PyErr_Occurred()) SWIG_fail; | |
8396 | } | |
8397 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8398 | { | |
8399 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8400 | resultobj = t_output_helper(resultobj,o); | |
8401 | } | |
8402 | { | |
8403 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8404 | resultobj = t_output_helper(resultobj,o); | |
8405 | } | |
8406 | return resultobj; | |
8407 | fail: | |
8408 | return NULL; | |
8409 | } | |
8410 | ||
8411 | ||
d14a1e28 RD |
8412 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8413 | PyObject *resultobj; | |
8414 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8415 | PyObject * obj0 = 0 ; | |
8416 | char *kwnames[] = { | |
8417 | (char *) "self", NULL | |
8418 | }; | |
8419 | ||
8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8422 | { | |
8423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8424 | (arg1)->Copy(); | |
8425 | ||
8426 | wxPyEndAllowThreads(__tstate); | |
8427 | if (PyErr_Occurred()) SWIG_fail; | |
8428 | } | |
8429 | Py_INCREF(Py_None); resultobj = Py_None; | |
8430 | return resultobj; | |
8431 | fail: | |
8432 | return NULL; | |
8433 | } | |
8434 | ||
8435 | ||
8436 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8437 | PyObject *resultobj; | |
8438 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8439 | PyObject * obj0 = 0 ; | |
8440 | char *kwnames[] = { | |
8441 | (char *) "self", NULL | |
8442 | }; | |
8443 | ||
8444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8446 | { | |
8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8448 | (arg1)->Cut(); | |
8449 | ||
8450 | wxPyEndAllowThreads(__tstate); | |
8451 | if (PyErr_Occurred()) SWIG_fail; | |
8452 | } | |
8453 | Py_INCREF(Py_None); resultobj = Py_None; | |
8454 | return resultobj; | |
8455 | fail: | |
8456 | return NULL; | |
8457 | } | |
8458 | ||
8459 | ||
8460 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8461 | PyObject *resultobj; | |
8462 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8463 | PyObject * obj0 = 0 ; | |
8464 | char *kwnames[] = { | |
8465 | (char *) "self", NULL | |
8466 | }; | |
8467 | ||
8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8470 | { | |
8471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8472 | (arg1)->Paste(); | |
8473 | ||
8474 | wxPyEndAllowThreads(__tstate); | |
8475 | if (PyErr_Occurred()) SWIG_fail; | |
8476 | } | |
8477 | Py_INCREF(Py_None); resultobj = Py_None; | |
8478 | return resultobj; | |
8479 | fail: | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
8484 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8485 | PyObject *resultobj; | |
8486 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8487 | bool result; | |
8488 | PyObject * obj0 = 0 ; | |
8489 | char *kwnames[] = { | |
8490 | (char *) "self", NULL | |
8491 | }; | |
8492 | ||
8493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8495 | { | |
8496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8497 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8498 | ||
8499 | wxPyEndAllowThreads(__tstate); | |
8500 | if (PyErr_Occurred()) SWIG_fail; | |
8501 | } | |
02a34c4c | 8502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8503 | return resultobj; |
8504 | fail: | |
8505 | return NULL; | |
8506 | } | |
8507 | ||
8508 | ||
8509 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8510 | PyObject *resultobj; | |
8511 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8512 | bool result; | |
8513 | PyObject * obj0 = 0 ; | |
8514 | char *kwnames[] = { | |
8515 | (char *) "self", NULL | |
8516 | }; | |
8517 | ||
8518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8520 | { | |
8521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8522 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8523 | ||
8524 | wxPyEndAllowThreads(__tstate); | |
8525 | if (PyErr_Occurred()) SWIG_fail; | |
8526 | } | |
02a34c4c | 8527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8528 | return resultobj; |
8529 | fail: | |
8530 | return NULL; | |
8531 | } | |
8532 | ||
8533 | ||
8534 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8535 | PyObject *resultobj; | |
8536 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8537 | bool result; | |
8538 | PyObject * obj0 = 0 ; | |
8539 | char *kwnames[] = { | |
8540 | (char *) "self", NULL | |
8541 | }; | |
8542 | ||
8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8545 | { | |
8546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8547 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8548 | ||
8549 | wxPyEndAllowThreads(__tstate); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
02a34c4c | 8552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8553 | return resultobj; |
8554 | fail: | |
8555 | return NULL; | |
8556 | } | |
8557 | ||
8558 | ||
8559 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8560 | PyObject *resultobj; | |
8561 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8562 | PyObject * obj0 = 0 ; | |
8563 | char *kwnames[] = { | |
8564 | (char *) "self", NULL | |
8565 | }; | |
8566 | ||
8567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8569 | { | |
8570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8571 | (arg1)->Undo(); | |
8572 | ||
8573 | wxPyEndAllowThreads(__tstate); | |
8574 | if (PyErr_Occurred()) SWIG_fail; | |
8575 | } | |
8576 | Py_INCREF(Py_None); resultobj = Py_None; | |
8577 | return resultobj; | |
8578 | fail: | |
8579 | return NULL; | |
8580 | } | |
8581 | ||
8582 | ||
8583 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8584 | PyObject *resultobj; | |
8585 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8586 | PyObject * obj0 = 0 ; | |
8587 | char *kwnames[] = { | |
8588 | (char *) "self", NULL | |
8589 | }; | |
8590 | ||
8591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
8592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8593 | { | |
8594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8595 | (arg1)->Redo(); | |
8596 | ||
8597 | wxPyEndAllowThreads(__tstate); | |
8598 | if (PyErr_Occurred()) SWIG_fail; | |
8599 | } | |
8600 | Py_INCREF(Py_None); resultobj = Py_None; | |
8601 | return resultobj; | |
8602 | fail: | |
8603 | return NULL; | |
8604 | } | |
8605 | ||
8606 | ||
8607 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8608 | PyObject *resultobj; | |
8609 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8610 | bool result; | |
8611 | PyObject * obj0 = 0 ; | |
8612 | char *kwnames[] = { | |
8613 | (char *) "self", NULL | |
8614 | }; | |
8615 | ||
8616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
8617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8618 | { | |
8619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8620 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
8621 | ||
8622 | wxPyEndAllowThreads(__tstate); | |
8623 | if (PyErr_Occurred()) SWIG_fail; | |
8624 | } | |
02a34c4c | 8625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8626 | return resultobj; |
8627 | fail: | |
8628 | return NULL; | |
8629 | } | |
8630 | ||
8631 | ||
8632 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8633 | PyObject *resultobj; | |
8634 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8635 | bool result; | |
8636 | PyObject * obj0 = 0 ; | |
8637 | char *kwnames[] = { | |
8638 | (char *) "self", NULL | |
8639 | }; | |
8640 | ||
8641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8643 | { | |
8644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8645 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8646 | ||
8647 | wxPyEndAllowThreads(__tstate); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
8649 | } | |
02a34c4c | 8650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8651 | return resultobj; |
8652 | fail: | |
8653 | return NULL; | |
8654 | } | |
8655 | ||
8656 | ||
8657 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8658 | PyObject *resultobj; | |
8659 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8660 | long arg2 ; | |
8661 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8662 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8663 | char *kwnames[] = { |
8664 | (char *) "self",(char *) "pos", NULL | |
8665 | }; | |
8666 | ||
8edf1c75 | 8667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8669 | { |
8670 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8671 | if (PyErr_Occurred()) SWIG_fail; | |
8672 | } | |
d14a1e28 RD |
8673 | { |
8674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8675 | (arg1)->SetInsertionPoint(arg2); | |
8676 | ||
8677 | wxPyEndAllowThreads(__tstate); | |
8678 | if (PyErr_Occurred()) SWIG_fail; | |
8679 | } | |
8680 | Py_INCREF(Py_None); resultobj = Py_None; | |
8681 | return resultobj; | |
8682 | fail: | |
8683 | return NULL; | |
8684 | } | |
8685 | ||
8686 | ||
8687 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8688 | PyObject *resultobj; | |
8689 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8690 | PyObject * obj0 = 0 ; | |
8691 | char *kwnames[] = { | |
8692 | (char *) "self", NULL | |
8693 | }; | |
8694 | ||
8695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
8696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8697 | { | |
8698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8699 | (arg1)->SetInsertionPointEnd(); | |
8700 | ||
8701 | wxPyEndAllowThreads(__tstate); | |
8702 | if (PyErr_Occurred()) SWIG_fail; | |
8703 | } | |
8704 | Py_INCREF(Py_None); resultobj = Py_None; | |
8705 | return resultobj; | |
8706 | fail: | |
8707 | return NULL; | |
8708 | } | |
8709 | ||
8710 | ||
8711 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8712 | PyObject *resultobj; | |
8713 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8714 | long result; | |
8715 | PyObject * obj0 = 0 ; | |
8716 | char *kwnames[] = { | |
8717 | (char *) "self", NULL | |
8718 | }; | |
8719 | ||
8720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8722 | { | |
8723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8724 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8725 | ||
8726 | wxPyEndAllowThreads(__tstate); | |
8727 | if (PyErr_Occurred()) SWIG_fail; | |
8728 | } | |
8edf1c75 | 8729 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8730 | return resultobj; |
8731 | fail: | |
8732 | return NULL; | |
8733 | } | |
8734 | ||
8735 | ||
8736 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8737 | PyObject *resultobj; | |
8738 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8739 | long result; | |
8740 | PyObject * obj0 = 0 ; | |
8741 | char *kwnames[] = { | |
8742 | (char *) "self", NULL | |
8743 | }; | |
8744 | ||
8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8747 | { | |
8748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8749 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8750 | ||
8751 | wxPyEndAllowThreads(__tstate); | |
8752 | if (PyErr_Occurred()) SWIG_fail; | |
8753 | } | |
8edf1c75 | 8754 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8755 | return resultobj; |
8756 | fail: | |
8757 | return NULL; | |
8758 | } | |
8759 | ||
8760 | ||
8761 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8762 | PyObject *resultobj; | |
8763 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8764 | long arg2 ; | |
8765 | long arg3 ; | |
8766 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8767 | PyObject * obj1 = 0 ; |
8768 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8769 | char *kwnames[] = { |
8770 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8771 | }; | |
8772 | ||
8edf1c75 | 8773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8775 | { |
8776 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8777 | if (PyErr_Occurred()) SWIG_fail; | |
8778 | } | |
8779 | { | |
8780 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8781 | if (PyErr_Occurred()) SWIG_fail; | |
8782 | } | |
d14a1e28 RD |
8783 | { |
8784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8785 | (arg1)->SetSelection(arg2,arg3); | |
8786 | ||
8787 | wxPyEndAllowThreads(__tstate); | |
8788 | if (PyErr_Occurred()) SWIG_fail; | |
8789 | } | |
8790 | Py_INCREF(Py_None); resultobj = Py_None; | |
8791 | return resultobj; | |
8792 | fail: | |
8793 | return NULL; | |
8794 | } | |
8795 | ||
8796 | ||
8797 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8798 | PyObject *resultobj; | |
8799 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8800 | PyObject * obj0 = 0 ; | |
8801 | char *kwnames[] = { | |
8802 | (char *) "self", NULL | |
8803 | }; | |
8804 | ||
8805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8807 | { | |
8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8809 | (arg1)->SelectAll(); | |
8810 | ||
8811 | wxPyEndAllowThreads(__tstate); | |
8812 | if (PyErr_Occurred()) SWIG_fail; | |
8813 | } | |
8814 | Py_INCREF(Py_None); resultobj = Py_None; | |
8815 | return resultobj; | |
8816 | fail: | |
8817 | return NULL; | |
8818 | } | |
8819 | ||
8820 | ||
8821 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8822 | PyObject *resultobj; | |
8823 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8824 | bool arg2 ; | |
8825 | PyObject * obj0 = 0 ; | |
8826 | PyObject * obj1 = 0 ; | |
8827 | char *kwnames[] = { | |
8828 | (char *) "self",(char *) "editable", NULL | |
8829 | }; | |
8830 | ||
8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
8832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 8833 | { |
8edf1c75 | 8834 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8835 | if (PyErr_Occurred()) SWIG_fail; |
8836 | } | |
d14a1e28 RD |
8837 | { |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8839 | (arg1)->SetEditable(arg2); | |
8840 | ||
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | Py_INCREF(Py_None); resultobj = Py_None; | |
8845 | return resultobj; | |
8846 | fail: | |
8847 | return NULL; | |
8848 | } | |
8849 | ||
8850 | ||
8851 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8852 | PyObject *resultobj; | |
8853 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8854 | wxString *arg2 = 0 ; | |
423f194a | 8855 | bool temp2 = False ; |
d14a1e28 RD |
8856 | PyObject * obj0 = 0 ; |
8857 | PyObject * obj1 = 0 ; | |
8858 | char *kwnames[] = { | |
8859 | (char *) "self",(char *) "text", NULL | |
8860 | }; | |
8861 | ||
8862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
8863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8864 | { | |
8865 | arg2 = wxString_in_helper(obj1); | |
8866 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8867 | temp2 = True; |
d14a1e28 RD |
8868 | } |
8869 | { | |
8870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8871 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
8872 | ||
8873 | wxPyEndAllowThreads(__tstate); | |
8874 | if (PyErr_Occurred()) SWIG_fail; | |
8875 | } | |
8876 | Py_INCREF(Py_None); resultobj = Py_None; | |
8877 | { | |
8878 | if (temp2) | |
8879 | delete arg2; | |
8880 | } | |
8881 | return resultobj; | |
8882 | fail: | |
8883 | { | |
8884 | if (temp2) | |
8885 | delete arg2; | |
8886 | } | |
8887 | return NULL; | |
8888 | } | |
8889 | ||
8890 | ||
8891 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8892 | PyObject *resultobj; | |
8893 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8894 | long arg2 ; | |
8895 | long arg3 ; | |
8896 | wxString result; | |
8897 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8898 | PyObject * obj1 = 0 ; |
8899 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8900 | char *kwnames[] = { |
8901 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8902 | }; | |
8903 | ||
8edf1c75 | 8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8906 | { |
8907 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
8910 | { | |
8911 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
d14a1e28 RD |
8914 | { |
8915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8916 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
8917 | ||
8918 | wxPyEndAllowThreads(__tstate); | |
8919 | if (PyErr_Occurred()) SWIG_fail; | |
8920 | } | |
8921 | { | |
8922 | #if wxUSE_UNICODE | |
8923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8924 | #else | |
8925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8926 | #endif | |
8927 | } | |
8928 | return resultobj; | |
8929 | fail: | |
8930 | return NULL; | |
8931 | } | |
8932 | ||
8933 | ||
8934 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
8935 | PyObject *obj; | |
8936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8937 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
8938 | Py_INCREF(obj); | |
8939 | return Py_BuildValue((char *)""); | |
8940 | } | |
8941 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8942 | PyObject *resultobj; | |
8943 | int arg1 ; | |
8944 | wxMouseEvent *arg2 = 0 ; | |
8945 | long arg3 ; | |
8946 | long arg4 ; | |
8947 | wxTextUrlEvent *result; | |
8edf1c75 | 8948 | PyObject * obj0 = 0 ; |
d14a1e28 | 8949 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
8950 | PyObject * obj2 = 0 ; |
8951 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
8952 | char *kwnames[] = { |
8953 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
8954 | }; | |
8955 | ||
8edf1c75 RD |
8956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8957 | { | |
8958 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8959 | if (PyErr_Occurred()) SWIG_fail; | |
8960 | } | |
d14a1e28 RD |
8961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8962 | if (arg2 == NULL) { | |
8963 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8964 | } | |
8edf1c75 RD |
8965 | { |
8966 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8967 | if (PyErr_Occurred()) SWIG_fail; | |
8968 | } | |
8969 | { | |
8970 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
8971 | if (PyErr_Occurred()) SWIG_fail; | |
8972 | } | |
d14a1e28 RD |
8973 | { |
8974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8975 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
8976 | ||
8977 | wxPyEndAllowThreads(__tstate); | |
8978 | if (PyErr_Occurred()) SWIG_fail; | |
8979 | } | |
8980 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
8981 | return resultobj; | |
8982 | fail: | |
8983 | return NULL; | |
8984 | } | |
8985 | ||
8986 | ||
8987 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8988 | PyObject *resultobj; | |
8989 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8990 | wxMouseEvent *result; | |
8991 | PyObject * obj0 = 0 ; | |
8992 | char *kwnames[] = { | |
8993 | (char *) "self", NULL | |
8994 | }; | |
8995 | ||
8996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
8997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8998 | { | |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | { | |
9001 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9002 | result = (wxMouseEvent *) &_result_ref; | |
9003 | } | |
9004 | ||
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
9008 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
9009 | return resultobj; | |
9010 | fail: | |
9011 | return NULL; | |
9012 | } | |
9013 | ||
9014 | ||
9015 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9016 | PyObject *resultobj; | |
9017 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9018 | long result; | |
9019 | PyObject * obj0 = 0 ; | |
9020 | char *kwnames[] = { | |
9021 | (char *) "self", NULL | |
9022 | }; | |
9023 | ||
9024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9026 | { | |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
8edf1c75 | 9033 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9034 | return resultobj; |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
9040 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9041 | PyObject *resultobj; | |
9042 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9043 | long result; | |
9044 | PyObject * obj0 = 0 ; | |
9045 | char *kwnames[] = { | |
9046 | (char *) "self", NULL | |
9047 | }; | |
9048 | ||
9049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9051 | { | |
9052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9053 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9054 | ||
9055 | wxPyEndAllowThreads(__tstate); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | } | |
8edf1c75 | 9058 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9059 | return resultobj; |
9060 | fail: | |
9061 | return NULL; | |
9062 | } | |
9063 | ||
9064 | ||
9065 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9066 | PyObject *obj; | |
9067 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9068 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9069 | Py_INCREF(obj); | |
9070 | return Py_BuildValue((char *)""); | |
9071 | } | |
8edf1c75 | 9072 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
cbd72d4f RD |
9073 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9074 | return 1; | |
9075 | } | |
9076 | ||
9077 | ||
9078 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9079 | PyObject *pyobj; | |
9080 | ||
9081 | { | |
9082 | #if wxUSE_UNICODE | |
9083 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9084 | #else | |
9085 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9086 | #endif | |
9087 | } | |
9088 | return pyobj; | |
9089 | } | |
9090 | ||
9091 | ||
d14a1e28 RD |
9092 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9093 | PyObject *resultobj; | |
9094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9095 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9096 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9097 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9098 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9099 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9100 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9101 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9102 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9103 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9104 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9105 | wxScrollBar *result; | |
9106 | wxPoint temp3 ; | |
9107 | wxSize temp4 ; | |
423f194a | 9108 | bool temp7 = False ; |
d14a1e28 | 9109 | PyObject * obj0 = 0 ; |
8edf1c75 | 9110 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9111 | PyObject * obj2 = 0 ; |
9112 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9113 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9114 | PyObject * obj5 = 0 ; |
9115 | PyObject * obj6 = 0 ; | |
9116 | char *kwnames[] = { | |
9117 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9118 | }; | |
9119 | ||
8edf1c75 | 9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 9121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9122 | if (obj1) { |
9123 | { | |
9124 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
9126 | } | |
9127 | } | |
d14a1e28 RD |
9128 | if (obj2) { |
9129 | { | |
9130 | arg3 = &temp3; | |
9131 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9132 | } | |
9133 | } | |
9134 | if (obj3) { | |
9135 | { | |
9136 | arg4 = &temp4; | |
9137 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9138 | } | |
9139 | } | |
8edf1c75 RD |
9140 | if (obj4) { |
9141 | { | |
9142 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
9145 | } | |
d14a1e28 RD |
9146 | if (obj5) { |
9147 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9148 | if (arg6 == NULL) { | |
9149 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9150 | } | |
9151 | } | |
9152 | if (obj6) { | |
9153 | { | |
9154 | arg7 = wxString_in_helper(obj6); | |
9155 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9156 | temp7 = True; |
d14a1e28 RD |
9157 | } |
9158 | } | |
9159 | { | |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9167 | { | |
9168 | if (temp7) | |
9169 | delete arg7; | |
9170 | } | |
9171 | return resultobj; | |
9172 | fail: | |
9173 | { | |
9174 | if (temp7) | |
9175 | delete arg7; | |
9176 | } | |
9177 | return NULL; | |
9178 | } | |
9179 | ||
9180 | ||
9181 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9182 | PyObject *resultobj; | |
9183 | wxScrollBar *result; | |
9184 | char *kwnames[] = { | |
9185 | NULL | |
9186 | }; | |
9187 | ||
9188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9189 | { | |
9190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9191 | result = (wxScrollBar *)new wxScrollBar(); | |
9192 | ||
9193 | wxPyEndAllowThreads(__tstate); | |
9194 | if (PyErr_Occurred()) SWIG_fail; | |
9195 | } | |
9196 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9197 | return resultobj; | |
9198 | fail: | |
9199 | return NULL; | |
9200 | } | |
9201 | ||
9202 | ||
9203 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9204 | PyObject *resultobj; | |
9205 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9206 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9207 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9208 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9209 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9210 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9211 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9212 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9213 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9214 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9215 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9216 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9217 | bool result; | |
9218 | wxPoint temp4 ; | |
9219 | wxSize temp5 ; | |
423f194a | 9220 | bool temp8 = False ; |
d14a1e28 RD |
9221 | PyObject * obj0 = 0 ; |
9222 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9223 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9224 | PyObject * obj3 = 0 ; |
9225 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9226 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9227 | PyObject * obj6 = 0 ; |
9228 | PyObject * obj7 = 0 ; | |
9229 | char *kwnames[] = { | |
9230 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9231 | }; | |
9232 | ||
8edf1c75 | 9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
9234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9235 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9236 | if (obj2) { |
9237 | { | |
9238 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | } | |
9241 | } | |
d14a1e28 RD |
9242 | if (obj3) { |
9243 | { | |
9244 | arg4 = &temp4; | |
9245 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9246 | } | |
9247 | } | |
9248 | if (obj4) { | |
9249 | { | |
9250 | arg5 = &temp5; | |
9251 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9252 | } | |
9253 | } | |
8edf1c75 RD |
9254 | if (obj5) { |
9255 | { | |
9256 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | } | |
d14a1e28 RD |
9260 | if (obj6) { |
9261 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9262 | if (arg7 == NULL) { | |
9263 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9264 | } | |
9265 | } | |
9266 | if (obj7) { | |
9267 | { | |
9268 | arg8 = wxString_in_helper(obj7); | |
9269 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9270 | temp8 = True; |
d14a1e28 RD |
9271 | } |
9272 | } | |
9273 | { | |
9274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9275 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9276 | ||
9277 | wxPyEndAllowThreads(__tstate); | |
9278 | if (PyErr_Occurred()) SWIG_fail; | |
9279 | } | |
02a34c4c | 9280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9281 | { |
9282 | if (temp8) | |
9283 | delete arg8; | |
9284 | } | |
9285 | return resultobj; | |
9286 | fail: | |
9287 | { | |
9288 | if (temp8) | |
9289 | delete arg8; | |
9290 | } | |
9291 | return NULL; | |
9292 | } | |
9293 | ||
9294 | ||
9295 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9296 | PyObject *resultobj; | |
9297 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9298 | int result; | |
9299 | PyObject * obj0 = 0 ; | |
9300 | char *kwnames[] = { | |
9301 | (char *) "self", NULL | |
9302 | }; | |
9303 | ||
9304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9306 | { | |
9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9308 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9309 | ||
9310 | wxPyEndAllowThreads(__tstate); | |
9311 | if (PyErr_Occurred()) SWIG_fail; | |
9312 | } | |
8edf1c75 | 9313 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9314 | return resultobj; |
9315 | fail: | |
9316 | return NULL; | |
9317 | } | |
9318 | ||
9319 | ||
9320 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9321 | PyObject *resultobj; | |
9322 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9323 | int result; | |
9324 | PyObject * obj0 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9331 | { | |
9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9333 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9334 | ||
9335 | wxPyEndAllowThreads(__tstate); | |
9336 | if (PyErr_Occurred()) SWIG_fail; | |
9337 | } | |
8edf1c75 | 9338 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9339 | return resultobj; |
9340 | fail: | |
9341 | return NULL; | |
9342 | } | |
9343 | ||
9344 | ||
9345 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9346 | PyObject *resultobj; | |
9347 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9348 | int result; | |
9349 | PyObject * obj0 = 0 ; | |
9350 | char *kwnames[] = { | |
9351 | (char *) "self", NULL | |
9352 | }; | |
9353 | ||
9354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9356 | { | |
9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9358 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9359 | ||
9360 | wxPyEndAllowThreads(__tstate); | |
9361 | if (PyErr_Occurred()) SWIG_fail; | |
9362 | } | |
8edf1c75 | 9363 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9364 | return resultobj; |
9365 | fail: | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
9370 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9371 | PyObject *resultobj; | |
9372 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9373 | int result; | |
9374 | PyObject * obj0 = 0 ; | |
9375 | char *kwnames[] = { | |
9376 | (char *) "self", NULL | |
9377 | }; | |
9378 | ||
9379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9381 | { | |
9382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9383 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9384 | ||
9385 | wxPyEndAllowThreads(__tstate); | |
9386 | if (PyErr_Occurred()) SWIG_fail; | |
9387 | } | |
8edf1c75 | 9388 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9389 | return resultobj; |
9390 | fail: | |
9391 | return NULL; | |
9392 | } | |
9393 | ||
9394 | ||
9395 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9396 | PyObject *resultobj; | |
9397 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9398 | bool result; | |
9399 | PyObject * obj0 = 0 ; | |
9400 | char *kwnames[] = { | |
9401 | (char *) "self", NULL | |
9402 | }; | |
9403 | ||
9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9409 | ||
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | } | |
02a34c4c | 9413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9414 | return resultobj; |
9415 | fail: | |
9416 | return NULL; | |
9417 | } | |
9418 | ||
9419 | ||
9420 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9421 | PyObject *resultobj; | |
9422 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9423 | int arg2 ; | |
9424 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9426 | char *kwnames[] = { |
9427 | (char *) "self",(char *) "viewStart", NULL | |
9428 | }; | |
9429 | ||
8edf1c75 | 9430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9432 | { |
9433 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
d14a1e28 RD |
9436 | { |
9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9438 | (arg1)->SetThumbPosition(arg2); | |
9439 | ||
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | } | |
9443 | Py_INCREF(Py_None); resultobj = Py_None; | |
9444 | return resultobj; | |
9445 | fail: | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
9450 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9451 | PyObject *resultobj; | |
9452 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9453 | int arg2 ; | |
9454 | int arg3 ; | |
9455 | int arg4 ; | |
9456 | int arg5 ; | |
423f194a | 9457 | bool arg6 = (bool) True ; |
d14a1e28 | 9458 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9459 | PyObject * obj1 = 0 ; |
9460 | PyObject * obj2 = 0 ; | |
9461 | PyObject * obj3 = 0 ; | |
9462 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9463 | PyObject * obj5 = 0 ; |
9464 | char *kwnames[] = { | |
9465 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9466 | }; | |
9467 | ||
8edf1c75 | 9468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9470 | { |
9471 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9472 | if (PyErr_Occurred()) SWIG_fail; | |
9473 | } | |
9474 | { | |
9475 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | } | |
9478 | { | |
9479 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9480 | if (PyErr_Occurred()) SWIG_fail; | |
9481 | } | |
9482 | { | |
9483 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9484 | if (PyErr_Occurred()) SWIG_fail; | |
9485 | } | |
d14a1e28 | 9486 | if (obj5) { |
2dbef272 | 9487 | { |
8edf1c75 | 9488 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
2dbef272 RD |
9489 | if (PyErr_Occurred()) SWIG_fail; |
9490 | } | |
d14a1e28 RD |
9491 | } |
9492 | { | |
9493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9494 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9495 | ||
9496 | wxPyEndAllowThreads(__tstate); | |
9497 | if (PyErr_Occurred()) SWIG_fail; | |
9498 | } | |
9499 | Py_INCREF(Py_None); resultobj = Py_None; | |
9500 | return resultobj; | |
9501 | fail: | |
9502 | return NULL; | |
9503 | } | |
9504 | ||
9505 | ||
9506 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9507 | PyObject *obj; | |
9508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9509 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9510 | Py_INCREF(obj); | |
9511 | return Py_BuildValue((char *)""); | |
9512 | } | |
8edf1c75 | 9513 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
cbd72d4f RD |
9514 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9515 | return 1; | |
9516 | } | |
9517 | ||
9518 | ||
9519 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9520 | PyObject *pyobj; | |
9521 | ||
9522 | { | |
9523 | #if wxUSE_UNICODE | |
9524 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9525 | #else | |
9526 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9527 | #endif | |
9528 | } | |
9529 | return pyobj; | |
9530 | } | |
9531 | ||
9532 | ||
8edf1c75 | 9533 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
9534 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9535 | return 1; | |
9536 | } | |
9537 | ||
9538 | ||
9539 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9540 | PyObject *pyobj; | |
9541 | ||
9542 | { | |
9543 | #if wxUSE_UNICODE | |
9544 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9545 | #else | |
9546 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9547 | #endif | |
9548 | } | |
9549 | return pyobj; | |
9550 | } | |
9551 | ||
9552 | ||
d14a1e28 RD |
9553 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9554 | PyObject *resultobj; | |
9555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9556 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9557 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9558 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9559 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9560 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9561 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9562 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9563 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9564 | wxSpinButton *result; | |
9565 | wxPoint temp3 ; | |
9566 | wxSize temp4 ; | |
423f194a | 9567 | bool temp6 = False ; |
d14a1e28 | 9568 | PyObject * obj0 = 0 ; |
8edf1c75 | 9569 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9570 | PyObject * obj2 = 0 ; |
9571 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9572 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9573 | PyObject * obj5 = 0 ; |
9574 | char *kwnames[] = { | |
9575 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9576 | }; | |
9577 | ||
8edf1c75 | 9578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9580 | if (obj1) { |
9581 | { | |
9582 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
9585 | } | |
d14a1e28 RD |
9586 | if (obj2) { |
9587 | { | |
9588 | arg3 = &temp3; | |
9589 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9590 | } | |
9591 | } | |
9592 | if (obj3) { | |
9593 | { | |
9594 | arg4 = &temp4; | |
9595 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9596 | } | |
9597 | } | |
8edf1c75 RD |
9598 | if (obj4) { |
9599 | { | |
9600 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9601 | if (PyErr_Occurred()) SWIG_fail; | |
9602 | } | |
9603 | } | |
d14a1e28 RD |
9604 | if (obj5) { |
9605 | { | |
9606 | arg6 = wxString_in_helper(obj5); | |
9607 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 9608 | temp6 = True; |
d14a1e28 RD |
9609 | } |
9610 | } | |
9611 | { | |
9612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9613 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9614 | ||
9615 | wxPyEndAllowThreads(__tstate); | |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
9617 | } | |
9618 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9619 | { | |
9620 | if (temp6) | |
9621 | delete arg6; | |
9622 | } | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | { | |
9626 | if (temp6) | |
9627 | delete arg6; | |
9628 | } | |
9629 | return NULL; | |
9630 | } | |
9631 | ||
9632 | ||
9633 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9634 | PyObject *resultobj; | |
9635 | wxSpinButton *result; | |
9636 | char *kwnames[] = { | |
9637 | NULL | |
9638 | }; | |
9639 | ||
9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9641 | { | |
9642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9643 | result = (wxSpinButton *)new wxSpinButton(); | |
9644 | ||
9645 | wxPyEndAllowThreads(__tstate); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
9648 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9649 | return resultobj; | |
9650 | fail: | |
9651 | return NULL; | |
9652 | } | |
9653 | ||
9654 | ||
9655 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9656 | PyObject *resultobj; | |
9657 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9658 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9659 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9660 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9661 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9662 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9663 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9664 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9665 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9666 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9667 | bool result; | |
9668 | wxPoint temp4 ; | |
9669 | wxSize temp5 ; | |
423f194a | 9670 | bool temp7 = False ; |
d14a1e28 RD |
9671 | PyObject * obj0 = 0 ; |
9672 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9673 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9674 | PyObject * obj3 = 0 ; |
9675 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9676 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9677 | PyObject * obj6 = 0 ; |
9678 | char *kwnames[] = { | |
9679 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9680 | }; | |
9681 | ||
8edf1c75 | 9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9685 | if (obj2) { |
9686 | { | |
9687 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | } | |
d14a1e28 RD |
9691 | if (obj3) { |
9692 | { | |
9693 | arg4 = &temp4; | |
9694 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9695 | } | |
9696 | } | |
9697 | if (obj4) { | |
9698 | { | |
9699 | arg5 = &temp5; | |
9700 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9701 | } | |
9702 | } | |
8edf1c75 RD |
9703 | if (obj5) { |
9704 | { | |
9705 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9706 | if (PyErr_Occurred()) SWIG_fail; | |
9707 | } | |
9708 | } | |
d14a1e28 RD |
9709 | if (obj6) { |
9710 | { | |
9711 | arg7 = wxString_in_helper(obj6); | |
9712 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9713 | temp7 = True; |
d14a1e28 RD |
9714 | } |
9715 | } | |
9716 | { | |
9717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9718 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9719 | ||
9720 | wxPyEndAllowThreads(__tstate); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
02a34c4c | 9723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9724 | { |
9725 | if (temp7) | |
9726 | delete arg7; | |
9727 | } | |
9728 | return resultobj; | |
9729 | fail: | |
9730 | { | |
9731 | if (temp7) | |
9732 | delete arg7; | |
9733 | } | |
9734 | return NULL; | |
9735 | } | |
9736 | ||
9737 | ||
9738 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9739 | PyObject *resultobj; | |
9740 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9741 | int result; | |
9742 | PyObject * obj0 = 0 ; | |
9743 | char *kwnames[] = { | |
9744 | (char *) "self", NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
9748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9749 | { | |
9750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9751 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
9752 | ||
9753 | wxPyEndAllowThreads(__tstate); | |
9754 | if (PyErr_Occurred()) SWIG_fail; | |
9755 | } | |
8edf1c75 | 9756 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9757 | return resultobj; |
9758 | fail: | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
9763 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9764 | PyObject *resultobj; | |
9765 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9766 | int result; | |
9767 | PyObject * obj0 = 0 ; | |
9768 | char *kwnames[] = { | |
9769 | (char *) "self", NULL | |
9770 | }; | |
9771 | ||
9772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
9773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9774 | { | |
9775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9776 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
9777 | ||
9778 | wxPyEndAllowThreads(__tstate); | |
9779 | if (PyErr_Occurred()) SWIG_fail; | |
9780 | } | |
8edf1c75 | 9781 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9782 | return resultobj; |
9783 | fail: | |
9784 | return NULL; | |
9785 | } | |
9786 | ||
9787 | ||
9788 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9789 | PyObject *resultobj; | |
9790 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9791 | int result; | |
9792 | PyObject * obj0 = 0 ; | |
9793 | char *kwnames[] = { | |
9794 | (char *) "self", NULL | |
9795 | }; | |
9796 | ||
9797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
9798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9801 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
9802 | ||
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | } | |
8edf1c75 | 9806 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9807 | return resultobj; |
9808 | fail: | |
9809 | return NULL; | |
9810 | } | |
9811 | ||
9812 | ||
9813 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9814 | PyObject *resultobj; | |
9815 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9816 | int arg2 ; | |
9817 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9818 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9819 | char *kwnames[] = { |
9820 | (char *) "self",(char *) "val", NULL | |
9821 | }; | |
9822 | ||
8edf1c75 | 9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9825 | { |
9826 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9827 | if (PyErr_Occurred()) SWIG_fail; | |
9828 | } | |
d14a1e28 RD |
9829 | { |
9830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9831 | (arg1)->SetValue(arg2); | |
9832 | ||
9833 | wxPyEndAllowThreads(__tstate); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
9836 | Py_INCREF(Py_None); resultobj = Py_None; | |
9837 | return resultobj; | |
9838 | fail: | |
9839 | return NULL; | |
9840 | } | |
9841 | ||
9842 | ||
9843 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9844 | PyObject *resultobj; | |
9845 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9846 | int arg2 ; | |
9847 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9849 | char *kwnames[] = { |
9850 | (char *) "self",(char *) "minVal", NULL | |
9851 | }; | |
9852 | ||
8edf1c75 | 9853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9855 | { |
9856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9857 | if (PyErr_Occurred()) SWIG_fail; | |
9858 | } | |
d14a1e28 RD |
9859 | { |
9860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9861 | (arg1)->SetMin(arg2); | |
9862 | ||
9863 | wxPyEndAllowThreads(__tstate); | |
9864 | if (PyErr_Occurred()) SWIG_fail; | |
9865 | } | |
9866 | Py_INCREF(Py_None); resultobj = Py_None; | |
9867 | return resultobj; | |
9868 | fail: | |
9869 | return NULL; | |
9870 | } | |
9871 | ||
9872 | ||
9873 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9874 | PyObject *resultobj; | |
9875 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9876 | int arg2 ; | |
9877 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9879 | char *kwnames[] = { |
9880 | (char *) "self",(char *) "maxVal", NULL | |
9881 | }; | |
9882 | ||
8edf1c75 | 9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9885 | { |
9886 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9887 | if (PyErr_Occurred()) SWIG_fail; | |
9888 | } | |
d14a1e28 RD |
9889 | { |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9891 | (arg1)->SetMax(arg2); | |
9892 | ||
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) SWIG_fail; | |
9895 | } | |
9896 | Py_INCREF(Py_None); resultobj = Py_None; | |
9897 | return resultobj; | |
9898 | fail: | |
9899 | return NULL; | |
9900 | } | |
9901 | ||
9902 | ||
9903 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9904 | PyObject *resultobj; | |
9905 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9906 | int arg2 ; | |
9907 | int arg3 ; | |
9908 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9909 | PyObject * obj1 = 0 ; |
9910 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9911 | char *kwnames[] = { |
9912 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9913 | }; | |
9914 | ||
8edf1c75 | 9915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9917 | { |
9918 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9919 | if (PyErr_Occurred()) SWIG_fail; | |
9920 | } | |
9921 | { | |
9922 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9923 | if (PyErr_Occurred()) SWIG_fail; | |
9924 | } | |
d14a1e28 RD |
9925 | { |
9926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9927 | (arg1)->SetRange(arg2,arg3); | |
9928 | ||
9929 | wxPyEndAllowThreads(__tstate); | |
9930 | if (PyErr_Occurred()) SWIG_fail; | |
9931 | } | |
9932 | Py_INCREF(Py_None); resultobj = Py_None; | |
9933 | return resultobj; | |
9934 | fail: | |
9935 | return NULL; | |
9936 | } | |
9937 | ||
9938 | ||
9939 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9940 | PyObject *resultobj; | |
9941 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9942 | bool result; | |
9943 | PyObject * obj0 = 0 ; | |
9944 | char *kwnames[] = { | |
9945 | (char *) "self", NULL | |
9946 | }; | |
9947 | ||
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
9949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9950 | { | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
9953 | ||
9954 | wxPyEndAllowThreads(__tstate); | |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
02a34c4c | 9957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9958 | return resultobj; |
9959 | fail: | |
9960 | return NULL; | |
9961 | } | |
9962 | ||
9963 | ||
9964 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
9965 | PyObject *obj; | |
9966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9967 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
9968 | Py_INCREF(obj); | |
9969 | return Py_BuildValue((char *)""); | |
9970 | } | |
9971 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9972 | PyObject *resultobj; | |
9973 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9974 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9975 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9976 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9977 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9978 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9979 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9980 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9981 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
9982 | int arg7 = (int) 0 ; | |
9983 | int arg8 = (int) 100 ; | |
9984 | int arg9 = (int) 0 ; | |
9985 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
9986 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
9987 | wxSpinCtrl *result; | |
423f194a | 9988 | bool temp3 = False ; |
d14a1e28 RD |
9989 | wxPoint temp4 ; |
9990 | wxSize temp5 ; | |
423f194a | 9991 | bool temp10 = False ; |
d14a1e28 | 9992 | PyObject * obj0 = 0 ; |
8edf1c75 | 9993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9994 | PyObject * obj2 = 0 ; |
9995 | PyObject * obj3 = 0 ; | |
9996 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
9997 | PyObject * obj5 = 0 ; |
9998 | PyObject * obj6 = 0 ; | |
9999 | PyObject * obj7 = 0 ; | |
10000 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10001 | PyObject * obj9 = 0 ; |
10002 | char *kwnames[] = { | |
10003 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10004 | }; | |
10005 | ||
8edf1c75 | 10006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10008 | if (obj1) { |
10009 | { | |
10010 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10011 | if (PyErr_Occurred()) SWIG_fail; | |
10012 | } | |
10013 | } | |
10014 | if (obj2) { | |
d14a1e28 RD |
10015 | { |
10016 | arg3 = wxString_in_helper(obj2); | |
10017 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10018 | temp3 = True; |
d14a1e28 RD |
10019 | } |
10020 | } | |
10021 | if (obj3) { | |
10022 | { | |
10023 | arg4 = &temp4; | |
10024 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10025 | } | |
10026 | } | |
10027 | if (obj4) { | |
10028 | { | |
10029 | arg5 = &temp5; | |
10030 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10031 | } | |
10032 | } | |
8edf1c75 RD |
10033 | if (obj5) { |
10034 | { | |
10035 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
10038 | } | |
10039 | if (obj6) { | |
10040 | { | |
10041 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10042 | if (PyErr_Occurred()) SWIG_fail; | |
10043 | } | |
10044 | } | |
10045 | if (obj7) { | |
10046 | { | |
10047 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10048 | if (PyErr_Occurred()) SWIG_fail; | |
10049 | } | |
10050 | } | |
10051 | if (obj8) { | |
10052 | { | |
10053 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10054 | if (PyErr_Occurred()) SWIG_fail; | |
10055 | } | |
10056 | } | |
d14a1e28 RD |
10057 | if (obj9) { |
10058 | { | |
10059 | arg10 = wxString_in_helper(obj9); | |
10060 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10061 | temp10 = True; |
d14a1e28 RD |
10062 | } |
10063 | } | |
10064 | { | |
10065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10066 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10067 | ||
10068 | wxPyEndAllowThreads(__tstate); | |
10069 | if (PyErr_Occurred()) SWIG_fail; | |
10070 | } | |
10071 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10072 | { | |
10073 | if (temp3) | |
10074 | delete arg3; | |
10075 | } | |
10076 | { | |
10077 | if (temp10) | |
10078 | delete arg10; | |
10079 | } | |
10080 | return resultobj; | |
10081 | fail: | |
10082 | { | |
10083 | if (temp3) | |
10084 | delete arg3; | |
10085 | } | |
10086 | { | |
10087 | if (temp10) | |
10088 | delete arg10; | |
10089 | } | |
10090 | return NULL; | |
10091 | } | |
10092 | ||
10093 | ||
10094 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10095 | PyObject *resultobj; | |
10096 | wxSpinCtrl *result; | |
10097 | char *kwnames[] = { | |
10098 | NULL | |
10099 | }; | |
10100 | ||
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10102 | { | |
10103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10104 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10105 | ||
10106 | wxPyEndAllowThreads(__tstate); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10110 | return resultobj; | |
10111 | fail: | |
10112 | return NULL; | |
10113 | } | |
10114 | ||
10115 | ||
10116 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject *resultobj; | |
10118 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10119 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10120 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10121 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10122 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10123 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10124 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10125 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10126 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10127 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10128 | int arg8 = (int) 0 ; | |
10129 | int arg9 = (int) 100 ; | |
10130 | int arg10 = (int) 0 ; | |
10131 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10132 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10133 | bool result; | |
423f194a | 10134 | bool temp4 = False ; |
d14a1e28 RD |
10135 | wxPoint temp5 ; |
10136 | wxSize temp6 ; | |
423f194a | 10137 | bool temp11 = False ; |
d14a1e28 RD |
10138 | PyObject * obj0 = 0 ; |
10139 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10140 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10141 | PyObject * obj3 = 0 ; |
10142 | PyObject * obj4 = 0 ; | |
10143 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10144 | PyObject * obj6 = 0 ; |
10145 | PyObject * obj7 = 0 ; | |
10146 | PyObject * obj8 = 0 ; | |
10147 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10148 | PyObject * obj10 = 0 ; |
10149 | char *kwnames[] = { | |
10150 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10151 | }; | |
10152 | ||
8edf1c75 | 10153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d14a1e28 RD |
10154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10155 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10156 | if (obj2) { |
10157 | { | |
10158 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | } | |
10161 | } | |
d14a1e28 RD |
10162 | if (obj3) { |
10163 | { | |
10164 | arg4 = wxString_in_helper(obj3); | |
10165 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10166 | temp4 = True; |
d14a1e28 RD |
10167 | } |
10168 | } | |
10169 | if (obj4) { | |
10170 | { | |
10171 | arg5 = &temp5; | |
10172 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10173 | } | |
10174 | } | |
10175 | if (obj5) { | |
10176 | { | |
10177 | arg6 = &temp6; | |
10178 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10179 | } | |
10180 | } | |
8edf1c75 RD |
10181 | if (obj6) { |
10182 | { | |
10183 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10184 | if (PyErr_Occurred()) SWIG_fail; | |
10185 | } | |
10186 | } | |
10187 | if (obj7) { | |
10188 | { | |
10189 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10190 | if (PyErr_Occurred()) SWIG_fail; | |
10191 | } | |
10192 | } | |
10193 | if (obj8) { | |
10194 | { | |
10195 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10196 | if (PyErr_Occurred()) SWIG_fail; | |
10197 | } | |
10198 | } | |
10199 | if (obj9) { | |
10200 | { | |
10201 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | } | |
10204 | } | |
d14a1e28 RD |
10205 | if (obj10) { |
10206 | { | |
10207 | arg11 = wxString_in_helper(obj10); | |
10208 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10209 | temp11 = True; |
d14a1e28 RD |
10210 | } |
10211 | } | |
10212 | { | |
10213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10214 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10215 | ||
10216 | wxPyEndAllowThreads(__tstate); | |
10217 | if (PyErr_Occurred()) SWIG_fail; | |
10218 | } | |
02a34c4c | 10219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10220 | { |
10221 | if (temp4) | |
10222 | delete arg4; | |
10223 | } | |
10224 | { | |
10225 | if (temp11) | |
10226 | delete arg11; | |
10227 | } | |
10228 | return resultobj; | |
10229 | fail: | |
10230 | { | |
10231 | if (temp4) | |
10232 | delete arg4; | |
10233 | } | |
10234 | { | |
10235 | if (temp11) | |
10236 | delete arg11; | |
10237 | } | |
10238 | return NULL; | |
10239 | } | |
10240 | ||
10241 | ||
10242 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10243 | PyObject *resultobj; | |
10244 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10245 | int result; | |
10246 | PyObject * obj0 = 0 ; | |
10247 | char *kwnames[] = { | |
10248 | (char *) "self", NULL | |
10249 | }; | |
10250 | ||
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10253 | { | |
10254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10255 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10256 | ||
10257 | wxPyEndAllowThreads(__tstate); | |
10258 | if (PyErr_Occurred()) SWIG_fail; | |
10259 | } | |
8edf1c75 | 10260 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10261 | return resultobj; |
10262 | fail: | |
10263 | return NULL; | |
10264 | } | |
10265 | ||
10266 | ||
10267 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10268 | PyObject *resultobj; | |
10269 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10270 | int arg2 ; | |
10271 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10273 | char *kwnames[] = { |
10274 | (char *) "self",(char *) "value", NULL | |
10275 | }; | |
10276 | ||
8edf1c75 | 10277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10279 | { |
10280 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10281 | if (PyErr_Occurred()) SWIG_fail; | |
10282 | } | |
d14a1e28 RD |
10283 | { |
10284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10285 | (arg1)->SetValue(arg2); | |
10286 | ||
10287 | wxPyEndAllowThreads(__tstate); | |
10288 | if (PyErr_Occurred()) SWIG_fail; | |
10289 | } | |
10290 | Py_INCREF(Py_None); resultobj = Py_None; | |
10291 | return resultobj; | |
10292 | fail: | |
10293 | return NULL; | |
10294 | } | |
10295 | ||
10296 | ||
10297 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10298 | PyObject *resultobj; | |
10299 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10300 | wxString *arg2 = 0 ; | |
423f194a | 10301 | bool temp2 = False ; |
d14a1e28 RD |
10302 | PyObject * obj0 = 0 ; |
10303 | PyObject * obj1 = 0 ; | |
10304 | char *kwnames[] = { | |
10305 | (char *) "self",(char *) "text", NULL | |
10306 | }; | |
10307 | ||
10308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10310 | { | |
10311 | arg2 = wxString_in_helper(obj1); | |
10312 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10313 | temp2 = True; |
d14a1e28 RD |
10314 | } |
10315 | { | |
10316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10317 | (arg1)->SetValue((wxString const &)*arg2); | |
10318 | ||
10319 | wxPyEndAllowThreads(__tstate); | |
10320 | if (PyErr_Occurred()) SWIG_fail; | |
10321 | } | |
10322 | Py_INCREF(Py_None); resultobj = Py_None; | |
10323 | { | |
10324 | if (temp2) | |
10325 | delete arg2; | |
10326 | } | |
10327 | return resultobj; | |
10328 | fail: | |
10329 | { | |
10330 | if (temp2) | |
10331 | delete arg2; | |
10332 | } | |
10333 | return NULL; | |
10334 | } | |
10335 | ||
10336 | ||
10337 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10338 | PyObject *resultobj; | |
10339 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10340 | int arg2 ; | |
10341 | int arg3 ; | |
10342 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10343 | PyObject * obj1 = 0 ; |
10344 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10345 | char *kwnames[] = { |
10346 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10347 | }; | |
10348 | ||
8edf1c75 | 10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10351 | { |
10352 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
10355 | { | |
10356 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10357 | if (PyErr_Occurred()) SWIG_fail; | |
10358 | } | |
d14a1e28 RD |
10359 | { |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10361 | (arg1)->SetRange(arg2,arg3); | |
10362 | ||
10363 | wxPyEndAllowThreads(__tstate); | |
10364 | if (PyErr_Occurred()) SWIG_fail; | |
10365 | } | |
10366 | Py_INCREF(Py_None); resultobj = Py_None; | |
10367 | return resultobj; | |
10368 | fail: | |
10369 | return NULL; | |
10370 | } | |
10371 | ||
10372 | ||
10373 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10374 | PyObject *resultobj; | |
10375 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10376 | int result; | |
10377 | PyObject * obj0 = 0 ; | |
10378 | char *kwnames[] = { | |
10379 | (char *) "self", NULL | |
10380 | }; | |
10381 | ||
10382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10384 | { | |
10385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10386 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10387 | ||
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
8edf1c75 | 10391 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10392 | return resultobj; |
10393 | fail: | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
10398 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10399 | PyObject *resultobj; | |
10400 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10401 | int result; | |
10402 | PyObject * obj0 = 0 ; | |
10403 | char *kwnames[] = { | |
10404 | (char *) "self", NULL | |
10405 | }; | |
10406 | ||
10407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10409 | { | |
10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10411 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10412 | ||
10413 | wxPyEndAllowThreads(__tstate); | |
10414 | if (PyErr_Occurred()) SWIG_fail; | |
10415 | } | |
8edf1c75 | 10416 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10417 | return resultobj; |
10418 | fail: | |
10419 | return NULL; | |
10420 | } | |
10421 | ||
10422 | ||
10423 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10424 | PyObject *resultobj; | |
10425 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10426 | long arg2 ; | |
10427 | long arg3 ; | |
10428 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10429 | PyObject * obj1 = 0 ; |
10430 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10431 | char *kwnames[] = { |
10432 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10433 | }; | |
10434 | ||
8edf1c75 | 10435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10437 | { |
10438 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10439 | if (PyErr_Occurred()) SWIG_fail; | |
10440 | } | |
10441 | { | |
10442 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10443 | if (PyErr_Occurred()) SWIG_fail; | |
10444 | } | |
d14a1e28 RD |
10445 | { |
10446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10447 | (arg1)->SetSelection(arg2,arg3); | |
10448 | ||
10449 | wxPyEndAllowThreads(__tstate); | |
10450 | if (PyErr_Occurred()) SWIG_fail; | |
10451 | } | |
10452 | Py_INCREF(Py_None); resultobj = Py_None; | |
10453 | return resultobj; | |
10454 | fail: | |
10455 | return NULL; | |
10456 | } | |
10457 | ||
10458 | ||
10459 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10460 | PyObject *obj; | |
10461 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10462 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10463 | Py_INCREF(obj); | |
10464 | return Py_BuildValue((char *)""); | |
10465 | } | |
d896a793 RD |
10466 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10467 | PyObject *resultobj; | |
10468 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10469 | int arg2 = (int) 0 ; | |
10470 | wxSpinEvent *result; | |
8edf1c75 RD |
10471 | PyObject * obj0 = 0 ; |
10472 | PyObject * obj1 = 0 ; | |
d896a793 RD |
10473 | char *kwnames[] = { |
10474 | (char *) "commandType",(char *) "winid", NULL | |
10475 | }; | |
10476 | ||
8edf1c75 RD |
10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10478 | if (obj0) { | |
10479 | { | |
10480 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | } | |
10484 | if (obj1) { | |
10485 | { | |
10486 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10487 | if (PyErr_Occurred()) SWIG_fail; | |
10488 | } | |
10489 | } | |
d896a793 RD |
10490 | { |
10491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10492 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10493 | ||
10494 | wxPyEndAllowThreads(__tstate); | |
10495 | if (PyErr_Occurred()) SWIG_fail; | |
10496 | } | |
10497 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10498 | return resultobj; | |
10499 | fail: | |
10500 | return NULL; | |
10501 | } | |
10502 | ||
10503 | ||
10504 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10505 | PyObject *resultobj; | |
10506 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10507 | int result; | |
10508 | PyObject * obj0 = 0 ; | |
10509 | char *kwnames[] = { | |
10510 | (char *) "self", NULL | |
10511 | }; | |
10512 | ||
10513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10515 | { | |
10516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10517 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10518 | ||
10519 | wxPyEndAllowThreads(__tstate); | |
10520 | if (PyErr_Occurred()) SWIG_fail; | |
10521 | } | |
8edf1c75 | 10522 | resultobj = SWIG_PyObj_FromInt((int)result); |
d896a793 RD |
10523 | return resultobj; |
10524 | fail: | |
10525 | return NULL; | |
10526 | } | |
10527 | ||
10528 | ||
10529 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10530 | PyObject *resultobj; | |
10531 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10532 | int arg2 ; | |
10533 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10534 | PyObject * obj1 = 0 ; |
d896a793 RD |
10535 | char *kwnames[] = { |
10536 | (char *) "self",(char *) "pos", NULL | |
10537 | }; | |
10538 | ||
8edf1c75 | 10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d896a793 | 10540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10541 | { |
10542 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
d896a793 RD |
10545 | { |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | (arg1)->SetPosition(arg2); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | Py_INCREF(Py_None); resultobj = Py_None; | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
10559 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10560 | PyObject *obj; | |
10561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10562 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10563 | Py_INCREF(obj); | |
10564 | return Py_BuildValue((char *)""); | |
10565 | } | |
8edf1c75 | 10566 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
10567 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10568 | return 1; | |
10569 | } | |
10570 | ||
10571 | ||
10572 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10573 | PyObject *pyobj; | |
10574 | ||
10575 | { | |
10576 | #if wxUSE_UNICODE | |
10577 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10578 | #else | |
10579 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10580 | #endif | |
10581 | } | |
10582 | return pyobj; | |
10583 | } | |
10584 | ||
10585 | ||
8edf1c75 | 10586 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
10587 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
10588 | return 1; | |
10589 | } | |
10590 | ||
10591 | ||
10592 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10593 | PyObject *pyobj; | |
10594 | ||
10595 | { | |
10596 | #if wxUSE_UNICODE | |
10597 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10598 | #else | |
10599 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10600 | #endif | |
10601 | } | |
10602 | return pyobj; | |
10603 | } | |
10604 | ||
10605 | ||
d14a1e28 RD |
10606 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10607 | PyObject *resultobj; | |
10608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10609 | int arg2 ; |
d14a1e28 RD |
10610 | wxString *arg3 = 0 ; |
10611 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10612 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10613 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10614 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
10615 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
10616 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10617 | int arg7 = (int) 0 ; | |
10618 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10619 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10620 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10621 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10622 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 10623 | wxRadioBox *result; |
423f194a | 10624 | bool temp3 = False ; |
d14a1e28 RD |
10625 | wxPoint temp4 ; |
10626 | wxSize temp5 ; | |
423f194a | 10627 | bool temp10 = False ; |
d14a1e28 | 10628 | PyObject * obj0 = 0 ; |
8edf1c75 | 10629 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10630 | PyObject * obj2 = 0 ; |
10631 | PyObject * obj3 = 0 ; | |
10632 | PyObject * obj4 = 0 ; | |
10633 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10634 | PyObject * obj6 = 0 ; |
10635 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
10636 | PyObject * obj8 = 0 ; |
10637 | PyObject * obj9 = 0 ; | |
10638 | char *kwnames[] = { | |
8edf1c75 | 10639 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
10640 | }; |
10641 | ||
8edf1c75 | 10642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10644 | { |
10645 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
d14a1e28 RD |
10648 | { |
10649 | arg3 = wxString_in_helper(obj2); | |
10650 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10651 | temp3 = True; |
d14a1e28 RD |
10652 | } |
10653 | if (obj3) { | |
10654 | { | |
10655 | arg4 = &temp4; | |
10656 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10657 | } | |
10658 | } | |
10659 | if (obj4) { | |
10660 | { | |
10661 | arg5 = &temp5; | |
10662 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10663 | } | |
10664 | } | |
10665 | if (obj5) { | |
10666 | { | |
02a34c4c RD |
10667 | if (! PySequence_Check(obj5)) { |
10668 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10669 | SWIG_fail; | |
10670 | } | |
10671 | arg6 = new wxArrayString; | |
10672 | int i, len=PySequence_Length(obj5); | |
10673 | for (i=0; i<len; i++) { | |
10674 | PyObject* item = PySequence_GetItem(obj5, i); | |
10675 | #if wxUSE_UNICODE | |
10676 | PyObject* str = PyObject_Unicode(item); | |
10677 | #else | |
10678 | PyObject* str = PyObject_Str(item); | |
10679 | #endif | |
10680 | arg6->Add(Py2wxString(str)); | |
10681 | Py_DECREF(item); | |
10682 | Py_DECREF(str); | |
10683 | } | |
d14a1e28 RD |
10684 | } |
10685 | } | |
8edf1c75 RD |
10686 | if (obj6) { |
10687 | { | |
02a34c4c | 10688 | arg7 = (int) SWIG_PyObj_AsInt(obj6); |
8edf1c75 RD |
10689 | if (PyErr_Occurred()) SWIG_fail; |
10690 | } | |
10691 | } | |
10692 | if (obj7) { | |
10693 | { | |
02a34c4c | 10694 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
10695 | if (PyErr_Occurred()) SWIG_fail; |
10696 | } | |
10697 | } | |
d14a1e28 | 10698 | if (obj8) { |
02a34c4c RD |
10699 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10700 | if (arg9 == NULL) { | |
d14a1e28 RD |
10701 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10702 | } | |
10703 | } | |
10704 | if (obj9) { | |
10705 | { | |
02a34c4c RD |
10706 | arg10 = wxString_in_helper(obj9); |
10707 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10708 | temp10 = True; |
d14a1e28 RD |
10709 | } |
10710 | } | |
10711 | { | |
10712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 10713 | 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 |
10714 | |
10715 | wxPyEndAllowThreads(__tstate); | |
10716 | if (PyErr_Occurred()) SWIG_fail; | |
10717 | } | |
10718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10719 | { | |
10720 | if (temp3) | |
10721 | delete arg3; | |
10722 | } | |
10723 | { | |
02a34c4c | 10724 | if (arg6) delete arg6; |
d14a1e28 RD |
10725 | } |
10726 | { | |
10727 | if (temp10) | |
02a34c4c | 10728 | delete arg10; |
d14a1e28 RD |
10729 | } |
10730 | return resultobj; | |
10731 | fail: | |
10732 | { | |
10733 | if (temp3) | |
10734 | delete arg3; | |
10735 | } | |
10736 | { | |
02a34c4c | 10737 | if (arg6) delete arg6; |
d14a1e28 RD |
10738 | } |
10739 | { | |
10740 | if (temp10) | |
02a34c4c | 10741 | delete arg10; |
d14a1e28 RD |
10742 | } |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
10747 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10748 | PyObject *resultobj; | |
10749 | wxRadioBox *result; | |
10750 | char *kwnames[] = { | |
10751 | NULL | |
10752 | }; | |
10753 | ||
10754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
10755 | { | |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | result = (wxRadioBox *)new wxRadioBox(); | |
10758 | ||
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
10769 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10770 | PyObject *resultobj; | |
10771 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10772 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10773 | int arg3 ; |
d14a1e28 RD |
10774 | wxString *arg4 = 0 ; |
10775 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10776 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10777 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10778 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
02a34c4c RD |
10779 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
10780 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
10781 | int arg8 = (int) 0 ; | |
10782 | long arg9 = (long) wxRA_HORIZONTAL ; | |
10783 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10784 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10785 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
10786 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 10787 | bool result; |
423f194a | 10788 | bool temp4 = False ; |
d14a1e28 RD |
10789 | wxPoint temp5 ; |
10790 | wxSize temp6 ; | |
423f194a | 10791 | bool temp11 = False ; |
d14a1e28 RD |
10792 | PyObject * obj0 = 0 ; |
10793 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10794 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10795 | PyObject * obj3 = 0 ; |
10796 | PyObject * obj4 = 0 ; | |
10797 | PyObject * obj5 = 0 ; | |
10798 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
10799 | PyObject * obj7 = 0 ; |
10800 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10801 | PyObject * obj9 = 0 ; |
10802 | PyObject * obj10 = 0 ; | |
10803 | char *kwnames[] = { | |
8edf1c75 | 10804 | (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 |
10805 | }; |
10806 | ||
8edf1c75 | 10807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d14a1e28 RD |
10808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10810 | { |
10811 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10812 | if (PyErr_Occurred()) SWIG_fail; | |
10813 | } | |
d14a1e28 RD |
10814 | { |
10815 | arg4 = wxString_in_helper(obj3); | |
10816 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10817 | temp4 = True; |
d14a1e28 RD |
10818 | } |
10819 | if (obj4) { | |
10820 | { | |
10821 | arg5 = &temp5; | |
10822 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10823 | } | |
10824 | } | |
10825 | if (obj5) { | |
10826 | { | |
10827 | arg6 = &temp6; | |
10828 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10829 | } | |
10830 | } | |
10831 | if (obj6) { | |
10832 | { | |
02a34c4c RD |
10833 | if (! PySequence_Check(obj6)) { |
10834 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10835 | SWIG_fail; | |
10836 | } | |
10837 | arg7 = new wxArrayString; | |
10838 | int i, len=PySequence_Length(obj6); | |
10839 | for (i=0; i<len; i++) { | |
10840 | PyObject* item = PySequence_GetItem(obj6, i); | |
10841 | #if wxUSE_UNICODE | |
10842 | PyObject* str = PyObject_Unicode(item); | |
10843 | #else | |
10844 | PyObject* str = PyObject_Str(item); | |
10845 | #endif | |
10846 | arg7->Add(Py2wxString(str)); | |
10847 | Py_DECREF(item); | |
10848 | Py_DECREF(str); | |
10849 | } | |
d14a1e28 RD |
10850 | } |
10851 | } | |
8edf1c75 RD |
10852 | if (obj7) { |
10853 | { | |
02a34c4c | 10854 | arg8 = (int) SWIG_PyObj_AsInt(obj7); |
8edf1c75 RD |
10855 | if (PyErr_Occurred()) SWIG_fail; |
10856 | } | |
10857 | } | |
10858 | if (obj8) { | |
10859 | { | |
02a34c4c | 10860 | arg9 = (long) SWIG_PyObj_AsLong(obj8); |
8edf1c75 RD |
10861 | if (PyErr_Occurred()) SWIG_fail; |
10862 | } | |
10863 | } | |
d14a1e28 | 10864 | if (obj9) { |
02a34c4c RD |
10865 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10866 | if (arg10 == NULL) { | |
d14a1e28 RD |
10867 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10868 | } | |
10869 | } | |
10870 | if (obj10) { | |
10871 | { | |
02a34c4c RD |
10872 | arg11 = wxString_in_helper(obj10); |
10873 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10874 | temp11 = True; |
d14a1e28 RD |
10875 | } |
10876 | } | |
10877 | { | |
10878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 10879 | 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 |
10880 | |
10881 | wxPyEndAllowThreads(__tstate); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | } | |
02a34c4c | 10884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10885 | { |
10886 | if (temp4) | |
10887 | delete arg4; | |
10888 | } | |
10889 | { | |
02a34c4c | 10890 | if (arg7) delete arg7; |
d14a1e28 RD |
10891 | } |
10892 | { | |
10893 | if (temp11) | |
02a34c4c | 10894 | delete arg11; |
d14a1e28 RD |
10895 | } |
10896 | return resultobj; | |
10897 | fail: | |
10898 | { | |
10899 | if (temp4) | |
10900 | delete arg4; | |
10901 | } | |
10902 | { | |
02a34c4c | 10903 | if (arg7) delete arg7; |
d14a1e28 RD |
10904 | } |
10905 | { | |
10906 | if (temp11) | |
02a34c4c | 10907 | delete arg11; |
d14a1e28 RD |
10908 | } |
10909 | return NULL; | |
10910 | } | |
10911 | ||
10912 | ||
10913 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10914 | PyObject *resultobj; | |
10915 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10916 | int arg2 ; | |
10917 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10918 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10919 | char *kwnames[] = { |
10920 | (char *) "self",(char *) "n", NULL | |
10921 | }; | |
10922 | ||
8edf1c75 | 10923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10925 | { |
10926 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10927 | if (PyErr_Occurred()) SWIG_fail; | |
10928 | } | |
d14a1e28 RD |
10929 | { |
10930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10931 | (arg1)->SetSelection(arg2); | |
10932 | ||
10933 | wxPyEndAllowThreads(__tstate); | |
10934 | if (PyErr_Occurred()) SWIG_fail; | |
10935 | } | |
10936 | Py_INCREF(Py_None); resultobj = Py_None; | |
10937 | return resultobj; | |
10938 | fail: | |
10939 | return NULL; | |
10940 | } | |
10941 | ||
10942 | ||
10943 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10944 | PyObject *resultobj; | |
10945 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10946 | int result; | |
10947 | PyObject * obj0 = 0 ; | |
10948 | char *kwnames[] = { | |
10949 | (char *) "self", NULL | |
10950 | }; | |
10951 | ||
10952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
10953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10954 | { | |
10955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10956 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
10957 | ||
10958 | wxPyEndAllowThreads(__tstate); | |
10959 | if (PyErr_Occurred()) SWIG_fail; | |
10960 | } | |
8edf1c75 | 10961 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10962 | return resultobj; |
10963 | fail: | |
10964 | return NULL; | |
10965 | } | |
10966 | ||
10967 | ||
10968 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10969 | PyObject *resultobj; | |
10970 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10971 | wxString result; | |
10972 | PyObject * obj0 = 0 ; | |
10973 | char *kwnames[] = { | |
10974 | (char *) "self", NULL | |
10975 | }; | |
10976 | ||
10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
10978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10979 | { | |
10980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10981 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
10982 | ||
10983 | wxPyEndAllowThreads(__tstate); | |
10984 | if (PyErr_Occurred()) SWIG_fail; | |
10985 | } | |
10986 | { | |
10987 | #if wxUSE_UNICODE | |
10988 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10989 | #else | |
10990 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10991 | #endif | |
10992 | } | |
10993 | return resultobj; | |
10994 | fail: | |
10995 | return NULL; | |
10996 | } | |
10997 | ||
10998 | ||
10999 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11000 | PyObject *resultobj; | |
11001 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11002 | wxString *arg2 = 0 ; | |
11003 | bool result; | |
423f194a | 11004 | bool temp2 = False ; |
d14a1e28 RD |
11005 | PyObject * obj0 = 0 ; |
11006 | PyObject * obj1 = 0 ; | |
11007 | char *kwnames[] = { | |
11008 | (char *) "self",(char *) "s", NULL | |
11009 | }; | |
11010 | ||
11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11013 | { | |
11014 | arg2 = wxString_in_helper(obj1); | |
11015 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11016 | temp2 = True; |
d14a1e28 RD |
11017 | } |
11018 | { | |
11019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11020 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11021 | ||
11022 | wxPyEndAllowThreads(__tstate); | |
11023 | if (PyErr_Occurred()) SWIG_fail; | |
11024 | } | |
02a34c4c | 11025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11026 | { |
11027 | if (temp2) | |
11028 | delete arg2; | |
11029 | } | |
11030 | return resultobj; | |
11031 | fail: | |
11032 | { | |
11033 | if (temp2) | |
11034 | delete arg2; | |
11035 | } | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
11040 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11041 | PyObject *resultobj; | |
11042 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11043 | int result; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11051 | { | |
11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11053 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11054 | ||
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
8edf1c75 | 11058 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11059 | return resultobj; |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
11065 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11066 | PyObject *resultobj; | |
11067 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11068 | wxString *arg2 = 0 ; | |
11069 | int result; | |
423f194a | 11070 | bool temp2 = False ; |
d14a1e28 RD |
11071 | PyObject * obj0 = 0 ; |
11072 | PyObject * obj1 = 0 ; | |
11073 | char *kwnames[] = { | |
11074 | (char *) "self",(char *) "s", NULL | |
11075 | }; | |
11076 | ||
11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11079 | { | |
11080 | arg2 = wxString_in_helper(obj1); | |
11081 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11082 | temp2 = True; |
d14a1e28 RD |
11083 | } |
11084 | { | |
11085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11086 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11087 | ||
11088 | wxPyEndAllowThreads(__tstate); | |
11089 | if (PyErr_Occurred()) SWIG_fail; | |
11090 | } | |
8edf1c75 | 11091 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11092 | { |
11093 | if (temp2) | |
11094 | delete arg2; | |
11095 | } | |
11096 | return resultobj; | |
11097 | fail: | |
11098 | { | |
11099 | if (temp2) | |
11100 | delete arg2; | |
11101 | } | |
11102 | return NULL; | |
11103 | } | |
11104 | ||
11105 | ||
11106 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11107 | PyObject *resultobj; | |
11108 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11109 | int arg2 ; | |
11110 | wxString result; | |
11111 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11112 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11113 | char *kwnames[] = { |
11114 | (char *) "self",(char *) "n", NULL | |
11115 | }; | |
11116 | ||
8edf1c75 | 11117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11119 | { |
11120 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11121 | if (PyErr_Occurred()) SWIG_fail; | |
11122 | } | |
d14a1e28 RD |
11123 | { |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11126 | ||
11127 | wxPyEndAllowThreads(__tstate); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | } | |
11130 | { | |
11131 | #if wxUSE_UNICODE | |
11132 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11133 | #else | |
11134 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11135 | #endif | |
11136 | } | |
11137 | return resultobj; | |
11138 | fail: | |
11139 | return NULL; | |
11140 | } | |
11141 | ||
11142 | ||
11143 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11144 | PyObject *resultobj; | |
11145 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11146 | int arg2 ; | |
11147 | wxString *arg3 = 0 ; | |
423f194a | 11148 | bool temp3 = False ; |
d14a1e28 | 11149 | PyObject * obj0 = 0 ; |
8edf1c75 | 11150 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11151 | PyObject * obj2 = 0 ; |
11152 | char *kwnames[] = { | |
11153 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11154 | }; | |
11155 | ||
8edf1c75 | 11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11158 | { |
11159 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11160 | if (PyErr_Occurred()) SWIG_fail; | |
11161 | } | |
d14a1e28 RD |
11162 | { |
11163 | arg3 = wxString_in_helper(obj2); | |
11164 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11165 | temp3 = True; |
d14a1e28 RD |
11166 | } |
11167 | { | |
11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11169 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11170 | ||
11171 | wxPyEndAllowThreads(__tstate); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | } | |
11174 | Py_INCREF(Py_None); resultobj = Py_None; | |
11175 | { | |
11176 | if (temp3) | |
11177 | delete arg3; | |
11178 | } | |
11179 | return resultobj; | |
11180 | fail: | |
11181 | { | |
11182 | if (temp3) | |
11183 | delete arg3; | |
11184 | } | |
11185 | return NULL; | |
11186 | } | |
11187 | ||
11188 | ||
11189 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11190 | PyObject *resultobj; | |
11191 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11192 | int arg2 ; | |
423f194a | 11193 | bool arg3 = (bool) True ; |
d14a1e28 | 11194 | PyObject * obj0 = 0 ; |
8edf1c75 | 11195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11196 | PyObject * obj2 = 0 ; |
11197 | char *kwnames[] = { | |
11198 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11199 | }; | |
11200 | ||
8edf1c75 | 11201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11203 | { |
11204 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11205 | if (PyErr_Occurred()) SWIG_fail; | |
11206 | } | |
d14a1e28 | 11207 | if (obj2) { |
2dbef272 | 11208 | { |
8edf1c75 | 11209 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11210 | if (PyErr_Occurred()) SWIG_fail; |
11211 | } | |
d14a1e28 RD |
11212 | } |
11213 | { | |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | (arg1)->Enable(arg2,arg3); | |
11216 | ||
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | Py_INCREF(Py_None); resultobj = Py_None; | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
11227 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject *resultobj; | |
11229 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11230 | int arg2 ; | |
423f194a | 11231 | bool arg3 = (bool) True ; |
d14a1e28 | 11232 | PyObject * obj0 = 0 ; |
8edf1c75 | 11233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11234 | PyObject * obj2 = 0 ; |
11235 | char *kwnames[] = { | |
11236 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11237 | }; | |
11238 | ||
8edf1c75 | 11239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11241 | { |
11242 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | } | |
d14a1e28 | 11245 | if (obj2) { |
2dbef272 | 11246 | { |
8edf1c75 | 11247 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11248 | if (PyErr_Occurred()) SWIG_fail; |
11249 | } | |
d14a1e28 RD |
11250 | } |
11251 | { | |
11252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11253 | (arg1)->Show(arg2,arg3); | |
11254 | ||
11255 | wxPyEndAllowThreads(__tstate); | |
11256 | if (PyErr_Occurred()) SWIG_fail; | |
11257 | } | |
11258 | Py_INCREF(Py_None); resultobj = Py_None; | |
11259 | return resultobj; | |
11260 | fail: | |
11261 | return NULL; | |
11262 | } | |
11263 | ||
11264 | ||
11265 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11266 | PyObject *resultobj; | |
11267 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11268 | int result; | |
11269 | PyObject * obj0 = 0 ; | |
11270 | char *kwnames[] = { | |
11271 | (char *) "self", NULL | |
11272 | }; | |
11273 | ||
11274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11276 | { | |
11277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11278 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11279 | ||
11280 | wxPyEndAllowThreads(__tstate); | |
11281 | if (PyErr_Occurred()) SWIG_fail; | |
11282 | } | |
8edf1c75 | 11283 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11284 | return resultobj; |
11285 | fail: | |
11286 | return NULL; | |
11287 | } | |
11288 | ||
11289 | ||
11290 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11291 | PyObject *resultobj; | |
11292 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11293 | int result; | |
11294 | PyObject * obj0 = 0 ; | |
11295 | char *kwnames[] = { | |
11296 | (char *) "self", NULL | |
11297 | }; | |
11298 | ||
11299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11301 | { | |
11302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11303 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11304 | ||
11305 | wxPyEndAllowThreads(__tstate); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
11307 | } | |
8edf1c75 | 11308 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11309 | return resultobj; |
11310 | fail: | |
11311 | return NULL; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11316 | PyObject *resultobj; | |
11317 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11318 | int arg2 ; | |
11319 | int arg3 ; | |
11320 | long arg4 ; | |
11321 | int result; | |
11322 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11323 | PyObject * obj1 = 0 ; |
11324 | PyObject * obj2 = 0 ; | |
11325 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11326 | char *kwnames[] = { |
11327 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11328 | }; | |
11329 | ||
8edf1c75 | 11330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11332 | { |
11333 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | { | |
11337 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11338 | if (PyErr_Occurred()) SWIG_fail; | |
11339 | } | |
11340 | { | |
11341 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11342 | if (PyErr_Occurred()) SWIG_fail; | |
11343 | } | |
d14a1e28 RD |
11344 | { |
11345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11346 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11347 | ||
11348 | wxPyEndAllowThreads(__tstate); | |
11349 | if (PyErr_Occurred()) SWIG_fail; | |
11350 | } | |
8edf1c75 | 11351 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11352 | return resultobj; |
11353 | fail: | |
11354 | return NULL; | |
11355 | } | |
11356 | ||
11357 | ||
11358 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11359 | PyObject *obj; | |
11360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11361 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11362 | Py_INCREF(obj); | |
11363 | return Py_BuildValue((char *)""); | |
11364 | } | |
11365 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11366 | PyObject *resultobj; | |
11367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11368 | int arg2 ; |
d14a1e28 RD |
11369 | wxString *arg3 = 0 ; |
11370 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11371 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11372 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11373 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11374 | long arg6 = (long) 0 ; | |
11375 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11376 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11377 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11378 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11379 | wxRadioButton *result; | |
423f194a | 11380 | bool temp3 = False ; |
d14a1e28 RD |
11381 | wxPoint temp4 ; |
11382 | wxSize temp5 ; | |
423f194a | 11383 | bool temp8 = False ; |
d14a1e28 | 11384 | PyObject * obj0 = 0 ; |
8edf1c75 | 11385 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11386 | PyObject * obj2 = 0 ; |
11387 | PyObject * obj3 = 0 ; | |
11388 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11389 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11390 | PyObject * obj6 = 0 ; |
11391 | PyObject * obj7 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11394 | }; | |
11395 | ||
8edf1c75 | 11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 11397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11398 | { |
11399 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11400 | if (PyErr_Occurred()) SWIG_fail; | |
11401 | } | |
d14a1e28 RD |
11402 | { |
11403 | arg3 = wxString_in_helper(obj2); | |
11404 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11405 | temp3 = True; |
d14a1e28 RD |
11406 | } |
11407 | if (obj3) { | |
11408 | { | |
11409 | arg4 = &temp4; | |
11410 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11411 | } | |
11412 | } | |
11413 | if (obj4) { | |
11414 | { | |
11415 | arg5 = &temp5; | |
11416 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11417 | } | |
11418 | } | |
8edf1c75 RD |
11419 | if (obj5) { |
11420 | { | |
11421 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11422 | if (PyErr_Occurred()) SWIG_fail; | |
11423 | } | |
11424 | } | |
d14a1e28 RD |
11425 | if (obj6) { |
11426 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11427 | if (arg7 == NULL) { | |
11428 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11429 | } | |
11430 | } | |
11431 | if (obj7) { | |
11432 | { | |
11433 | arg8 = wxString_in_helper(obj7); | |
11434 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11435 | temp8 = True; |
d14a1e28 RD |
11436 | } |
11437 | } | |
11438 | { | |
11439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11440 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11441 | ||
11442 | wxPyEndAllowThreads(__tstate); | |
11443 | if (PyErr_Occurred()) SWIG_fail; | |
11444 | } | |
11445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11446 | { | |
11447 | if (temp3) | |
11448 | delete arg3; | |
11449 | } | |
11450 | { | |
11451 | if (temp8) | |
11452 | delete arg8; | |
11453 | } | |
11454 | return resultobj; | |
11455 | fail: | |
11456 | { | |
11457 | if (temp3) | |
11458 | delete arg3; | |
11459 | } | |
11460 | { | |
11461 | if (temp8) | |
11462 | delete arg8; | |
11463 | } | |
11464 | return NULL; | |
11465 | } | |
11466 | ||
11467 | ||
11468 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11469 | PyObject *resultobj; | |
11470 | wxRadioButton *result; | |
11471 | char *kwnames[] = { | |
11472 | NULL | |
11473 | }; | |
11474 | ||
11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11476 | { | |
11477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11478 | result = (wxRadioButton *)new wxRadioButton(); | |
11479 | ||
11480 | wxPyEndAllowThreads(__tstate); | |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
11482 | } | |
11483 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11484 | return resultobj; | |
11485 | fail: | |
11486 | return NULL; | |
11487 | } | |
11488 | ||
11489 | ||
11490 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11491 | PyObject *resultobj; | |
11492 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11493 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11494 | int arg3 ; |
d14a1e28 RD |
11495 | wxString *arg4 = 0 ; |
11496 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11497 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11498 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11499 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11500 | long arg7 = (long) 0 ; | |
11501 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11502 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11503 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11504 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11505 | bool result; | |
423f194a | 11506 | bool temp4 = False ; |
d14a1e28 RD |
11507 | wxPoint temp5 ; |
11508 | wxSize temp6 ; | |
423f194a | 11509 | bool temp9 = False ; |
d14a1e28 RD |
11510 | PyObject * obj0 = 0 ; |
11511 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11512 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11513 | PyObject * obj3 = 0 ; |
11514 | PyObject * obj4 = 0 ; | |
11515 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11516 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11517 | PyObject * obj7 = 0 ; |
11518 | PyObject * obj8 = 0 ; | |
11519 | char *kwnames[] = { | |
11520 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11521 | }; | |
11522 | ||
8edf1c75 | 11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
11524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11525 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11526 | { |
11527 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11528 | if (PyErr_Occurred()) SWIG_fail; | |
11529 | } | |
d14a1e28 RD |
11530 | { |
11531 | arg4 = wxString_in_helper(obj3); | |
11532 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11533 | temp4 = True; |
d14a1e28 RD |
11534 | } |
11535 | if (obj4) { | |
11536 | { | |
11537 | arg5 = &temp5; | |
11538 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11539 | } | |
11540 | } | |
11541 | if (obj5) { | |
11542 | { | |
11543 | arg6 = &temp6; | |
11544 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11545 | } | |
11546 | } | |
8edf1c75 RD |
11547 | if (obj6) { |
11548 | { | |
11549 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11550 | if (PyErr_Occurred()) SWIG_fail; | |
11551 | } | |
11552 | } | |
d14a1e28 RD |
11553 | if (obj7) { |
11554 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11555 | if (arg8 == NULL) { | |
11556 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11557 | } | |
11558 | } | |
11559 | if (obj8) { | |
11560 | { | |
11561 | arg9 = wxString_in_helper(obj8); | |
11562 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11563 | temp9 = True; |
d14a1e28 RD |
11564 | } |
11565 | } | |
11566 | { | |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11568 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
02a34c4c | 11573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11574 | { |
11575 | if (temp4) | |
11576 | delete arg4; | |
11577 | } | |
11578 | { | |
11579 | if (temp9) | |
11580 | delete arg9; | |
11581 | } | |
11582 | return resultobj; | |
11583 | fail: | |
11584 | { | |
11585 | if (temp4) | |
11586 | delete arg4; | |
11587 | } | |
11588 | { | |
11589 | if (temp9) | |
11590 | delete arg9; | |
11591 | } | |
11592 | return NULL; | |
11593 | } | |
11594 | ||
11595 | ||
11596 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11597 | PyObject *resultobj; | |
11598 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11599 | bool result; | |
11600 | PyObject * obj0 = 0 ; | |
11601 | char *kwnames[] = { | |
11602 | (char *) "self", NULL | |
11603 | }; | |
11604 | ||
11605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11607 | { | |
11608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11609 | result = (bool)(arg1)->GetValue(); | |
11610 | ||
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
02a34c4c | 11614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11615 | return resultobj; |
11616 | fail: | |
11617 | return NULL; | |
11618 | } | |
11619 | ||
11620 | ||
11621 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11622 | PyObject *resultobj; | |
11623 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11624 | bool arg2 ; | |
11625 | PyObject * obj0 = 0 ; | |
11626 | PyObject * obj1 = 0 ; | |
11627 | char *kwnames[] = { | |
11628 | (char *) "self",(char *) "value", NULL | |
11629 | }; | |
11630 | ||
11631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 11633 | { |
8edf1c75 | 11634 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
11635 | if (PyErr_Occurred()) SWIG_fail; |
11636 | } | |
d14a1e28 RD |
11637 | { |
11638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11639 | (arg1)->SetValue(arg2); | |
11640 | ||
11641 | wxPyEndAllowThreads(__tstate); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
11643 | } | |
11644 | Py_INCREF(Py_None); resultobj = Py_None; | |
11645 | return resultobj; | |
11646 | fail: | |
11647 | return NULL; | |
11648 | } | |
11649 | ||
11650 | ||
11651 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11652 | PyObject *obj; | |
11653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11654 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11655 | Py_INCREF(obj); | |
11656 | return Py_BuildValue((char *)""); | |
11657 | } | |
8edf1c75 | 11658 | static int _wrap_SliderNameStr_set(PyObject *) { |
cbd72d4f RD |
11659 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
11660 | return 1; | |
11661 | } | |
11662 | ||
11663 | ||
11664 | static PyObject *_wrap_SliderNameStr_get() { | |
11665 | PyObject *pyobj; | |
11666 | ||
11667 | { | |
11668 | #if wxUSE_UNICODE | |
11669 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11670 | #else | |
11671 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11672 | #endif | |
11673 | } | |
11674 | return pyobj; | |
11675 | } | |
11676 | ||
11677 | ||
d14a1e28 RD |
11678 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
11679 | PyObject *resultobj; | |
11680 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11681 | int arg2 ; |
d14a1e28 RD |
11682 | int arg3 ; |
11683 | int arg4 ; | |
11684 | int arg5 ; | |
11685 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11686 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11687 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11688 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11689 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11690 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11691 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11692 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11693 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11694 | wxSlider *result; | |
11695 | wxPoint temp6 ; | |
11696 | wxSize temp7 ; | |
423f194a | 11697 | bool temp10 = False ; |
d14a1e28 | 11698 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11699 | PyObject * obj1 = 0 ; |
11700 | PyObject * obj2 = 0 ; | |
11701 | PyObject * obj3 = 0 ; | |
11702 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11703 | PyObject * obj5 = 0 ; |
11704 | PyObject * obj6 = 0 ; | |
8edf1c75 | 11705 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
11706 | PyObject * obj8 = 0 ; |
11707 | PyObject * obj9 = 0 ; | |
11708 | char *kwnames[] = { | |
8edf1c75 | 11709 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11710 | }; |
11711 | ||
8edf1c75 | 11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 11713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11714 | { |
11715 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11716 | if (PyErr_Occurred()) SWIG_fail; | |
11717 | } | |
11718 | { | |
11719 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11720 | if (PyErr_Occurred()) SWIG_fail; | |
11721 | } | |
11722 | { | |
11723 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
11725 | } | |
11726 | { | |
11727 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
d14a1e28 RD |
11730 | if (obj5) { |
11731 | { | |
11732 | arg6 = &temp6; | |
11733 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
11734 | } | |
11735 | } | |
11736 | if (obj6) { | |
11737 | { | |
11738 | arg7 = &temp7; | |
11739 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
11740 | } | |
11741 | } | |
8edf1c75 RD |
11742 | if (obj7) { |
11743 | { | |
11744 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
11745 | if (PyErr_Occurred()) SWIG_fail; | |
11746 | } | |
11747 | } | |
d14a1e28 RD |
11748 | if (obj8) { |
11749 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11750 | if (arg9 == NULL) { | |
11751 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11752 | } | |
11753 | } | |
11754 | if (obj9) { | |
11755 | { | |
11756 | arg10 = wxString_in_helper(obj9); | |
11757 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11758 | temp10 = True; |
d14a1e28 RD |
11759 | } |
11760 | } | |
11761 | { | |
11762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11763 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11764 | ||
11765 | wxPyEndAllowThreads(__tstate); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
11768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11769 | { | |
11770 | if (temp10) | |
11771 | delete arg10; | |
11772 | } | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | { | |
11776 | if (temp10) | |
11777 | delete arg10; | |
11778 | } | |
11779 | return NULL; | |
11780 | } | |
11781 | ||
11782 | ||
11783 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11784 | PyObject *resultobj; | |
11785 | wxSlider *result; | |
11786 | char *kwnames[] = { | |
11787 | NULL | |
11788 | }; | |
11789 | ||
11790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
11791 | { | |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | result = (wxSlider *)new wxSlider(); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
11798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11799 | return resultobj; | |
11800 | fail: | |
11801 | return NULL; | |
11802 | } | |
11803 | ||
11804 | ||
11805 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11806 | PyObject *resultobj; | |
11807 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11808 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11809 | int arg3 ; |
d14a1e28 RD |
11810 | int arg4 ; |
11811 | int arg5 ; | |
11812 | int arg6 ; | |
11813 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11814 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11815 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
11816 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
11817 | long arg9 = (long) wxSL_HORIZONTAL ; | |
11818 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11819 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11820 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
11821 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11822 | bool result; | |
11823 | wxPoint temp7 ; | |
11824 | wxSize temp8 ; | |
423f194a | 11825 | bool temp11 = False ; |
d14a1e28 RD |
11826 | PyObject * obj0 = 0 ; |
11827 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11828 | PyObject * obj2 = 0 ; |
11829 | PyObject * obj3 = 0 ; | |
11830 | PyObject * obj4 = 0 ; | |
11831 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11832 | PyObject * obj6 = 0 ; |
11833 | PyObject * obj7 = 0 ; | |
8edf1c75 | 11834 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
11835 | PyObject * obj9 = 0 ; |
11836 | PyObject * obj10 = 0 ; | |
11837 | char *kwnames[] = { | |
8edf1c75 | 11838 | (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 |
11839 | }; |
11840 | ||
8edf1c75 | 11841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d14a1e28 RD |
11842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11843 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11844 | { |
11845 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11846 | if (PyErr_Occurred()) SWIG_fail; | |
11847 | } | |
11848 | { | |
11849 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
11851 | } | |
11852 | { | |
11853 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11854 | if (PyErr_Occurred()) SWIG_fail; | |
11855 | } | |
11856 | { | |
11857 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11858 | if (PyErr_Occurred()) SWIG_fail; | |
11859 | } | |
d14a1e28 RD |
11860 | if (obj6) { |
11861 | { | |
11862 | arg7 = &temp7; | |
11863 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11864 | } | |
11865 | } | |
11866 | if (obj7) { | |
11867 | { | |
11868 | arg8 = &temp8; | |
11869 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
11870 | } | |
11871 | } | |
8edf1c75 RD |
11872 | if (obj8) { |
11873 | { | |
11874 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
11875 | if (PyErr_Occurred()) SWIG_fail; | |
11876 | } | |
11877 | } | |
d14a1e28 RD |
11878 | if (obj9) { |
11879 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11880 | if (arg10 == NULL) { | |
11881 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11882 | } | |
11883 | } | |
11884 | if (obj10) { | |
11885 | { | |
11886 | arg11 = wxString_in_helper(obj10); | |
11887 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11888 | temp11 = True; |
d14a1e28 RD |
11889 | } |
11890 | } | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
02a34c4c | 11898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11899 | { |
11900 | if (temp11) | |
11901 | delete arg11; | |
11902 | } | |
11903 | return resultobj; | |
11904 | fail: | |
11905 | { | |
11906 | if (temp11) | |
11907 | delete arg11; | |
11908 | } | |
11909 | return NULL; | |
11910 | } | |
11911 | ||
11912 | ||
11913 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11914 | PyObject *resultobj; | |
11915 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11916 | int result; | |
11917 | PyObject * obj0 = 0 ; | |
11918 | char *kwnames[] = { | |
11919 | (char *) "self", NULL | |
11920 | }; | |
11921 | ||
11922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
11923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11924 | { | |
11925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11926 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
11927 | ||
11928 | wxPyEndAllowThreads(__tstate); | |
11929 | if (PyErr_Occurred()) SWIG_fail; | |
11930 | } | |
8edf1c75 | 11931 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11932 | return resultobj; |
11933 | fail: | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
11938 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11939 | PyObject *resultobj; | |
11940 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11941 | int arg2 ; | |
11942 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11943 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11944 | char *kwnames[] = { |
11945 | (char *) "self",(char *) "value", NULL | |
11946 | }; | |
11947 | ||
8edf1c75 | 11948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11950 | { |
11951 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
d14a1e28 RD |
11954 | { |
11955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11956 | (arg1)->SetValue(arg2); | |
11957 | ||
11958 | wxPyEndAllowThreads(__tstate); | |
11959 | if (PyErr_Occurred()) SWIG_fail; | |
11960 | } | |
11961 | Py_INCREF(Py_None); resultobj = Py_None; | |
11962 | return resultobj; | |
11963 | fail: | |
11964 | return NULL; | |
11965 | } | |
11966 | ||
11967 | ||
11968 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11969 | PyObject *resultobj; | |
11970 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11971 | int arg2 ; | |
11972 | int arg3 ; | |
11973 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11974 | PyObject * obj1 = 0 ; |
11975 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11976 | char *kwnames[] = { |
11977 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
11978 | }; | |
11979 | ||
8edf1c75 | 11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11982 | { |
11983 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11984 | if (PyErr_Occurred()) SWIG_fail; | |
11985 | } | |
11986 | { | |
11987 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11988 | if (PyErr_Occurred()) SWIG_fail; | |
11989 | } | |
d14a1e28 RD |
11990 | { |
11991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11992 | (arg1)->SetRange(arg2,arg3); | |
11993 | ||
11994 | wxPyEndAllowThreads(__tstate); | |
11995 | if (PyErr_Occurred()) SWIG_fail; | |
11996 | } | |
11997 | Py_INCREF(Py_None); resultobj = Py_None; | |
11998 | return resultobj; | |
11999 | fail: | |
12000 | return NULL; | |
12001 | } | |
12002 | ||
12003 | ||
12004 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12005 | PyObject *resultobj; | |
12006 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12007 | int result; | |
12008 | PyObject * obj0 = 0 ; | |
12009 | char *kwnames[] = { | |
12010 | (char *) "self", NULL | |
12011 | }; | |
12012 | ||
12013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12015 | { | |
12016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12017 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12018 | ||
12019 | wxPyEndAllowThreads(__tstate); | |
12020 | if (PyErr_Occurred()) SWIG_fail; | |
12021 | } | |
8edf1c75 | 12022 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12023 | return resultobj; |
12024 | fail: | |
12025 | return NULL; | |
12026 | } | |
12027 | ||
12028 | ||
12029 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12030 | PyObject *resultobj; | |
12031 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12032 | int result; | |
12033 | PyObject * obj0 = 0 ; | |
12034 | char *kwnames[] = { | |
12035 | (char *) "self", NULL | |
12036 | }; | |
12037 | ||
12038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12040 | { | |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
8edf1c75 | 12047 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12048 | return resultobj; |
12049 | fail: | |
12050 | return NULL; | |
12051 | } | |
12052 | ||
12053 | ||
12054 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12055 | PyObject *resultobj; | |
12056 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12057 | int arg2 ; | |
12058 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12060 | char *kwnames[] = { |
12061 | (char *) "self",(char *) "minValue", NULL | |
12062 | }; | |
12063 | ||
8edf1c75 | 12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12066 | { |
12067 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12068 | if (PyErr_Occurred()) SWIG_fail; | |
12069 | } | |
d14a1e28 RD |
12070 | { |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12072 | (arg1)->SetMin(arg2); | |
12073 | ||
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | Py_INCREF(Py_None); resultobj = Py_None; | |
12078 | return resultobj; | |
12079 | fail: | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
12084 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12085 | PyObject *resultobj; | |
12086 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12087 | int arg2 ; | |
12088 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12089 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12090 | char *kwnames[] = { |
12091 | (char *) "self",(char *) "maxValue", NULL | |
12092 | }; | |
12093 | ||
8edf1c75 | 12094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12096 | { |
12097 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12098 | if (PyErr_Occurred()) SWIG_fail; | |
12099 | } | |
d14a1e28 RD |
12100 | { |
12101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12102 | (arg1)->SetMax(arg2); | |
12103 | ||
12104 | wxPyEndAllowThreads(__tstate); | |
12105 | if (PyErr_Occurred()) SWIG_fail; | |
12106 | } | |
12107 | Py_INCREF(Py_None); resultobj = Py_None; | |
12108 | return resultobj; | |
12109 | fail: | |
12110 | return NULL; | |
12111 | } | |
12112 | ||
12113 | ||
12114 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12115 | PyObject *resultobj; | |
12116 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12117 | int arg2 ; | |
12118 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12120 | char *kwnames[] = { |
12121 | (char *) "self",(char *) "lineSize", NULL | |
12122 | }; | |
12123 | ||
8edf1c75 | 12124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12126 | { |
12127 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
d14a1e28 RD |
12130 | { |
12131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12132 | (arg1)->SetLineSize(arg2); | |
12133 | ||
12134 | wxPyEndAllowThreads(__tstate); | |
12135 | if (PyErr_Occurred()) SWIG_fail; | |
12136 | } | |
12137 | Py_INCREF(Py_None); resultobj = Py_None; | |
12138 | return resultobj; | |
12139 | fail: | |
12140 | return NULL; | |
12141 | } | |
12142 | ||
12143 | ||
12144 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12145 | PyObject *resultobj; | |
12146 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12147 | int arg2 ; | |
12148 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12149 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12150 | char *kwnames[] = { |
12151 | (char *) "self",(char *) "pageSize", NULL | |
12152 | }; | |
12153 | ||
8edf1c75 | 12154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12156 | { |
12157 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12158 | if (PyErr_Occurred()) SWIG_fail; | |
12159 | } | |
d14a1e28 RD |
12160 | { |
12161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12162 | (arg1)->SetPageSize(arg2); | |
12163 | ||
12164 | wxPyEndAllowThreads(__tstate); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
12167 | Py_INCREF(Py_None); resultobj = Py_None; | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | return NULL; | |
12171 | } | |
12172 | ||
12173 | ||
12174 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12175 | PyObject *resultobj; | |
12176 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12177 | int result; | |
12178 | PyObject * obj0 = 0 ; | |
12179 | char *kwnames[] = { | |
12180 | (char *) "self", NULL | |
12181 | }; | |
12182 | ||
12183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12185 | { | |
12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12187 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12188 | ||
12189 | wxPyEndAllowThreads(__tstate); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
8edf1c75 | 12192 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12193 | return resultobj; |
12194 | fail: | |
12195 | return NULL; | |
12196 | } | |
12197 | ||
12198 | ||
12199 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12200 | PyObject *resultobj; | |
12201 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12202 | int result; | |
12203 | PyObject * obj0 = 0 ; | |
12204 | char *kwnames[] = { | |
12205 | (char *) "self", NULL | |
12206 | }; | |
12207 | ||
12208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12210 | { | |
12211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12212 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12213 | ||
12214 | wxPyEndAllowThreads(__tstate); | |
12215 | if (PyErr_Occurred()) SWIG_fail; | |
12216 | } | |
8edf1c75 | 12217 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12218 | return resultobj; |
12219 | fail: | |
12220 | return NULL; | |
12221 | } | |
12222 | ||
12223 | ||
12224 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12225 | PyObject *resultobj; | |
12226 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12227 | int arg2 ; | |
12228 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12230 | char *kwnames[] = { |
12231 | (char *) "self",(char *) "lenPixels", NULL | |
12232 | }; | |
12233 | ||
8edf1c75 | 12234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12236 | { |
12237 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12238 | if (PyErr_Occurred()) SWIG_fail; | |
12239 | } | |
d14a1e28 RD |
12240 | { |
12241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12242 | (arg1)->SetThumbLength(arg2); | |
12243 | ||
12244 | wxPyEndAllowThreads(__tstate); | |
12245 | if (PyErr_Occurred()) SWIG_fail; | |
12246 | } | |
12247 | Py_INCREF(Py_None); resultobj = Py_None; | |
12248 | return resultobj; | |
12249 | fail: | |
12250 | return NULL; | |
12251 | } | |
12252 | ||
12253 | ||
12254 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12255 | PyObject *resultobj; | |
12256 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12257 | int result; | |
12258 | PyObject * obj0 = 0 ; | |
12259 | char *kwnames[] = { | |
12260 | (char *) "self", NULL | |
12261 | }; | |
12262 | ||
12263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12265 | { | |
12266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12267 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12268 | ||
12269 | wxPyEndAllowThreads(__tstate); | |
12270 | if (PyErr_Occurred()) SWIG_fail; | |
12271 | } | |
8edf1c75 | 12272 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12273 | return resultobj; |
12274 | fail: | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
12279 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12280 | PyObject *resultobj; | |
12281 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12282 | int arg2 ; | |
8edf1c75 | 12283 | int arg3 = (int) 1 ; |
d14a1e28 | 12284 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12285 | PyObject * obj1 = 0 ; |
12286 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12287 | char *kwnames[] = { |
12288 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12289 | }; | |
12290 | ||
8edf1c75 | 12291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12293 | { |
12294 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12295 | if (PyErr_Occurred()) SWIG_fail; | |
12296 | } | |
12297 | if (obj2) { | |
12298 | { | |
12299 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | } | |
d14a1e28 RD |
12303 | { |
12304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12305 | (arg1)->SetTickFreq(arg2,arg3); | |
12306 | ||
12307 | wxPyEndAllowThreads(__tstate); | |
12308 | if (PyErr_Occurred()) SWIG_fail; | |
12309 | } | |
12310 | Py_INCREF(Py_None); resultobj = Py_None; | |
12311 | return resultobj; | |
12312 | fail: | |
12313 | return NULL; | |
12314 | } | |
12315 | ||
12316 | ||
12317 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12318 | PyObject *resultobj; | |
12319 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12320 | int result; | |
12321 | PyObject * obj0 = 0 ; | |
12322 | char *kwnames[] = { | |
12323 | (char *) "self", NULL | |
12324 | }; | |
12325 | ||
12326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12328 | { | |
12329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12330 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12331 | ||
12332 | wxPyEndAllowThreads(__tstate); | |
12333 | if (PyErr_Occurred()) SWIG_fail; | |
12334 | } | |
8edf1c75 | 12335 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12336 | return resultobj; |
12337 | fail: | |
12338 | return NULL; | |
12339 | } | |
12340 | ||
12341 | ||
12342 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12343 | PyObject *resultobj; | |
12344 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12345 | PyObject * obj0 = 0 ; | |
12346 | char *kwnames[] = { | |
12347 | (char *) "self", NULL | |
12348 | }; | |
12349 | ||
12350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12352 | { | |
12353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12354 | (arg1)->ClearTicks(); | |
12355 | ||
12356 | wxPyEndAllowThreads(__tstate); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
12359 | Py_INCREF(Py_None); resultobj = Py_None; | |
12360 | return resultobj; | |
12361 | fail: | |
12362 | return NULL; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12367 | PyObject *resultobj; | |
12368 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12369 | int arg2 ; | |
12370 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12372 | char *kwnames[] = { |
12373 | (char *) "self",(char *) "tickPos", NULL | |
12374 | }; | |
12375 | ||
8edf1c75 | 12376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12378 | { |
12379 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12380 | if (PyErr_Occurred()) SWIG_fail; | |
12381 | } | |
d14a1e28 RD |
12382 | { |
12383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12384 | (arg1)->SetTick(arg2); | |
12385 | ||
12386 | wxPyEndAllowThreads(__tstate); | |
12387 | if (PyErr_Occurred()) SWIG_fail; | |
12388 | } | |
12389 | Py_INCREF(Py_None); resultobj = Py_None; | |
12390 | return resultobj; | |
12391 | fail: | |
12392 | return NULL; | |
12393 | } | |
12394 | ||
12395 | ||
12396 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12397 | PyObject *resultobj; | |
12398 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12399 | PyObject * obj0 = 0 ; | |
12400 | char *kwnames[] = { | |
12401 | (char *) "self", NULL | |
12402 | }; | |
12403 | ||
12404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12406 | { | |
12407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12408 | (arg1)->ClearSel(); | |
12409 | ||
12410 | wxPyEndAllowThreads(__tstate); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
12413 | Py_INCREF(Py_None); resultobj = Py_None; | |
12414 | return resultobj; | |
12415 | fail: | |
12416 | return NULL; | |
12417 | } | |
12418 | ||
12419 | ||
12420 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12421 | PyObject *resultobj; | |
12422 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12423 | int result; | |
12424 | PyObject * obj0 = 0 ; | |
12425 | char *kwnames[] = { | |
12426 | (char *) "self", NULL | |
12427 | }; | |
12428 | ||
12429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12434 | ||
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
8edf1c75 | 12438 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12439 | return resultobj; |
12440 | fail: | |
12441 | return NULL; | |
12442 | } | |
12443 | ||
12444 | ||
12445 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12446 | PyObject *resultobj; | |
12447 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12448 | int result; | |
12449 | PyObject * obj0 = 0 ; | |
12450 | char *kwnames[] = { | |
12451 | (char *) "self", NULL | |
12452 | }; | |
12453 | ||
12454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12456 | { | |
12457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12458 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12459 | ||
12460 | wxPyEndAllowThreads(__tstate); | |
12461 | if (PyErr_Occurred()) SWIG_fail; | |
12462 | } | |
8edf1c75 | 12463 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12464 | return resultobj; |
12465 | fail: | |
12466 | return NULL; | |
12467 | } | |
12468 | ||
12469 | ||
12470 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12471 | PyObject *resultobj; | |
12472 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12473 | int arg2 ; | |
12474 | int arg3 ; | |
12475 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12476 | PyObject * obj1 = 0 ; |
12477 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12478 | char *kwnames[] = { |
12479 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12480 | }; | |
12481 | ||
8edf1c75 | 12482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12484 | { |
12485 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12486 | if (PyErr_Occurred()) SWIG_fail; | |
12487 | } | |
12488 | { | |
12489 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
12491 | } | |
d14a1e28 RD |
12492 | { |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | (arg1)->SetSelection(arg2,arg3); | |
12495 | ||
12496 | wxPyEndAllowThreads(__tstate); | |
12497 | if (PyErr_Occurred()) SWIG_fail; | |
12498 | } | |
12499 | Py_INCREF(Py_None); resultobj = Py_None; | |
12500 | return resultobj; | |
12501 | fail: | |
12502 | return NULL; | |
12503 | } | |
12504 | ||
12505 | ||
12506 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12507 | PyObject *obj; | |
12508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12509 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12510 | Py_INCREF(obj); | |
12511 | return Py_BuildValue((char *)""); | |
12512 | } | |
8edf1c75 | 12513 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
12514 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12515 | return 1; | |
12516 | } | |
12517 | ||
12518 | ||
12519 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12520 | PyObject *pyobj; | |
12521 | ||
12522 | { | |
12523 | #if wxUSE_UNICODE | |
12524 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12525 | #else | |
12526 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12527 | #endif | |
12528 | } | |
12529 | return pyobj; | |
12530 | } | |
12531 | ||
12532 | ||
d14a1e28 RD |
12533 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12534 | PyObject *resultobj; | |
12535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12536 | int arg2 ; |
d14a1e28 RD |
12537 | wxString *arg3 = 0 ; |
12538 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12539 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12540 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12541 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12542 | long arg6 = (long) 0 ; | |
12543 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12544 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12545 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12546 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12547 | wxToggleButton *result; | |
423f194a | 12548 | bool temp3 = False ; |
d14a1e28 RD |
12549 | wxPoint temp4 ; |
12550 | wxSize temp5 ; | |
423f194a | 12551 | bool temp8 = False ; |
d14a1e28 | 12552 | PyObject * obj0 = 0 ; |
8edf1c75 | 12553 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12554 | PyObject * obj2 = 0 ; |
12555 | PyObject * obj3 = 0 ; | |
12556 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12557 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12558 | PyObject * obj6 = 0 ; |
12559 | PyObject * obj7 = 0 ; | |
12560 | char *kwnames[] = { | |
12561 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12562 | }; | |
12563 | ||
8edf1c75 | 12564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 12565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12566 | { |
12567 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
d14a1e28 RD |
12570 | { |
12571 | arg3 = wxString_in_helper(obj2); | |
12572 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12573 | temp3 = True; |
d14a1e28 RD |
12574 | } |
12575 | if (obj3) { | |
12576 | { | |
12577 | arg4 = &temp4; | |
12578 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12579 | } | |
12580 | } | |
12581 | if (obj4) { | |
12582 | { | |
12583 | arg5 = &temp5; | |
12584 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12585 | } | |
12586 | } | |
8edf1c75 RD |
12587 | if (obj5) { |
12588 | { | |
12589 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12590 | if (PyErr_Occurred()) SWIG_fail; | |
12591 | } | |
12592 | } | |
d14a1e28 RD |
12593 | if (obj6) { |
12594 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12595 | if (arg7 == NULL) { | |
12596 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12597 | } | |
12598 | } | |
12599 | if (obj7) { | |
12600 | { | |
12601 | arg8 = wxString_in_helper(obj7); | |
12602 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 12603 | temp8 = True; |
d14a1e28 RD |
12604 | } |
12605 | } | |
12606 | { | |
12607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12608 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12609 | ||
12610 | wxPyEndAllowThreads(__tstate); | |
12611 | if (PyErr_Occurred()) SWIG_fail; | |
12612 | } | |
12613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12614 | { | |
12615 | if (temp3) | |
12616 | delete arg3; | |
12617 | } | |
12618 | { | |
12619 | if (temp8) | |
12620 | delete arg8; | |
12621 | } | |
12622 | return resultobj; | |
12623 | fail: | |
12624 | { | |
12625 | if (temp3) | |
12626 | delete arg3; | |
12627 | } | |
12628 | { | |
12629 | if (temp8) | |
12630 | delete arg8; | |
12631 | } | |
12632 | return NULL; | |
12633 | } | |
12634 | ||
12635 | ||
12636 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12637 | PyObject *resultobj; | |
12638 | wxToggleButton *result; | |
12639 | char *kwnames[] = { | |
12640 | NULL | |
12641 | }; | |
12642 | ||
12643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12644 | { | |
12645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12646 | result = (wxToggleButton *)new wxToggleButton(); | |
12647 | ||
12648 | wxPyEndAllowThreads(__tstate); | |
12649 | if (PyErr_Occurred()) SWIG_fail; | |
12650 | } | |
12651 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12652 | return resultobj; | |
12653 | fail: | |
12654 | return NULL; | |
12655 | } | |
12656 | ||
12657 | ||
12658 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
12659 | PyObject *obj; | |
12660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12661 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
12662 | Py_INCREF(obj); | |
12663 | return Py_BuildValue((char *)""); | |
12664 | } | |
8edf1c75 | 12665 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
cbd72d4f RD |
12666 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
12667 | return 1; | |
12668 | } | |
12669 | ||
12670 | ||
12671 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
12672 | PyObject *pyobj; | |
12673 | ||
12674 | { | |
12675 | #if wxUSE_UNICODE | |
12676 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12677 | #else | |
12678 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12679 | #endif | |
12680 | } | |
12681 | return pyobj; | |
12682 | } | |
12683 | ||
12684 | ||
d14a1e28 RD |
12685 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
12686 | PyObject *resultobj; | |
12687 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12688 | size_t result; | |
12689 | PyObject * obj0 = 0 ; | |
12690 | char *kwnames[] = { | |
12691 | (char *) "self", NULL | |
12692 | }; | |
12693 | ||
12694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
12695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12696 | { | |
12697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12698 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
12699 | ||
12700 | wxPyEndAllowThreads(__tstate); | |
12701 | if (PyErr_Occurred()) SWIG_fail; | |
12702 | } | |
8edf1c75 | 12703 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
12704 | return resultobj; |
12705 | fail: | |
12706 | return NULL; | |
12707 | } | |
12708 | ||
12709 | ||
12710 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12711 | PyObject *resultobj; | |
12712 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12713 | size_t arg2 ; | |
12714 | wxWindow *result; | |
12715 | PyObject * obj0 = 0 ; | |
12716 | PyObject * obj1 = 0 ; | |
12717 | char *kwnames[] = { | |
12718 | (char *) "self",(char *) "n", NULL | |
12719 | }; | |
12720 | ||
12721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
12722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12723 | { |
8edf1c75 | 12724 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12725 | if (PyErr_Occurred()) SWIG_fail; |
12726 | } | |
d14a1e28 RD |
12727 | { |
12728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12729 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
12730 | ||
12731 | wxPyEndAllowThreads(__tstate); | |
12732 | if (PyErr_Occurred()) SWIG_fail; | |
12733 | } | |
12734 | { | |
12735 | resultobj = wxPyMake_wxObject(result); | |
12736 | } | |
12737 | return resultobj; | |
12738 | fail: | |
12739 | return NULL; | |
12740 | } | |
12741 | ||
12742 | ||
12743 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12744 | PyObject *resultobj; | |
12745 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12746 | int result; | |
12747 | PyObject * obj0 = 0 ; | |
12748 | char *kwnames[] = { | |
12749 | (char *) "self", NULL | |
12750 | }; | |
12751 | ||
12752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
12753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12754 | { | |
12755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12756 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
12757 | ||
12758 | wxPyEndAllowThreads(__tstate); | |
12759 | if (PyErr_Occurred()) SWIG_fail; | |
12760 | } | |
8edf1c75 | 12761 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12762 | return resultobj; |
12763 | fail: | |
12764 | return NULL; | |
12765 | } | |
12766 | ||
12767 | ||
12768 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12769 | PyObject *resultobj; | |
12770 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12771 | size_t arg2 ; | |
12772 | wxString *arg3 = 0 ; | |
12773 | bool result; | |
423f194a | 12774 | bool temp3 = False ; |
d14a1e28 RD |
12775 | PyObject * obj0 = 0 ; |
12776 | PyObject * obj1 = 0 ; | |
12777 | PyObject * obj2 = 0 ; | |
12778 | char *kwnames[] = { | |
12779 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
12780 | }; | |
12781 | ||
12782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12784 | { |
8edf1c75 | 12785 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12786 | if (PyErr_Occurred()) SWIG_fail; |
12787 | } | |
d14a1e28 RD |
12788 | { |
12789 | arg3 = wxString_in_helper(obj2); | |
12790 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12791 | temp3 = True; |
d14a1e28 RD |
12792 | } |
12793 | { | |
12794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12795 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
12796 | ||
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
02a34c4c | 12800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12801 | { |
12802 | if (temp3) | |
12803 | delete arg3; | |
12804 | } | |
12805 | return resultobj; | |
12806 | fail: | |
12807 | { | |
12808 | if (temp3) | |
12809 | delete arg3; | |
12810 | } | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
12815 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12816 | PyObject *resultobj; | |
12817 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12818 | size_t arg2 ; | |
12819 | wxString result; | |
12820 | PyObject * obj0 = 0 ; | |
12821 | PyObject * obj1 = 0 ; | |
12822 | char *kwnames[] = { | |
12823 | (char *) "self",(char *) "n", NULL | |
12824 | }; | |
12825 | ||
12826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
12827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12828 | { |
8edf1c75 | 12829 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12830 | if (PyErr_Occurred()) SWIG_fail; |
12831 | } | |
d14a1e28 RD |
12832 | { |
12833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12834 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
12835 | ||
12836 | wxPyEndAllowThreads(__tstate); | |
12837 | if (PyErr_Occurred()) SWIG_fail; | |
12838 | } | |
12839 | { | |
12840 | #if wxUSE_UNICODE | |
12841 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12842 | #else | |
12843 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12844 | #endif | |
12845 | } | |
12846 | return resultobj; | |
12847 | fail: | |
12848 | return NULL; | |
12849 | } | |
12850 | ||
12851 | ||
12852 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12853 | PyObject *resultobj; | |
12854 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12855 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12856 | PyObject * obj0 = 0 ; | |
12857 | PyObject * obj1 = 0 ; | |
12858 | char *kwnames[] = { | |
12859 | (char *) "self",(char *) "imageList", NULL | |
12860 | }; | |
12861 | ||
12862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
12863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12864 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12865 | { | |
12866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12867 | (arg1)->SetImageList(arg2); | |
12868 | ||
12869 | wxPyEndAllowThreads(__tstate); | |
12870 | if (PyErr_Occurred()) SWIG_fail; | |
12871 | } | |
12872 | Py_INCREF(Py_None); resultobj = Py_None; | |
12873 | return resultobj; | |
12874 | fail: | |
12875 | return NULL; | |
12876 | } | |
12877 | ||
12878 | ||
12879 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12880 | PyObject *resultobj; | |
12881 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12882 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12883 | PyObject * obj0 = 0 ; | |
12884 | PyObject * obj1 = 0 ; | |
12885 | char *kwnames[] = { | |
12886 | (char *) "self",(char *) "imageList", NULL | |
12887 | }; | |
12888 | ||
12889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
12890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 12891 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
12892 | { |
12893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12894 | (arg1)->AssignImageList(arg2); | |
12895 | ||
12896 | wxPyEndAllowThreads(__tstate); | |
12897 | if (PyErr_Occurred()) SWIG_fail; | |
12898 | } | |
12899 | Py_INCREF(Py_None); resultobj = Py_None; | |
12900 | return resultobj; | |
12901 | fail: | |
12902 | return NULL; | |
12903 | } | |
12904 | ||
12905 | ||
12906 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12907 | PyObject *resultobj; | |
12908 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12909 | wxImageList *result; | |
12910 | PyObject * obj0 = 0 ; | |
12911 | char *kwnames[] = { | |
12912 | (char *) "self", NULL | |
12913 | }; | |
12914 | ||
12915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
12916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12917 | { | |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
12920 | ||
12921 | wxPyEndAllowThreads(__tstate); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
12924 | { | |
12925 | resultobj = wxPyMake_wxObject(result); | |
12926 | } | |
12927 | return resultobj; | |
12928 | fail: | |
12929 | return NULL; | |
12930 | } | |
12931 | ||
12932 | ||
12933 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12934 | PyObject *resultobj; | |
12935 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12936 | size_t arg2 ; | |
12937 | int result; | |
12938 | PyObject * obj0 = 0 ; | |
12939 | PyObject * obj1 = 0 ; | |
12940 | char *kwnames[] = { | |
12941 | (char *) "self",(char *) "n", NULL | |
12942 | }; | |
12943 | ||
12944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
12945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12946 | { |
8edf1c75 | 12947 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12948 | if (PyErr_Occurred()) SWIG_fail; |
12949 | } | |
d14a1e28 RD |
12950 | { |
12951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12952 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
12953 | ||
12954 | wxPyEndAllowThreads(__tstate); | |
12955 | if (PyErr_Occurred()) SWIG_fail; | |
12956 | } | |
8edf1c75 | 12957 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12958 | return resultobj; |
12959 | fail: | |
12960 | return NULL; | |
12961 | } | |
12962 | ||
12963 | ||
12964 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12965 | PyObject *resultobj; | |
12966 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12967 | size_t arg2 ; | |
12968 | int arg3 ; | |
12969 | bool result; | |
12970 | PyObject * obj0 = 0 ; | |
12971 | PyObject * obj1 = 0 ; | |
8edf1c75 | 12972 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12973 | char *kwnames[] = { |
12974 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
12975 | }; | |
12976 | ||
8edf1c75 | 12977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 12979 | { |
8edf1c75 RD |
12980 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | { | |
12984 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
12985 | if (PyErr_Occurred()) SWIG_fail; |
12986 | } | |
d14a1e28 RD |
12987 | { |
12988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12989 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
12990 | ||
12991 | wxPyEndAllowThreads(__tstate); | |
12992 | if (PyErr_Occurred()) SWIG_fail; | |
12993 | } | |
02a34c4c | 12994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12995 | return resultobj; |
12996 | fail: | |
12997 | return NULL; | |
12998 | } | |
12999 | ||
13000 | ||
13001 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13002 | PyObject *resultobj; | |
13003 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13004 | wxSize *arg2 = 0 ; | |
13005 | wxSize temp2 ; | |
13006 | PyObject * obj0 = 0 ; | |
13007 | PyObject * obj1 = 0 ; | |
13008 | char *kwnames[] = { | |
13009 | (char *) "self",(char *) "size", NULL | |
13010 | }; | |
13011 | ||
13012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13014 | { | |
13015 | arg2 = &temp2; | |
13016 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13017 | } | |
13018 | { | |
13019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13020 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13021 | ||
13022 | wxPyEndAllowThreads(__tstate); | |
13023 | if (PyErr_Occurred()) SWIG_fail; | |
13024 | } | |
13025 | Py_INCREF(Py_None); resultobj = Py_None; | |
13026 | return resultobj; | |
13027 | fail: | |
13028 | return NULL; | |
13029 | } | |
13030 | ||
13031 | ||
13032 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13033 | PyObject *resultobj; | |
13034 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13035 | wxSize *arg2 = 0 ; | |
13036 | wxSize result; | |
13037 | wxSize temp2 ; | |
13038 | PyObject * obj0 = 0 ; | |
13039 | PyObject * obj1 = 0 ; | |
13040 | char *kwnames[] = { | |
13041 | (char *) "self",(char *) "sizePage", NULL | |
13042 | }; | |
13043 | ||
13044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13046 | { | |
13047 | arg2 = &temp2; | |
13048 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13049 | } | |
13050 | { | |
13051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13052 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13053 | ||
13054 | wxPyEndAllowThreads(__tstate); | |
13055 | if (PyErr_Occurred()) SWIG_fail; | |
13056 | } | |
13057 | { | |
13058 | wxSize * resultptr; | |
13059 | resultptr = new wxSize((wxSize &) result); | |
13060 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13061 | } | |
13062 | return resultobj; | |
13063 | fail: | |
13064 | return NULL; | |
13065 | } | |
13066 | ||
13067 | ||
13068 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13069 | PyObject *resultobj; | |
13070 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13071 | size_t arg2 ; | |
13072 | bool result; | |
13073 | PyObject * obj0 = 0 ; | |
13074 | PyObject * obj1 = 0 ; | |
13075 | char *kwnames[] = { | |
13076 | (char *) "self",(char *) "n", NULL | |
13077 | }; | |
13078 | ||
13079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13081 | { |
8edf1c75 | 13082 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13083 | if (PyErr_Occurred()) SWIG_fail; |
13084 | } | |
d14a1e28 RD |
13085 | { |
13086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13087 | result = (bool)(arg1)->DeletePage(arg2); | |
13088 | ||
13089 | wxPyEndAllowThreads(__tstate); | |
13090 | if (PyErr_Occurred()) SWIG_fail; | |
13091 | } | |
02a34c4c | 13092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13093 | return resultobj; |
13094 | fail: | |
13095 | return NULL; | |
13096 | } | |
13097 | ||
13098 | ||
13099 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13100 | PyObject *resultobj; | |
13101 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13102 | size_t arg2 ; | |
13103 | bool result; | |
13104 | PyObject * obj0 = 0 ; | |
13105 | PyObject * obj1 = 0 ; | |
13106 | char *kwnames[] = { | |
13107 | (char *) "self",(char *) "n", NULL | |
13108 | }; | |
13109 | ||
13110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13112 | { |
8edf1c75 | 13113 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13114 | if (PyErr_Occurred()) SWIG_fail; |
13115 | } | |
d14a1e28 RD |
13116 | { |
13117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13118 | result = (bool)(arg1)->RemovePage(arg2); | |
13119 | ||
13120 | wxPyEndAllowThreads(__tstate); | |
13121 | if (PyErr_Occurred()) SWIG_fail; | |
13122 | } | |
02a34c4c | 13123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13124 | return resultobj; |
13125 | fail: | |
13126 | return NULL; | |
13127 | } | |
13128 | ||
13129 | ||
13130 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13131 | PyObject *resultobj; | |
13132 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13133 | bool result; | |
13134 | PyObject * obj0 = 0 ; | |
13135 | char *kwnames[] = { | |
13136 | (char *) "self", NULL | |
13137 | }; | |
13138 | ||
13139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13141 | { | |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | result = (bool)(arg1)->DeleteAllPages(); | |
13144 | ||
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
02a34c4c | 13148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13149 | return resultobj; |
13150 | fail: | |
13151 | return NULL; | |
13152 | } | |
13153 | ||
13154 | ||
13155 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13156 | PyObject *resultobj; | |
13157 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13158 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13159 | wxString *arg3 = 0 ; | |
423f194a | 13160 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13161 | int arg5 = (int) -1 ; |
13162 | bool result; | |
423f194a | 13163 | bool temp3 = False ; |
d14a1e28 RD |
13164 | PyObject * obj0 = 0 ; |
13165 | PyObject * obj1 = 0 ; | |
13166 | PyObject * obj2 = 0 ; | |
13167 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13168 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13169 | char *kwnames[] = { |
13170 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13171 | }; | |
13172 | ||
8edf1c75 | 13173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13175 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13176 | { | |
13177 | arg3 = wxString_in_helper(obj2); | |
13178 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13179 | temp3 = True; |
d14a1e28 RD |
13180 | } |
13181 | if (obj3) { | |
2dbef272 | 13182 | { |
8edf1c75 RD |
13183 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
13184 | if (PyErr_Occurred()) SWIG_fail; | |
13185 | } | |
13186 | } | |
13187 | if (obj4) { | |
13188 | { | |
13189 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
2dbef272 RD |
13190 | if (PyErr_Occurred()) SWIG_fail; |
13191 | } | |
d14a1e28 RD |
13192 | } |
13193 | { | |
13194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13195 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13196 | ||
13197 | wxPyEndAllowThreads(__tstate); | |
13198 | if (PyErr_Occurred()) SWIG_fail; | |
13199 | } | |
02a34c4c | 13200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13201 | { |
13202 | if (temp3) | |
13203 | delete arg3; | |
13204 | } | |
13205 | return resultobj; | |
13206 | fail: | |
13207 | { | |
13208 | if (temp3) | |
13209 | delete arg3; | |
13210 | } | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
13215 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13216 | PyObject *resultobj; | |
13217 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13218 | size_t arg2 ; | |
13219 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13220 | wxString *arg4 = 0 ; | |
423f194a | 13221 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13222 | int arg6 = (int) -1 ; |
13223 | bool result; | |
423f194a | 13224 | bool temp4 = False ; |
d14a1e28 RD |
13225 | PyObject * obj0 = 0 ; |
13226 | PyObject * obj1 = 0 ; | |
13227 | PyObject * obj2 = 0 ; | |
13228 | PyObject * obj3 = 0 ; | |
13229 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13230 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13231 | char *kwnames[] = { |
13232 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13233 | }; | |
13234 | ||
8edf1c75 | 13235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 13237 | { |
8edf1c75 | 13238 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13239 | if (PyErr_Occurred()) SWIG_fail; |
13240 | } | |
d14a1e28 RD |
13241 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13242 | { | |
13243 | arg4 = wxString_in_helper(obj3); | |
13244 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13245 | temp4 = True; |
d14a1e28 RD |
13246 | } |
13247 | if (obj4) { | |
2dbef272 | 13248 | { |
8edf1c75 RD |
13249 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
13251 | } | |
13252 | } | |
13253 | if (obj5) { | |
13254 | { | |
13255 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2dbef272 RD |
13256 | if (PyErr_Occurred()) SWIG_fail; |
13257 | } | |
d14a1e28 RD |
13258 | } |
13259 | { | |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13262 | ||
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
02a34c4c | 13266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13267 | { |
13268 | if (temp4) | |
13269 | delete arg4; | |
13270 | } | |
13271 | return resultobj; | |
13272 | fail: | |
13273 | { | |
13274 | if (temp4) | |
13275 | delete arg4; | |
13276 | } | |
13277 | return NULL; | |
13278 | } | |
13279 | ||
13280 | ||
13281 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13282 | PyObject *resultobj; | |
13283 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13284 | size_t arg2 ; | |
13285 | int result; | |
13286 | PyObject * obj0 = 0 ; | |
13287 | PyObject * obj1 = 0 ; | |
13288 | char *kwnames[] = { | |
13289 | (char *) "self",(char *) "n", NULL | |
13290 | }; | |
13291 | ||
13292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13294 | { |
8edf1c75 | 13295 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13296 | if (PyErr_Occurred()) SWIG_fail; |
13297 | } | |
d14a1e28 RD |
13298 | { |
13299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13300 | result = (int)(arg1)->SetSelection(arg2); | |
13301 | ||
13302 | wxPyEndAllowThreads(__tstate); | |
13303 | if (PyErr_Occurred()) SWIG_fail; | |
13304 | } | |
8edf1c75 | 13305 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13306 | return resultobj; |
13307 | fail: | |
13308 | return NULL; | |
13309 | } | |
13310 | ||
13311 | ||
13312 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13313 | PyObject *resultobj; | |
13314 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13315 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13316 | PyObject * obj0 = 0 ; |
13317 | PyObject * obj1 = 0 ; | |
13318 | char *kwnames[] = { | |
13319 | (char *) "self",(char *) "forward", NULL | |
13320 | }; | |
13321 | ||
13322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13324 | if (obj1) { | |
2dbef272 | 13325 | { |
8edf1c75 | 13326 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
13327 | if (PyErr_Occurred()) SWIG_fail; |
13328 | } | |
d14a1e28 RD |
13329 | } |
13330 | { | |
13331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13332 | (arg1)->AdvanceSelection(arg2); | |
13333 | ||
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | Py_INCREF(Py_None); resultobj = Py_None; | |
13338 | return resultobj; | |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
13344 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13345 | PyObject *obj; | |
13346 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13347 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13348 | Py_INCREF(obj); | |
13349 | return Py_BuildValue((char *)""); | |
13350 | } | |
13351 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13352 | PyObject *resultobj; | |
13353 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13354 | int arg2 = (int) 0 ; | |
13355 | int arg3 = (int) -1 ; | |
13356 | int arg4 = (int) -1 ; | |
13357 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13358 | PyObject * obj0 = 0 ; |
13359 | PyObject * obj1 = 0 ; | |
13360 | PyObject * obj2 = 0 ; | |
13361 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13362 | char *kwnames[] = { |
13363 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13364 | }; | |
13365 | ||
8edf1c75 RD |
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13367 | if (obj0) { | |
13368 | { | |
13369 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13370 | if (PyErr_Occurred()) SWIG_fail; | |
13371 | } | |
13372 | } | |
13373 | if (obj1) { | |
13374 | { | |
13375 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13376 | if (PyErr_Occurred()) SWIG_fail; | |
13377 | } | |
13378 | } | |
13379 | if (obj2) { | |
13380 | { | |
13381 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13382 | if (PyErr_Occurred()) SWIG_fail; | |
13383 | } | |
13384 | } | |
13385 | if (obj3) { | |
13386 | { | |
13387 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | } | |
d14a1e28 RD |
13391 | { |
13392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13393 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13394 | ||
13395 | wxPyEndAllowThreads(__tstate); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13399 | return resultobj; | |
13400 | fail: | |
13401 | return NULL; | |
13402 | } | |
13403 | ||
13404 | ||
13405 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13406 | PyObject *resultobj; | |
13407 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13408 | int result; | |
13409 | PyObject * obj0 = 0 ; | |
13410 | char *kwnames[] = { | |
13411 | (char *) "self", NULL | |
13412 | }; | |
13413 | ||
13414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13416 | { | |
13417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13418 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13419 | ||
13420 | wxPyEndAllowThreads(__tstate); | |
13421 | if (PyErr_Occurred()) SWIG_fail; | |
13422 | } | |
8edf1c75 | 13423 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13424 | return resultobj; |
13425 | fail: | |
13426 | return NULL; | |
13427 | } | |
13428 | ||
13429 | ||
13430 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13431 | PyObject *resultobj; | |
13432 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13433 | int arg2 ; | |
13434 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13435 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13436 | char *kwnames[] = { |
13437 | (char *) "self",(char *) "nSel", NULL | |
13438 | }; | |
13439 | ||
8edf1c75 | 13440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13442 | { |
13443 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13444 | if (PyErr_Occurred()) SWIG_fail; | |
13445 | } | |
d14a1e28 RD |
13446 | { |
13447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13448 | (arg1)->SetSelection(arg2); | |
13449 | ||
13450 | wxPyEndAllowThreads(__tstate); | |
13451 | if (PyErr_Occurred()) SWIG_fail; | |
13452 | } | |
13453 | Py_INCREF(Py_None); resultobj = Py_None; | |
13454 | return resultobj; | |
13455 | fail: | |
13456 | return NULL; | |
13457 | } | |
13458 | ||
13459 | ||
13460 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13461 | PyObject *resultobj; | |
13462 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13463 | int result; | |
13464 | PyObject * obj0 = 0 ; | |
13465 | char *kwnames[] = { | |
13466 | (char *) "self", NULL | |
13467 | }; | |
13468 | ||
13469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13471 | { | |
13472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13473 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13474 | ||
13475 | wxPyEndAllowThreads(__tstate); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | } | |
8edf1c75 | 13478 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13479 | return resultobj; |
13480 | fail: | |
13481 | return NULL; | |
13482 | } | |
13483 | ||
13484 | ||
13485 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13486 | PyObject *resultobj; | |
13487 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13488 | int arg2 ; | |
13489 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13491 | char *kwnames[] = { |
13492 | (char *) "self",(char *) "nOldSel", NULL | |
13493 | }; | |
13494 | ||
8edf1c75 | 13495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13497 | { |
13498 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13499 | if (PyErr_Occurred()) SWIG_fail; | |
13500 | } | |
d14a1e28 RD |
13501 | { |
13502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13503 | (arg1)->SetOldSelection(arg2); | |
13504 | ||
13505 | wxPyEndAllowThreads(__tstate); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
13507 | } | |
13508 | Py_INCREF(Py_None); resultobj = Py_None; | |
13509 | return resultobj; | |
13510 | fail: | |
13511 | return NULL; | |
13512 | } | |
13513 | ||
13514 | ||
13515 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
13516 | PyObject *obj; | |
13517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13518 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
13519 | Py_INCREF(obj); | |
13520 | return Py_BuildValue((char *)""); | |
13521 | } | |
13522 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13523 | PyObject *resultobj; | |
13524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 13525 | int arg2 ; |
d14a1e28 RD |
13526 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
13527 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13528 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13529 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13530 | long arg5 = (long) 0 ; | |
13531 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
13532 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13533 | wxNotebook *result; | |
13534 | wxPoint temp3 ; | |
13535 | wxSize temp4 ; | |
423f194a | 13536 | bool temp6 = False ; |
d14a1e28 | 13537 | PyObject * obj0 = 0 ; |
8edf1c75 | 13538 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13539 | PyObject * obj2 = 0 ; |
13540 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13541 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13542 | PyObject * obj5 = 0 ; |
13543 | char *kwnames[] = { | |
13544 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13545 | }; | |
13546 | ||
8edf1c75 | 13547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13549 | { |
13550 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13551 | if (PyErr_Occurred()) SWIG_fail; | |
13552 | } | |
d14a1e28 RD |
13553 | if (obj2) { |
13554 | { | |
13555 | arg3 = &temp3; | |
13556 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13557 | } | |
13558 | } | |
13559 | if (obj3) { | |
13560 | { | |
13561 | arg4 = &temp4; | |
13562 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13563 | } | |
13564 | } | |
8edf1c75 RD |
13565 | if (obj4) { |
13566 | { | |
13567 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13568 | if (PyErr_Occurred()) SWIG_fail; | |
13569 | } | |
13570 | } | |
d14a1e28 RD |
13571 | if (obj5) { |
13572 | { | |
13573 | arg6 = wxString_in_helper(obj5); | |
13574 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 13575 | temp6 = True; |
d14a1e28 RD |
13576 | } |
13577 | } | |
13578 | { | |
13579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13580 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13581 | ||
13582 | wxPyEndAllowThreads(__tstate); | |
13583 | if (PyErr_Occurred()) SWIG_fail; | |
13584 | } | |
13585 | { | |
13586 | resultobj = wxPyMake_wxObject(result); | |
13587 | } | |
13588 | { | |
13589 | if (temp6) | |
13590 | delete arg6; | |
13591 | } | |
13592 | return resultobj; | |
13593 | fail: | |
13594 | { | |
13595 | if (temp6) | |
13596 | delete arg6; | |
13597 | } | |
13598 | return NULL; | |
13599 | } | |
13600 | ||
13601 | ||
13602 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13603 | PyObject *resultobj; | |
13604 | wxNotebook *result; | |
13605 | char *kwnames[] = { | |
13606 | NULL | |
13607 | }; | |
13608 | ||
13609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
13610 | { | |
13611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13612 | result = (wxNotebook *)new wxNotebook(); | |
13613 | ||
13614 | wxPyEndAllowThreads(__tstate); | |
13615 | if (PyErr_Occurred()) SWIG_fail; | |
13616 | } | |
13617 | { | |
13618 | resultobj = wxPyMake_wxObject(result); | |
13619 | } | |
13620 | return resultobj; | |
13621 | fail: | |
13622 | return NULL; | |
13623 | } | |
13624 | ||
13625 | ||
13626 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13627 | PyObject *resultobj; | |
13628 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13629 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 13630 | int arg3 ; |
d14a1e28 RD |
13631 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13632 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13633 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13634 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13635 | long arg6 = (long) 0 ; | |
13636 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
13637 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13638 | bool result; | |
13639 | wxPoint temp4 ; | |
13640 | wxSize temp5 ; | |
423f194a | 13641 | bool temp7 = False ; |
d14a1e28 RD |
13642 | PyObject * obj0 = 0 ; |
13643 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13644 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13645 | PyObject * obj3 = 0 ; |
13646 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13647 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13648 | PyObject * obj6 = 0 ; |
13649 | char *kwnames[] = { | |
13650 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13651 | }; | |
13652 | ||
8edf1c75 | 13653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
13654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13655 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
13656 | { |
13657 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13658 | if (PyErr_Occurred()) SWIG_fail; | |
13659 | } | |
d14a1e28 RD |
13660 | if (obj3) { |
13661 | { | |
13662 | arg4 = &temp4; | |
13663 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13664 | } | |
13665 | } | |
13666 | if (obj4) { | |
13667 | { | |
13668 | arg5 = &temp5; | |
13669 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13670 | } | |
13671 | } | |
8edf1c75 RD |
13672 | if (obj5) { |
13673 | { | |
13674 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
13675 | if (PyErr_Occurred()) SWIG_fail; | |
13676 | } | |
13677 | } | |
d14a1e28 RD |
13678 | if (obj6) { |
13679 | { | |
13680 | arg7 = wxString_in_helper(obj6); | |
13681 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 13682 | temp7 = True; |
d14a1e28 RD |
13683 | } |
13684 | } | |
13685 | { | |
13686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13687 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13688 | ||
13689 | wxPyEndAllowThreads(__tstate); | |
13690 | if (PyErr_Occurred()) SWIG_fail; | |
13691 | } | |
02a34c4c | 13692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13693 | { |
13694 | if (temp7) | |
13695 | delete arg7; | |
13696 | } | |
13697 | return resultobj; | |
13698 | fail: | |
13699 | { | |
13700 | if (temp7) | |
13701 | delete arg7; | |
13702 | } | |
13703 | return NULL; | |
13704 | } | |
13705 | ||
13706 | ||
13707 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13708 | PyObject *resultobj; | |
13709 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13710 | int result; | |
13711 | PyObject * obj0 = 0 ; | |
13712 | char *kwnames[] = { | |
13713 | (char *) "self", NULL | |
13714 | }; | |
13715 | ||
13716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
13717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13718 | { | |
13719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13720 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
13721 | ||
13722 | wxPyEndAllowThreads(__tstate); | |
13723 | if (PyErr_Occurred()) SWIG_fail; | |
13724 | } | |
8edf1c75 | 13725 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13726 | return resultobj; |
13727 | fail: | |
13728 | return NULL; | |
13729 | } | |
13730 | ||
13731 | ||
13732 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13733 | PyObject *resultobj; | |
13734 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13735 | wxSize *arg2 = 0 ; | |
13736 | wxSize temp2 ; | |
13737 | PyObject * obj0 = 0 ; | |
13738 | PyObject * obj1 = 0 ; | |
13739 | char *kwnames[] = { | |
13740 | (char *) "self",(char *) "padding", NULL | |
13741 | }; | |
13742 | ||
13743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
13744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13745 | { | |
13746 | arg2 = &temp2; | |
13747 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13748 | } | |
13749 | { | |
13750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13751 | (arg1)->SetPadding((wxSize const &)*arg2); | |
13752 | ||
13753 | wxPyEndAllowThreads(__tstate); | |
13754 | if (PyErr_Occurred()) SWIG_fail; | |
13755 | } | |
13756 | Py_INCREF(Py_None); resultobj = Py_None; | |
13757 | return resultobj; | |
13758 | fail: | |
13759 | return NULL; | |
13760 | } | |
13761 | ||
13762 | ||
13763 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13764 | PyObject *resultobj; | |
13765 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13766 | wxSize *arg2 = 0 ; | |
13767 | wxSize temp2 ; | |
13768 | PyObject * obj0 = 0 ; | |
13769 | PyObject * obj1 = 0 ; | |
13770 | char *kwnames[] = { | |
13771 | (char *) "self",(char *) "sz", NULL | |
13772 | }; | |
13773 | ||
13774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
13775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13776 | { | |
13777 | arg2 = &temp2; | |
13778 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13779 | } | |
13780 | { | |
13781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13782 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
13783 | ||
13784 | wxPyEndAllowThreads(__tstate); | |
13785 | if (PyErr_Occurred()) SWIG_fail; | |
13786 | } | |
13787 | Py_INCREF(Py_None); resultobj = Py_None; | |
13788 | return resultobj; | |
13789 | fail: | |
13790 | return NULL; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13795 | PyObject *resultobj; | |
13796 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13797 | wxPoint *arg2 = 0 ; | |
13798 | long *arg3 = (long *) 0 ; | |
13799 | int result; | |
13800 | wxPoint temp2 ; | |
13801 | long temp3 ; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | PyObject * obj1 = 0 ; | |
13804 | char *kwnames[] = { | |
13805 | (char *) "self",(char *) "pt", NULL | |
13806 | }; | |
13807 | ||
13808 | arg3 = &temp3; | |
13809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
13810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13811 | { | |
13812 | arg2 = &temp2; | |
13813 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13814 | } | |
13815 | { | |
13816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13817 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13818 | ||
13819 | wxPyEndAllowThreads(__tstate); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | } | |
8edf1c75 | 13822 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13823 | { |
13824 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13825 | resultobj = t_output_helper(resultobj,o); | |
13826 | } | |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
13833 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13834 | PyObject *resultobj; | |
13835 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13836 | wxSize *arg2 = 0 ; | |
13837 | wxSize result; | |
13838 | wxSize temp2 ; | |
13839 | PyObject * obj0 = 0 ; | |
13840 | PyObject * obj1 = 0 ; | |
13841 | char *kwnames[] = { | |
13842 | (char *) "self",(char *) "sizePage", NULL | |
13843 | }; | |
13844 | ||
13845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13847 | { | |
13848 | arg2 = &temp2; | |
13849 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13850 | } | |
13851 | { | |
13852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13853 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13854 | ||
13855 | wxPyEndAllowThreads(__tstate); | |
13856 | if (PyErr_Occurred()) SWIG_fail; | |
13857 | } | |
13858 | { | |
13859 | wxSize * resultptr; | |
13860 | resultptr = new wxSize((wxSize &) result); | |
13861 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13862 | } | |
13863 | return resultobj; | |
13864 | fail: | |
13865 | return NULL; | |
13866 | } | |
13867 | ||
13868 | ||
13869 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
13870 | PyObject *obj; | |
13871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13872 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
13873 | Py_INCREF(obj); | |
13874 | return Py_BuildValue((char *)""); | |
13875 | } | |
13876 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13877 | PyObject *resultobj; | |
13878 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13879 | int arg2 = (int) 0 ; | |
13880 | int arg3 = (int) -1 ; | |
13881 | int arg4 = (int) -1 ; | |
13882 | wxNotebookEvent *result; | |
8edf1c75 RD |
13883 | PyObject * obj0 = 0 ; |
13884 | PyObject * obj1 = 0 ; | |
13885 | PyObject * obj2 = 0 ; | |
13886 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13887 | char *kwnames[] = { |
13888 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13889 | }; | |
13890 | ||
8edf1c75 RD |
13891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13892 | if (obj0) { | |
13893 | { | |
13894 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13895 | if (PyErr_Occurred()) SWIG_fail; | |
13896 | } | |
13897 | } | |
13898 | if (obj1) { | |
13899 | { | |
13900 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13901 | if (PyErr_Occurred()) SWIG_fail; | |
13902 | } | |
13903 | } | |
13904 | if (obj2) { | |
13905 | { | |
13906 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | } | |
13910 | if (obj3) { | |
13911 | { | |
13912 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13913 | if (PyErr_Occurred()) SWIG_fail; | |
13914 | } | |
13915 | } | |
d14a1e28 RD |
13916 | { |
13917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13918 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
13919 | ||
13920 | wxPyEndAllowThreads(__tstate); | |
13921 | if (PyErr_Occurred()) SWIG_fail; | |
13922 | } | |
13923 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
13924 | return resultobj; | |
13925 | fail: | |
13926 | return NULL; | |
13927 | } | |
13928 | ||
13929 | ||
13930 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
13931 | PyObject *obj; | |
13932 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13933 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
13934 | Py_INCREF(obj); | |
13935 | return Py_BuildValue((char *)""); | |
13936 | } | |
13937 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13938 | PyObject *resultobj; | |
13939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 13940 | int arg2 ; |
d14a1e28 RD |
13941 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
13942 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13943 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13944 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13945 | long arg5 = (long) 0 ; | |
13946 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13947 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13948 | wxListbook *result; | |
13949 | wxPoint temp3 ; | |
13950 | wxSize temp4 ; | |
423f194a | 13951 | bool temp6 = False ; |
d14a1e28 | 13952 | PyObject * obj0 = 0 ; |
8edf1c75 | 13953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13954 | PyObject * obj2 = 0 ; |
13955 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13956 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13957 | PyObject * obj5 = 0 ; |
13958 | char *kwnames[] = { | |
13959 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13960 | }; | |
13961 | ||
8edf1c75 | 13962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13964 | { |
13965 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13966 | if (PyErr_Occurred()) SWIG_fail; | |
13967 | } | |
d14a1e28 RD |
13968 | if (obj2) { |
13969 | { | |
13970 | arg3 = &temp3; | |
13971 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13972 | } | |
13973 | } | |
13974 | if (obj3) { | |
13975 | { | |
13976 | arg4 = &temp4; | |
13977 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13978 | } | |
13979 | } | |
8edf1c75 RD |
13980 | if (obj4) { |
13981 | { | |
13982 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13983 | if (PyErr_Occurred()) SWIG_fail; | |
13984 | } | |
13985 | } | |
d14a1e28 RD |
13986 | if (obj5) { |
13987 | { | |
13988 | arg6 = wxString_in_helper(obj5); | |
13989 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 13990 | temp6 = True; |
d14a1e28 RD |
13991 | } |
13992 | } | |
13993 | { | |
13994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13995 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13996 | ||
13997 | wxPyEndAllowThreads(__tstate); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
14000 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14001 | { | |
14002 | if (temp6) | |
14003 | delete arg6; | |
14004 | } | |
14005 | return resultobj; | |
14006 | fail: | |
14007 | { | |
14008 | if (temp6) | |
14009 | delete arg6; | |
14010 | } | |
14011 | return NULL; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14016 | PyObject *resultobj; | |
14017 | wxListbook *result; | |
14018 | char *kwnames[] = { | |
14019 | NULL | |
14020 | }; | |
14021 | ||
14022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14023 | { | |
14024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14025 | result = (wxListbook *)new wxListbook(); | |
14026 | ||
14027 | wxPyEndAllowThreads(__tstate); | |
14028 | if (PyErr_Occurred()) SWIG_fail; | |
14029 | } | |
14030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14031 | return resultobj; | |
14032 | fail: | |
14033 | return NULL; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14038 | PyObject *resultobj; | |
14039 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14040 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14041 | int arg3 ; |
d14a1e28 RD |
14042 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14043 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14044 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14045 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14046 | long arg6 = (long) 0 ; | |
14047 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14048 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14049 | bool result; | |
14050 | wxPoint temp4 ; | |
14051 | wxSize temp5 ; | |
423f194a | 14052 | bool temp7 = False ; |
d14a1e28 RD |
14053 | PyObject * obj0 = 0 ; |
14054 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14055 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14056 | PyObject * obj3 = 0 ; |
14057 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14058 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14059 | PyObject * obj6 = 0 ; |
14060 | char *kwnames[] = { | |
14061 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14062 | }; | |
14063 | ||
8edf1c75 | 14064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14066 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14067 | { |
14068 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14069 | if (PyErr_Occurred()) SWIG_fail; | |
14070 | } | |
d14a1e28 RD |
14071 | if (obj3) { |
14072 | { | |
14073 | arg4 = &temp4; | |
14074 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14075 | } | |
14076 | } | |
14077 | if (obj4) { | |
14078 | { | |
14079 | arg5 = &temp5; | |
14080 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14081 | } | |
14082 | } | |
8edf1c75 RD |
14083 | if (obj5) { |
14084 | { | |
14085 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14086 | if (PyErr_Occurred()) SWIG_fail; | |
14087 | } | |
14088 | } | |
d14a1e28 RD |
14089 | if (obj6) { |
14090 | { | |
14091 | arg7 = wxString_in_helper(obj6); | |
14092 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14093 | temp7 = True; |
d14a1e28 RD |
14094 | } |
14095 | } | |
14096 | { | |
14097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14098 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14099 | ||
14100 | wxPyEndAllowThreads(__tstate); | |
14101 | if (PyErr_Occurred()) SWIG_fail; | |
14102 | } | |
02a34c4c | 14103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14104 | { |
14105 | if (temp7) | |
14106 | delete arg7; | |
14107 | } | |
14108 | return resultobj; | |
14109 | fail: | |
14110 | { | |
14111 | if (temp7) | |
14112 | delete arg7; | |
14113 | } | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
14118 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14119 | PyObject *resultobj; | |
14120 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14121 | bool result; | |
14122 | PyObject * obj0 = 0 ; | |
14123 | char *kwnames[] = { | |
14124 | (char *) "self", NULL | |
14125 | }; | |
14126 | ||
14127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14129 | { | |
14130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14131 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14132 | ||
14133 | wxPyEndAllowThreads(__tstate); | |
14134 | if (PyErr_Occurred()) SWIG_fail; | |
14135 | } | |
02a34c4c | 14136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14137 | return resultobj; |
14138 | fail: | |
14139 | return NULL; | |
14140 | } | |
14141 | ||
14142 | ||
14143 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14144 | PyObject *obj; | |
14145 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14146 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14147 | Py_INCREF(obj); | |
14148 | return Py_BuildValue((char *)""); | |
14149 | } | |
14150 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14151 | PyObject *resultobj; | |
14152 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14153 | int arg2 = (int) 0 ; | |
14154 | int arg3 = (int) -1 ; | |
14155 | int arg4 = (int) -1 ; | |
14156 | wxListbookEvent *result; | |
8edf1c75 RD |
14157 | PyObject * obj0 = 0 ; |
14158 | PyObject * obj1 = 0 ; | |
14159 | PyObject * obj2 = 0 ; | |
14160 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14161 | char *kwnames[] = { |
14162 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14163 | }; | |
14164 | ||
8edf1c75 RD |
14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14166 | if (obj0) { | |
14167 | { | |
14168 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14169 | if (PyErr_Occurred()) SWIG_fail; | |
14170 | } | |
14171 | } | |
14172 | if (obj1) { | |
14173 | { | |
14174 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14175 | if (PyErr_Occurred()) SWIG_fail; | |
14176 | } | |
14177 | } | |
14178 | if (obj2) { | |
14179 | { | |
14180 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14181 | if (PyErr_Occurred()) SWIG_fail; | |
14182 | } | |
14183 | } | |
14184 | if (obj3) { | |
14185 | { | |
14186 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14187 | if (PyErr_Occurred()) SWIG_fail; | |
14188 | } | |
14189 | } | |
d14a1e28 RD |
14190 | { |
14191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14192 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14193 | ||
14194 | wxPyEndAllowThreads(__tstate); | |
14195 | if (PyErr_Occurred()) SWIG_fail; | |
14196 | } | |
14197 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14198 | return resultobj; | |
14199 | fail: | |
14200 | return NULL; | |
14201 | } | |
14202 | ||
14203 | ||
14204 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14205 | PyObject *obj; | |
14206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14207 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14208 | Py_INCREF(obj); | |
14209 | return Py_BuildValue((char *)""); | |
14210 | } | |
14211 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14212 | PyObject *resultobj; | |
14213 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14214 | wxBookCtrlSizer *result; | |
14215 | PyObject * obj0 = 0 ; | |
14216 | char *kwnames[] = { | |
14217 | (char *) "nb", NULL | |
14218 | }; | |
14219 | ||
14220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14222 | { | |
14223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14224 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14225 | ||
14226 | wxPyEndAllowThreads(__tstate); | |
14227 | if (PyErr_Occurred()) SWIG_fail; | |
14228 | } | |
14229 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14230 | return resultobj; | |
14231 | fail: | |
14232 | return NULL; | |
14233 | } | |
14234 | ||
14235 | ||
14236 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14237 | PyObject *resultobj; | |
14238 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14239 | PyObject * obj0 = 0 ; | |
14240 | char *kwnames[] = { | |
14241 | (char *) "self", NULL | |
14242 | }; | |
14243 | ||
14244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14246 | { | |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14248 | (arg1)->RecalcSizes(); | |
14249 | ||
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | Py_INCREF(Py_None); resultobj = Py_None; | |
14254 | return resultobj; | |
14255 | fail: | |
14256 | return NULL; | |
14257 | } | |
14258 | ||
14259 | ||
14260 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14261 | PyObject *resultobj; | |
14262 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14263 | wxSize result; | |
14264 | PyObject * obj0 = 0 ; | |
14265 | char *kwnames[] = { | |
14266 | (char *) "self", NULL | |
14267 | }; | |
14268 | ||
14269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14271 | { | |
14272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14273 | result = (arg1)->CalcMin(); | |
14274 | ||
14275 | wxPyEndAllowThreads(__tstate); | |
14276 | if (PyErr_Occurred()) SWIG_fail; | |
14277 | } | |
14278 | { | |
14279 | wxSize * resultptr; | |
14280 | resultptr = new wxSize((wxSize &) result); | |
14281 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14282 | } | |
14283 | return resultobj; | |
14284 | fail: | |
14285 | return NULL; | |
14286 | } | |
14287 | ||
14288 | ||
14289 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14290 | PyObject *resultobj; | |
14291 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14292 | wxBookCtrl *result; | |
14293 | PyObject * obj0 = 0 ; | |
14294 | char *kwnames[] = { | |
14295 | (char *) "self", NULL | |
14296 | }; | |
14297 | ||
14298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14300 | { | |
14301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14302 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14303 | ||
14304 | wxPyEndAllowThreads(__tstate); | |
14305 | if (PyErr_Occurred()) SWIG_fail; | |
14306 | } | |
14307 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14308 | return resultobj; | |
14309 | fail: | |
14310 | return NULL; | |
14311 | } | |
14312 | ||
14313 | ||
14314 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14315 | PyObject *obj; | |
14316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14317 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14318 | Py_INCREF(obj); | |
14319 | return Py_BuildValue((char *)""); | |
14320 | } | |
14321 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14324 | wxNotebookSizer *result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "nb", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
14339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
14346 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14347 | PyObject *resultobj; | |
14348 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14349 | PyObject * obj0 = 0 ; | |
14350 | char *kwnames[] = { | |
14351 | (char *) "self", NULL | |
14352 | }; | |
14353 | ||
14354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14356 | { | |
14357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14358 | (arg1)->RecalcSizes(); | |
14359 | ||
14360 | wxPyEndAllowThreads(__tstate); | |
14361 | if (PyErr_Occurred()) SWIG_fail; | |
14362 | } | |
14363 | Py_INCREF(Py_None); resultobj = Py_None; | |
14364 | return resultobj; | |
14365 | fail: | |
14366 | return NULL; | |
14367 | } | |
14368 | ||
14369 | ||
14370 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14371 | PyObject *resultobj; | |
14372 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14373 | wxSize result; | |
14374 | PyObject * obj0 = 0 ; | |
14375 | char *kwnames[] = { | |
14376 | (char *) "self", NULL | |
14377 | }; | |
14378 | ||
14379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14381 | { | |
14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14383 | result = (arg1)->CalcMin(); | |
14384 | ||
14385 | wxPyEndAllowThreads(__tstate); | |
14386 | if (PyErr_Occurred()) SWIG_fail; | |
14387 | } | |
14388 | { | |
14389 | wxSize * resultptr; | |
14390 | resultptr = new wxSize((wxSize &) result); | |
14391 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14392 | } | |
14393 | return resultobj; | |
14394 | fail: | |
14395 | return NULL; | |
14396 | } | |
14397 | ||
14398 | ||
14399 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14400 | PyObject *resultobj; | |
14401 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14402 | wxNotebook *result; | |
14403 | PyObject * obj0 = 0 ; | |
14404 | char *kwnames[] = { | |
14405 | (char *) "self", NULL | |
14406 | }; | |
14407 | ||
14408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14410 | { | |
14411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14412 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14413 | ||
14414 | wxPyEndAllowThreads(__tstate); | |
14415 | if (PyErr_Occurred()) SWIG_fail; | |
14416 | } | |
14417 | { | |
14418 | resultobj = wxPyMake_wxObject(result); | |
14419 | } | |
14420 | return resultobj; | |
14421 | fail: | |
14422 | return NULL; | |
14423 | } | |
14424 | ||
14425 | ||
14426 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14427 | PyObject *obj; | |
14428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14429 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14430 | Py_INCREF(obj); | |
14431 | return Py_BuildValue((char *)""); | |
14432 | } | |
14433 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14434 | PyObject *resultobj; | |
14435 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14436 | int result; | |
14437 | PyObject * obj0 = 0 ; | |
14438 | char *kwnames[] = { | |
14439 | (char *) "self", NULL | |
14440 | }; | |
14441 | ||
14442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
14443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14444 | { | |
14445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14446 | result = (int)(arg1)->GetId(); | |
14447 | ||
14448 | wxPyEndAllowThreads(__tstate); | |
14449 | if (PyErr_Occurred()) SWIG_fail; | |
14450 | } | |
8edf1c75 | 14451 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14452 | return resultobj; |
14453 | fail: | |
14454 | return NULL; | |
14455 | } | |
14456 | ||
14457 | ||
14458 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14459 | PyObject *resultobj; | |
14460 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14461 | wxControl *result; | |
14462 | PyObject * obj0 = 0 ; | |
14463 | char *kwnames[] = { | |
14464 | (char *) "self", NULL | |
14465 | }; | |
14466 | ||
14467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
14468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14469 | { | |
14470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14471 | result = (wxControl *)(arg1)->GetControl(); | |
14472 | ||
14473 | wxPyEndAllowThreads(__tstate); | |
14474 | if (PyErr_Occurred()) SWIG_fail; | |
14475 | } | |
14476 | { | |
14477 | resultobj = wxPyMake_wxObject(result); | |
14478 | } | |
14479 | return resultobj; | |
14480 | fail: | |
14481 | return NULL; | |
14482 | } | |
14483 | ||
14484 | ||
14485 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14486 | PyObject *resultobj; | |
14487 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14488 | wxToolBarBase *result; | |
14489 | PyObject * obj0 = 0 ; | |
14490 | char *kwnames[] = { | |
14491 | (char *) "self", NULL | |
14492 | }; | |
14493 | ||
14494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
14495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14496 | { | |
14497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14498 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
14499 | ||
14500 | wxPyEndAllowThreads(__tstate); | |
14501 | if (PyErr_Occurred()) SWIG_fail; | |
14502 | } | |
14503 | { | |
14504 | resultobj = wxPyMake_wxObject(result); | |
14505 | } | |
14506 | return resultobj; | |
14507 | fail: | |
14508 | return NULL; | |
14509 | } | |
14510 | ||
14511 | ||
14512 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14513 | PyObject *resultobj; | |
14514 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14515 | int result; | |
14516 | PyObject * obj0 = 0 ; | |
14517 | char *kwnames[] = { | |
14518 | (char *) "self", NULL | |
14519 | }; | |
14520 | ||
14521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
14522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14523 | { | |
14524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14525 | result = (int)(arg1)->IsButton(); | |
14526 | ||
14527 | wxPyEndAllowThreads(__tstate); | |
14528 | if (PyErr_Occurred()) SWIG_fail; | |
14529 | } | |
8edf1c75 | 14530 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14531 | return resultobj; |
14532 | fail: | |
14533 | return NULL; | |
14534 | } | |
14535 | ||
14536 | ||
14537 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14538 | PyObject *resultobj; | |
14539 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14540 | int result; | |
14541 | PyObject * obj0 = 0 ; | |
14542 | char *kwnames[] = { | |
14543 | (char *) "self", NULL | |
14544 | }; | |
14545 | ||
14546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
14547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14548 | { | |
14549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14550 | result = (int)(arg1)->IsControl(); | |
14551 | ||
14552 | wxPyEndAllowThreads(__tstate); | |
14553 | if (PyErr_Occurred()) SWIG_fail; | |
14554 | } | |
8edf1c75 | 14555 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14556 | return resultobj; |
14557 | fail: | |
14558 | return NULL; | |
14559 | } | |
14560 | ||
14561 | ||
14562 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14563 | PyObject *resultobj; | |
14564 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14565 | int result; | |
14566 | PyObject * obj0 = 0 ; | |
14567 | char *kwnames[] = { | |
14568 | (char *) "self", NULL | |
14569 | }; | |
14570 | ||
14571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
14572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14573 | { | |
14574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14575 | result = (int)(arg1)->IsSeparator(); | |
14576 | ||
14577 | wxPyEndAllowThreads(__tstate); | |
14578 | if (PyErr_Occurred()) SWIG_fail; | |
14579 | } | |
8edf1c75 | 14580 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14581 | return resultobj; |
14582 | fail: | |
14583 | return NULL; | |
14584 | } | |
14585 | ||
14586 | ||
14587 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14588 | PyObject *resultobj; | |
14589 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14590 | int result; | |
14591 | PyObject * obj0 = 0 ; | |
14592 | char *kwnames[] = { | |
14593 | (char *) "self", NULL | |
14594 | }; | |
14595 | ||
14596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
14597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14598 | { | |
14599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14600 | result = (int)(arg1)->GetStyle(); | |
14601 | ||
14602 | wxPyEndAllowThreads(__tstate); | |
14603 | if (PyErr_Occurred()) SWIG_fail; | |
14604 | } | |
8edf1c75 | 14605 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14606 | return resultobj; |
14607 | fail: | |
14608 | return NULL; | |
14609 | } | |
14610 | ||
14611 | ||
14612 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14613 | PyObject *resultobj; | |
14614 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14615 | int result; | |
14616 | PyObject * obj0 = 0 ; | |
14617 | char *kwnames[] = { | |
14618 | (char *) "self", NULL | |
14619 | }; | |
14620 | ||
14621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
14622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | result = (int)(arg1)->GetKind(); | |
14626 | ||
14627 | wxPyEndAllowThreads(__tstate); | |
14628 | if (PyErr_Occurred()) SWIG_fail; | |
14629 | } | |
8edf1c75 | 14630 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14631 | return resultobj; |
14632 | fail: | |
14633 | return NULL; | |
14634 | } | |
14635 | ||
14636 | ||
14637 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14638 | PyObject *resultobj; | |
14639 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14640 | bool result; | |
14641 | PyObject * obj0 = 0 ; | |
14642 | char *kwnames[] = { | |
14643 | (char *) "self", NULL | |
14644 | }; | |
14645 | ||
14646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
14647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14648 | { | |
14649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14650 | result = (bool)(arg1)->IsEnabled(); | |
14651 | ||
14652 | wxPyEndAllowThreads(__tstate); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
02a34c4c | 14655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14656 | return resultobj; |
14657 | fail: | |
14658 | return NULL; | |
14659 | } | |
14660 | ||
14661 | ||
14662 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14663 | PyObject *resultobj; | |
14664 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14665 | bool result; | |
14666 | PyObject * obj0 = 0 ; | |
14667 | char *kwnames[] = { | |
14668 | (char *) "self", NULL | |
14669 | }; | |
14670 | ||
14671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
14672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14673 | { | |
14674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14675 | result = (bool)(arg1)->IsToggled(); | |
14676 | ||
14677 | wxPyEndAllowThreads(__tstate); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
14679 | } | |
02a34c4c | 14680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14681 | return resultobj; |
14682 | fail: | |
14683 | return NULL; | |
14684 | } | |
14685 | ||
14686 | ||
14687 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14688 | PyObject *resultobj; | |
14689 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14690 | bool result; | |
14691 | PyObject * obj0 = 0 ; | |
14692 | char *kwnames[] = { | |
14693 | (char *) "self", NULL | |
14694 | }; | |
14695 | ||
14696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
14697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14698 | { | |
14699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14700 | result = (bool)(arg1)->CanBeToggled(); | |
14701 | ||
14702 | wxPyEndAllowThreads(__tstate); | |
14703 | if (PyErr_Occurred()) SWIG_fail; | |
14704 | } | |
02a34c4c | 14705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14706 | return resultobj; |
14707 | fail: | |
14708 | return NULL; | |
14709 | } | |
14710 | ||
14711 | ||
14712 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14713 | PyObject *resultobj; | |
14714 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14715 | wxBitmap *result; | |
14716 | PyObject * obj0 = 0 ; | |
14717 | char *kwnames[] = { | |
14718 | (char *) "self", NULL | |
14719 | }; | |
14720 | ||
14721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
14722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14723 | { | |
14724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14725 | { | |
14726 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
14727 | result = (wxBitmap *) &_result_ref; | |
14728 | } | |
14729 | ||
14730 | wxPyEndAllowThreads(__tstate); | |
14731 | if (PyErr_Occurred()) SWIG_fail; | |
14732 | } | |
14733 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14734 | return resultobj; | |
14735 | fail: | |
14736 | return NULL; | |
14737 | } | |
14738 | ||
14739 | ||
14740 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14741 | PyObject *resultobj; | |
14742 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14743 | wxBitmap *result; | |
14744 | PyObject * obj0 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "self", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
14750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14751 | { | |
14752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14753 | { | |
14754 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
14755 | result = (wxBitmap *) &_result_ref; | |
14756 | } | |
14757 | ||
14758 | wxPyEndAllowThreads(__tstate); | |
14759 | if (PyErr_Occurred()) SWIG_fail; | |
14760 | } | |
14761 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14762 | return resultobj; | |
14763 | fail: | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
14768 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14771 | wxBitmap result; | |
14772 | PyObject * obj0 = 0 ; | |
14773 | char *kwnames[] = { | |
14774 | (char *) "self", NULL | |
14775 | }; | |
14776 | ||
14777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
14778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14779 | { | |
14780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14781 | result = (arg1)->GetBitmap(); | |
14782 | ||
14783 | wxPyEndAllowThreads(__tstate); | |
14784 | if (PyErr_Occurred()) SWIG_fail; | |
14785 | } | |
14786 | { | |
14787 | wxBitmap * resultptr; | |
14788 | resultptr = new wxBitmap((wxBitmap &) result); | |
14789 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
14790 | } | |
14791 | return resultobj; | |
14792 | fail: | |
14793 | return NULL; | |
14794 | } | |
14795 | ||
14796 | ||
14797 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14798 | PyObject *resultobj; | |
14799 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14800 | wxString result; | |
14801 | PyObject * obj0 = 0 ; | |
14802 | char *kwnames[] = { | |
14803 | (char *) "self", NULL | |
14804 | }; | |
14805 | ||
14806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
14807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14808 | { | |
14809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14810 | result = (arg1)->GetLabel(); | |
14811 | ||
14812 | wxPyEndAllowThreads(__tstate); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
14814 | } | |
14815 | { | |
14816 | #if wxUSE_UNICODE | |
14817 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14818 | #else | |
14819 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14820 | #endif | |
14821 | } | |
14822 | return resultobj; | |
14823 | fail: | |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
14828 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14829 | PyObject *resultobj; | |
14830 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14831 | wxString result; | |
14832 | PyObject * obj0 = 0 ; | |
14833 | char *kwnames[] = { | |
14834 | (char *) "self", NULL | |
14835 | }; | |
14836 | ||
14837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
14838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14839 | { | |
14840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14841 | result = (arg1)->GetShortHelp(); | |
14842 | ||
14843 | wxPyEndAllowThreads(__tstate); | |
14844 | if (PyErr_Occurred()) SWIG_fail; | |
14845 | } | |
14846 | { | |
14847 | #if wxUSE_UNICODE | |
14848 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14849 | #else | |
14850 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14851 | #endif | |
14852 | } | |
14853 | return resultobj; | |
14854 | fail: | |
14855 | return NULL; | |
14856 | } | |
14857 | ||
14858 | ||
14859 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14860 | PyObject *resultobj; | |
14861 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14862 | wxString result; | |
14863 | PyObject * obj0 = 0 ; | |
14864 | char *kwnames[] = { | |
14865 | (char *) "self", NULL | |
14866 | }; | |
14867 | ||
14868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
14869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14870 | { | |
14871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14872 | result = (arg1)->GetLongHelp(); | |
14873 | ||
14874 | wxPyEndAllowThreads(__tstate); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | { | |
14878 | #if wxUSE_UNICODE | |
14879 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14880 | #else | |
14881 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14882 | #endif | |
14883 | } | |
14884 | return resultobj; | |
14885 | fail: | |
14886 | return NULL; | |
14887 | } | |
14888 | ||
14889 | ||
14890 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14891 | PyObject *resultobj; | |
14892 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14893 | bool arg2 ; | |
14894 | bool result; | |
14895 | PyObject * obj0 = 0 ; | |
14896 | PyObject * obj1 = 0 ; | |
14897 | char *kwnames[] = { | |
14898 | (char *) "self",(char *) "enable", NULL | |
14899 | }; | |
14900 | ||
14901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
14902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 14903 | { |
8edf1c75 | 14904 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
14905 | if (PyErr_Occurred()) SWIG_fail; |
14906 | } | |
d14a1e28 RD |
14907 | { |
14908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14909 | result = (bool)(arg1)->Enable(arg2); | |
14910 | ||
14911 | wxPyEndAllowThreads(__tstate); | |
14912 | if (PyErr_Occurred()) SWIG_fail; | |
14913 | } | |
02a34c4c | 14914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14915 | return resultobj; |
14916 | fail: | |
14917 | return NULL; | |
14918 | } | |
14919 | ||
14920 | ||
14921 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14922 | PyObject *resultobj; | |
14923 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14924 | PyObject * obj0 = 0 ; | |
14925 | char *kwnames[] = { | |
14926 | (char *) "self", NULL | |
14927 | }; | |
14928 | ||
14929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
14930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14931 | { | |
14932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14933 | (arg1)->Toggle(); | |
14934 | ||
14935 | wxPyEndAllowThreads(__tstate); | |
14936 | if (PyErr_Occurred()) SWIG_fail; | |
14937 | } | |
14938 | Py_INCREF(Py_None); resultobj = Py_None; | |
14939 | return resultobj; | |
14940 | fail: | |
14941 | return NULL; | |
14942 | } | |
14943 | ||
14944 | ||
14945 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14946 | PyObject *resultobj; | |
14947 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14948 | bool arg2 ; | |
14949 | bool result; | |
14950 | PyObject * obj0 = 0 ; | |
14951 | PyObject * obj1 = 0 ; | |
14952 | char *kwnames[] = { | |
14953 | (char *) "self",(char *) "toggle", NULL | |
14954 | }; | |
14955 | ||
14956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
14957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 14958 | { |
8edf1c75 | 14959 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
14960 | if (PyErr_Occurred()) SWIG_fail; |
14961 | } | |
d14a1e28 RD |
14962 | { |
14963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14964 | result = (bool)(arg1)->SetToggle(arg2); | |
14965 | ||
14966 | wxPyEndAllowThreads(__tstate); | |
14967 | if (PyErr_Occurred()) SWIG_fail; | |
14968 | } | |
02a34c4c | 14969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14970 | return resultobj; |
14971 | fail: | |
14972 | return NULL; | |
14973 | } | |
14974 | ||
14975 | ||
14976 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14977 | PyObject *resultobj; | |
14978 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14979 | wxString *arg2 = 0 ; | |
14980 | bool result; | |
423f194a | 14981 | bool temp2 = False ; |
d14a1e28 RD |
14982 | PyObject * obj0 = 0 ; |
14983 | PyObject * obj1 = 0 ; | |
14984 | char *kwnames[] = { | |
14985 | (char *) "self",(char *) "help", NULL | |
14986 | }; | |
14987 | ||
14988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
14989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14990 | { | |
14991 | arg2 = wxString_in_helper(obj1); | |
14992 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14993 | temp2 = True; |
d14a1e28 RD |
14994 | } |
14995 | { | |
14996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14997 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
14998 | ||
14999 | wxPyEndAllowThreads(__tstate); | |
15000 | if (PyErr_Occurred()) SWIG_fail; | |
15001 | } | |
02a34c4c | 15002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15003 | { |
15004 | if (temp2) | |
15005 | delete arg2; | |
15006 | } | |
15007 | return resultobj; | |
15008 | fail: | |
15009 | { | |
15010 | if (temp2) | |
15011 | delete arg2; | |
15012 | } | |
15013 | return NULL; | |
15014 | } | |
15015 | ||
15016 | ||
15017 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15018 | PyObject *resultobj; | |
15019 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15020 | wxString *arg2 = 0 ; | |
15021 | bool result; | |
423f194a | 15022 | bool temp2 = False ; |
d14a1e28 RD |
15023 | PyObject * obj0 = 0 ; |
15024 | PyObject * obj1 = 0 ; | |
15025 | char *kwnames[] = { | |
15026 | (char *) "self",(char *) "help", NULL | |
15027 | }; | |
15028 | ||
15029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15031 | { | |
15032 | arg2 = wxString_in_helper(obj1); | |
15033 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15034 | temp2 = True; |
d14a1e28 RD |
15035 | } |
15036 | { | |
15037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15038 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15039 | ||
15040 | wxPyEndAllowThreads(__tstate); | |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
15042 | } | |
02a34c4c | 15043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15044 | { |
15045 | if (temp2) | |
15046 | delete arg2; | |
15047 | } | |
15048 | return resultobj; | |
15049 | fail: | |
15050 | { | |
15051 | if (temp2) | |
15052 | delete arg2; | |
15053 | } | |
15054 | return NULL; | |
15055 | } | |
15056 | ||
15057 | ||
15058 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15059 | PyObject *resultobj; | |
15060 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15061 | wxBitmap *arg2 = 0 ; | |
15062 | PyObject * obj0 = 0 ; | |
15063 | PyObject * obj1 = 0 ; | |
15064 | char *kwnames[] = { | |
15065 | (char *) "self",(char *) "bmp", NULL | |
15066 | }; | |
15067 | ||
15068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15071 | if (arg2 == NULL) { | |
15072 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15073 | } | |
15074 | { | |
15075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15076 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15077 | ||
15078 | wxPyEndAllowThreads(__tstate); | |
15079 | if (PyErr_Occurred()) SWIG_fail; | |
15080 | } | |
15081 | Py_INCREF(Py_None); resultobj = Py_None; | |
15082 | return resultobj; | |
15083 | fail: | |
15084 | return NULL; | |
15085 | } | |
15086 | ||
15087 | ||
15088 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15089 | PyObject *resultobj; | |
15090 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15091 | wxBitmap *arg2 = 0 ; | |
15092 | PyObject * obj0 = 0 ; | |
15093 | PyObject * obj1 = 0 ; | |
15094 | char *kwnames[] = { | |
15095 | (char *) "self",(char *) "bmp", NULL | |
15096 | }; | |
15097 | ||
15098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15100 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15101 | if (arg2 == NULL) { | |
15102 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15103 | } | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15107 | ||
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
15111 | Py_INCREF(Py_None); resultobj = Py_None; | |
15112 | return resultobj; | |
15113 | fail: | |
15114 | return NULL; | |
15115 | } | |
15116 | ||
15117 | ||
15118 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15119 | PyObject *resultobj; | |
15120 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15121 | wxString *arg2 = 0 ; | |
423f194a | 15122 | bool temp2 = False ; |
d14a1e28 RD |
15123 | PyObject * obj0 = 0 ; |
15124 | PyObject * obj1 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "self",(char *) "label", NULL | |
15127 | }; | |
15128 | ||
15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15131 | { | |
15132 | arg2 = wxString_in_helper(obj1); | |
15133 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15134 | temp2 = True; |
d14a1e28 RD |
15135 | } |
15136 | { | |
15137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15138 | (arg1)->SetLabel((wxString const &)*arg2); | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
15141 | if (PyErr_Occurred()) SWIG_fail; | |
15142 | } | |
15143 | Py_INCREF(Py_None); resultobj = Py_None; | |
15144 | { | |
15145 | if (temp2) | |
15146 | delete arg2; | |
15147 | } | |
15148 | return resultobj; | |
15149 | fail: | |
15150 | { | |
15151 | if (temp2) | |
15152 | delete arg2; | |
15153 | } | |
15154 | return NULL; | |
15155 | } | |
15156 | ||
15157 | ||
15158 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15159 | PyObject *resultobj; | |
15160 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15161 | PyObject * obj0 = 0 ; | |
15162 | char *kwnames[] = { | |
15163 | (char *) "self", NULL | |
15164 | }; | |
15165 | ||
15166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15168 | { | |
15169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15170 | (arg1)->Detach(); | |
15171 | ||
15172 | wxPyEndAllowThreads(__tstate); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
15175 | Py_INCREF(Py_None); resultobj = Py_None; | |
15176 | return resultobj; | |
15177 | fail: | |
15178 | return NULL; | |
15179 | } | |
15180 | ||
15181 | ||
15182 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15183 | PyObject *resultobj; | |
15184 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15185 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15186 | PyObject * obj0 = 0 ; | |
15187 | PyObject * obj1 = 0 ; | |
15188 | char *kwnames[] = { | |
15189 | (char *) "self",(char *) "tbar", NULL | |
15190 | }; | |
15191 | ||
15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15194 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | (arg1)->Attach(arg2); | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | Py_INCREF(Py_None); resultobj = Py_None; | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | return NULL; | |
15206 | } | |
15207 | ||
15208 | ||
15209 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15210 | PyObject *resultobj; | |
15211 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15212 | PyObject *result; | |
15213 | PyObject * obj0 = 0 ; | |
15214 | char *kwnames[] = { | |
15215 | (char *) "self", NULL | |
15216 | }; | |
15217 | ||
15218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15220 | { | |
15221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15222 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15223 | ||
15224 | wxPyEndAllowThreads(__tstate); | |
15225 | if (PyErr_Occurred()) SWIG_fail; | |
15226 | } | |
15227 | resultobj = result; | |
15228 | return resultobj; | |
15229 | fail: | |
15230 | return NULL; | |
15231 | } | |
15232 | ||
15233 | ||
15234 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15235 | PyObject *resultobj; | |
15236 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15237 | PyObject *arg2 = (PyObject *) 0 ; | |
15238 | PyObject * obj0 = 0 ; | |
15239 | PyObject * obj1 = 0 ; | |
15240 | char *kwnames[] = { | |
15241 | (char *) "self",(char *) "clientData", NULL | |
15242 | }; | |
15243 | ||
15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15246 | arg2 = obj1; | |
15247 | { | |
15248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15249 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15250 | ||
15251 | wxPyEndAllowThreads(__tstate); | |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
15253 | } | |
15254 | Py_INCREF(Py_None); resultobj = Py_None; | |
15255 | return resultobj; | |
15256 | fail: | |
15257 | return NULL; | |
15258 | } | |
15259 | ||
15260 | ||
15261 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15262 | PyObject *obj; | |
15263 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15264 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15265 | Py_INCREF(obj); | |
15266 | return Py_BuildValue((char *)""); | |
15267 | } | |
15268 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15271 | int arg2 ; | |
15272 | wxString *arg3 = 0 ; | |
15273 | wxBitmap *arg4 = 0 ; | |
15274 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15275 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15276 | int arg6 = (int) wxITEM_NORMAL ; | |
15277 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15278 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15279 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15280 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15281 | PyObject *arg9 = (PyObject *) NULL ; | |
15282 | wxToolBarToolBase *result; | |
423f194a RD |
15283 | bool temp3 = False ; |
15284 | bool temp7 = False ; | |
15285 | bool temp8 = False ; | |
d14a1e28 | 15286 | PyObject * obj0 = 0 ; |
8edf1c75 | 15287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15288 | PyObject * obj2 = 0 ; |
15289 | PyObject * obj3 = 0 ; | |
15290 | PyObject * obj4 = 0 ; | |
8edf1c75 | 15291 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15292 | PyObject * obj6 = 0 ; |
15293 | PyObject * obj7 = 0 ; | |
15294 | PyObject * obj8 = 0 ; | |
15295 | char *kwnames[] = { | |
15296 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15297 | }; | |
15298 | ||
8edf1c75 | 15299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 15300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15301 | { |
15302 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15303 | if (PyErr_Occurred()) SWIG_fail; | |
15304 | } | |
d14a1e28 RD |
15305 | { |
15306 | arg3 = wxString_in_helper(obj2); | |
15307 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15308 | temp3 = True; |
d14a1e28 RD |
15309 | } |
15310 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15311 | if (arg4 == NULL) { | |
15312 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15313 | } | |
15314 | if (obj4) { | |
15315 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15316 | if (arg5 == NULL) { | |
15317 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15318 | } | |
15319 | } | |
8edf1c75 RD |
15320 | if (obj5) { |
15321 | { | |
15322 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15323 | if (PyErr_Occurred()) SWIG_fail; | |
15324 | } | |
15325 | } | |
d14a1e28 RD |
15326 | if (obj6) { |
15327 | { | |
15328 | arg7 = wxString_in_helper(obj6); | |
15329 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15330 | temp7 = True; |
d14a1e28 RD |
15331 | } |
15332 | } | |
15333 | if (obj7) { | |
15334 | { | |
15335 | arg8 = wxString_in_helper(obj7); | |
15336 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15337 | temp8 = True; |
d14a1e28 RD |
15338 | } |
15339 | } | |
15340 | if (obj8) { | |
15341 | arg9 = obj8; | |
15342 | } | |
15343 | { | |
15344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15345 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15346 | ||
15347 | wxPyEndAllowThreads(__tstate); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | } | |
15350 | { | |
15351 | resultobj = wxPyMake_wxObject(result); | |
15352 | } | |
15353 | { | |
15354 | if (temp3) | |
15355 | delete arg3; | |
15356 | } | |
15357 | { | |
15358 | if (temp7) | |
15359 | delete arg7; | |
15360 | } | |
15361 | { | |
15362 | if (temp8) | |
15363 | delete arg8; | |
15364 | } | |
15365 | return resultobj; | |
15366 | fail: | |
15367 | { | |
15368 | if (temp3) | |
15369 | delete arg3; | |
15370 | } | |
15371 | { | |
15372 | if (temp7) | |
15373 | delete arg7; | |
15374 | } | |
15375 | { | |
15376 | if (temp8) | |
15377 | delete arg8; | |
15378 | } | |
15379 | return NULL; | |
15380 | } | |
15381 | ||
15382 | ||
15383 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15384 | PyObject *resultobj; | |
15385 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15386 | size_t arg2 ; | |
15387 | int arg3 ; | |
15388 | wxString *arg4 = 0 ; | |
15389 | wxBitmap *arg5 = 0 ; | |
15390 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15391 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15392 | int arg7 = (int) wxITEM_NORMAL ; | |
15393 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15394 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15395 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15396 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15397 | PyObject *arg10 = (PyObject *) NULL ; | |
15398 | wxToolBarToolBase *result; | |
423f194a RD |
15399 | bool temp4 = False ; |
15400 | bool temp8 = False ; | |
15401 | bool temp9 = False ; | |
d14a1e28 RD |
15402 | PyObject * obj0 = 0 ; |
15403 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15404 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15405 | PyObject * obj3 = 0 ; |
15406 | PyObject * obj4 = 0 ; | |
15407 | PyObject * obj5 = 0 ; | |
8edf1c75 | 15408 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15409 | PyObject * obj7 = 0 ; |
15410 | PyObject * obj8 = 0 ; | |
15411 | PyObject * obj9 = 0 ; | |
15412 | char *kwnames[] = { | |
15413 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15414 | }; | |
15415 | ||
8edf1c75 | 15416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 15417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15418 | { |
8edf1c75 RD |
15419 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
15420 | if (PyErr_Occurred()) SWIG_fail; | |
15421 | } | |
15422 | { | |
15423 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
15424 | if (PyErr_Occurred()) SWIG_fail; |
15425 | } | |
d14a1e28 RD |
15426 | { |
15427 | arg4 = wxString_in_helper(obj3); | |
15428 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15429 | temp4 = True; |
d14a1e28 RD |
15430 | } |
15431 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15432 | if (arg5 == NULL) { | |
15433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15434 | } | |
15435 | if (obj5) { | |
15436 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15437 | if (arg6 == NULL) { | |
15438 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15439 | } | |
15440 | } | |
8edf1c75 RD |
15441 | if (obj6) { |
15442 | { | |
15443 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15444 | if (PyErr_Occurred()) SWIG_fail; | |
15445 | } | |
15446 | } | |
d14a1e28 RD |
15447 | if (obj7) { |
15448 | { | |
15449 | arg8 = wxString_in_helper(obj7); | |
15450 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15451 | temp8 = True; |
d14a1e28 RD |
15452 | } |
15453 | } | |
15454 | if (obj8) { | |
15455 | { | |
15456 | arg9 = wxString_in_helper(obj8); | |
15457 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 15458 | temp9 = True; |
d14a1e28 RD |
15459 | } |
15460 | } | |
15461 | if (obj9) { | |
15462 | arg10 = obj9; | |
15463 | } | |
15464 | { | |
15465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15466 | 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); | |
15467 | ||
15468 | wxPyEndAllowThreads(__tstate); | |
15469 | if (PyErr_Occurred()) SWIG_fail; | |
15470 | } | |
15471 | { | |
15472 | resultobj = wxPyMake_wxObject(result); | |
15473 | } | |
15474 | { | |
15475 | if (temp4) | |
15476 | delete arg4; | |
15477 | } | |
15478 | { | |
15479 | if (temp8) | |
15480 | delete arg8; | |
15481 | } | |
15482 | { | |
15483 | if (temp9) | |
15484 | delete arg9; | |
15485 | } | |
15486 | return resultobj; | |
15487 | fail: | |
15488 | { | |
15489 | if (temp4) | |
15490 | delete arg4; | |
15491 | } | |
15492 | { | |
15493 | if (temp8) | |
15494 | delete arg8; | |
15495 | } | |
15496 | { | |
15497 | if (temp9) | |
15498 | delete arg9; | |
15499 | } | |
15500 | return NULL; | |
15501 | } | |
15502 | ||
15503 | ||
cbd72d4f RD |
15504 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
15505 | PyObject *resultobj; | |
15506 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15507 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
15508 | wxToolBarToolBase *result; | |
15509 | PyObject * obj0 = 0 ; | |
15510 | PyObject * obj1 = 0 ; | |
15511 | char *kwnames[] = { | |
15512 | (char *) "self",(char *) "tool", NULL | |
15513 | }; | |
15514 | ||
15515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15517 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15518 | { | |
15519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15520 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
15521 | ||
15522 | wxPyEndAllowThreads(__tstate); | |
15523 | if (PyErr_Occurred()) SWIG_fail; | |
15524 | } | |
15525 | { | |
15526 | resultobj = wxPyMake_wxObject(result); | |
15527 | } | |
15528 | return resultobj; | |
15529 | fail: | |
15530 | return NULL; | |
15531 | } | |
15532 | ||
15533 | ||
15534 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15535 | PyObject *resultobj; | |
15536 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15537 | size_t arg2 ; | |
15538 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
15539 | wxToolBarToolBase *result; | |
15540 | PyObject * obj0 = 0 ; | |
15541 | PyObject * obj1 = 0 ; | |
15542 | PyObject * obj2 = 0 ; | |
15543 | char *kwnames[] = { | |
15544 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
15545 | }; | |
15546 | ||
15547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15549 | { |
8edf1c75 | 15550 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15551 | if (PyErr_Occurred()) SWIG_fail; |
15552 | } | |
cbd72d4f RD |
15553 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15554 | { | |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
15561 | { | |
15562 | resultobj = wxPyMake_wxObject(result); | |
15563 | } | |
15564 | return resultobj; | |
15565 | fail: | |
15566 | return NULL; | |
15567 | } | |
15568 | ||
15569 | ||
d14a1e28 RD |
15570 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
15571 | PyObject *resultobj; | |
15572 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15573 | wxControl *arg2 = (wxControl *) 0 ; | |
15574 | wxToolBarToolBase *result; | |
15575 | PyObject * obj0 = 0 ; | |
15576 | PyObject * obj1 = 0 ; | |
15577 | char *kwnames[] = { | |
15578 | (char *) "self",(char *) "control", NULL | |
15579 | }; | |
15580 | ||
15581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15583 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15584 | { | |
15585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15586 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
15587 | ||
15588 | wxPyEndAllowThreads(__tstate); | |
15589 | if (PyErr_Occurred()) SWIG_fail; | |
15590 | } | |
15591 | { | |
15592 | resultobj = wxPyMake_wxObject(result); | |
15593 | } | |
15594 | return resultobj; | |
15595 | fail: | |
15596 | return NULL; | |
15597 | } | |
15598 | ||
15599 | ||
15600 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15601 | PyObject *resultobj; | |
15602 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15603 | size_t arg2 ; | |
15604 | wxControl *arg3 = (wxControl *) 0 ; | |
15605 | wxToolBarToolBase *result; | |
15606 | PyObject * obj0 = 0 ; | |
15607 | PyObject * obj1 = 0 ; | |
15608 | PyObject * obj2 = 0 ; | |
15609 | char *kwnames[] = { | |
15610 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
15611 | }; | |
15612 | ||
15613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15615 | { |
8edf1c75 | 15616 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15617 | if (PyErr_Occurred()) SWIG_fail; |
15618 | } | |
d14a1e28 RD |
15619 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15620 | { | |
15621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15622 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
15623 | ||
15624 | wxPyEndAllowThreads(__tstate); | |
15625 | if (PyErr_Occurred()) SWIG_fail; | |
15626 | } | |
15627 | { | |
15628 | resultobj = wxPyMake_wxObject(result); | |
15629 | } | |
15630 | return resultobj; | |
15631 | fail: | |
15632 | return NULL; | |
15633 | } | |
15634 | ||
15635 | ||
15636 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15637 | PyObject *resultobj; | |
15638 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15639 | int arg2 ; | |
15640 | wxControl *result; | |
15641 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15642 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15643 | char *kwnames[] = { |
15644 | (char *) "self",(char *) "id", NULL | |
15645 | }; | |
15646 | ||
8edf1c75 | 15647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15649 | { |
15650 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15651 | if (PyErr_Occurred()) SWIG_fail; | |
15652 | } | |
d14a1e28 RD |
15653 | { |
15654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15655 | result = (wxControl *)(arg1)->FindControl(arg2); | |
15656 | ||
15657 | wxPyEndAllowThreads(__tstate); | |
15658 | if (PyErr_Occurred()) SWIG_fail; | |
15659 | } | |
15660 | { | |
15661 | resultobj = wxPyMake_wxObject(result); | |
15662 | } | |
15663 | return resultobj; | |
15664 | fail: | |
15665 | return NULL; | |
15666 | } | |
15667 | ||
15668 | ||
15669 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15670 | PyObject *resultobj; | |
15671 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15672 | wxToolBarToolBase *result; | |
15673 | PyObject * obj0 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15680 | { | |
15681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15682 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
15683 | ||
15684 | wxPyEndAllowThreads(__tstate); | |
15685 | if (PyErr_Occurred()) SWIG_fail; | |
15686 | } | |
15687 | { | |
15688 | resultobj = wxPyMake_wxObject(result); | |
15689 | } | |
15690 | return resultobj; | |
15691 | fail: | |
15692 | return NULL; | |
15693 | } | |
15694 | ||
15695 | ||
15696 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15697 | PyObject *resultobj; | |
15698 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15699 | size_t arg2 ; | |
15700 | wxToolBarToolBase *result; | |
15701 | PyObject * obj0 = 0 ; | |
15702 | PyObject * obj1 = 0 ; | |
15703 | char *kwnames[] = { | |
15704 | (char *) "self",(char *) "pos", NULL | |
15705 | }; | |
15706 | ||
15707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15709 | { |
8edf1c75 | 15710 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15711 | if (PyErr_Occurred()) SWIG_fail; |
15712 | } | |
d14a1e28 RD |
15713 | { |
15714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15715 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
15716 | ||
15717 | wxPyEndAllowThreads(__tstate); | |
15718 | if (PyErr_Occurred()) SWIG_fail; | |
15719 | } | |
15720 | { | |
15721 | resultobj = wxPyMake_wxObject(result); | |
15722 | } | |
15723 | return resultobj; | |
15724 | fail: | |
15725 | return NULL; | |
15726 | } | |
15727 | ||
15728 | ||
15729 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15730 | PyObject *resultobj; | |
15731 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15732 | int arg2 ; | |
15733 | wxToolBarToolBase *result; | |
15734 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15736 | char *kwnames[] = { |
15737 | (char *) "self",(char *) "id", NULL | |
15738 | }; | |
15739 | ||
8edf1c75 | 15740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15742 | { |
15743 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15744 | if (PyErr_Occurred()) SWIG_fail; | |
15745 | } | |
d14a1e28 RD |
15746 | { |
15747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15748 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
15749 | ||
15750 | wxPyEndAllowThreads(__tstate); | |
15751 | if (PyErr_Occurred()) SWIG_fail; | |
15752 | } | |
15753 | { | |
15754 | resultobj = wxPyMake_wxObject(result); | |
15755 | } | |
15756 | return resultobj; | |
15757 | fail: | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
15762 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15763 | PyObject *resultobj; | |
15764 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15765 | size_t arg2 ; | |
15766 | bool result; | |
15767 | PyObject * obj0 = 0 ; | |
15768 | PyObject * obj1 = 0 ; | |
15769 | char *kwnames[] = { | |
15770 | (char *) "self",(char *) "pos", NULL | |
15771 | }; | |
15772 | ||
15773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15775 | { |
8edf1c75 | 15776 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15777 | if (PyErr_Occurred()) SWIG_fail; |
15778 | } | |
d14a1e28 RD |
15779 | { |
15780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15781 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
15782 | ||
15783 | wxPyEndAllowThreads(__tstate); | |
15784 | if (PyErr_Occurred()) SWIG_fail; | |
15785 | } | |
02a34c4c | 15786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15787 | return resultobj; |
15788 | fail: | |
15789 | return NULL; | |
15790 | } | |
15791 | ||
15792 | ||
15793 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15794 | PyObject *resultobj; | |
15795 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15796 | int arg2 ; | |
15797 | bool result; | |
15798 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15799 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15800 | char *kwnames[] = { |
15801 | (char *) "self",(char *) "id", NULL | |
15802 | }; | |
15803 | ||
8edf1c75 | 15804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15806 | { |
15807 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15808 | if (PyErr_Occurred()) SWIG_fail; | |
15809 | } | |
d14a1e28 RD |
15810 | { |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15812 | result = (bool)(arg1)->DeleteTool(arg2); | |
15813 | ||
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
02a34c4c | 15817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15818 | return resultobj; |
15819 | fail: | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
15824 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15825 | PyObject *resultobj; | |
15826 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15827 | PyObject * obj0 = 0 ; | |
15828 | char *kwnames[] = { | |
15829 | (char *) "self", NULL | |
15830 | }; | |
15831 | ||
15832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15834 | { | |
15835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15836 | (arg1)->ClearTools(); | |
15837 | ||
15838 | wxPyEndAllowThreads(__tstate); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
15840 | } | |
15841 | Py_INCREF(Py_None); resultobj = Py_None; | |
15842 | return resultobj; | |
15843 | fail: | |
15844 | return NULL; | |
15845 | } | |
15846 | ||
15847 | ||
15848 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15849 | PyObject *resultobj; | |
15850 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15851 | bool result; | |
15852 | PyObject * obj0 = 0 ; | |
15853 | char *kwnames[] = { | |
15854 | (char *) "self", NULL | |
15855 | }; | |
15856 | ||
15857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15859 | { | |
15860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15861 | result = (bool)(arg1)->Realize(); | |
15862 | ||
15863 | wxPyEndAllowThreads(__tstate); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | } | |
02a34c4c | 15866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15867 | return resultobj; |
15868 | fail: | |
15869 | return NULL; | |
15870 | } | |
15871 | ||
15872 | ||
15873 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15874 | PyObject *resultobj; | |
15875 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15876 | int arg2 ; | |
15877 | bool arg3 ; | |
15878 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15880 | PyObject * obj2 = 0 ; |
15881 | char *kwnames[] = { | |
15882 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
15883 | }; | |
15884 | ||
8edf1c75 | 15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15887 | { |
8edf1c75 RD |
15888 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
15889 | if (PyErr_Occurred()) SWIG_fail; | |
15890 | } | |
15891 | { | |
15892 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
15893 | if (PyErr_Occurred()) SWIG_fail; |
15894 | } | |
d14a1e28 RD |
15895 | { |
15896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15897 | (arg1)->EnableTool(arg2,arg3); | |
15898 | ||
15899 | wxPyEndAllowThreads(__tstate); | |
15900 | if (PyErr_Occurred()) SWIG_fail; | |
15901 | } | |
15902 | Py_INCREF(Py_None); resultobj = Py_None; | |
15903 | return resultobj; | |
15904 | fail: | |
15905 | return NULL; | |
15906 | } | |
15907 | ||
15908 | ||
15909 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15910 | PyObject *resultobj; | |
15911 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15912 | int arg2 ; | |
15913 | bool arg3 ; | |
15914 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15915 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15916 | PyObject * obj2 = 0 ; |
15917 | char *kwnames[] = { | |
15918 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
15919 | }; | |
15920 | ||
8edf1c75 | 15921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15923 | { |
8edf1c75 RD |
15924 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
15925 | if (PyErr_Occurred()) SWIG_fail; | |
15926 | } | |
15927 | { | |
15928 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
15929 | if (PyErr_Occurred()) SWIG_fail; |
15930 | } | |
d14a1e28 RD |
15931 | { |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | (arg1)->ToggleTool(arg2,arg3); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | Py_INCREF(Py_None); resultobj = Py_None; | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15948 | int arg2 ; | |
15949 | bool arg3 ; | |
15950 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15951 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15952 | PyObject * obj2 = 0 ; |
15953 | char *kwnames[] = { | |
15954 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
15955 | }; | |
15956 | ||
8edf1c75 | 15957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15959 | { |
8edf1c75 RD |
15960 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
15963 | { | |
15964 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
15965 | if (PyErr_Occurred()) SWIG_fail; |
15966 | } | |
d14a1e28 RD |
15967 | { |
15968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15969 | (arg1)->SetToggle(arg2,arg3); | |
15970 | ||
15971 | wxPyEndAllowThreads(__tstate); | |
15972 | if (PyErr_Occurred()) SWIG_fail; | |
15973 | } | |
15974 | Py_INCREF(Py_None); resultobj = Py_None; | |
15975 | return resultobj; | |
15976 | fail: | |
15977 | return NULL; | |
15978 | } | |
15979 | ||
15980 | ||
15981 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15982 | PyObject *resultobj; | |
15983 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15984 | int arg2 ; | |
15985 | PyObject *result; | |
15986 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15988 | char *kwnames[] = { |
15989 | (char *) "self",(char *) "id", NULL | |
15990 | }; | |
15991 | ||
8edf1c75 | 15992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15994 | { |
15995 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15996 | if (PyErr_Occurred()) SWIG_fail; | |
15997 | } | |
d14a1e28 RD |
15998 | { |
15999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16000 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16001 | ||
16002 | wxPyEndAllowThreads(__tstate); | |
16003 | if (PyErr_Occurred()) SWIG_fail; | |
16004 | } | |
16005 | resultobj = result; | |
16006 | return resultobj; | |
16007 | fail: | |
16008 | return NULL; | |
16009 | } | |
16010 | ||
16011 | ||
16012 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16013 | PyObject *resultobj; | |
16014 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16015 | int arg2 ; | |
16016 | PyObject *arg3 = (PyObject *) 0 ; | |
16017 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16018 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16019 | PyObject * obj2 = 0 ; |
16020 | char *kwnames[] = { | |
16021 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16022 | }; | |
16023 | ||
8edf1c75 | 16024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16026 | { |
16027 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16028 | if (PyErr_Occurred()) SWIG_fail; | |
16029 | } | |
d14a1e28 RD |
16030 | arg3 = obj2; |
16031 | { | |
16032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16033 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16034 | ||
16035 | wxPyEndAllowThreads(__tstate); | |
16036 | if (PyErr_Occurred()) SWIG_fail; | |
16037 | } | |
16038 | Py_INCREF(Py_None); resultobj = Py_None; | |
16039 | return resultobj; | |
16040 | fail: | |
16041 | return NULL; | |
16042 | } | |
16043 | ||
16044 | ||
16045 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16046 | PyObject *resultobj; | |
16047 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16048 | int arg2 ; | |
16049 | int result; | |
16050 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16052 | char *kwnames[] = { |
16053 | (char *) "self",(char *) "id", NULL | |
16054 | }; | |
16055 | ||
8edf1c75 | 16056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16058 | { |
16059 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
d14a1e28 RD |
16062 | { |
16063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16064 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16065 | ||
16066 | wxPyEndAllowThreads(__tstate); | |
16067 | if (PyErr_Occurred()) SWIG_fail; | |
16068 | } | |
8edf1c75 | 16069 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16070 | return resultobj; |
16071 | fail: | |
16072 | return NULL; | |
16073 | } | |
16074 | ||
16075 | ||
16076 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16077 | PyObject *resultobj; | |
16078 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16079 | int arg2 ; | |
16080 | bool result; | |
16081 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16083 | char *kwnames[] = { |
16084 | (char *) "self",(char *) "id", NULL | |
16085 | }; | |
16086 | ||
8edf1c75 | 16087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16089 | { |
16090 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16091 | if (PyErr_Occurred()) SWIG_fail; | |
16092 | } | |
d14a1e28 RD |
16093 | { |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | result = (bool)(arg1)->GetToolState(arg2); | |
16096 | ||
16097 | wxPyEndAllowThreads(__tstate); | |
16098 | if (PyErr_Occurred()) SWIG_fail; | |
16099 | } | |
02a34c4c | 16100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16101 | return resultobj; |
16102 | fail: | |
16103 | return NULL; | |
16104 | } | |
16105 | ||
16106 | ||
16107 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16108 | PyObject *resultobj; | |
16109 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16110 | int arg2 ; | |
16111 | bool result; | |
16112 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16114 | char *kwnames[] = { |
16115 | (char *) "self",(char *) "id", NULL | |
16116 | }; | |
16117 | ||
8edf1c75 | 16118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16120 | { |
16121 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16122 | if (PyErr_Occurred()) SWIG_fail; | |
16123 | } | |
d14a1e28 RD |
16124 | { |
16125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16126 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16127 | ||
16128 | wxPyEndAllowThreads(__tstate); | |
16129 | if (PyErr_Occurred()) SWIG_fail; | |
16130 | } | |
02a34c4c | 16131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16132 | return resultobj; |
16133 | fail: | |
16134 | return NULL; | |
16135 | } | |
16136 | ||
16137 | ||
16138 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16139 | PyObject *resultobj; | |
16140 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16141 | int arg2 ; | |
16142 | wxString *arg3 = 0 ; | |
423f194a | 16143 | bool temp3 = False ; |
d14a1e28 | 16144 | PyObject * obj0 = 0 ; |
8edf1c75 | 16145 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16146 | PyObject * obj2 = 0 ; |
16147 | char *kwnames[] = { | |
16148 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16149 | }; | |
16150 | ||
8edf1c75 | 16151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16153 | { |
16154 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16155 | if (PyErr_Occurred()) SWIG_fail; | |
16156 | } | |
d14a1e28 RD |
16157 | { |
16158 | arg3 = wxString_in_helper(obj2); | |
16159 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16160 | temp3 = True; |
d14a1e28 RD |
16161 | } |
16162 | { | |
16163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16164 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16165 | ||
16166 | wxPyEndAllowThreads(__tstate); | |
16167 | if (PyErr_Occurred()) SWIG_fail; | |
16168 | } | |
16169 | Py_INCREF(Py_None); resultobj = Py_None; | |
16170 | { | |
16171 | if (temp3) | |
16172 | delete arg3; | |
16173 | } | |
16174 | return resultobj; | |
16175 | fail: | |
16176 | { | |
16177 | if (temp3) | |
16178 | delete arg3; | |
16179 | } | |
16180 | return NULL; | |
16181 | } | |
16182 | ||
16183 | ||
16184 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16185 | PyObject *resultobj; | |
16186 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16187 | int arg2 ; | |
16188 | wxString result; | |
16189 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16190 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16191 | char *kwnames[] = { |
16192 | (char *) "self",(char *) "id", NULL | |
16193 | }; | |
16194 | ||
8edf1c75 | 16195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16197 | { |
16198 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16199 | if (PyErr_Occurred()) SWIG_fail; | |
16200 | } | |
d14a1e28 RD |
16201 | { |
16202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16203 | result = (arg1)->GetToolShortHelp(arg2); | |
16204 | ||
16205 | wxPyEndAllowThreads(__tstate); | |
16206 | if (PyErr_Occurred()) SWIG_fail; | |
16207 | } | |
16208 | { | |
16209 | #if wxUSE_UNICODE | |
16210 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16211 | #else | |
16212 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16213 | #endif | |
16214 | } | |
16215 | return resultobj; | |
16216 | fail: | |
16217 | return NULL; | |
16218 | } | |
16219 | ||
16220 | ||
16221 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16222 | PyObject *resultobj; | |
16223 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16224 | int arg2 ; | |
16225 | wxString *arg3 = 0 ; | |
423f194a | 16226 | bool temp3 = False ; |
d14a1e28 | 16227 | PyObject * obj0 = 0 ; |
8edf1c75 | 16228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16229 | PyObject * obj2 = 0 ; |
16230 | char *kwnames[] = { | |
16231 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16232 | }; | |
16233 | ||
8edf1c75 | 16234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16236 | { |
16237 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16238 | if (PyErr_Occurred()) SWIG_fail; | |
16239 | } | |
d14a1e28 RD |
16240 | { |
16241 | arg3 = wxString_in_helper(obj2); | |
16242 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16243 | temp3 = True; |
d14a1e28 RD |
16244 | } |
16245 | { | |
16246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16247 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16248 | ||
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
16252 | Py_INCREF(Py_None); resultobj = Py_None; | |
16253 | { | |
16254 | if (temp3) | |
16255 | delete arg3; | |
16256 | } | |
16257 | return resultobj; | |
16258 | fail: | |
16259 | { | |
16260 | if (temp3) | |
16261 | delete arg3; | |
16262 | } | |
16263 | return NULL; | |
16264 | } | |
16265 | ||
16266 | ||
16267 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16268 | PyObject *resultobj; | |
16269 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16270 | int arg2 ; | |
16271 | wxString result; | |
16272 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16274 | char *kwnames[] = { |
16275 | (char *) "self",(char *) "id", NULL | |
16276 | }; | |
16277 | ||
8edf1c75 | 16278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16280 | { |
16281 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16282 | if (PyErr_Occurred()) SWIG_fail; | |
16283 | } | |
d14a1e28 RD |
16284 | { |
16285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16286 | result = (arg1)->GetToolLongHelp(arg2); | |
16287 | ||
16288 | wxPyEndAllowThreads(__tstate); | |
16289 | if (PyErr_Occurred()) SWIG_fail; | |
16290 | } | |
16291 | { | |
16292 | #if wxUSE_UNICODE | |
16293 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16294 | #else | |
16295 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16296 | #endif | |
16297 | } | |
16298 | return resultobj; | |
16299 | fail: | |
16300 | return NULL; | |
16301 | } | |
16302 | ||
16303 | ||
16304 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16305 | PyObject *resultobj; | |
16306 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16307 | int arg2 ; | |
16308 | int arg3 ; | |
16309 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16310 | PyObject * obj1 = 0 ; |
16311 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16312 | char *kwnames[] = { |
16313 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16314 | }; | |
16315 | ||
8edf1c75 | 16316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16318 | { |
16319 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16320 | if (PyErr_Occurred()) SWIG_fail; | |
16321 | } | |
16322 | { | |
16323 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16324 | if (PyErr_Occurred()) SWIG_fail; | |
16325 | } | |
d14a1e28 RD |
16326 | { |
16327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16328 | (arg1)->SetMargins(arg2,arg3); | |
16329 | ||
16330 | wxPyEndAllowThreads(__tstate); | |
16331 | if (PyErr_Occurred()) SWIG_fail; | |
16332 | } | |
16333 | Py_INCREF(Py_None); resultobj = Py_None; | |
16334 | return resultobj; | |
16335 | fail: | |
16336 | return NULL; | |
16337 | } | |
16338 | ||
16339 | ||
16340 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16341 | PyObject *resultobj; | |
16342 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16343 | wxSize *arg2 = 0 ; | |
16344 | wxSize temp2 ; | |
16345 | PyObject * obj0 = 0 ; | |
16346 | PyObject * obj1 = 0 ; | |
16347 | char *kwnames[] = { | |
16348 | (char *) "self",(char *) "size", NULL | |
16349 | }; | |
16350 | ||
16351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16353 | { | |
16354 | arg2 = &temp2; | |
16355 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16356 | } | |
16357 | { | |
16358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16359 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16360 | ||
16361 | wxPyEndAllowThreads(__tstate); | |
16362 | if (PyErr_Occurred()) SWIG_fail; | |
16363 | } | |
16364 | Py_INCREF(Py_None); resultobj = Py_None; | |
16365 | return resultobj; | |
16366 | fail: | |
16367 | return NULL; | |
16368 | } | |
16369 | ||
16370 | ||
16371 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16372 | PyObject *resultobj; | |
16373 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16374 | int arg2 ; | |
16375 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16376 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16377 | char *kwnames[] = { |
16378 | (char *) "self",(char *) "packing", NULL | |
16379 | }; | |
16380 | ||
8edf1c75 | 16381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16383 | { |
16384 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16385 | if (PyErr_Occurred()) SWIG_fail; | |
16386 | } | |
d14a1e28 RD |
16387 | { |
16388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16389 | (arg1)->SetToolPacking(arg2); | |
16390 | ||
16391 | wxPyEndAllowThreads(__tstate); | |
16392 | if (PyErr_Occurred()) SWIG_fail; | |
16393 | } | |
16394 | Py_INCREF(Py_None); resultobj = Py_None; | |
16395 | return resultobj; | |
16396 | fail: | |
16397 | return NULL; | |
16398 | } | |
16399 | ||
16400 | ||
16401 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16402 | PyObject *resultobj; | |
16403 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16404 | int arg2 ; | |
16405 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16407 | char *kwnames[] = { |
16408 | (char *) "self",(char *) "separation", NULL | |
16409 | }; | |
16410 | ||
8edf1c75 | 16411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16413 | { |
16414 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
16416 | } | |
d14a1e28 RD |
16417 | { |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | (arg1)->SetToolSeparation(arg2); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
16424 | Py_INCREF(Py_None); resultobj = Py_None; | |
16425 | return resultobj; | |
16426 | fail: | |
16427 | return NULL; | |
16428 | } | |
16429 | ||
16430 | ||
16431 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16434 | wxSize result; | |
16435 | PyObject * obj0 = 0 ; | |
16436 | char *kwnames[] = { | |
16437 | (char *) "self", NULL | |
16438 | }; | |
16439 | ||
16440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16442 | { | |
16443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16444 | result = (arg1)->GetToolMargins(); | |
16445 | ||
16446 | wxPyEndAllowThreads(__tstate); | |
16447 | if (PyErr_Occurred()) SWIG_fail; | |
16448 | } | |
16449 | { | |
16450 | wxSize * resultptr; | |
16451 | resultptr = new wxSize((wxSize &) result); | |
16452 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16453 | } | |
16454 | return resultobj; | |
16455 | fail: | |
16456 | return NULL; | |
16457 | } | |
16458 | ||
16459 | ||
16460 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16461 | PyObject *resultobj; | |
16462 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16463 | wxSize result; | |
16464 | PyObject * obj0 = 0 ; | |
16465 | char *kwnames[] = { | |
16466 | (char *) "self", NULL | |
16467 | }; | |
16468 | ||
16469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
16470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16471 | { | |
16472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16473 | result = (arg1)->GetMargins(); | |
16474 | ||
16475 | wxPyEndAllowThreads(__tstate); | |
16476 | if (PyErr_Occurred()) SWIG_fail; | |
16477 | } | |
16478 | { | |
16479 | wxSize * resultptr; | |
16480 | resultptr = new wxSize((wxSize &) result); | |
16481 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16482 | } | |
16483 | return resultobj; | |
16484 | fail: | |
16485 | return NULL; | |
16486 | } | |
16487 | ||
16488 | ||
16489 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16490 | PyObject *resultobj; | |
16491 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16492 | int result; | |
16493 | PyObject * obj0 = 0 ; | |
16494 | char *kwnames[] = { | |
16495 | (char *) "self", NULL | |
16496 | }; | |
16497 | ||
16498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
16499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16500 | { | |
16501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16502 | result = (int)(arg1)->GetToolPacking(); | |
16503 | ||
16504 | wxPyEndAllowThreads(__tstate); | |
16505 | if (PyErr_Occurred()) SWIG_fail; | |
16506 | } | |
8edf1c75 | 16507 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16508 | return resultobj; |
16509 | fail: | |
16510 | return NULL; | |
16511 | } | |
16512 | ||
16513 | ||
16514 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16515 | PyObject *resultobj; | |
16516 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16517 | int result; | |
16518 | PyObject * obj0 = 0 ; | |
16519 | char *kwnames[] = { | |
16520 | (char *) "self", NULL | |
16521 | }; | |
16522 | ||
16523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
16524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16525 | { | |
16526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16527 | result = (int)(arg1)->GetToolSeparation(); | |
16528 | ||
16529 | wxPyEndAllowThreads(__tstate); | |
16530 | if (PyErr_Occurred()) SWIG_fail; | |
16531 | } | |
8edf1c75 | 16532 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16533 | return resultobj; |
16534 | fail: | |
16535 | return NULL; | |
16536 | } | |
16537 | ||
16538 | ||
16539 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16540 | PyObject *resultobj; | |
16541 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16542 | int arg2 ; | |
16543 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16544 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16545 | char *kwnames[] = { |
16546 | (char *) "self",(char *) "nRows", NULL | |
16547 | }; | |
16548 | ||
8edf1c75 | 16549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16551 | { |
16552 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
d14a1e28 RD |
16555 | { |
16556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16557 | (arg1)->SetRows(arg2); | |
16558 | ||
16559 | wxPyEndAllowThreads(__tstate); | |
16560 | if (PyErr_Occurred()) SWIG_fail; | |
16561 | } | |
16562 | Py_INCREF(Py_None); resultobj = Py_None; | |
16563 | return resultobj; | |
16564 | fail: | |
16565 | return NULL; | |
16566 | } | |
16567 | ||
16568 | ||
16569 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16570 | PyObject *resultobj; | |
16571 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16572 | int arg2 ; | |
16573 | int arg3 ; | |
16574 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16575 | PyObject * obj1 = 0 ; |
16576 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16577 | char *kwnames[] = { |
16578 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
16579 | }; | |
16580 | ||
8edf1c75 | 16581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16583 | { |
16584 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | } | |
16587 | { | |
16588 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16589 | if (PyErr_Occurred()) SWIG_fail; | |
16590 | } | |
d14a1e28 RD |
16591 | { |
16592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16593 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
16594 | ||
16595 | wxPyEndAllowThreads(__tstate); | |
16596 | if (PyErr_Occurred()) SWIG_fail; | |
16597 | } | |
16598 | Py_INCREF(Py_None); resultobj = Py_None; | |
16599 | return resultobj; | |
16600 | fail: | |
16601 | return NULL; | |
16602 | } | |
16603 | ||
16604 | ||
16605 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16606 | PyObject *resultobj; | |
16607 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16608 | int result; | |
16609 | PyObject * obj0 = 0 ; | |
16610 | char *kwnames[] = { | |
16611 | (char *) "self", NULL | |
16612 | }; | |
16613 | ||
16614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
16615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16616 | { | |
16617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16618 | result = (int)(arg1)->GetMaxRows(); | |
16619 | ||
16620 | wxPyEndAllowThreads(__tstate); | |
16621 | if (PyErr_Occurred()) SWIG_fail; | |
16622 | } | |
8edf1c75 | 16623 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16624 | return resultobj; |
16625 | fail: | |
16626 | return NULL; | |
16627 | } | |
16628 | ||
16629 | ||
16630 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16631 | PyObject *resultobj; | |
16632 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16633 | int result; | |
16634 | PyObject * obj0 = 0 ; | |
16635 | char *kwnames[] = { | |
16636 | (char *) "self", NULL | |
16637 | }; | |
16638 | ||
16639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
16640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16641 | { | |
16642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16643 | result = (int)(arg1)->GetMaxCols(); | |
16644 | ||
16645 | wxPyEndAllowThreads(__tstate); | |
16646 | if (PyErr_Occurred()) SWIG_fail; | |
16647 | } | |
8edf1c75 | 16648 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16649 | return resultobj; |
16650 | fail: | |
16651 | return NULL; | |
16652 | } | |
16653 | ||
16654 | ||
16655 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16656 | PyObject *resultobj; | |
16657 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16658 | wxSize *arg2 = 0 ; | |
16659 | wxSize temp2 ; | |
16660 | PyObject * obj0 = 0 ; | |
16661 | PyObject * obj1 = 0 ; | |
16662 | char *kwnames[] = { | |
16663 | (char *) "self",(char *) "size", NULL | |
16664 | }; | |
16665 | ||
16666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
16667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16668 | { | |
16669 | arg2 = &temp2; | |
16670 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16671 | } | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
16675 | ||
16676 | wxPyEndAllowThreads(__tstate); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | } | |
16679 | Py_INCREF(Py_None); resultobj = Py_None; | |
16680 | return resultobj; | |
16681 | fail: | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
16686 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16687 | PyObject *resultobj; | |
16688 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16689 | wxSize result; | |
16690 | PyObject * obj0 = 0 ; | |
16691 | char *kwnames[] = { | |
16692 | (char *) "self", NULL | |
16693 | }; | |
16694 | ||
16695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
16696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16697 | { | |
16698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16699 | result = (arg1)->GetToolBitmapSize(); | |
16700 | ||
16701 | wxPyEndAllowThreads(__tstate); | |
16702 | if (PyErr_Occurred()) SWIG_fail; | |
16703 | } | |
16704 | { | |
16705 | wxSize * resultptr; | |
16706 | resultptr = new wxSize((wxSize &) result); | |
16707 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16708 | } | |
16709 | return resultobj; | |
16710 | fail: | |
16711 | return NULL; | |
16712 | } | |
16713 | ||
16714 | ||
16715 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16716 | PyObject *resultobj; | |
16717 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16718 | wxSize result; | |
16719 | PyObject * obj0 = 0 ; | |
16720 | char *kwnames[] = { | |
16721 | (char *) "self", NULL | |
16722 | }; | |
16723 | ||
16724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
16725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16726 | { | |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | result = (arg1)->GetToolSize(); | |
16729 | ||
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
16733 | { | |
16734 | wxSize * resultptr; | |
16735 | resultptr = new wxSize((wxSize &) result); | |
16736 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16737 | } | |
16738 | return resultobj; | |
16739 | fail: | |
16740 | return NULL; | |
16741 | } | |
16742 | ||
16743 | ||
16744 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16745 | PyObject *resultobj; | |
16746 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
16747 | int arg2 ; |
16748 | int arg3 ; | |
d14a1e28 RD |
16749 | wxToolBarToolBase *result; |
16750 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16751 | PyObject * obj1 = 0 ; |
16752 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16753 | char *kwnames[] = { |
16754 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16755 | }; | |
16756 | ||
8edf1c75 | 16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16759 | { |
16760 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
16762 | } | |
16763 | { | |
16764 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16765 | if (PyErr_Occurred()) SWIG_fail; | |
16766 | } | |
d14a1e28 RD |
16767 | { |
16768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16769 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
16770 | ||
16771 | wxPyEndAllowThreads(__tstate); | |
16772 | if (PyErr_Occurred()) SWIG_fail; | |
16773 | } | |
16774 | { | |
16775 | resultobj = wxPyMake_wxObject(result); | |
16776 | } | |
16777 | return resultobj; | |
16778 | fail: | |
16779 | return NULL; | |
16780 | } | |
16781 | ||
16782 | ||
cbd72d4f RD |
16783 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
16784 | PyObject *resultobj; | |
16785 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16786 | int arg2 ; | |
16787 | wxToolBarToolBase *result; | |
16788 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16789 | PyObject * obj1 = 0 ; |
cbd72d4f RD |
16790 | char *kwnames[] = { |
16791 | (char *) "self",(char *) "toolid", NULL | |
16792 | }; | |
16793 | ||
8edf1c75 | 16794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
cbd72d4f | 16795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16796 | { |
16797 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16798 | if (PyErr_Occurred()) SWIG_fail; | |
16799 | } | |
cbd72d4f RD |
16800 | { |
16801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16802 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
16803 | ||
16804 | wxPyEndAllowThreads(__tstate); | |
16805 | if (PyErr_Occurred()) SWIG_fail; | |
16806 | } | |
16807 | { | |
16808 | resultobj = wxPyMake_wxObject(result); | |
16809 | } | |
16810 | return resultobj; | |
16811 | fail: | |
16812 | return NULL; | |
16813 | } | |
16814 | ||
16815 | ||
d14a1e28 RD |
16816 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
16817 | PyObject *resultobj; | |
16818 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16819 | bool result; | |
16820 | PyObject * obj0 = 0 ; | |
16821 | char *kwnames[] = { | |
16822 | (char *) "self", NULL | |
16823 | }; | |
16824 | ||
16825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
16826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16827 | { | |
16828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16829 | result = (bool)(arg1)->IsVertical(); | |
16830 | ||
16831 | wxPyEndAllowThreads(__tstate); | |
16832 | if (PyErr_Occurred()) SWIG_fail; | |
16833 | } | |
02a34c4c | 16834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16835 | return resultobj; |
16836 | fail: | |
16837 | return NULL; | |
16838 | } | |
16839 | ||
16840 | ||
16841 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
16842 | PyObject *obj; | |
16843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16844 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
16845 | Py_INCREF(obj); | |
16846 | return Py_BuildValue((char *)""); | |
16847 | } | |
16848 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16849 | PyObject *resultobj; | |
16850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 16851 | int arg2 ; |
d14a1e28 RD |
16852 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16853 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16854 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16855 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16856 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
16857 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
16858 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16859 | wxToolBar *result; | |
16860 | wxPoint temp3 ; | |
16861 | wxSize temp4 ; | |
423f194a | 16862 | bool temp6 = False ; |
d14a1e28 | 16863 | PyObject * obj0 = 0 ; |
8edf1c75 | 16864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16865 | PyObject * obj2 = 0 ; |
16866 | PyObject * obj3 = 0 ; | |
8edf1c75 | 16867 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16868 | PyObject * obj5 = 0 ; |
16869 | char *kwnames[] = { | |
16870 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16871 | }; | |
16872 | ||
8edf1c75 | 16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 16874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16875 | { |
16876 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16877 | if (PyErr_Occurred()) SWIG_fail; | |
16878 | } | |
d14a1e28 RD |
16879 | if (obj2) { |
16880 | { | |
16881 | arg3 = &temp3; | |
16882 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16883 | } | |
16884 | } | |
16885 | if (obj3) { | |
16886 | { | |
16887 | arg4 = &temp4; | |
16888 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16889 | } | |
16890 | } | |
8edf1c75 RD |
16891 | if (obj4) { |
16892 | { | |
16893 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16894 | if (PyErr_Occurred()) SWIG_fail; | |
16895 | } | |
16896 | } | |
d14a1e28 RD |
16897 | if (obj5) { |
16898 | { | |
16899 | arg6 = wxString_in_helper(obj5); | |
16900 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 16901 | temp6 = True; |
d14a1e28 RD |
16902 | } |
16903 | } | |
16904 | { | |
16905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16906 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16907 | ||
16908 | wxPyEndAllowThreads(__tstate); | |
16909 | if (PyErr_Occurred()) SWIG_fail; | |
16910 | } | |
16911 | { | |
16912 | resultobj = wxPyMake_wxObject(result); | |
16913 | } | |
16914 | { | |
16915 | if (temp6) | |
16916 | delete arg6; | |
16917 | } | |
16918 | return resultobj; | |
16919 | fail: | |
16920 | { | |
16921 | if (temp6) | |
16922 | delete arg6; | |
16923 | } | |
16924 | return NULL; | |
16925 | } | |
16926 | ||
16927 | ||
16928 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16929 | PyObject *resultobj; | |
16930 | wxToolBar *result; | |
16931 | char *kwnames[] = { | |
16932 | NULL | |
16933 | }; | |
16934 | ||
16935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
16936 | { | |
16937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16938 | result = (wxToolBar *)new wxToolBar(); | |
16939 | ||
16940 | wxPyEndAllowThreads(__tstate); | |
16941 | if (PyErr_Occurred()) SWIG_fail; | |
16942 | } | |
16943 | { | |
16944 | resultobj = wxPyMake_wxObject(result); | |
16945 | } | |
16946 | return resultobj; | |
16947 | fail: | |
16948 | return NULL; | |
16949 | } | |
16950 | ||
16951 | ||
16952 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16953 | PyObject *resultobj; | |
16954 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
16955 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 16956 | int arg3 ; |
d14a1e28 RD |
16957 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
16958 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16959 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16960 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16961 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
16962 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
16963 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16964 | bool result; | |
16965 | wxPoint temp4 ; | |
16966 | wxSize temp5 ; | |
423f194a | 16967 | bool temp7 = False ; |
d14a1e28 RD |
16968 | PyObject * obj0 = 0 ; |
16969 | PyObject * obj1 = 0 ; | |
8edf1c75 | 16970 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16971 | PyObject * obj3 = 0 ; |
16972 | PyObject * obj4 = 0 ; | |
8edf1c75 | 16973 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16974 | PyObject * obj6 = 0 ; |
16975 | char *kwnames[] = { | |
16976 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16977 | }; | |
16978 | ||
8edf1c75 | 16979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
16980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16981 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
16982 | { |
16983 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16984 | if (PyErr_Occurred()) SWIG_fail; | |
16985 | } | |
d14a1e28 RD |
16986 | if (obj3) { |
16987 | { | |
16988 | arg4 = &temp4; | |
16989 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
16990 | } | |
16991 | } | |
16992 | if (obj4) { | |
16993 | { | |
16994 | arg5 = &temp5; | |
16995 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16996 | } | |
16997 | } | |
8edf1c75 RD |
16998 | if (obj5) { |
16999 | { | |
17000 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
17001 | if (PyErr_Occurred()) SWIG_fail; | |
17002 | } | |
17003 | } | |
d14a1e28 RD |
17004 | if (obj6) { |
17005 | { | |
17006 | arg7 = wxString_in_helper(obj6); | |
17007 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17008 | temp7 = True; |
d14a1e28 RD |
17009 | } |
17010 | } | |
17011 | { | |
17012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17013 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17014 | ||
17015 | wxPyEndAllowThreads(__tstate); | |
17016 | if (PyErr_Occurred()) SWIG_fail; | |
17017 | } | |
02a34c4c | 17018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17019 | { |
17020 | if (temp7) | |
17021 | delete arg7; | |
17022 | } | |
17023 | return resultobj; | |
17024 | fail: | |
17025 | { | |
17026 | if (temp7) | |
17027 | delete arg7; | |
17028 | } | |
17029 | return NULL; | |
17030 | } | |
17031 | ||
17032 | ||
17033 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17034 | PyObject *resultobj; | |
17035 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17036 | int arg2 ; |
17037 | int arg3 ; | |
d14a1e28 RD |
17038 | wxToolBarToolBase *result; |
17039 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17040 | PyObject * obj1 = 0 ; |
17041 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17042 | char *kwnames[] = { |
17043 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17044 | }; | |
17045 | ||
8edf1c75 | 17046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17048 | { |
17049 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17050 | if (PyErr_Occurred()) SWIG_fail; | |
17051 | } | |
17052 | { | |
17053 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17054 | if (PyErr_Occurred()) SWIG_fail; | |
17055 | } | |
d14a1e28 RD |
17056 | { |
17057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17058 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17059 | ||
17060 | wxPyEndAllowThreads(__tstate); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
17063 | { | |
17064 | resultobj = wxPyMake_wxObject(result); | |
17065 | } | |
17066 | return resultobj; | |
17067 | fail: | |
17068 | return NULL; | |
17069 | } | |
17070 | ||
17071 | ||
17072 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17073 | PyObject *obj; | |
17074 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17075 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17076 | Py_INCREF(obj); | |
17077 | return Py_BuildValue((char *)""); | |
17078 | } | |
8edf1c75 | 17079 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
17080 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17081 | return 1; | |
17082 | } | |
17083 | ||
17084 | ||
17085 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17086 | PyObject *pyobj; | |
17087 | ||
17088 | { | |
17089 | #if wxUSE_UNICODE | |
17090 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17091 | #else | |
17092 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17093 | #endif | |
17094 | } | |
17095 | return pyobj; | |
17096 | } | |
17097 | ||
17098 | ||
d14a1e28 RD |
17099 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17100 | PyObject *resultobj; | |
17101 | wxColour const &arg1_defvalue = wxNullColour ; | |
17102 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17103 | wxColour const &arg2_defvalue = wxNullColour ; | |
17104 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17105 | wxFont const &arg3_defvalue = wxNullFont ; | |
17106 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17107 | wxListItemAttr *result; | |
17108 | wxColour temp1 ; | |
17109 | wxColour temp2 ; | |
17110 | PyObject * obj0 = 0 ; | |
17111 | PyObject * obj1 = 0 ; | |
17112 | PyObject * obj2 = 0 ; | |
17113 | char *kwnames[] = { | |
17114 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17115 | }; | |
17116 | ||
17117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17118 | if (obj0) { | |
17119 | { | |
17120 | arg1 = &temp1; | |
17121 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17122 | } | |
17123 | } | |
17124 | if (obj1) { | |
17125 | { | |
17126 | arg2 = &temp2; | |
17127 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17128 | } | |
17129 | } | |
17130 | if (obj2) { | |
17131 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17132 | if (arg3 == NULL) { | |
17133 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17134 | } | |
17135 | } | |
17136 | { | |
17137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17138 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17139 | ||
17140 | wxPyEndAllowThreads(__tstate); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | } | |
17143 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
17144 | return resultobj; | |
17145 | fail: | |
17146 | return NULL; | |
17147 | } | |
17148 | ||
17149 | ||
17150 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17151 | PyObject *resultobj; | |
17152 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17153 | wxColour *arg2 = 0 ; | |
17154 | wxColour temp2 ; | |
17155 | PyObject * obj0 = 0 ; | |
17156 | PyObject * obj1 = 0 ; | |
17157 | char *kwnames[] = { | |
17158 | (char *) "self",(char *) "colText", NULL | |
17159 | }; | |
17160 | ||
17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17163 | { | |
17164 | arg2 = &temp2; | |
17165 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17166 | } | |
17167 | { | |
17168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17169 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17170 | ||
17171 | wxPyEndAllowThreads(__tstate); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | } | |
17174 | Py_INCREF(Py_None); resultobj = Py_None; | |
17175 | return resultobj; | |
17176 | fail: | |
17177 | return NULL; | |
17178 | } | |
17179 | ||
17180 | ||
17181 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17182 | PyObject *resultobj; | |
17183 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17184 | wxColour *arg2 = 0 ; | |
17185 | wxColour temp2 ; | |
17186 | PyObject * obj0 = 0 ; | |
17187 | PyObject * obj1 = 0 ; | |
17188 | char *kwnames[] = { | |
17189 | (char *) "self",(char *) "colBack", NULL | |
17190 | }; | |
17191 | ||
17192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17194 | { | |
17195 | arg2 = &temp2; | |
17196 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17197 | } | |
17198 | { | |
17199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17200 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17201 | ||
17202 | wxPyEndAllowThreads(__tstate); | |
17203 | if (PyErr_Occurred()) SWIG_fail; | |
17204 | } | |
17205 | Py_INCREF(Py_None); resultobj = Py_None; | |
17206 | return resultobj; | |
17207 | fail: | |
17208 | return NULL; | |
17209 | } | |
17210 | ||
17211 | ||
17212 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17213 | PyObject *resultobj; | |
17214 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17215 | wxFont *arg2 = 0 ; | |
17216 | PyObject * obj0 = 0 ; | |
17217 | PyObject * obj1 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "self",(char *) "font", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17224 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17225 | if (arg2 == NULL) { | |
17226 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17227 | } | |
17228 | { | |
17229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17230 | (arg1)->SetFont((wxFont const &)*arg2); | |
17231 | ||
17232 | wxPyEndAllowThreads(__tstate); | |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
17234 | } | |
17235 | Py_INCREF(Py_None); resultobj = Py_None; | |
17236 | return resultobj; | |
17237 | fail: | |
17238 | return NULL; | |
17239 | } | |
17240 | ||
17241 | ||
17242 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17243 | PyObject *resultobj; | |
17244 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17245 | bool result; | |
17246 | PyObject * obj0 = 0 ; | |
17247 | char *kwnames[] = { | |
17248 | (char *) "self", NULL | |
17249 | }; | |
17250 | ||
17251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17253 | { | |
17254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17255 | result = (bool)(arg1)->HasTextColour(); | |
17256 | ||
17257 | wxPyEndAllowThreads(__tstate); | |
17258 | if (PyErr_Occurred()) SWIG_fail; | |
17259 | } | |
02a34c4c | 17260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17261 | return resultobj; |
17262 | fail: | |
17263 | return NULL; | |
17264 | } | |
17265 | ||
17266 | ||
17267 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17268 | PyObject *resultobj; | |
17269 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17270 | bool result; | |
17271 | PyObject * obj0 = 0 ; | |
17272 | char *kwnames[] = { | |
17273 | (char *) "self", NULL | |
17274 | }; | |
17275 | ||
17276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17278 | { | |
17279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17280 | result = (bool)(arg1)->HasBackgroundColour(); | |
17281 | ||
17282 | wxPyEndAllowThreads(__tstate); | |
17283 | if (PyErr_Occurred()) SWIG_fail; | |
17284 | } | |
02a34c4c | 17285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17286 | return resultobj; |
17287 | fail: | |
17288 | return NULL; | |
17289 | } | |
17290 | ||
17291 | ||
17292 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17293 | PyObject *resultobj; | |
17294 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17295 | bool result; | |
17296 | PyObject * obj0 = 0 ; | |
17297 | char *kwnames[] = { | |
17298 | (char *) "self", NULL | |
17299 | }; | |
17300 | ||
17301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17303 | { | |
17304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17305 | result = (bool)(arg1)->HasFont(); | |
17306 | ||
17307 | wxPyEndAllowThreads(__tstate); | |
17308 | if (PyErr_Occurred()) SWIG_fail; | |
17309 | } | |
02a34c4c | 17310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17311 | return resultobj; |
17312 | fail: | |
17313 | return NULL; | |
17314 | } | |
17315 | ||
17316 | ||
17317 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17318 | PyObject *resultobj; | |
17319 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17320 | wxColour result; | |
17321 | PyObject * obj0 = 0 ; | |
17322 | char *kwnames[] = { | |
17323 | (char *) "self", NULL | |
17324 | }; | |
17325 | ||
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17328 | { | |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | result = (arg1)->GetTextColour(); | |
17331 | ||
17332 | wxPyEndAllowThreads(__tstate); | |
17333 | if (PyErr_Occurred()) SWIG_fail; | |
17334 | } | |
17335 | { | |
17336 | wxColour * resultptr; | |
17337 | resultptr = new wxColour((wxColour &) result); | |
17338 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17339 | } | |
17340 | return resultobj; | |
17341 | fail: | |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
17346 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17347 | PyObject *resultobj; | |
17348 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17349 | wxColour result; | |
17350 | PyObject * obj0 = 0 ; | |
17351 | char *kwnames[] = { | |
17352 | (char *) "self", NULL | |
17353 | }; | |
17354 | ||
17355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17357 | { | |
17358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17359 | result = (arg1)->GetBackgroundColour(); | |
17360 | ||
17361 | wxPyEndAllowThreads(__tstate); | |
17362 | if (PyErr_Occurred()) SWIG_fail; | |
17363 | } | |
17364 | { | |
17365 | wxColour * resultptr; | |
17366 | resultptr = new wxColour((wxColour &) result); | |
17367 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17368 | } | |
17369 | return resultobj; | |
17370 | fail: | |
17371 | return NULL; | |
17372 | } | |
17373 | ||
17374 | ||
17375 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17376 | PyObject *resultobj; | |
17377 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17378 | wxFont result; | |
17379 | PyObject * obj0 = 0 ; | |
17380 | char *kwnames[] = { | |
17381 | (char *) "self", NULL | |
17382 | }; | |
17383 | ||
17384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17386 | { | |
17387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17388 | result = (arg1)->GetFont(); | |
17389 | ||
17390 | wxPyEndAllowThreads(__tstate); | |
17391 | if (PyErr_Occurred()) SWIG_fail; | |
17392 | } | |
17393 | { | |
17394 | wxFont * resultptr; | |
17395 | resultptr = new wxFont((wxFont &) result); | |
17396 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17397 | } | |
17398 | return resultobj; | |
17399 | fail: | |
17400 | return NULL; | |
17401 | } | |
17402 | ||
17403 | ||
17404 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17405 | PyObject *resultobj; | |
17406 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17407 | PyObject * obj0 = 0 ; | |
17408 | char *kwnames[] = { | |
17409 | (char *) "self", NULL | |
17410 | }; | |
17411 | ||
17412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17414 | { | |
17415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17416 | wxListItemAttr_Destroy(arg1); | |
17417 | ||
17418 | wxPyEndAllowThreads(__tstate); | |
17419 | if (PyErr_Occurred()) SWIG_fail; | |
17420 | } | |
17421 | Py_INCREF(Py_None); resultobj = Py_None; | |
17422 | return resultobj; | |
17423 | fail: | |
17424 | return NULL; | |
17425 | } | |
17426 | ||
17427 | ||
17428 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17429 | PyObject *obj; | |
17430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17431 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17432 | Py_INCREF(obj); | |
17433 | return Py_BuildValue((char *)""); | |
17434 | } | |
17435 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17436 | PyObject *resultobj; | |
17437 | wxListItem *result; | |
17438 | char *kwnames[] = { | |
17439 | NULL | |
17440 | }; | |
17441 | ||
17442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17443 | { | |
17444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17445 | result = (wxListItem *)new wxListItem(); | |
17446 | ||
17447 | wxPyEndAllowThreads(__tstate); | |
17448 | if (PyErr_Occurred()) SWIG_fail; | |
17449 | } | |
17450 | { | |
17451 | resultobj = wxPyMake_wxObject(result); | |
17452 | } | |
17453 | return resultobj; | |
17454 | fail: | |
17455 | return NULL; | |
17456 | } | |
17457 | ||
17458 | ||
17459 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17460 | PyObject *resultobj; | |
17461 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17462 | PyObject * obj0 = 0 ; | |
17463 | char *kwnames[] = { | |
17464 | (char *) "self", NULL | |
17465 | }; | |
17466 | ||
17467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
17468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17469 | { | |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17471 | delete arg1; | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
17476 | Py_INCREF(Py_None); resultobj = Py_None; | |
17477 | return resultobj; | |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
17483 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17484 | PyObject *resultobj; | |
17485 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17486 | PyObject * obj0 = 0 ; | |
17487 | char *kwnames[] = { | |
17488 | (char *) "self", NULL | |
17489 | }; | |
17490 | ||
17491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
17492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17493 | { | |
17494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17495 | (arg1)->Clear(); | |
17496 | ||
17497 | wxPyEndAllowThreads(__tstate); | |
17498 | if (PyErr_Occurred()) SWIG_fail; | |
17499 | } | |
17500 | Py_INCREF(Py_None); resultobj = Py_None; | |
17501 | return resultobj; | |
17502 | fail: | |
17503 | return NULL; | |
17504 | } | |
17505 | ||
17506 | ||
17507 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17508 | PyObject *resultobj; | |
17509 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17510 | PyObject * obj0 = 0 ; | |
17511 | char *kwnames[] = { | |
17512 | (char *) "self", NULL | |
17513 | }; | |
17514 | ||
17515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
17516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17517 | { | |
17518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17519 | (arg1)->ClearAttributes(); | |
17520 | ||
17521 | wxPyEndAllowThreads(__tstate); | |
17522 | if (PyErr_Occurred()) SWIG_fail; | |
17523 | } | |
17524 | Py_INCREF(Py_None); resultobj = Py_None; | |
17525 | return resultobj; | |
17526 | fail: | |
17527 | return NULL; | |
17528 | } | |
17529 | ||
17530 | ||
17531 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17532 | PyObject *resultobj; | |
17533 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17534 | long arg2 ; | |
17535 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17536 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17537 | char *kwnames[] = { |
17538 | (char *) "self",(char *) "mask", NULL | |
17539 | }; | |
17540 | ||
8edf1c75 | 17541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17543 | { |
17544 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17545 | if (PyErr_Occurred()) SWIG_fail; | |
17546 | } | |
d14a1e28 RD |
17547 | { |
17548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17549 | (arg1)->SetMask(arg2); | |
17550 | ||
17551 | wxPyEndAllowThreads(__tstate); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
17554 | Py_INCREF(Py_None); resultobj = Py_None; | |
17555 | return resultobj; | |
17556 | fail: | |
17557 | return NULL; | |
17558 | } | |
17559 | ||
17560 | ||
17561 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17562 | PyObject *resultobj; | |
17563 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17564 | long arg2 ; | |
17565 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17566 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17567 | char *kwnames[] = { |
17568 | (char *) "self",(char *) "id", NULL | |
17569 | }; | |
17570 | ||
8edf1c75 | 17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17573 | { |
17574 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
17576 | } | |
d14a1e28 RD |
17577 | { |
17578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17579 | (arg1)->SetId(arg2); | |
17580 | ||
17581 | wxPyEndAllowThreads(__tstate); | |
17582 | if (PyErr_Occurred()) SWIG_fail; | |
17583 | } | |
17584 | Py_INCREF(Py_None); resultobj = Py_None; | |
17585 | return resultobj; | |
17586 | fail: | |
17587 | return NULL; | |
17588 | } | |
17589 | ||
17590 | ||
17591 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17592 | PyObject *resultobj; | |
17593 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17594 | int arg2 ; | |
17595 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17596 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17597 | char *kwnames[] = { |
17598 | (char *) "self",(char *) "col", NULL | |
17599 | }; | |
17600 | ||
8edf1c75 | 17601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17603 | { |
17604 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17605 | if (PyErr_Occurred()) SWIG_fail; | |
17606 | } | |
d14a1e28 RD |
17607 | { |
17608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17609 | (arg1)->SetColumn(arg2); | |
17610 | ||
17611 | wxPyEndAllowThreads(__tstate); | |
17612 | if (PyErr_Occurred()) SWIG_fail; | |
17613 | } | |
17614 | Py_INCREF(Py_None); resultobj = Py_None; | |
17615 | return resultobj; | |
17616 | fail: | |
17617 | return NULL; | |
17618 | } | |
17619 | ||
17620 | ||
17621 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17622 | PyObject *resultobj; | |
17623 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17624 | long arg2 ; | |
17625 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17626 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17627 | char *kwnames[] = { |
17628 | (char *) "self",(char *) "state", NULL | |
17629 | }; | |
17630 | ||
8edf1c75 | 17631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17633 | { |
17634 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17635 | if (PyErr_Occurred()) SWIG_fail; | |
17636 | } | |
d14a1e28 RD |
17637 | { |
17638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17639 | (arg1)->SetState(arg2); | |
17640 | ||
17641 | wxPyEndAllowThreads(__tstate); | |
17642 | if (PyErr_Occurred()) SWIG_fail; | |
17643 | } | |
17644 | Py_INCREF(Py_None); resultobj = Py_None; | |
17645 | return resultobj; | |
17646 | fail: | |
17647 | return NULL; | |
17648 | } | |
17649 | ||
17650 | ||
17651 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17652 | PyObject *resultobj; | |
17653 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17654 | long arg2 ; | |
17655 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17657 | char *kwnames[] = { |
17658 | (char *) "self",(char *) "stateMask", NULL | |
17659 | }; | |
17660 | ||
8edf1c75 | 17661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17663 | { |
17664 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | } | |
d14a1e28 RD |
17667 | { |
17668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17669 | (arg1)->SetStateMask(arg2); | |
17670 | ||
17671 | wxPyEndAllowThreads(__tstate); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
17674 | Py_INCREF(Py_None); resultobj = Py_None; | |
17675 | return resultobj; | |
17676 | fail: | |
17677 | return NULL; | |
17678 | } | |
17679 | ||
17680 | ||
17681 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17682 | PyObject *resultobj; | |
17683 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17684 | wxString *arg2 = 0 ; | |
423f194a | 17685 | bool temp2 = False ; |
d14a1e28 RD |
17686 | PyObject * obj0 = 0 ; |
17687 | PyObject * obj1 = 0 ; | |
17688 | char *kwnames[] = { | |
17689 | (char *) "self",(char *) "text", NULL | |
17690 | }; | |
17691 | ||
17692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
17693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17694 | { | |
17695 | arg2 = wxString_in_helper(obj1); | |
17696 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17697 | temp2 = True; |
d14a1e28 RD |
17698 | } |
17699 | { | |
17700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17701 | (arg1)->SetText((wxString const &)*arg2); | |
17702 | ||
17703 | wxPyEndAllowThreads(__tstate); | |
17704 | if (PyErr_Occurred()) SWIG_fail; | |
17705 | } | |
17706 | Py_INCREF(Py_None); resultobj = Py_None; | |
17707 | { | |
17708 | if (temp2) | |
17709 | delete arg2; | |
17710 | } | |
17711 | return resultobj; | |
17712 | fail: | |
17713 | { | |
17714 | if (temp2) | |
17715 | delete arg2; | |
17716 | } | |
17717 | return NULL; | |
17718 | } | |
17719 | ||
17720 | ||
17721 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17722 | PyObject *resultobj; | |
17723 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17724 | int arg2 ; | |
17725 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17726 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17727 | char *kwnames[] = { |
17728 | (char *) "self",(char *) "image", NULL | |
17729 | }; | |
17730 | ||
8edf1c75 | 17731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17733 | { |
17734 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17735 | if (PyErr_Occurred()) SWIG_fail; | |
17736 | } | |
d14a1e28 RD |
17737 | { |
17738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17739 | (arg1)->SetImage(arg2); | |
17740 | ||
17741 | wxPyEndAllowThreads(__tstate); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | } | |
17744 | Py_INCREF(Py_None); resultobj = Py_None; | |
17745 | return resultobj; | |
17746 | fail: | |
17747 | return NULL; | |
17748 | } | |
17749 | ||
17750 | ||
17751 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17752 | PyObject *resultobj; | |
17753 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17754 | long arg2 ; | |
17755 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17756 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17757 | char *kwnames[] = { |
17758 | (char *) "self",(char *) "data", NULL | |
17759 | }; | |
17760 | ||
8edf1c75 | 17761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17763 | { |
17764 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | } | |
d14a1e28 RD |
17767 | { |
17768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17769 | (arg1)->SetData(arg2); | |
17770 | ||
17771 | wxPyEndAllowThreads(__tstate); | |
17772 | if (PyErr_Occurred()) SWIG_fail; | |
17773 | } | |
17774 | Py_INCREF(Py_None); resultobj = Py_None; | |
17775 | return resultobj; | |
17776 | fail: | |
17777 | return NULL; | |
17778 | } | |
17779 | ||
17780 | ||
17781 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17782 | PyObject *resultobj; | |
17783 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17784 | int arg2 ; | |
17785 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17786 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17787 | char *kwnames[] = { |
17788 | (char *) "self",(char *) "width", NULL | |
17789 | }; | |
17790 | ||
8edf1c75 | 17791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17793 | { |
17794 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17795 | if (PyErr_Occurred()) SWIG_fail; | |
17796 | } | |
d14a1e28 RD |
17797 | { |
17798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17799 | (arg1)->SetWidth(arg2); | |
17800 | ||
17801 | wxPyEndAllowThreads(__tstate); | |
17802 | if (PyErr_Occurred()) SWIG_fail; | |
17803 | } | |
17804 | Py_INCREF(Py_None); resultobj = Py_None; | |
17805 | return resultobj; | |
17806 | fail: | |
17807 | return NULL; | |
17808 | } | |
17809 | ||
17810 | ||
17811 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17812 | PyObject *resultobj; | |
17813 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17814 | int arg2 ; | |
17815 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17817 | char *kwnames[] = { |
17818 | (char *) "self",(char *) "align", NULL | |
17819 | }; | |
17820 | ||
8edf1c75 | 17821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17823 | { |
17824 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
d14a1e28 RD |
17827 | { |
17828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17829 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
17830 | ||
17831 | wxPyEndAllowThreads(__tstate); | |
17832 | if (PyErr_Occurred()) SWIG_fail; | |
17833 | } | |
17834 | Py_INCREF(Py_None); resultobj = Py_None; | |
17835 | return resultobj; | |
17836 | fail: | |
17837 | return NULL; | |
17838 | } | |
17839 | ||
17840 | ||
17841 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17842 | PyObject *resultobj; | |
17843 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17844 | wxColour *arg2 = 0 ; | |
17845 | wxColour temp2 ; | |
17846 | PyObject * obj0 = 0 ; | |
17847 | PyObject * obj1 = 0 ; | |
17848 | char *kwnames[] = { | |
17849 | (char *) "self",(char *) "colText", NULL | |
17850 | }; | |
17851 | ||
17852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17854 | { | |
17855 | arg2 = &temp2; | |
17856 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17857 | } | |
17858 | { | |
17859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17860 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17861 | ||
17862 | wxPyEndAllowThreads(__tstate); | |
17863 | if (PyErr_Occurred()) SWIG_fail; | |
17864 | } | |
17865 | Py_INCREF(Py_None); resultobj = Py_None; | |
17866 | return resultobj; | |
17867 | fail: | |
17868 | return NULL; | |
17869 | } | |
17870 | ||
17871 | ||
17872 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17873 | PyObject *resultobj; | |
17874 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17875 | wxColour *arg2 = 0 ; | |
17876 | wxColour temp2 ; | |
17877 | PyObject * obj0 = 0 ; | |
17878 | PyObject * obj1 = 0 ; | |
17879 | char *kwnames[] = { | |
17880 | (char *) "self",(char *) "colBack", NULL | |
17881 | }; | |
17882 | ||
17883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17885 | { | |
17886 | arg2 = &temp2; | |
17887 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17888 | } | |
17889 | { | |
17890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17891 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17892 | ||
17893 | wxPyEndAllowThreads(__tstate); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
17896 | Py_INCREF(Py_None); resultobj = Py_None; | |
17897 | return resultobj; | |
17898 | fail: | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
17903 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17904 | PyObject *resultobj; | |
17905 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17906 | wxFont *arg2 = 0 ; | |
17907 | PyObject * obj0 = 0 ; | |
17908 | PyObject * obj1 = 0 ; | |
17909 | char *kwnames[] = { | |
17910 | (char *) "self",(char *) "font", NULL | |
17911 | }; | |
17912 | ||
17913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17915 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17916 | if (arg2 == NULL) { | |
17917 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17918 | } | |
17919 | { | |
17920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17921 | (arg1)->SetFont((wxFont const &)*arg2); | |
17922 | ||
17923 | wxPyEndAllowThreads(__tstate); | |
17924 | if (PyErr_Occurred()) SWIG_fail; | |
17925 | } | |
17926 | Py_INCREF(Py_None); resultobj = Py_None; | |
17927 | return resultobj; | |
17928 | fail: | |
17929 | return NULL; | |
17930 | } | |
17931 | ||
17932 | ||
17933 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17934 | PyObject *resultobj; | |
17935 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17936 | long result; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | char *kwnames[] = { | |
17939 | (char *) "self", NULL | |
17940 | }; | |
17941 | ||
17942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
17943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17944 | { | |
17945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17946 | result = (long)(arg1)->GetMask(); | |
17947 | ||
17948 | wxPyEndAllowThreads(__tstate); | |
17949 | if (PyErr_Occurred()) SWIG_fail; | |
17950 | } | |
8edf1c75 | 17951 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17952 | return resultobj; |
17953 | fail: | |
17954 | return NULL; | |
17955 | } | |
17956 | ||
17957 | ||
17958 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17959 | PyObject *resultobj; | |
17960 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17961 | long result; | |
17962 | PyObject * obj0 = 0 ; | |
17963 | char *kwnames[] = { | |
17964 | (char *) "self", NULL | |
17965 | }; | |
17966 | ||
17967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
17968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17969 | { | |
17970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17971 | result = (long)(arg1)->GetId(); | |
17972 | ||
17973 | wxPyEndAllowThreads(__tstate); | |
17974 | if (PyErr_Occurred()) SWIG_fail; | |
17975 | } | |
8edf1c75 | 17976 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17977 | return resultobj; |
17978 | fail: | |
17979 | return NULL; | |
17980 | } | |
17981 | ||
17982 | ||
17983 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17984 | PyObject *resultobj; | |
17985 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17986 | int result; | |
17987 | PyObject * obj0 = 0 ; | |
17988 | char *kwnames[] = { | |
17989 | (char *) "self", NULL | |
17990 | }; | |
17991 | ||
17992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
17993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17994 | { | |
17995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17996 | result = (int)(arg1)->GetColumn(); | |
17997 | ||
17998 | wxPyEndAllowThreads(__tstate); | |
17999 | if (PyErr_Occurred()) SWIG_fail; | |
18000 | } | |
8edf1c75 | 18001 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18002 | return resultobj; |
18003 | fail: | |
18004 | return NULL; | |
18005 | } | |
18006 | ||
18007 | ||
18008 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18009 | PyObject *resultobj; | |
18010 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18011 | long result; | |
18012 | PyObject * obj0 = 0 ; | |
18013 | char *kwnames[] = { | |
18014 | (char *) "self", NULL | |
18015 | }; | |
18016 | ||
18017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | result = (long)(arg1)->GetState(); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
8edf1c75 | 18026 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18027 | return resultobj; |
18028 | fail: | |
18029 | return NULL; | |
18030 | } | |
18031 | ||
18032 | ||
18033 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18034 | PyObject *resultobj; | |
18035 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18036 | wxString *result; | |
18037 | PyObject * obj0 = 0 ; | |
18038 | char *kwnames[] = { | |
18039 | (char *) "self", NULL | |
18040 | }; | |
18041 | ||
18042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18044 | { | |
18045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18046 | { | |
18047 | wxString const &_result_ref = (arg1)->GetText(); | |
18048 | result = (wxString *) &_result_ref; | |
18049 | } | |
18050 | ||
18051 | wxPyEndAllowThreads(__tstate); | |
18052 | if (PyErr_Occurred()) SWIG_fail; | |
18053 | } | |
0f774bef RD |
18054 | { |
18055 | #if wxUSE_UNICODE | |
18056 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18057 | #else | |
18058 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18059 | #endif | |
18060 | } | |
d14a1e28 RD |
18061 | return resultobj; |
18062 | fail: | |
18063 | return NULL; | |
18064 | } | |
18065 | ||
18066 | ||
18067 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18068 | PyObject *resultobj; | |
18069 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18070 | int result; | |
18071 | PyObject * obj0 = 0 ; | |
18072 | char *kwnames[] = { | |
18073 | (char *) "self", NULL | |
18074 | }; | |
18075 | ||
18076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18078 | { | |
18079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18080 | result = (int)(arg1)->GetImage(); | |
18081 | ||
18082 | wxPyEndAllowThreads(__tstate); | |
18083 | if (PyErr_Occurred()) SWIG_fail; | |
18084 | } | |
8edf1c75 | 18085 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18086 | return resultobj; |
18087 | fail: | |
18088 | return NULL; | |
18089 | } | |
18090 | ||
18091 | ||
18092 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18093 | PyObject *resultobj; | |
18094 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18095 | long result; | |
18096 | PyObject * obj0 = 0 ; | |
18097 | char *kwnames[] = { | |
18098 | (char *) "self", NULL | |
18099 | }; | |
18100 | ||
18101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18103 | { | |
18104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18105 | result = (long)(arg1)->GetData(); | |
18106 | ||
18107 | wxPyEndAllowThreads(__tstate); | |
18108 | if (PyErr_Occurred()) SWIG_fail; | |
18109 | } | |
8edf1c75 | 18110 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18111 | return resultobj; |
18112 | fail: | |
18113 | return NULL; | |
18114 | } | |
18115 | ||
18116 | ||
18117 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18118 | PyObject *resultobj; | |
18119 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18120 | int result; | |
18121 | PyObject * obj0 = 0 ; | |
18122 | char *kwnames[] = { | |
18123 | (char *) "self", NULL | |
18124 | }; | |
18125 | ||
18126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
18127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18128 | { | |
18129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18130 | result = (int)(arg1)->GetWidth(); | |
18131 | ||
18132 | wxPyEndAllowThreads(__tstate); | |
18133 | if (PyErr_Occurred()) SWIG_fail; | |
18134 | } | |
8edf1c75 | 18135 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18136 | return resultobj; |
18137 | fail: | |
18138 | return NULL; | |
18139 | } | |
18140 | ||
18141 | ||
18142 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18143 | PyObject *resultobj; | |
18144 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18145 | int result; | |
18146 | PyObject * obj0 = 0 ; | |
18147 | char *kwnames[] = { | |
18148 | (char *) "self", NULL | |
18149 | }; | |
18150 | ||
18151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18153 | { | |
18154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18155 | result = (int)(arg1)->GetAlign(); | |
18156 | ||
18157 | wxPyEndAllowThreads(__tstate); | |
18158 | if (PyErr_Occurred()) SWIG_fail; | |
18159 | } | |
8edf1c75 | 18160 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18161 | return resultobj; |
18162 | fail: | |
18163 | return NULL; | |
18164 | } | |
18165 | ||
18166 | ||
18167 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18168 | PyObject *resultobj; | |
18169 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18170 | wxListItemAttr *result; | |
18171 | PyObject * obj0 = 0 ; | |
18172 | char *kwnames[] = { | |
18173 | (char *) "self", NULL | |
18174 | }; | |
18175 | ||
18176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18178 | { | |
18179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18180 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18181 | ||
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18186 | return resultobj; | |
18187 | fail: | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
18192 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18193 | PyObject *resultobj; | |
18194 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18195 | bool result; | |
18196 | PyObject * obj0 = 0 ; | |
18197 | char *kwnames[] = { | |
18198 | (char *) "self", NULL | |
18199 | }; | |
18200 | ||
18201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18203 | { | |
18204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18205 | result = (bool)(arg1)->HasAttributes(); | |
18206 | ||
18207 | wxPyEndAllowThreads(__tstate); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
02a34c4c | 18210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18211 | return resultobj; |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
18217 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18218 | PyObject *resultobj; | |
18219 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18220 | wxColour result; | |
18221 | PyObject * obj0 = 0 ; | |
18222 | char *kwnames[] = { | |
18223 | (char *) "self", NULL | |
18224 | }; | |
18225 | ||
18226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18228 | { | |
18229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18230 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18231 | ||
18232 | wxPyEndAllowThreads(__tstate); | |
18233 | if (PyErr_Occurred()) SWIG_fail; | |
18234 | } | |
18235 | { | |
18236 | wxColour * resultptr; | |
18237 | resultptr = new wxColour((wxColour &) result); | |
18238 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18239 | } | |
18240 | return resultobj; | |
18241 | fail: | |
18242 | return NULL; | |
18243 | } | |
18244 | ||
18245 | ||
18246 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18247 | PyObject *resultobj; | |
18248 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18249 | wxColour result; | |
18250 | PyObject * obj0 = 0 ; | |
18251 | char *kwnames[] = { | |
18252 | (char *) "self", NULL | |
18253 | }; | |
18254 | ||
18255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18257 | { | |
18258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18259 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18260 | ||
18261 | wxPyEndAllowThreads(__tstate); | |
18262 | if (PyErr_Occurred()) SWIG_fail; | |
18263 | } | |
18264 | { | |
18265 | wxColour * resultptr; | |
18266 | resultptr = new wxColour((wxColour &) result); | |
18267 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18268 | } | |
18269 | return resultobj; | |
18270 | fail: | |
18271 | return NULL; | |
18272 | } | |
18273 | ||
18274 | ||
18275 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18276 | PyObject *resultobj; | |
18277 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18278 | wxFont result; | |
18279 | PyObject * obj0 = 0 ; | |
18280 | char *kwnames[] = { | |
18281 | (char *) "self", NULL | |
18282 | }; | |
18283 | ||
18284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18286 | { | |
18287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18288 | result = ((wxListItem const *)arg1)->GetFont(); | |
18289 | ||
18290 | wxPyEndAllowThreads(__tstate); | |
18291 | if (PyErr_Occurred()) SWIG_fail; | |
18292 | } | |
18293 | { | |
18294 | wxFont * resultptr; | |
18295 | resultptr = new wxFont((wxFont &) result); | |
18296 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18297 | } | |
18298 | return resultobj; | |
18299 | fail: | |
18300 | return NULL; | |
18301 | } | |
18302 | ||
18303 | ||
18304 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18305 | PyObject *resultobj; | |
18306 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18307 | long arg2 ; | |
18308 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18310 | char *kwnames[] = { |
18311 | (char *) "self",(char *) "m_mask", NULL | |
18312 | }; | |
18313 | ||
8edf1c75 | 18314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18316 | { |
18317 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
18319 | } | |
d14a1e28 RD |
18320 | if (arg1) (arg1)->m_mask = arg2; |
18321 | ||
18322 | Py_INCREF(Py_None); resultobj = Py_None; | |
18323 | return resultobj; | |
18324 | fail: | |
18325 | return NULL; | |
18326 | } | |
18327 | ||
18328 | ||
18329 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18330 | PyObject *resultobj; | |
18331 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18332 | long result; | |
18333 | PyObject * obj0 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18340 | result = (long) ((arg1)->m_mask); | |
18341 | ||
8edf1c75 | 18342 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18343 | return resultobj; |
18344 | fail: | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
18349 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18350 | PyObject *resultobj; | |
18351 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18352 | long arg2 ; | |
18353 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18354 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18355 | char *kwnames[] = { |
18356 | (char *) "self",(char *) "m_itemId", NULL | |
18357 | }; | |
18358 | ||
8edf1c75 | 18359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18361 | { |
18362 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18363 | if (PyErr_Occurred()) SWIG_fail; | |
18364 | } | |
d14a1e28 RD |
18365 | if (arg1) (arg1)->m_itemId = arg2; |
18366 | ||
18367 | Py_INCREF(Py_None); resultobj = Py_None; | |
18368 | return resultobj; | |
18369 | fail: | |
18370 | return NULL; | |
18371 | } | |
18372 | ||
18373 | ||
18374 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18375 | PyObject *resultobj; | |
18376 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18377 | long result; | |
18378 | PyObject * obj0 = 0 ; | |
18379 | char *kwnames[] = { | |
18380 | (char *) "self", NULL | |
18381 | }; | |
18382 | ||
18383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18385 | result = (long) ((arg1)->m_itemId); | |
18386 | ||
8edf1c75 | 18387 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18388 | return resultobj; |
18389 | fail: | |
18390 | return NULL; | |
18391 | } | |
18392 | ||
18393 | ||
18394 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18395 | PyObject *resultobj; | |
18396 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18397 | int arg2 ; | |
18398 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18400 | char *kwnames[] = { |
18401 | (char *) "self",(char *) "m_col", NULL | |
18402 | }; | |
18403 | ||
8edf1c75 | 18404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18406 | { |
18407 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
d14a1e28 RD |
18410 | if (arg1) (arg1)->m_col = arg2; |
18411 | ||
18412 | Py_INCREF(Py_None); resultobj = Py_None; | |
18413 | return resultobj; | |
18414 | fail: | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
18419 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18420 | PyObject *resultobj; | |
18421 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18422 | int result; | |
18423 | PyObject * obj0 = 0 ; | |
18424 | char *kwnames[] = { | |
18425 | (char *) "self", NULL | |
18426 | }; | |
18427 | ||
18428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18430 | result = (int) ((arg1)->m_col); | |
18431 | ||
8edf1c75 | 18432 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18433 | return resultobj; |
18434 | fail: | |
18435 | return NULL; | |
18436 | } | |
18437 | ||
18438 | ||
18439 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18440 | PyObject *resultobj; | |
18441 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18442 | long arg2 ; | |
18443 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18444 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18445 | char *kwnames[] = { |
18446 | (char *) "self",(char *) "m_state", NULL | |
18447 | }; | |
18448 | ||
8edf1c75 | 18449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18451 | { |
18452 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18453 | if (PyErr_Occurred()) SWIG_fail; | |
18454 | } | |
d14a1e28 RD |
18455 | if (arg1) (arg1)->m_state = arg2; |
18456 | ||
18457 | Py_INCREF(Py_None); resultobj = Py_None; | |
18458 | return resultobj; | |
18459 | fail: | |
18460 | return NULL; | |
18461 | } | |
18462 | ||
18463 | ||
18464 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18465 | PyObject *resultobj; | |
18466 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18467 | long result; | |
18468 | PyObject * obj0 = 0 ; | |
18469 | char *kwnames[] = { | |
18470 | (char *) "self", NULL | |
18471 | }; | |
18472 | ||
18473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
18474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18475 | result = (long) ((arg1)->m_state); | |
18476 | ||
8edf1c75 | 18477 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18478 | return resultobj; |
18479 | fail: | |
18480 | return NULL; | |
18481 | } | |
18482 | ||
18483 | ||
18484 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18485 | PyObject *resultobj; | |
18486 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18487 | long arg2 ; | |
18488 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18489 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18490 | char *kwnames[] = { |
18491 | (char *) "self",(char *) "m_stateMask", NULL | |
18492 | }; | |
18493 | ||
8edf1c75 | 18494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18496 | { |
18497 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18498 | if (PyErr_Occurred()) SWIG_fail; | |
18499 | } | |
d14a1e28 RD |
18500 | if (arg1) (arg1)->m_stateMask = arg2; |
18501 | ||
18502 | Py_INCREF(Py_None); resultobj = Py_None; | |
18503 | return resultobj; | |
18504 | fail: | |
18505 | return NULL; | |
18506 | } | |
18507 | ||
18508 | ||
18509 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18510 | PyObject *resultobj; | |
18511 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18512 | long result; | |
18513 | PyObject * obj0 = 0 ; | |
18514 | char *kwnames[] = { | |
18515 | (char *) "self", NULL | |
18516 | }; | |
18517 | ||
18518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
18519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18520 | result = (long) ((arg1)->m_stateMask); | |
18521 | ||
8edf1c75 | 18522 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18523 | return resultobj; |
18524 | fail: | |
18525 | return NULL; | |
18526 | } | |
18527 | ||
18528 | ||
18529 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18530 | PyObject *resultobj; | |
18531 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 18532 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 18533 | bool temp2 = False ; |
d14a1e28 RD |
18534 | PyObject * obj0 = 0 ; |
18535 | PyObject * obj1 = 0 ; | |
18536 | char *kwnames[] = { | |
18537 | (char *) "self",(char *) "m_text", NULL | |
18538 | }; | |
18539 | ||
18540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
18541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
18542 | { |
18543 | arg2 = wxString_in_helper(obj1); | |
18544 | if (arg2 == NULL) SWIG_fail; | |
18545 | temp2 = True; | |
18546 | } | |
cbd72d4f | 18547 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
18548 | |
18549 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
18550 | { |
18551 | if (temp2) | |
18552 | delete arg2; | |
18553 | } | |
d14a1e28 RD |
18554 | return resultobj; |
18555 | fail: | |
dae0faa6 RD |
18556 | { |
18557 | if (temp2) | |
18558 | delete arg2; | |
18559 | } | |
d14a1e28 RD |
18560 | return NULL; |
18561 | } | |
18562 | ||
18563 | ||
18564 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18565 | PyObject *resultobj; | |
18566 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 18567 | wxString *result; |
d14a1e28 RD |
18568 | PyObject * obj0 = 0 ; |
18569 | char *kwnames[] = { | |
18570 | (char *) "self", NULL | |
18571 | }; | |
18572 | ||
18573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
18574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 18575 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
18576 | |
18577 | { | |
18578 | #if wxUSE_UNICODE | |
cbd72d4f | 18579 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 18580 | #else |
cbd72d4f | 18581 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
18582 | #endif |
18583 | } | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
18590 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18591 | PyObject *resultobj; | |
18592 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18593 | int arg2 ; | |
18594 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18596 | char *kwnames[] = { |
18597 | (char *) "self",(char *) "m_image", NULL | |
18598 | }; | |
18599 | ||
8edf1c75 | 18600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18602 | { |
18603 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18604 | if (PyErr_Occurred()) SWIG_fail; | |
18605 | } | |
d14a1e28 RD |
18606 | if (arg1) (arg1)->m_image = arg2; |
18607 | ||
18608 | Py_INCREF(Py_None); resultobj = Py_None; | |
18609 | return resultobj; | |
18610 | fail: | |
18611 | return NULL; | |
18612 | } | |
18613 | ||
18614 | ||
18615 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18616 | PyObject *resultobj; | |
18617 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18618 | int result; | |
18619 | PyObject * obj0 = 0 ; | |
18620 | char *kwnames[] = { | |
18621 | (char *) "self", NULL | |
18622 | }; | |
18623 | ||
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
18625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18626 | result = (int) ((arg1)->m_image); | |
18627 | ||
8edf1c75 | 18628 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18629 | return resultobj; |
18630 | fail: | |
18631 | return NULL; | |
18632 | } | |
18633 | ||
18634 | ||
18635 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18636 | PyObject *resultobj; | |
18637 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18638 | long arg2 ; | |
18639 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18640 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18641 | char *kwnames[] = { |
18642 | (char *) "self",(char *) "m_data", NULL | |
18643 | }; | |
18644 | ||
8edf1c75 | 18645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18647 | { |
18648 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18649 | if (PyErr_Occurred()) SWIG_fail; | |
18650 | } | |
d14a1e28 RD |
18651 | if (arg1) (arg1)->m_data = arg2; |
18652 | ||
18653 | Py_INCREF(Py_None); resultobj = Py_None; | |
18654 | return resultobj; | |
18655 | fail: | |
18656 | return NULL; | |
18657 | } | |
18658 | ||
18659 | ||
18660 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18661 | PyObject *resultobj; | |
18662 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18663 | long result; | |
18664 | PyObject * obj0 = 0 ; | |
18665 | char *kwnames[] = { | |
18666 | (char *) "self", NULL | |
18667 | }; | |
18668 | ||
18669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
18670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18671 | result = (long) ((arg1)->m_data); | |
18672 | ||
8edf1c75 | 18673 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18674 | return resultobj; |
18675 | fail: | |
18676 | return NULL; | |
18677 | } | |
18678 | ||
18679 | ||
18680 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18681 | PyObject *resultobj; | |
18682 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18683 | int arg2 ; | |
18684 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18685 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18686 | char *kwnames[] = { |
18687 | (char *) "self",(char *) "m_format", NULL | |
18688 | }; | |
18689 | ||
8edf1c75 | 18690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18692 | { |
18693 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18694 | if (PyErr_Occurred()) SWIG_fail; | |
18695 | } | |
d14a1e28 RD |
18696 | if (arg1) (arg1)->m_format = arg2; |
18697 | ||
18698 | Py_INCREF(Py_None); resultobj = Py_None; | |
18699 | return resultobj; | |
18700 | fail: | |
18701 | return NULL; | |
18702 | } | |
18703 | ||
18704 | ||
18705 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18706 | PyObject *resultobj; | |
18707 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18708 | int result; | |
18709 | PyObject * obj0 = 0 ; | |
18710 | char *kwnames[] = { | |
18711 | (char *) "self", NULL | |
18712 | }; | |
18713 | ||
18714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
18715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18716 | result = (int) ((arg1)->m_format); | |
18717 | ||
8edf1c75 | 18718 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18719 | return resultobj; |
18720 | fail: | |
18721 | return NULL; | |
18722 | } | |
18723 | ||
18724 | ||
18725 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18726 | PyObject *resultobj; | |
18727 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18728 | int arg2 ; | |
18729 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18731 | char *kwnames[] = { |
18732 | (char *) "self",(char *) "m_width", NULL | |
18733 | }; | |
18734 | ||
8edf1c75 | 18735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18737 | { |
18738 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18739 | if (PyErr_Occurred()) SWIG_fail; | |
18740 | } | |
d14a1e28 RD |
18741 | if (arg1) (arg1)->m_width = arg2; |
18742 | ||
18743 | Py_INCREF(Py_None); resultobj = Py_None; | |
18744 | return resultobj; | |
18745 | fail: | |
18746 | return NULL; | |
18747 | } | |
18748 | ||
18749 | ||
18750 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18751 | PyObject *resultobj; | |
18752 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18753 | int result; | |
18754 | PyObject * obj0 = 0 ; | |
18755 | char *kwnames[] = { | |
18756 | (char *) "self", NULL | |
18757 | }; | |
18758 | ||
18759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
18760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18761 | result = (int) ((arg1)->m_width); | |
18762 | ||
8edf1c75 | 18763 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18764 | return resultobj; |
18765 | fail: | |
18766 | return NULL; | |
18767 | } | |
18768 | ||
18769 | ||
18770 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
18771 | PyObject *obj; | |
18772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18773 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
18774 | Py_INCREF(obj); | |
18775 | return Py_BuildValue((char *)""); | |
18776 | } | |
18777 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18778 | PyObject *resultobj; | |
18779 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18780 | int arg2 = (int) 0 ; | |
18781 | wxListEvent *result; | |
8edf1c75 RD |
18782 | PyObject * obj0 = 0 ; |
18783 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18784 | char *kwnames[] = { |
18785 | (char *) "commandType",(char *) "id", NULL | |
18786 | }; | |
18787 | ||
8edf1c75 RD |
18788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
18789 | if (obj0) { | |
18790 | { | |
18791 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18792 | if (PyErr_Occurred()) SWIG_fail; | |
18793 | } | |
18794 | } | |
18795 | if (obj1) { | |
18796 | { | |
18797 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18798 | if (PyErr_Occurred()) SWIG_fail; | |
18799 | } | |
18800 | } | |
d14a1e28 RD |
18801 | { |
18802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18803 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
18804 | ||
18805 | wxPyEndAllowThreads(__tstate); | |
18806 | if (PyErr_Occurred()) SWIG_fail; | |
18807 | } | |
18808 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
18809 | return resultobj; | |
18810 | fail: | |
18811 | return NULL; | |
18812 | } | |
18813 | ||
18814 | ||
18815 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18816 | PyObject *resultobj; | |
18817 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18818 | int arg2 ; | |
18819 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18821 | char *kwnames[] = { |
18822 | (char *) "self",(char *) "m_code", NULL | |
18823 | }; | |
18824 | ||
8edf1c75 | 18825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18827 | { |
18828 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
d14a1e28 RD |
18831 | if (arg1) (arg1)->m_code = arg2; |
18832 | ||
18833 | Py_INCREF(Py_None); resultobj = Py_None; | |
18834 | return resultobj; | |
18835 | fail: | |
18836 | return NULL; | |
18837 | } | |
18838 | ||
18839 | ||
18840 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18841 | PyObject *resultobj; | |
18842 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18843 | int result; | |
18844 | PyObject * obj0 = 0 ; | |
18845 | char *kwnames[] = { | |
18846 | (char *) "self", NULL | |
18847 | }; | |
18848 | ||
18849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
18850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18851 | result = (int) ((arg1)->m_code); | |
18852 | ||
8edf1c75 | 18853 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18854 | return resultobj; |
18855 | fail: | |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
18860 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18861 | PyObject *resultobj; | |
18862 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18863 | long arg2 ; | |
18864 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18866 | char *kwnames[] = { |
18867 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
18868 | }; | |
18869 | ||
8edf1c75 | 18870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18872 | { |
18873 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18874 | if (PyErr_Occurred()) SWIG_fail; | |
18875 | } | |
d14a1e28 RD |
18876 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
18877 | ||
18878 | Py_INCREF(Py_None); resultobj = Py_None; | |
18879 | return resultobj; | |
18880 | fail: | |
18881 | return NULL; | |
18882 | } | |
18883 | ||
18884 | ||
18885 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18886 | PyObject *resultobj; | |
18887 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18888 | long result; | |
18889 | PyObject * obj0 = 0 ; | |
18890 | char *kwnames[] = { | |
18891 | (char *) "self", NULL | |
18892 | }; | |
18893 | ||
18894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
18895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18896 | result = (long) ((arg1)->m_oldItemIndex); | |
18897 | ||
8edf1c75 | 18898 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18899 | return resultobj; |
18900 | fail: | |
18901 | return NULL; | |
18902 | } | |
18903 | ||
18904 | ||
18905 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18906 | PyObject *resultobj; | |
18907 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18908 | long arg2 ; | |
18909 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18910 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18911 | char *kwnames[] = { |
18912 | (char *) "self",(char *) "m_itemIndex", NULL | |
18913 | }; | |
18914 | ||
8edf1c75 | 18915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18917 | { |
18918 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18919 | if (PyErr_Occurred()) SWIG_fail; | |
18920 | } | |
d14a1e28 RD |
18921 | if (arg1) (arg1)->m_itemIndex = arg2; |
18922 | ||
18923 | Py_INCREF(Py_None); resultobj = Py_None; | |
18924 | return resultobj; | |
18925 | fail: | |
18926 | return NULL; | |
18927 | } | |
18928 | ||
18929 | ||
18930 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18931 | PyObject *resultobj; | |
18932 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18933 | long result; | |
18934 | PyObject * obj0 = 0 ; | |
18935 | char *kwnames[] = { | |
18936 | (char *) "self", NULL | |
18937 | }; | |
18938 | ||
18939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
18940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18941 | result = (long) ((arg1)->m_itemIndex); | |
18942 | ||
8edf1c75 | 18943 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18944 | return resultobj; |
18945 | fail: | |
18946 | return NULL; | |
18947 | } | |
18948 | ||
18949 | ||
18950 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18951 | PyObject *resultobj; | |
18952 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18953 | int arg2 ; | |
18954 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18955 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18956 | char *kwnames[] = { |
18957 | (char *) "self",(char *) "m_col", NULL | |
18958 | }; | |
18959 | ||
8edf1c75 | 18960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18962 | { |
18963 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18964 | if (PyErr_Occurred()) SWIG_fail; | |
18965 | } | |
d14a1e28 RD |
18966 | if (arg1) (arg1)->m_col = arg2; |
18967 | ||
18968 | Py_INCREF(Py_None); resultobj = Py_None; | |
18969 | return resultobj; | |
18970 | fail: | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
18975 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18976 | PyObject *resultobj; | |
18977 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18978 | int result; | |
18979 | PyObject * obj0 = 0 ; | |
18980 | char *kwnames[] = { | |
18981 | (char *) "self", NULL | |
18982 | }; | |
18983 | ||
18984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
18985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18986 | result = (int) ((arg1)->m_col); | |
18987 | ||
8edf1c75 | 18988 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18989 | return resultobj; |
18990 | fail: | |
18991 | return NULL; | |
18992 | } | |
18993 | ||
18994 | ||
18995 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18996 | PyObject *resultobj; | |
18997 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18998 | wxPoint *arg2 = (wxPoint *) 0 ; | |
18999 | PyObject * obj0 = 0 ; | |
19000 | PyObject * obj1 = 0 ; | |
19001 | char *kwnames[] = { | |
19002 | (char *) "self",(char *) "m_pointDrag", NULL | |
19003 | }; | |
19004 | ||
19005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19008 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19009 | ||
19010 | Py_INCREF(Py_None); resultobj = Py_None; | |
19011 | return resultobj; | |
19012 | fail: | |
19013 | return NULL; | |
19014 | } | |
19015 | ||
19016 | ||
19017 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19018 | PyObject *resultobj; | |
19019 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19020 | wxPoint *result; | |
19021 | PyObject * obj0 = 0 ; | |
19022 | char *kwnames[] = { | |
19023 | (char *) "self", NULL | |
19024 | }; | |
19025 | ||
19026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19028 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19029 | ||
19030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
19031 | return resultobj; | |
19032 | fail: | |
19033 | return NULL; | |
19034 | } | |
19035 | ||
19036 | ||
19037 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19038 | PyObject *resultobj; | |
19039 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19040 | wxListItem *result; | |
19041 | PyObject * obj0 = 0 ; | |
19042 | char *kwnames[] = { | |
19043 | (char *) "self", NULL | |
19044 | }; | |
19045 | ||
19046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19048 | result = (wxListItem *)& ((arg1)->m_item); | |
19049 | ||
19050 | { | |
19051 | resultobj = wxPyMake_wxObject(result); | |
19052 | } | |
19053 | return resultobj; | |
19054 | fail: | |
19055 | return NULL; | |
19056 | } | |
19057 | ||
19058 | ||
19059 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19060 | PyObject *resultobj; | |
19061 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19062 | int result; | |
19063 | PyObject * obj0 = 0 ; | |
19064 | char *kwnames[] = { | |
19065 | (char *) "self", NULL | |
19066 | }; | |
19067 | ||
19068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19070 | { | |
19071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19072 | result = (int)(arg1)->GetKeyCode(); | |
19073 | ||
19074 | wxPyEndAllowThreads(__tstate); | |
19075 | if (PyErr_Occurred()) SWIG_fail; | |
19076 | } | |
8edf1c75 | 19077 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19078 | return resultobj; |
19079 | fail: | |
19080 | return NULL; | |
19081 | } | |
19082 | ||
19083 | ||
19084 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19085 | PyObject *resultobj; | |
19086 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19087 | long result; | |
19088 | PyObject * obj0 = 0 ; | |
19089 | char *kwnames[] = { | |
19090 | (char *) "self", NULL | |
19091 | }; | |
19092 | ||
19093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19095 | { | |
19096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19097 | result = (long)(arg1)->GetIndex(); | |
19098 | ||
19099 | wxPyEndAllowThreads(__tstate); | |
19100 | if (PyErr_Occurred()) SWIG_fail; | |
19101 | } | |
8edf1c75 | 19102 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19103 | return resultobj; |
19104 | fail: | |
19105 | return NULL; | |
19106 | } | |
19107 | ||
19108 | ||
19109 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19110 | PyObject *resultobj; | |
19111 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19112 | int result; | |
19113 | PyObject * obj0 = 0 ; | |
19114 | char *kwnames[] = { | |
19115 | (char *) "self", NULL | |
19116 | }; | |
19117 | ||
19118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19120 | { | |
19121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19122 | result = (int)(arg1)->GetColumn(); | |
19123 | ||
19124 | wxPyEndAllowThreads(__tstate); | |
19125 | if (PyErr_Occurred()) SWIG_fail; | |
19126 | } | |
8edf1c75 | 19127 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19128 | return resultobj; |
19129 | fail: | |
19130 | return NULL; | |
19131 | } | |
19132 | ||
19133 | ||
19134 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19135 | PyObject *resultobj; | |
19136 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19137 | wxPoint result; | |
19138 | PyObject * obj0 = 0 ; | |
19139 | char *kwnames[] = { | |
19140 | (char *) "self", NULL | |
19141 | }; | |
19142 | ||
19143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19145 | { | |
19146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19147 | result = (arg1)->GetPoint(); | |
19148 | ||
19149 | wxPyEndAllowThreads(__tstate); | |
19150 | if (PyErr_Occurred()) SWIG_fail; | |
19151 | } | |
19152 | { | |
19153 | wxPoint * resultptr; | |
19154 | resultptr = new wxPoint((wxPoint &) result); | |
19155 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19156 | } | |
19157 | return resultobj; | |
19158 | fail: | |
19159 | return NULL; | |
19160 | } | |
19161 | ||
19162 | ||
19163 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19164 | PyObject *resultobj; | |
19165 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19166 | wxString *result; | |
19167 | PyObject * obj0 = 0 ; | |
19168 | char *kwnames[] = { | |
19169 | (char *) "self", NULL | |
19170 | }; | |
19171 | ||
19172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19174 | { | |
19175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19176 | { | |
19177 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19178 | result = (wxString *) &_result_ref; | |
19179 | } | |
19180 | ||
19181 | wxPyEndAllowThreads(__tstate); | |
19182 | if (PyErr_Occurred()) SWIG_fail; | |
19183 | } | |
0f774bef RD |
19184 | { |
19185 | #if wxUSE_UNICODE | |
19186 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19187 | #else | |
19188 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19189 | #endif | |
19190 | } | |
d14a1e28 RD |
19191 | return resultobj; |
19192 | fail: | |
19193 | return NULL; | |
19194 | } | |
19195 | ||
19196 | ||
19197 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19198 | PyObject *resultobj; | |
19199 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19200 | wxString *result; | |
19201 | PyObject * obj0 = 0 ; | |
19202 | char *kwnames[] = { | |
19203 | (char *) "self", NULL | |
19204 | }; | |
19205 | ||
19206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19208 | { | |
19209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19210 | { | |
19211 | wxString const &_result_ref = (arg1)->GetText(); | |
19212 | result = (wxString *) &_result_ref; | |
19213 | } | |
19214 | ||
19215 | wxPyEndAllowThreads(__tstate); | |
19216 | if (PyErr_Occurred()) SWIG_fail; | |
19217 | } | |
0f774bef RD |
19218 | { |
19219 | #if wxUSE_UNICODE | |
19220 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19221 | #else | |
19222 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19223 | #endif | |
19224 | } | |
d14a1e28 RD |
19225 | return resultobj; |
19226 | fail: | |
19227 | return NULL; | |
19228 | } | |
19229 | ||
19230 | ||
19231 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19232 | PyObject *resultobj; | |
19233 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19234 | int result; | |
19235 | PyObject * obj0 = 0 ; | |
19236 | char *kwnames[] = { | |
19237 | (char *) "self", NULL | |
19238 | }; | |
19239 | ||
19240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19242 | { | |
19243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19244 | result = (int)(arg1)->GetImage(); | |
19245 | ||
19246 | wxPyEndAllowThreads(__tstate); | |
19247 | if (PyErr_Occurred()) SWIG_fail; | |
19248 | } | |
8edf1c75 | 19249 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19250 | return resultobj; |
19251 | fail: | |
19252 | return NULL; | |
19253 | } | |
19254 | ||
19255 | ||
19256 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19257 | PyObject *resultobj; | |
19258 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19259 | long result; | |
19260 | PyObject * obj0 = 0 ; | |
19261 | char *kwnames[] = { | |
19262 | (char *) "self", NULL | |
19263 | }; | |
19264 | ||
19265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19267 | { | |
19268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19269 | result = (long)(arg1)->GetData(); | |
19270 | ||
19271 | wxPyEndAllowThreads(__tstate); | |
19272 | if (PyErr_Occurred()) SWIG_fail; | |
19273 | } | |
8edf1c75 | 19274 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19275 | return resultobj; |
19276 | fail: | |
19277 | return NULL; | |
19278 | } | |
19279 | ||
19280 | ||
19281 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19282 | PyObject *resultobj; | |
19283 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19284 | long result; | |
19285 | PyObject * obj0 = 0 ; | |
19286 | char *kwnames[] = { | |
19287 | (char *) "self", NULL | |
19288 | }; | |
19289 | ||
19290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19292 | { | |
19293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19294 | result = (long)(arg1)->GetMask(); | |
19295 | ||
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
8edf1c75 | 19299 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19300 | return resultobj; |
19301 | fail: | |
19302 | return NULL; | |
19303 | } | |
19304 | ||
19305 | ||
19306 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19307 | PyObject *resultobj; | |
19308 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19309 | wxListItem *result; | |
19310 | PyObject * obj0 = 0 ; | |
19311 | char *kwnames[] = { | |
19312 | (char *) "self", NULL | |
19313 | }; | |
19314 | ||
19315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19317 | { | |
19318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19319 | { | |
19320 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19321 | result = (wxListItem *) &_result_ref; | |
19322 | } | |
19323 | ||
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
19327 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19328 | return resultobj; | |
19329 | fail: | |
19330 | return NULL; | |
19331 | } | |
19332 | ||
19333 | ||
19334 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19335 | PyObject *resultobj; | |
19336 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19337 | long result; | |
19338 | PyObject * obj0 = 0 ; | |
19339 | char *kwnames[] = { | |
19340 | (char *) "self", NULL | |
19341 | }; | |
19342 | ||
19343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19345 | { | |
19346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19347 | result = (long)(arg1)->GetCacheFrom(); | |
19348 | ||
19349 | wxPyEndAllowThreads(__tstate); | |
19350 | if (PyErr_Occurred()) SWIG_fail; | |
19351 | } | |
8edf1c75 | 19352 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19353 | return resultobj; |
19354 | fail: | |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19362 | long result; | |
19363 | PyObject * obj0 = 0 ; | |
19364 | char *kwnames[] = { | |
19365 | (char *) "self", NULL | |
19366 | }; | |
19367 | ||
19368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | result = (long)(arg1)->GetCacheTo(); | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
8edf1c75 | 19377 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19378 | return resultobj; |
19379 | fail: | |
19380 | return NULL; | |
19381 | } | |
19382 | ||
19383 | ||
19384 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19385 | PyObject *resultobj; | |
19386 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19387 | bool result; | |
19388 | PyObject * obj0 = 0 ; | |
19389 | char *kwnames[] = { | |
19390 | (char *) "self", NULL | |
19391 | }; | |
19392 | ||
19393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19395 | { | |
19396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19397 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19398 | ||
19399 | wxPyEndAllowThreads(__tstate); | |
19400 | if (PyErr_Occurred()) SWIG_fail; | |
19401 | } | |
02a34c4c | 19402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19403 | return resultobj; |
19404 | fail: | |
19405 | return NULL; | |
19406 | } | |
19407 | ||
19408 | ||
19409 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19410 | PyObject *resultobj; | |
19411 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19412 | bool arg2 ; | |
19413 | PyObject * obj0 = 0 ; | |
19414 | PyObject * obj1 = 0 ; | |
19415 | char *kwnames[] = { | |
19416 | (char *) "self",(char *) "editCancelled", NULL | |
19417 | }; | |
19418 | ||
19419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 19421 | { |
8edf1c75 | 19422 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
19423 | if (PyErr_Occurred()) SWIG_fail; |
19424 | } | |
d14a1e28 RD |
19425 | { |
19426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19427 | (arg1)->SetEditCanceled(arg2); | |
19428 | ||
19429 | wxPyEndAllowThreads(__tstate); | |
19430 | if (PyErr_Occurred()) SWIG_fail; | |
19431 | } | |
19432 | Py_INCREF(Py_None); resultobj = Py_None; | |
19433 | return resultobj; | |
19434 | fail: | |
19435 | return NULL; | |
19436 | } | |
19437 | ||
19438 | ||
19439 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19440 | PyObject *obj; | |
19441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19442 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19443 | Py_INCREF(obj); | |
19444 | return Py_BuildValue((char *)""); | |
19445 | } | |
19446 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19447 | PyObject *resultobj; | |
19448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19449 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19450 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19451 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19452 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19453 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19454 | long arg5 = (long) wxLC_ICON ; | |
19455 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19456 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19457 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19458 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19459 | wxPyListCtrl *result; | |
19460 | wxPoint temp3 ; | |
19461 | wxSize temp4 ; | |
423f194a | 19462 | bool temp7 = False ; |
d14a1e28 | 19463 | PyObject * obj0 = 0 ; |
8edf1c75 | 19464 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19465 | PyObject * obj2 = 0 ; |
19466 | PyObject * obj3 = 0 ; | |
8edf1c75 | 19467 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19468 | PyObject * obj5 = 0 ; |
19469 | PyObject * obj6 = 0 ; | |
19470 | char *kwnames[] = { | |
19471 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19472 | }; | |
19473 | ||
8edf1c75 | 19474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 19475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19476 | if (obj1) { |
19477 | { | |
19478 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19479 | if (PyErr_Occurred()) SWIG_fail; | |
19480 | } | |
19481 | } | |
d14a1e28 RD |
19482 | if (obj2) { |
19483 | { | |
19484 | arg3 = &temp3; | |
19485 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19486 | } | |
19487 | } | |
19488 | if (obj3) { | |
19489 | { | |
19490 | arg4 = &temp4; | |
19491 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19492 | } | |
19493 | } | |
8edf1c75 RD |
19494 | if (obj4) { |
19495 | { | |
19496 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
19497 | if (PyErr_Occurred()) SWIG_fail; | |
19498 | } | |
19499 | } | |
d14a1e28 RD |
19500 | if (obj5) { |
19501 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19502 | if (arg6 == NULL) { | |
19503 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19504 | } | |
19505 | } | |
19506 | if (obj6) { | |
19507 | { | |
19508 | arg7 = wxString_in_helper(obj6); | |
19509 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19510 | temp7 = True; |
d14a1e28 RD |
19511 | } |
19512 | } | |
19513 | { | |
19514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19515 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19516 | ||
19517 | wxPyEndAllowThreads(__tstate); | |
19518 | if (PyErr_Occurred()) SWIG_fail; | |
19519 | } | |
19520 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19521 | { | |
19522 | if (temp7) | |
19523 | delete arg7; | |
19524 | } | |
19525 | return resultobj; | |
19526 | fail: | |
19527 | { | |
19528 | if (temp7) | |
19529 | delete arg7; | |
19530 | } | |
19531 | return NULL; | |
19532 | } | |
19533 | ||
19534 | ||
19535 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19536 | PyObject *resultobj; | |
19537 | wxPyListCtrl *result; | |
19538 | char *kwnames[] = { | |
19539 | NULL | |
19540 | }; | |
19541 | ||
19542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
19543 | { | |
19544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19545 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
19546 | ||
19547 | wxPyEndAllowThreads(__tstate); | |
19548 | if (PyErr_Occurred()) SWIG_fail; | |
19549 | } | |
19550 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
19557 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19558 | PyObject *resultobj; | |
19559 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19560 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19561 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19562 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19563 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19564 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19565 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19566 | long arg6 = (long) wxLC_ICON ; | |
19567 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19568 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19569 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19570 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19571 | bool result; | |
19572 | wxPoint temp4 ; | |
19573 | wxSize temp5 ; | |
423f194a | 19574 | bool temp8 = False ; |
d14a1e28 RD |
19575 | PyObject * obj0 = 0 ; |
19576 | PyObject * obj1 = 0 ; | |
8edf1c75 | 19577 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19578 | PyObject * obj3 = 0 ; |
19579 | PyObject * obj4 = 0 ; | |
8edf1c75 | 19580 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19581 | PyObject * obj6 = 0 ; |
19582 | PyObject * obj7 = 0 ; | |
19583 | char *kwnames[] = { | |
19584 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19585 | }; | |
19586 | ||
8edf1c75 | 19587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
19588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19589 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
19590 | if (obj2) { |
19591 | { | |
19592 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19593 | if (PyErr_Occurred()) SWIG_fail; | |
19594 | } | |
19595 | } | |
d14a1e28 RD |
19596 | if (obj3) { |
19597 | { | |
19598 | arg4 = &temp4; | |
19599 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19600 | } | |
19601 | } | |
19602 | if (obj4) { | |
19603 | { | |
19604 | arg5 = &temp5; | |
19605 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19606 | } | |
19607 | } | |
8edf1c75 RD |
19608 | if (obj5) { |
19609 | { | |
19610 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
19611 | if (PyErr_Occurred()) SWIG_fail; | |
19612 | } | |
19613 | } | |
d14a1e28 RD |
19614 | if (obj6) { |
19615 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19616 | if (arg7 == NULL) { | |
19617 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19618 | } | |
19619 | } | |
19620 | if (obj7) { | |
19621 | { | |
19622 | arg8 = wxString_in_helper(obj7); | |
19623 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 19624 | temp8 = True; |
d14a1e28 RD |
19625 | } |
19626 | } | |
19627 | { | |
19628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19629 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19630 | ||
19631 | wxPyEndAllowThreads(__tstate); | |
19632 | if (PyErr_Occurred()) SWIG_fail; | |
19633 | } | |
02a34c4c | 19634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19635 | { |
19636 | if (temp8) | |
19637 | delete arg8; | |
19638 | } | |
19639 | return resultobj; | |
19640 | fail: | |
19641 | { | |
19642 | if (temp8) | |
19643 | delete arg8; | |
19644 | } | |
19645 | return NULL; | |
19646 | } | |
19647 | ||
19648 | ||
19649 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19650 | PyObject *resultobj; | |
19651 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19652 | PyObject *arg2 = (PyObject *) 0 ; | |
19653 | PyObject *arg3 = (PyObject *) 0 ; | |
19654 | PyObject * obj0 = 0 ; | |
19655 | PyObject * obj1 = 0 ; | |
19656 | PyObject * obj2 = 0 ; | |
19657 | char *kwnames[] = { | |
19658 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19659 | }; | |
19660 | ||
19661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19663 | arg2 = obj1; | |
19664 | arg3 = obj2; | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
19672 | Py_INCREF(Py_None); resultobj = Py_None; | |
19673 | return resultobj; | |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
19679 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19680 | PyObject *resultobj; | |
19681 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19682 | wxColour *arg2 = 0 ; | |
19683 | bool result; | |
19684 | wxColour temp2 ; | |
19685 | PyObject * obj0 = 0 ; | |
19686 | PyObject * obj1 = 0 ; | |
19687 | char *kwnames[] = { | |
19688 | (char *) "self",(char *) "col", NULL | |
19689 | }; | |
19690 | ||
19691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19693 | { | |
19694 | arg2 = &temp2; | |
19695 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19696 | } | |
19697 | { | |
19698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19699 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
19700 | ||
19701 | wxPyEndAllowThreads(__tstate); | |
19702 | if (PyErr_Occurred()) SWIG_fail; | |
19703 | } | |
02a34c4c | 19704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19705 | return resultobj; |
19706 | fail: | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
19711 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19712 | PyObject *resultobj; | |
19713 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19714 | wxColour *arg2 = 0 ; | |
19715 | bool result; | |
19716 | wxColour temp2 ; | |
19717 | PyObject * obj0 = 0 ; | |
19718 | PyObject * obj1 = 0 ; | |
19719 | char *kwnames[] = { | |
19720 | (char *) "self",(char *) "col", NULL | |
19721 | }; | |
19722 | ||
19723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19725 | { | |
19726 | arg2 = &temp2; | |
19727 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19728 | } | |
19729 | { | |
19730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19731 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19732 | ||
19733 | wxPyEndAllowThreads(__tstate); | |
19734 | if (PyErr_Occurred()) SWIG_fail; | |
19735 | } | |
02a34c4c | 19736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19737 | return resultobj; |
19738 | fail: | |
19739 | return NULL; | |
19740 | } | |
19741 | ||
19742 | ||
19743 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19744 | PyObject *resultobj; | |
19745 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19746 | int arg2 ; | |
19747 | wxListItem *result; | |
19748 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19750 | char *kwnames[] = { |
19751 | (char *) "self",(char *) "col", NULL | |
19752 | }; | |
19753 | ||
8edf1c75 | 19754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19756 | { |
19757 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
d14a1e28 RD |
19760 | { |
19761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19762 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
19763 | ||
19764 | wxPyEndAllowThreads(__tstate); | |
19765 | if (PyErr_Occurred()) SWIG_fail; | |
19766 | } | |
19767 | { | |
19768 | resultobj = wxPyMake_wxObject(result); | |
19769 | } | |
19770 | return resultobj; | |
19771 | fail: | |
19772 | return NULL; | |
19773 | } | |
19774 | ||
19775 | ||
19776 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19777 | PyObject *resultobj; | |
19778 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19779 | int arg2 ; | |
19780 | wxListItem *arg3 = 0 ; | |
19781 | bool result; | |
19782 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19783 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19784 | PyObject * obj2 = 0 ; |
19785 | char *kwnames[] = { | |
19786 | (char *) "self",(char *) "col",(char *) "item", NULL | |
19787 | }; | |
19788 | ||
8edf1c75 | 19789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19791 | { |
19792 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19793 | if (PyErr_Occurred()) SWIG_fail; | |
19794 | } | |
d14a1e28 RD |
19795 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19796 | if (arg3 == NULL) { | |
19797 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19798 | } | |
19799 | { | |
19800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19801 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
19802 | ||
19803 | wxPyEndAllowThreads(__tstate); | |
19804 | if (PyErr_Occurred()) SWIG_fail; | |
19805 | } | |
02a34c4c | 19806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19807 | return resultobj; |
19808 | fail: | |
19809 | return NULL; | |
19810 | } | |
19811 | ||
19812 | ||
19813 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19814 | PyObject *resultobj; | |
19815 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19816 | int arg2 ; | |
19817 | int result; | |
19818 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19820 | char *kwnames[] = { |
19821 | (char *) "self",(char *) "col", NULL | |
19822 | }; | |
19823 | ||
8edf1c75 | 19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19826 | { |
19827 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19828 | if (PyErr_Occurred()) SWIG_fail; | |
19829 | } | |
d14a1e28 RD |
19830 | { |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
8edf1c75 | 19837 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19838 | return resultobj; |
19839 | fail: | |
19840 | return NULL; | |
19841 | } | |
19842 | ||
19843 | ||
19844 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19845 | PyObject *resultobj; | |
19846 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19847 | int arg2 ; | |
19848 | int arg3 ; | |
19849 | bool result; | |
19850 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19851 | PyObject * obj1 = 0 ; |
19852 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19853 | char *kwnames[] = { |
19854 | (char *) "self",(char *) "col",(char *) "width", NULL | |
19855 | }; | |
19856 | ||
8edf1c75 | 19857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19859 | { |
19860 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19861 | if (PyErr_Occurred()) SWIG_fail; | |
19862 | } | |
19863 | { | |
19864 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19865 | if (PyErr_Occurred()) SWIG_fail; | |
19866 | } | |
d14a1e28 RD |
19867 | { |
19868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19869 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
19870 | ||
19871 | wxPyEndAllowThreads(__tstate); | |
19872 | if (PyErr_Occurred()) SWIG_fail; | |
19873 | } | |
02a34c4c | 19874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19875 | return resultobj; |
19876 | fail: | |
19877 | return NULL; | |
19878 | } | |
19879 | ||
19880 | ||
19881 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19882 | PyObject *resultobj; | |
19883 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19884 | int result; | |
19885 | PyObject * obj0 = 0 ; | |
19886 | char *kwnames[] = { | |
19887 | (char *) "self", NULL | |
19888 | }; | |
19889 | ||
19890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
19891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19892 | { | |
19893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19894 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
19895 | ||
19896 | wxPyEndAllowThreads(__tstate); | |
19897 | if (PyErr_Occurred()) SWIG_fail; | |
19898 | } | |
8edf1c75 | 19899 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19900 | return resultobj; |
19901 | fail: | |
19902 | return NULL; | |
19903 | } | |
19904 | ||
19905 | ||
19906 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19907 | PyObject *resultobj; | |
19908 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19909 | wxRect result; | |
19910 | PyObject * obj0 = 0 ; | |
19911 | char *kwnames[] = { | |
19912 | (char *) "self", NULL | |
19913 | }; | |
19914 | ||
19915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
19916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19917 | { | |
19918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19919 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
19920 | ||
19921 | wxPyEndAllowThreads(__tstate); | |
19922 | if (PyErr_Occurred()) SWIG_fail; | |
19923 | } | |
19924 | { | |
19925 | wxRect * resultptr; | |
19926 | resultptr = new wxRect((wxRect &) result); | |
19927 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
19928 | } | |
19929 | return resultobj; | |
19930 | fail: | |
19931 | return NULL; | |
19932 | } | |
19933 | ||
19934 | ||
19935 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19936 | PyObject *resultobj; | |
19937 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19938 | long arg2 ; | |
19939 | int arg3 = (int) 0 ; | |
19940 | wxListItem *result; | |
19941 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19942 | PyObject * obj1 = 0 ; |
19943 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19944 | char *kwnames[] = { |
19945 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
19946 | }; | |
19947 | ||
8edf1c75 | 19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19950 | { |
19951 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19952 | if (PyErr_Occurred()) SWIG_fail; | |
19953 | } | |
19954 | if (obj2) { | |
19955 | { | |
19956 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
19959 | } | |
d14a1e28 RD |
19960 | { |
19961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19962 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
19963 | ||
19964 | wxPyEndAllowThreads(__tstate); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
19966 | } | |
19967 | { | |
19968 | resultobj = wxPyMake_wxObject(result); | |
19969 | } | |
19970 | return resultobj; | |
19971 | fail: | |
19972 | return NULL; | |
19973 | } | |
19974 | ||
19975 | ||
19976 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19977 | PyObject *resultobj; | |
19978 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19979 | wxListItem *arg2 = 0 ; | |
19980 | bool result; | |
19981 | PyObject * obj0 = 0 ; | |
19982 | PyObject * obj1 = 0 ; | |
19983 | char *kwnames[] = { | |
19984 | (char *) "self",(char *) "info", NULL | |
19985 | }; | |
19986 | ||
19987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
19988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19989 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19990 | if (arg2 == NULL) { | |
19991 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19992 | } | |
19993 | { | |
19994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19995 | result = (bool)(arg1)->SetItem(*arg2); | |
19996 | ||
19997 | wxPyEndAllowThreads(__tstate); | |
19998 | if (PyErr_Occurred()) SWIG_fail; | |
19999 | } | |
02a34c4c | 20000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20001 | return resultobj; |
20002 | fail: | |
20003 | return NULL; | |
20004 | } | |
20005 | ||
20006 | ||
20007 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20008 | PyObject *resultobj; | |
20009 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20010 | long arg2 ; | |
20011 | int arg3 ; | |
20012 | wxString *arg4 = 0 ; | |
20013 | int arg5 = (int) -1 ; | |
20014 | long result; | |
423f194a | 20015 | bool temp4 = False ; |
d14a1e28 | 20016 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20017 | PyObject * obj1 = 0 ; |
20018 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20019 | PyObject * obj3 = 0 ; |
8edf1c75 | 20020 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20021 | char *kwnames[] = { |
20022 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20023 | }; | |
20024 | ||
8edf1c75 | 20025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 20026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20027 | { |
20028 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20029 | if (PyErr_Occurred()) SWIG_fail; | |
20030 | } | |
20031 | { | |
20032 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20033 | if (PyErr_Occurred()) SWIG_fail; | |
20034 | } | |
d14a1e28 RD |
20035 | { |
20036 | arg4 = wxString_in_helper(obj3); | |
20037 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20038 | temp4 = True; |
d14a1e28 | 20039 | } |
8edf1c75 RD |
20040 | if (obj4) { |
20041 | { | |
20042 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
20043 | if (PyErr_Occurred()) SWIG_fail; | |
20044 | } | |
20045 | } | |
d14a1e28 RD |
20046 | { |
20047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20048 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20049 | ||
20050 | wxPyEndAllowThreads(__tstate); | |
20051 | if (PyErr_Occurred()) SWIG_fail; | |
20052 | } | |
8edf1c75 | 20053 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20054 | { |
20055 | if (temp4) | |
20056 | delete arg4; | |
20057 | } | |
20058 | return resultobj; | |
20059 | fail: | |
20060 | { | |
20061 | if (temp4) | |
20062 | delete arg4; | |
20063 | } | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
20068 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20069 | PyObject *resultobj; | |
20070 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20071 | long arg2 ; | |
20072 | long arg3 ; | |
20073 | int result; | |
20074 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20075 | PyObject * obj1 = 0 ; |
20076 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20077 | char *kwnames[] = { |
20078 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20079 | }; | |
20080 | ||
8edf1c75 | 20081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20083 | { |
20084 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20085 | if (PyErr_Occurred()) SWIG_fail; | |
20086 | } | |
20087 | { | |
20088 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20089 | if (PyErr_Occurred()) SWIG_fail; | |
20090 | } | |
d14a1e28 RD |
20091 | { |
20092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20093 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20094 | ||
20095 | wxPyEndAllowThreads(__tstate); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
8edf1c75 | 20098 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20099 | return resultobj; |
20100 | fail: | |
20101 | return NULL; | |
20102 | } | |
20103 | ||
20104 | ||
20105 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20106 | PyObject *resultobj; | |
20107 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20108 | long arg2 ; | |
20109 | long arg3 ; | |
20110 | long arg4 ; | |
20111 | bool result; | |
20112 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20113 | PyObject * obj1 = 0 ; |
20114 | PyObject * obj2 = 0 ; | |
20115 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20116 | char *kwnames[] = { |
20117 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20118 | }; | |
20119 | ||
8edf1c75 | 20120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20122 | { |
20123 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20124 | if (PyErr_Occurred()) SWIG_fail; | |
20125 | } | |
20126 | { | |
20127 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20128 | if (PyErr_Occurred()) SWIG_fail; | |
20129 | } | |
20130 | { | |
20131 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20132 | if (PyErr_Occurred()) SWIG_fail; | |
20133 | } | |
d14a1e28 RD |
20134 | { |
20135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20136 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20137 | ||
20138 | wxPyEndAllowThreads(__tstate); | |
20139 | if (PyErr_Occurred()) SWIG_fail; | |
20140 | } | |
02a34c4c | 20141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20142 | return resultobj; |
20143 | fail: | |
20144 | return NULL; | |
20145 | } | |
20146 | ||
20147 | ||
20148 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20149 | PyObject *resultobj; | |
20150 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20151 | long arg2 ; | |
20152 | int arg3 ; | |
20153 | int arg4 ; | |
20154 | bool result; | |
20155 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20156 | PyObject * obj1 = 0 ; |
20157 | PyObject * obj2 = 0 ; | |
20158 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20159 | char *kwnames[] = { |
20160 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20161 | }; | |
20162 | ||
8edf1c75 | 20163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20165 | { |
20166 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
20169 | { | |
20170 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20171 | if (PyErr_Occurred()) SWIG_fail; | |
20172 | } | |
20173 | { | |
20174 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
20176 | } | |
d14a1e28 RD |
20177 | { |
20178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20179 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20180 | ||
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
02a34c4c | 20184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20185 | return resultobj; |
20186 | fail: | |
20187 | return NULL; | |
20188 | } | |
20189 | ||
20190 | ||
20191 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20192 | PyObject *resultobj; | |
20193 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20194 | long arg2 ; | |
20195 | wxString result; | |
20196 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20197 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20198 | char *kwnames[] = { |
20199 | (char *) "self",(char *) "item", NULL | |
20200 | }; | |
20201 | ||
8edf1c75 | 20202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20204 | { |
20205 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20206 | if (PyErr_Occurred()) SWIG_fail; | |
20207 | } | |
d14a1e28 RD |
20208 | { |
20209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20210 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20211 | ||
20212 | wxPyEndAllowThreads(__tstate); | |
20213 | if (PyErr_Occurred()) SWIG_fail; | |
20214 | } | |
20215 | { | |
20216 | #if wxUSE_UNICODE | |
20217 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20218 | #else | |
20219 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20220 | #endif | |
20221 | } | |
20222 | return resultobj; | |
20223 | fail: | |
20224 | return NULL; | |
20225 | } | |
20226 | ||
20227 | ||
20228 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20229 | PyObject *resultobj; | |
20230 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20231 | long arg2 ; | |
20232 | wxString *arg3 = 0 ; | |
423f194a | 20233 | bool temp3 = False ; |
d14a1e28 | 20234 | PyObject * obj0 = 0 ; |
8edf1c75 | 20235 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20236 | PyObject * obj2 = 0 ; |
20237 | char *kwnames[] = { | |
20238 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20239 | }; | |
20240 | ||
8edf1c75 | 20241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20243 | { |
20244 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20245 | if (PyErr_Occurred()) SWIG_fail; | |
20246 | } | |
d14a1e28 RD |
20247 | { |
20248 | arg3 = wxString_in_helper(obj2); | |
20249 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20250 | temp3 = True; |
d14a1e28 RD |
20251 | } |
20252 | { | |
20253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20254 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20255 | ||
20256 | wxPyEndAllowThreads(__tstate); | |
20257 | if (PyErr_Occurred()) SWIG_fail; | |
20258 | } | |
20259 | Py_INCREF(Py_None); resultobj = Py_None; | |
20260 | { | |
20261 | if (temp3) | |
20262 | delete arg3; | |
20263 | } | |
20264 | return resultobj; | |
20265 | fail: | |
20266 | { | |
20267 | if (temp3) | |
20268 | delete arg3; | |
20269 | } | |
20270 | return NULL; | |
20271 | } | |
20272 | ||
20273 | ||
20274 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20275 | PyObject *resultobj; | |
20276 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20277 | long arg2 ; | |
20278 | long result; | |
20279 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20280 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20281 | char *kwnames[] = { |
20282 | (char *) "self",(char *) "item", NULL | |
20283 | }; | |
20284 | ||
8edf1c75 | 20285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20287 | { |
20288 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20289 | if (PyErr_Occurred()) SWIG_fail; | |
20290 | } | |
d14a1e28 RD |
20291 | { |
20292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20293 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20294 | ||
20295 | wxPyEndAllowThreads(__tstate); | |
20296 | if (PyErr_Occurred()) SWIG_fail; | |
20297 | } | |
8edf1c75 | 20298 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20299 | return resultobj; |
20300 | fail: | |
20301 | return NULL; | |
20302 | } | |
20303 | ||
20304 | ||
20305 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20306 | PyObject *resultobj; | |
20307 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20308 | long arg2 ; | |
20309 | long arg3 ; | |
20310 | bool result; | |
20311 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20312 | PyObject * obj1 = 0 ; |
20313 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20314 | char *kwnames[] = { |
20315 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20316 | }; | |
20317 | ||
8edf1c75 | 20318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20320 | { |
20321 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20322 | if (PyErr_Occurred()) SWIG_fail; | |
20323 | } | |
20324 | { | |
20325 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20326 | if (PyErr_Occurred()) SWIG_fail; | |
20327 | } | |
d14a1e28 RD |
20328 | { |
20329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20330 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20331 | ||
20332 | wxPyEndAllowThreads(__tstate); | |
20333 | if (PyErr_Occurred()) SWIG_fail; | |
20334 | } | |
02a34c4c | 20335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20336 | return resultobj; |
20337 | fail: | |
20338 | return NULL; | |
20339 | } | |
20340 | ||
20341 | ||
20342 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20343 | PyObject *resultobj; | |
20344 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20345 | long arg2 ; | |
20346 | wxPoint result; | |
20347 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20348 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20349 | char *kwnames[] = { |
20350 | (char *) "self",(char *) "item", NULL | |
20351 | }; | |
20352 | ||
8edf1c75 | 20353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20355 | { |
20356 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20357 | if (PyErr_Occurred()) SWIG_fail; | |
20358 | } | |
d14a1e28 RD |
20359 | { |
20360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20361 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20362 | ||
20363 | wxPyEndAllowThreads(__tstate); | |
20364 | if (PyErr_Occurred()) SWIG_fail; | |
20365 | } | |
20366 | { | |
20367 | wxPoint * resultptr; | |
20368 | resultptr = new wxPoint((wxPoint &) result); | |
20369 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20370 | } | |
20371 | return resultobj; | |
20372 | fail: | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
20377 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20378 | PyObject *resultobj; | |
20379 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20380 | long arg2 ; | |
20381 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20382 | wxRect result; | |
20383 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20384 | PyObject * obj1 = 0 ; |
20385 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20386 | char *kwnames[] = { |
20387 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20388 | }; | |
20389 | ||
8edf1c75 | 20390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20392 | { |
20393 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20394 | if (PyErr_Occurred()) SWIG_fail; | |
20395 | } | |
20396 | if (obj2) { | |
20397 | { | |
20398 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20399 | if (PyErr_Occurred()) SWIG_fail; | |
20400 | } | |
20401 | } | |
d14a1e28 RD |
20402 | { |
20403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20404 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20405 | ||
20406 | wxPyEndAllowThreads(__tstate); | |
20407 | if (PyErr_Occurred()) SWIG_fail; | |
20408 | } | |
20409 | { | |
20410 | wxRect * resultptr; | |
20411 | resultptr = new wxRect((wxRect &) result); | |
20412 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20413 | } | |
20414 | return resultobj; | |
20415 | fail: | |
20416 | return NULL; | |
20417 | } | |
20418 | ||
20419 | ||
20420 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20421 | PyObject *resultobj; | |
20422 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20423 | long arg2 ; | |
20424 | wxPoint *arg3 = 0 ; | |
20425 | bool result; | |
20426 | wxPoint temp3 ; | |
20427 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20429 | PyObject * obj2 = 0 ; |
20430 | char *kwnames[] = { | |
20431 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20432 | }; | |
20433 | ||
8edf1c75 | 20434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20436 | { |
20437 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20438 | if (PyErr_Occurred()) SWIG_fail; | |
20439 | } | |
d14a1e28 RD |
20440 | { |
20441 | arg3 = &temp3; | |
20442 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20443 | } | |
20444 | { | |
20445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20446 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
20447 | ||
20448 | wxPyEndAllowThreads(__tstate); | |
20449 | if (PyErr_Occurred()) SWIG_fail; | |
20450 | } | |
02a34c4c | 20451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20452 | return resultobj; |
20453 | fail: | |
20454 | return NULL; | |
20455 | } | |
20456 | ||
20457 | ||
20458 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20459 | PyObject *resultobj; | |
20460 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20461 | int result; | |
20462 | PyObject * obj0 = 0 ; | |
20463 | char *kwnames[] = { | |
20464 | (char *) "self", NULL | |
20465 | }; | |
20466 | ||
20467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
20468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20469 | { | |
20470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20471 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
20472 | ||
20473 | wxPyEndAllowThreads(__tstate); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | } | |
8edf1c75 | 20476 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20477 | return resultobj; |
20478 | fail: | |
20479 | return NULL; | |
20480 | } | |
20481 | ||
20482 | ||
20483 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20484 | PyObject *resultobj; | |
20485 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20486 | int result; | |
20487 | PyObject * obj0 = 0 ; | |
20488 | char *kwnames[] = { | |
20489 | (char *) "self", NULL | |
20490 | }; | |
20491 | ||
20492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
20493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20494 | { | |
20495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20496 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
20497 | ||
20498 | wxPyEndAllowThreads(__tstate); | |
20499 | if (PyErr_Occurred()) SWIG_fail; | |
20500 | } | |
8edf1c75 | 20501 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20502 | return resultobj; |
20503 | fail: | |
20504 | return NULL; | |
20505 | } | |
20506 | ||
20507 | ||
20508 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20509 | PyObject *resultobj; | |
20510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20511 | wxSize result; | |
20512 | PyObject * obj0 = 0 ; | |
20513 | char *kwnames[] = { | |
20514 | (char *) "self", NULL | |
20515 | }; | |
20516 | ||
20517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
20518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20519 | { | |
20520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20521 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
20522 | ||
20523 | wxPyEndAllowThreads(__tstate); | |
20524 | if (PyErr_Occurred()) SWIG_fail; | |
20525 | } | |
20526 | { | |
20527 | wxSize * resultptr; | |
20528 | resultptr = new wxSize((wxSize &) result); | |
20529 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20530 | } | |
20531 | return resultobj; | |
20532 | fail: | |
20533 | return NULL; | |
20534 | } | |
20535 | ||
20536 | ||
20537 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20538 | PyObject *resultobj; | |
20539 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20540 | int arg2 ; | |
423f194a | 20541 | bool arg3 = (bool) False ; |
d14a1e28 | 20542 | PyObject * obj0 = 0 ; |
8edf1c75 | 20543 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20544 | PyObject * obj2 = 0 ; |
20545 | char *kwnames[] = { | |
20546 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
20547 | }; | |
20548 | ||
8edf1c75 | 20549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20551 | { |
20552 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20553 | if (PyErr_Occurred()) SWIG_fail; | |
20554 | } | |
d14a1e28 | 20555 | if (obj2) { |
2dbef272 | 20556 | { |
8edf1c75 | 20557 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
20558 | if (PyErr_Occurred()) SWIG_fail; |
20559 | } | |
d14a1e28 RD |
20560 | } |
20561 | { | |
20562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20563 | (arg1)->SetItemSpacing(arg2,arg3); | |
20564 | ||
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
20568 | Py_INCREF(Py_None); resultobj = Py_None; | |
20569 | return resultobj; | |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
20575 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20576 | PyObject *resultobj; | |
20577 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20578 | int result; | |
20579 | PyObject * obj0 = 0 ; | |
20580 | char *kwnames[] = { | |
20581 | (char *) "self", NULL | |
20582 | }; | |
20583 | ||
20584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
20585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20586 | { | |
20587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20588 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
20589 | ||
20590 | wxPyEndAllowThreads(__tstate); | |
20591 | if (PyErr_Occurred()) SWIG_fail; | |
20592 | } | |
8edf1c75 | 20593 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20594 | return resultobj; |
20595 | fail: | |
20596 | return NULL; | |
20597 | } | |
20598 | ||
20599 | ||
20600 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20601 | PyObject *resultobj; | |
20602 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20603 | wxColour result; | |
20604 | PyObject * obj0 = 0 ; | |
20605 | char *kwnames[] = { | |
20606 | (char *) "self", NULL | |
20607 | }; | |
20608 | ||
20609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
20610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20611 | { | |
20612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20613 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
20614 | ||
20615 | wxPyEndAllowThreads(__tstate); | |
20616 | if (PyErr_Occurred()) SWIG_fail; | |
20617 | } | |
20618 | { | |
20619 | wxColour * resultptr; | |
20620 | resultptr = new wxColour((wxColour &) result); | |
20621 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
20622 | } | |
20623 | return resultobj; | |
20624 | fail: | |
20625 | return NULL; | |
20626 | } | |
20627 | ||
20628 | ||
20629 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20630 | PyObject *resultobj; | |
20631 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20632 | wxColour *arg2 = 0 ; | |
20633 | wxColour temp2 ; | |
20634 | PyObject * obj0 = 0 ; | |
20635 | PyObject * obj1 = 0 ; | |
20636 | char *kwnames[] = { | |
20637 | (char *) "self",(char *) "col", NULL | |
20638 | }; | |
20639 | ||
20640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
20641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20642 | { | |
20643 | arg2 = &temp2; | |
20644 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20645 | } | |
20646 | { | |
20647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20648 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
20649 | ||
20650 | wxPyEndAllowThreads(__tstate); | |
20651 | if (PyErr_Occurred()) SWIG_fail; | |
20652 | } | |
20653 | Py_INCREF(Py_None); resultobj = Py_None; | |
20654 | return resultobj; | |
20655 | fail: | |
20656 | return NULL; | |
20657 | } | |
20658 | ||
20659 | ||
20660 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20661 | PyObject *resultobj; | |
20662 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20663 | long result; | |
20664 | PyObject * obj0 = 0 ; | |
20665 | char *kwnames[] = { | |
20666 | (char *) "self", NULL | |
20667 | }; | |
20668 | ||
20669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
20670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20671 | { | |
20672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20673 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
20674 | ||
20675 | wxPyEndAllowThreads(__tstate); | |
20676 | if (PyErr_Occurred()) SWIG_fail; | |
20677 | } | |
8edf1c75 | 20678 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20679 | return resultobj; |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
20685 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20686 | PyObject *resultobj; | |
20687 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20688 | long arg2 ; | |
423f194a | 20689 | bool arg3 = (bool) True ; |
d14a1e28 | 20690 | PyObject * obj0 = 0 ; |
8edf1c75 | 20691 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20692 | PyObject * obj2 = 0 ; |
20693 | char *kwnames[] = { | |
20694 | (char *) "self",(char *) "style",(char *) "add", NULL | |
20695 | }; | |
20696 | ||
8edf1c75 | 20697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20699 | { |
20700 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20701 | if (PyErr_Occurred()) SWIG_fail; | |
20702 | } | |
d14a1e28 | 20703 | if (obj2) { |
2dbef272 | 20704 | { |
8edf1c75 | 20705 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
20706 | if (PyErr_Occurred()) SWIG_fail; |
20707 | } | |
d14a1e28 RD |
20708 | } |
20709 | { | |
20710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20711 | (arg1)->SetSingleStyle(arg2,arg3); | |
20712 | ||
20713 | wxPyEndAllowThreads(__tstate); | |
20714 | if (PyErr_Occurred()) SWIG_fail; | |
20715 | } | |
20716 | Py_INCREF(Py_None); resultobj = Py_None; | |
20717 | return resultobj; | |
20718 | fail: | |
20719 | return NULL; | |
20720 | } | |
20721 | ||
20722 | ||
20723 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20724 | PyObject *resultobj; | |
20725 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20726 | long arg2 ; | |
20727 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20728 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20729 | char *kwnames[] = { |
20730 | (char *) "self",(char *) "style", NULL | |
20731 | }; | |
20732 | ||
8edf1c75 | 20733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20735 | { |
20736 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20737 | if (PyErr_Occurred()) SWIG_fail; | |
20738 | } | |
d14a1e28 RD |
20739 | { |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | (arg1)->SetWindowStyleFlag(arg2); | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
20746 | Py_INCREF(Py_None); resultobj = Py_None; | |
20747 | return resultobj; | |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
20753 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20754 | PyObject *resultobj; | |
20755 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20756 | long arg2 ; | |
20757 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
20758 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
20759 | long result; | |
20760 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20761 | PyObject * obj1 = 0 ; |
20762 | PyObject * obj2 = 0 ; | |
20763 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20764 | char *kwnames[] = { |
20765 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
20766 | }; | |
20767 | ||
8edf1c75 | 20768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20770 | { |
20771 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20772 | if (PyErr_Occurred()) SWIG_fail; | |
20773 | } | |
20774 | if (obj2) { | |
20775 | { | |
20776 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20777 | if (PyErr_Occurred()) SWIG_fail; | |
20778 | } | |
20779 | } | |
20780 | if (obj3) { | |
20781 | { | |
20782 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20783 | if (PyErr_Occurred()) SWIG_fail; | |
20784 | } | |
20785 | } | |
d14a1e28 RD |
20786 | { |
20787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20788 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
20789 | ||
20790 | wxPyEndAllowThreads(__tstate); | |
20791 | if (PyErr_Occurred()) SWIG_fail; | |
20792 | } | |
8edf1c75 | 20793 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20794 | return resultobj; |
20795 | fail: | |
20796 | return NULL; | |
20797 | } | |
20798 | ||
20799 | ||
20800 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20801 | PyObject *resultobj; | |
20802 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20803 | int arg2 ; | |
20804 | wxImageList *result; | |
20805 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20806 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20807 | char *kwnames[] = { |
20808 | (char *) "self",(char *) "which", NULL | |
20809 | }; | |
20810 | ||
8edf1c75 | 20811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20813 | { |
20814 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20815 | if (PyErr_Occurred()) SWIG_fail; | |
20816 | } | |
d14a1e28 RD |
20817 | { |
20818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20819 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
20820 | ||
20821 | wxPyEndAllowThreads(__tstate); | |
20822 | if (PyErr_Occurred()) SWIG_fail; | |
20823 | } | |
20824 | { | |
20825 | resultobj = wxPyMake_wxObject(result); | |
20826 | } | |
20827 | return resultobj; | |
20828 | fail: | |
20829 | return NULL; | |
20830 | } | |
20831 | ||
20832 | ||
20833 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20834 | PyObject *resultobj; | |
20835 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20836 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20837 | int arg3 ; | |
20838 | PyObject * obj0 = 0 ; | |
20839 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20840 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20841 | char *kwnames[] = { |
20842 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20843 | }; | |
20844 | ||
8edf1c75 | 20845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
20846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20847 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
20848 | { |
20849 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20850 | if (PyErr_Occurred()) SWIG_fail; | |
20851 | } | |
d14a1e28 RD |
20852 | { |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | (arg1)->SetImageList(arg2,arg3); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
20859 | Py_INCREF(Py_None); resultobj = Py_None; | |
20860 | return resultobj; | |
20861 | fail: | |
20862 | return NULL; | |
20863 | } | |
20864 | ||
20865 | ||
20866 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20867 | PyObject *resultobj; | |
20868 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20869 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20870 | int arg3 ; | |
20871 | PyObject * obj0 = 0 ; | |
20872 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20873 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20874 | char *kwnames[] = { |
20875 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20876 | }; | |
20877 | ||
8edf1c75 | 20878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 20880 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
8edf1c75 RD |
20881 | { |
20882 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20883 | if (PyErr_Occurred()) SWIG_fail; | |
20884 | } | |
d14a1e28 RD |
20885 | { |
20886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20887 | (arg1)->AssignImageList(arg2,arg3); | |
20888 | ||
20889 | wxPyEndAllowThreads(__tstate); | |
20890 | if (PyErr_Occurred()) SWIG_fail; | |
20891 | } | |
20892 | Py_INCREF(Py_None); resultobj = Py_None; | |
20893 | return resultobj; | |
20894 | fail: | |
20895 | return NULL; | |
20896 | } | |
20897 | ||
20898 | ||
20899 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20900 | PyObject *resultobj; | |
20901 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20902 | bool result; | |
20903 | PyObject * obj0 = 0 ; | |
20904 | char *kwnames[] = { | |
20905 | (char *) "self", NULL | |
20906 | }; | |
20907 | ||
20908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
20909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20910 | { | |
20911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20912 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
20913 | ||
20914 | wxPyEndAllowThreads(__tstate); | |
20915 | if (PyErr_Occurred()) SWIG_fail; | |
20916 | } | |
02a34c4c | 20917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20918 | return resultobj; |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
20924 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20925 | PyObject *resultobj; | |
20926 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20927 | long arg2 ; | |
20928 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20930 | char *kwnames[] = { |
20931 | (char *) "self",(char *) "item", NULL | |
20932 | }; | |
20933 | ||
8edf1c75 | 20934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20936 | { |
20937 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20938 | if (PyErr_Occurred()) SWIG_fail; | |
20939 | } | |
d14a1e28 RD |
20940 | { |
20941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20942 | (arg1)->RefreshItem(arg2); | |
20943 | ||
20944 | wxPyEndAllowThreads(__tstate); | |
20945 | if (PyErr_Occurred()) SWIG_fail; | |
20946 | } | |
20947 | Py_INCREF(Py_None); resultobj = Py_None; | |
20948 | return resultobj; | |
20949 | fail: | |
20950 | return NULL; | |
20951 | } | |
20952 | ||
20953 | ||
20954 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20955 | PyObject *resultobj; | |
20956 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20957 | long arg2 ; | |
20958 | long arg3 ; | |
20959 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20960 | PyObject * obj1 = 0 ; |
20961 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20962 | char *kwnames[] = { |
20963 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
20964 | }; | |
20965 | ||
8edf1c75 | 20966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20968 | { |
20969 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20970 | if (PyErr_Occurred()) SWIG_fail; | |
20971 | } | |
20972 | { | |
20973 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20974 | if (PyErr_Occurred()) SWIG_fail; | |
20975 | } | |
d14a1e28 RD |
20976 | { |
20977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20978 | (arg1)->RefreshItems(arg2,arg3); | |
20979 | ||
20980 | wxPyEndAllowThreads(__tstate); | |
20981 | if (PyErr_Occurred()) SWIG_fail; | |
20982 | } | |
20983 | Py_INCREF(Py_None); resultobj = Py_None; | |
20984 | return resultobj; | |
20985 | fail: | |
20986 | return NULL; | |
20987 | } | |
20988 | ||
20989 | ||
20990 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20991 | PyObject *resultobj; | |
20992 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20993 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
20994 | bool result; | |
20995 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20996 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20997 | char *kwnames[] = { |
20998 | (char *) "self",(char *) "flag", NULL | |
20999 | }; | |
21000 | ||
8edf1c75 | 21001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21003 | if (obj1) { |
21004 | { | |
21005 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21006 | if (PyErr_Occurred()) SWIG_fail; | |
21007 | } | |
21008 | } | |
d14a1e28 RD |
21009 | { |
21010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21011 | result = (bool)(arg1)->Arrange(arg2); | |
21012 | ||
21013 | wxPyEndAllowThreads(__tstate); | |
21014 | if (PyErr_Occurred()) SWIG_fail; | |
21015 | } | |
02a34c4c | 21016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21017 | return resultobj; |
21018 | fail: | |
21019 | return NULL; | |
21020 | } | |
21021 | ||
21022 | ||
21023 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21024 | PyObject *resultobj; | |
21025 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21026 | long arg2 ; | |
21027 | bool result; | |
21028 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21029 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21030 | char *kwnames[] = { |
21031 | (char *) "self",(char *) "item", NULL | |
21032 | }; | |
21033 | ||
8edf1c75 | 21034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21036 | { |
21037 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21038 | if (PyErr_Occurred()) SWIG_fail; | |
21039 | } | |
d14a1e28 RD |
21040 | { |
21041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21042 | result = (bool)(arg1)->DeleteItem(arg2); | |
21043 | ||
21044 | wxPyEndAllowThreads(__tstate); | |
21045 | if (PyErr_Occurred()) SWIG_fail; | |
21046 | } | |
02a34c4c | 21047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21048 | return resultobj; |
21049 | fail: | |
21050 | return NULL; | |
21051 | } | |
21052 | ||
21053 | ||
21054 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21055 | PyObject *resultobj; | |
21056 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21057 | bool result; | |
21058 | PyObject * obj0 = 0 ; | |
21059 | char *kwnames[] = { | |
21060 | (char *) "self", NULL | |
21061 | }; | |
21062 | ||
21063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21065 | { | |
21066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21067 | result = (bool)(arg1)->DeleteAllItems(); | |
21068 | ||
21069 | wxPyEndAllowThreads(__tstate); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
02a34c4c | 21072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21073 | return resultobj; |
21074 | fail: | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21080 | PyObject *resultobj; | |
21081 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21082 | int arg2 ; | |
21083 | bool result; | |
21084 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21086 | char *kwnames[] = { |
21087 | (char *) "self",(char *) "col", NULL | |
21088 | }; | |
21089 | ||
8edf1c75 | 21090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21092 | { |
21093 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21094 | if (PyErr_Occurred()) SWIG_fail; | |
21095 | } | |
d14a1e28 RD |
21096 | { |
21097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21098 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21099 | ||
21100 | wxPyEndAllowThreads(__tstate); | |
21101 | if (PyErr_Occurred()) SWIG_fail; | |
21102 | } | |
02a34c4c | 21103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21104 | return resultobj; |
21105 | fail: | |
21106 | return NULL; | |
21107 | } | |
21108 | ||
21109 | ||
21110 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21111 | PyObject *resultobj; | |
21112 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21113 | bool result; | |
21114 | PyObject * obj0 = 0 ; | |
21115 | char *kwnames[] = { | |
21116 | (char *) "self", NULL | |
21117 | }; | |
21118 | ||
21119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21121 | { | |
21122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21123 | result = (bool)(arg1)->DeleteAllColumns(); | |
21124 | ||
21125 | wxPyEndAllowThreads(__tstate); | |
21126 | if (PyErr_Occurred()) SWIG_fail; | |
21127 | } | |
02a34c4c | 21128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21129 | return resultobj; |
21130 | fail: | |
21131 | return NULL; | |
21132 | } | |
21133 | ||
21134 | ||
21135 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21136 | PyObject *resultobj; | |
21137 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21138 | PyObject * obj0 = 0 ; | |
21139 | char *kwnames[] = { | |
21140 | (char *) "self", NULL | |
21141 | }; | |
21142 | ||
21143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21145 | { | |
21146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21147 | (arg1)->ClearAll(); | |
21148 | ||
21149 | wxPyEndAllowThreads(__tstate); | |
21150 | if (PyErr_Occurred()) SWIG_fail; | |
21151 | } | |
21152 | Py_INCREF(Py_None); resultobj = Py_None; | |
21153 | return resultobj; | |
21154 | fail: | |
21155 | return NULL; | |
21156 | } | |
21157 | ||
21158 | ||
21159 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21160 | PyObject *resultobj; | |
21161 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21162 | long arg2 ; | |
21163 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21165 | char *kwnames[] = { |
21166 | (char *) "self",(char *) "item", NULL | |
21167 | }; | |
21168 | ||
8edf1c75 | 21169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21171 | { |
21172 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21173 | if (PyErr_Occurred()) SWIG_fail; | |
21174 | } | |
d14a1e28 RD |
21175 | { |
21176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21177 | (arg1)->EditLabel(arg2); | |
21178 | ||
21179 | wxPyEndAllowThreads(__tstate); | |
21180 | if (PyErr_Occurred()) SWIG_fail; | |
21181 | } | |
21182 | Py_INCREF(Py_None); resultobj = Py_None; | |
21183 | return resultobj; | |
21184 | fail: | |
21185 | return NULL; | |
21186 | } | |
21187 | ||
21188 | ||
21189 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21190 | PyObject *resultobj; | |
21191 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21192 | long arg2 ; | |
21193 | bool result; | |
21194 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21196 | char *kwnames[] = { |
21197 | (char *) "self",(char *) "item", NULL | |
21198 | }; | |
21199 | ||
8edf1c75 | 21200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21202 | { |
21203 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21204 | if (PyErr_Occurred()) SWIG_fail; | |
21205 | } | |
d14a1e28 RD |
21206 | { |
21207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21208 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21209 | ||
21210 | wxPyEndAllowThreads(__tstate); | |
21211 | if (PyErr_Occurred()) SWIG_fail; | |
21212 | } | |
02a34c4c | 21213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21214 | return resultobj; |
21215 | fail: | |
21216 | return NULL; | |
21217 | } | |
21218 | ||
21219 | ||
21220 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21221 | PyObject *resultobj; | |
21222 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21223 | long arg2 ; | |
21224 | wxString *arg3 = 0 ; | |
423f194a | 21225 | bool arg4 = (bool) False ; |
d14a1e28 | 21226 | long result; |
423f194a | 21227 | bool temp3 = False ; |
d14a1e28 | 21228 | PyObject * obj0 = 0 ; |
8edf1c75 | 21229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21230 | PyObject * obj2 = 0 ; |
21231 | PyObject * obj3 = 0 ; | |
21232 | char *kwnames[] = { | |
21233 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21234 | }; | |
21235 | ||
8edf1c75 | 21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21238 | { |
21239 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21240 | if (PyErr_Occurred()) SWIG_fail; | |
21241 | } | |
d14a1e28 RD |
21242 | { |
21243 | arg3 = wxString_in_helper(obj2); | |
21244 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21245 | temp3 = True; |
d14a1e28 RD |
21246 | } |
21247 | if (obj3) { | |
2dbef272 | 21248 | { |
8edf1c75 | 21249 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
21250 | if (PyErr_Occurred()) SWIG_fail; |
21251 | } | |
d14a1e28 RD |
21252 | } |
21253 | { | |
21254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21255 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21256 | ||
21257 | wxPyEndAllowThreads(__tstate); | |
21258 | if (PyErr_Occurred()) SWIG_fail; | |
21259 | } | |
8edf1c75 | 21260 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21261 | { |
21262 | if (temp3) | |
21263 | delete arg3; | |
21264 | } | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | { | |
21268 | if (temp3) | |
21269 | delete arg3; | |
21270 | } | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
21275 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21276 | PyObject *resultobj; | |
21277 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21278 | long arg2 ; | |
21279 | long arg3 ; | |
21280 | long result; | |
21281 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21282 | PyObject * obj1 = 0 ; |
21283 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21284 | char *kwnames[] = { |
21285 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21286 | }; | |
21287 | ||
8edf1c75 | 21288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21290 | { |
21291 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21292 | if (PyErr_Occurred()) SWIG_fail; | |
21293 | } | |
21294 | { | |
21295 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21296 | if (PyErr_Occurred()) SWIG_fail; | |
21297 | } | |
d14a1e28 RD |
21298 | { |
21299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21300 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21301 | ||
21302 | wxPyEndAllowThreads(__tstate); | |
21303 | if (PyErr_Occurred()) SWIG_fail; | |
21304 | } | |
8edf1c75 | 21305 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21306 | return resultobj; |
21307 | fail: | |
21308 | return NULL; | |
21309 | } | |
21310 | ||
21311 | ||
21312 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21313 | PyObject *resultobj; | |
21314 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21315 | long arg2 ; | |
21316 | wxPoint *arg3 = 0 ; | |
21317 | int arg4 ; | |
21318 | long result; | |
21319 | wxPoint temp3 ; | |
21320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21321 | PyObject * obj1 = 0 ; |
d14a1e28 | 21322 | PyObject * obj2 = 0 ; |
8edf1c75 | 21323 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21324 | char *kwnames[] = { |
21325 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21326 | }; | |
21327 | ||
8edf1c75 | 21328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21330 | { |
21331 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21332 | if (PyErr_Occurred()) SWIG_fail; | |
21333 | } | |
d14a1e28 RD |
21334 | { |
21335 | arg3 = &temp3; | |
21336 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21337 | } | |
8edf1c75 RD |
21338 | { |
21339 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21340 | if (PyErr_Occurred()) SWIG_fail; | |
21341 | } | |
d14a1e28 RD |
21342 | { |
21343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21344 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21345 | ||
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
8edf1c75 | 21349 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21350 | return resultobj; |
21351 | fail: | |
21352 | return NULL; | |
21353 | } | |
21354 | ||
21355 | ||
21356 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21357 | PyObject *resultobj; | |
21358 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21359 | wxPoint *arg2 = 0 ; | |
21360 | int *arg3 = 0 ; | |
21361 | long result; | |
21362 | wxPoint temp2 ; | |
21363 | int temp3 ; | |
21364 | PyObject * obj0 = 0 ; | |
21365 | PyObject * obj1 = 0 ; | |
21366 | char *kwnames[] = { | |
21367 | (char *) "self",(char *) "point", NULL | |
21368 | }; | |
21369 | ||
21370 | arg3 = &temp3; | |
21371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21373 | { | |
21374 | arg2 = &temp2; | |
21375 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21376 | } | |
21377 | { | |
21378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21379 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21380 | ||
21381 | wxPyEndAllowThreads(__tstate); | |
21382 | if (PyErr_Occurred()) SWIG_fail; | |
21383 | } | |
8edf1c75 | 21384 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21385 | { |
21386 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21387 | resultobj = t_output_helper(resultobj,o); | |
21388 | } | |
21389 | return resultobj; | |
21390 | fail: | |
21391 | return NULL; | |
21392 | } | |
21393 | ||
21394 | ||
21395 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21396 | PyObject *resultobj; | |
21397 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21398 | wxListItem *arg2 = 0 ; | |
21399 | long result; | |
21400 | PyObject * obj0 = 0 ; | |
21401 | PyObject * obj1 = 0 ; | |
21402 | char *kwnames[] = { | |
21403 | (char *) "self",(char *) "info", NULL | |
21404 | }; | |
21405 | ||
21406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21408 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21409 | if (arg2 == NULL) { | |
21410 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21411 | } | |
21412 | { | |
21413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21414 | result = (long)(arg1)->InsertItem(*arg2); | |
21415 | ||
21416 | wxPyEndAllowThreads(__tstate); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
8edf1c75 | 21419 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21420 | return resultobj; |
21421 | fail: | |
21422 | return NULL; | |
21423 | } | |
21424 | ||
21425 | ||
21426 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21427 | PyObject *resultobj; | |
21428 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21429 | long arg2 ; | |
21430 | wxString *arg3 = 0 ; | |
21431 | long result; | |
423f194a | 21432 | bool temp3 = False ; |
d14a1e28 | 21433 | PyObject * obj0 = 0 ; |
8edf1c75 | 21434 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21435 | PyObject * obj2 = 0 ; |
21436 | char *kwnames[] = { | |
21437 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21438 | }; | |
21439 | ||
8edf1c75 | 21440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21442 | { |
21443 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
21445 | } | |
d14a1e28 RD |
21446 | { |
21447 | arg3 = wxString_in_helper(obj2); | |
21448 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21449 | temp3 = True; |
d14a1e28 RD |
21450 | } |
21451 | { | |
21452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21453 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
21454 | ||
21455 | wxPyEndAllowThreads(__tstate); | |
21456 | if (PyErr_Occurred()) SWIG_fail; | |
21457 | } | |
8edf1c75 | 21458 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21459 | { |
21460 | if (temp3) | |
21461 | delete arg3; | |
21462 | } | |
21463 | return resultobj; | |
21464 | fail: | |
21465 | { | |
21466 | if (temp3) | |
21467 | delete arg3; | |
21468 | } | |
21469 | return NULL; | |
21470 | } | |
21471 | ||
21472 | ||
21473 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21474 | PyObject *resultobj; | |
21475 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21476 | long arg2 ; | |
21477 | int arg3 ; | |
21478 | long result; | |
21479 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21480 | PyObject * obj1 = 0 ; |
21481 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21482 | char *kwnames[] = { |
21483 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
21484 | }; | |
21485 | ||
8edf1c75 | 21486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21488 | { |
21489 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21490 | if (PyErr_Occurred()) SWIG_fail; | |
21491 | } | |
21492 | { | |
21493 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | } | |
d14a1e28 RD |
21496 | { |
21497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21498 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
21499 | ||
21500 | wxPyEndAllowThreads(__tstate); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
8edf1c75 | 21503 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21504 | return resultobj; |
21505 | fail: | |
21506 | return NULL; | |
21507 | } | |
21508 | ||
21509 | ||
21510 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21511 | PyObject *resultobj; | |
21512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21513 | long arg2 ; | |
21514 | wxString *arg3 = 0 ; | |
21515 | int arg4 ; | |
21516 | long result; | |
423f194a | 21517 | bool temp3 = False ; |
d14a1e28 | 21518 | PyObject * obj0 = 0 ; |
8edf1c75 | 21519 | PyObject * obj1 = 0 ; |
d14a1e28 | 21520 | PyObject * obj2 = 0 ; |
8edf1c75 | 21521 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21522 | char *kwnames[] = { |
21523 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
21524 | }; | |
21525 | ||
8edf1c75 | 21526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21528 | { |
21529 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
21531 | } | |
d14a1e28 RD |
21532 | { |
21533 | arg3 = wxString_in_helper(obj2); | |
21534 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21535 | temp3 = True; |
d14a1e28 | 21536 | } |
8edf1c75 RD |
21537 | { |
21538 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21539 | if (PyErr_Occurred()) SWIG_fail; | |
21540 | } | |
d14a1e28 RD |
21541 | { |
21542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21543 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
21544 | ||
21545 | wxPyEndAllowThreads(__tstate); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | } | |
8edf1c75 | 21548 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21549 | { |
21550 | if (temp3) | |
21551 | delete arg3; | |
21552 | } | |
21553 | return resultobj; | |
21554 | fail: | |
21555 | { | |
21556 | if (temp3) | |
21557 | delete arg3; | |
21558 | } | |
21559 | return NULL; | |
21560 | } | |
21561 | ||
21562 | ||
21563 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21564 | PyObject *resultobj; | |
21565 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21566 | long arg2 ; | |
21567 | wxListItem *arg3 = 0 ; | |
21568 | long result; | |
21569 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21571 | PyObject * obj2 = 0 ; |
21572 | char *kwnames[] = { | |
21573 | (char *) "self",(char *) "col",(char *) "info", NULL | |
21574 | }; | |
21575 | ||
8edf1c75 | 21576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21578 | { |
21579 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21580 | if (PyErr_Occurred()) SWIG_fail; | |
21581 | } | |
d14a1e28 RD |
21582 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21583 | if (arg3 == NULL) { | |
21584 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21585 | } | |
21586 | { | |
21587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21588 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
21589 | ||
21590 | wxPyEndAllowThreads(__tstate); | |
21591 | if (PyErr_Occurred()) SWIG_fail; | |
21592 | } | |
8edf1c75 | 21593 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21594 | return resultobj; |
21595 | fail: | |
21596 | return NULL; | |
21597 | } | |
21598 | ||
21599 | ||
21600 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21601 | PyObject *resultobj; | |
21602 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21603 | long arg2 ; | |
21604 | wxString *arg3 = 0 ; | |
21605 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
21606 | int arg5 = (int) -1 ; | |
21607 | long result; | |
423f194a | 21608 | bool temp3 = False ; |
d14a1e28 | 21609 | PyObject * obj0 = 0 ; |
8edf1c75 | 21610 | PyObject * obj1 = 0 ; |
d14a1e28 | 21611 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
21612 | PyObject * obj3 = 0 ; |
21613 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
21614 | char *kwnames[] = { |
21615 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
21616 | }; | |
21617 | ||
8edf1c75 | 21618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 21619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21620 | { |
21621 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21622 | if (PyErr_Occurred()) SWIG_fail; | |
21623 | } | |
d14a1e28 RD |
21624 | { |
21625 | arg3 = wxString_in_helper(obj2); | |
21626 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21627 | temp3 = True; |
d14a1e28 | 21628 | } |
8edf1c75 RD |
21629 | if (obj3) { |
21630 | { | |
21631 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | } | |
21634 | } | |
21635 | if (obj4) { | |
21636 | { | |
21637 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21638 | if (PyErr_Occurred()) SWIG_fail; | |
21639 | } | |
21640 | } | |
d14a1e28 RD |
21641 | { |
21642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21643 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
21644 | ||
21645 | wxPyEndAllowThreads(__tstate); | |
21646 | if (PyErr_Occurred()) SWIG_fail; | |
21647 | } | |
8edf1c75 | 21648 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21649 | { |
21650 | if (temp3) | |
21651 | delete arg3; | |
21652 | } | |
21653 | return resultobj; | |
21654 | fail: | |
21655 | { | |
21656 | if (temp3) | |
21657 | delete arg3; | |
21658 | } | |
21659 | return NULL; | |
21660 | } | |
21661 | ||
21662 | ||
21663 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21664 | PyObject *resultobj; | |
21665 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21666 | long arg2 ; | |
21667 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21668 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21669 | char *kwnames[] = { |
21670 | (char *) "self",(char *) "count", NULL | |
21671 | }; | |
21672 | ||
8edf1c75 | 21673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21675 | { |
21676 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
d14a1e28 RD |
21679 | { |
21680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21681 | (arg1)->SetItemCount(arg2); | |
21682 | ||
21683 | wxPyEndAllowThreads(__tstate); | |
21684 | if (PyErr_Occurred()) SWIG_fail; | |
21685 | } | |
21686 | Py_INCREF(Py_None); resultobj = Py_None; | |
21687 | return resultobj; | |
21688 | fail: | |
21689 | return NULL; | |
21690 | } | |
21691 | ||
21692 | ||
21693 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21694 | PyObject *resultobj; | |
21695 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21696 | int arg2 ; | |
21697 | int arg3 ; | |
21698 | bool result; | |
21699 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21700 | PyObject * obj1 = 0 ; |
21701 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21702 | char *kwnames[] = { |
21703 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
21704 | }; | |
21705 | ||
8edf1c75 | 21706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21708 | { |
21709 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21710 | if (PyErr_Occurred()) SWIG_fail; | |
21711 | } | |
21712 | { | |
21713 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21714 | if (PyErr_Occurred()) SWIG_fail; | |
21715 | } | |
d14a1e28 RD |
21716 | { |
21717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21718 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
21719 | ||
21720 | wxPyEndAllowThreads(__tstate); | |
21721 | if (PyErr_Occurred()) SWIG_fail; | |
21722 | } | |
02a34c4c | 21723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21724 | return resultobj; |
21725 | fail: | |
21726 | return NULL; | |
21727 | } | |
21728 | ||
21729 | ||
21730 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21731 | PyObject *resultobj; | |
21732 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21733 | long arg2 ; | |
21734 | wxColour *arg3 = 0 ; | |
21735 | wxColour temp3 ; | |
21736 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21737 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21738 | PyObject * obj2 = 0 ; |
21739 | char *kwnames[] = { | |
21740 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21741 | }; | |
21742 | ||
8edf1c75 | 21743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21745 | { |
21746 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21747 | if (PyErr_Occurred()) SWIG_fail; | |
21748 | } | |
d14a1e28 RD |
21749 | { |
21750 | arg3 = &temp3; | |
21751 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21752 | } | |
21753 | { | |
21754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21755 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
21756 | ||
21757 | wxPyEndAllowThreads(__tstate); | |
21758 | if (PyErr_Occurred()) SWIG_fail; | |
21759 | } | |
21760 | Py_INCREF(Py_None); resultobj = Py_None; | |
21761 | return resultobj; | |
21762 | fail: | |
21763 | return NULL; | |
21764 | } | |
21765 | ||
21766 | ||
21767 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21768 | PyObject *resultobj; | |
21769 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21770 | long arg2 ; | |
21771 | wxColour result; | |
21772 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21774 | char *kwnames[] = { |
21775 | (char *) "self",(char *) "item", NULL | |
21776 | }; | |
21777 | ||
8edf1c75 | 21778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21780 | { |
21781 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21782 | if (PyErr_Occurred()) SWIG_fail; | |
21783 | } | |
d14a1e28 RD |
21784 | { |
21785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21786 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
21787 | ||
21788 | wxPyEndAllowThreads(__tstate); | |
21789 | if (PyErr_Occurred()) SWIG_fail; | |
21790 | } | |
21791 | { | |
21792 | wxColour * resultptr; | |
21793 | resultptr = new wxColour((wxColour &) result); | |
21794 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21795 | } | |
21796 | return resultobj; | |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
21802 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21803 | PyObject *resultobj; | |
21804 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21805 | long arg2 ; | |
21806 | wxColour *arg3 = 0 ; | |
21807 | wxColour temp3 ; | |
21808 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21809 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21810 | PyObject * obj2 = 0 ; |
21811 | char *kwnames[] = { | |
21812 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21813 | }; | |
21814 | ||
8edf1c75 | 21815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21817 | { |
21818 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
d14a1e28 RD |
21821 | { |
21822 | arg3 = &temp3; | |
21823 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21824 | } | |
21825 | { | |
21826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21827 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
21828 | ||
21829 | wxPyEndAllowThreads(__tstate); | |
21830 | if (PyErr_Occurred()) SWIG_fail; | |
21831 | } | |
21832 | Py_INCREF(Py_None); resultobj = Py_None; | |
21833 | return resultobj; | |
21834 | fail: | |
21835 | return NULL; | |
21836 | } | |
21837 | ||
21838 | ||
21839 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21840 | PyObject *resultobj; | |
21841 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21842 | long arg2 ; | |
21843 | wxColour result; | |
21844 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21845 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21846 | char *kwnames[] = { |
21847 | (char *) "self",(char *) "item", NULL | |
21848 | }; | |
21849 | ||
8edf1c75 | 21850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21852 | { |
21853 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21854 | if (PyErr_Occurred()) SWIG_fail; | |
21855 | } | |
d14a1e28 RD |
21856 | { |
21857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21858 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
21859 | ||
21860 | wxPyEndAllowThreads(__tstate); | |
21861 | if (PyErr_Occurred()) SWIG_fail; | |
21862 | } | |
21863 | { | |
21864 | wxColour * resultptr; | |
21865 | resultptr = new wxColour((wxColour &) result); | |
21866 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21867 | } | |
21868 | return resultobj; | |
21869 | fail: | |
21870 | return NULL; | |
21871 | } | |
21872 | ||
21873 | ||
21874 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21875 | PyObject *resultobj; | |
21876 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21877 | PyObject *arg2 = (PyObject *) 0 ; | |
21878 | bool result; | |
21879 | PyObject * obj0 = 0 ; | |
21880 | PyObject * obj1 = 0 ; | |
21881 | char *kwnames[] = { | |
21882 | (char *) "self",(char *) "func", NULL | |
21883 | }; | |
21884 | ||
21885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
21886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21887 | arg2 = obj1; | |
21888 | { | |
21889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21890 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
21891 | ||
21892 | wxPyEndAllowThreads(__tstate); | |
21893 | if (PyErr_Occurred()) SWIG_fail; | |
21894 | } | |
02a34c4c | 21895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21896 | return resultobj; |
21897 | fail: | |
21898 | return NULL; | |
21899 | } | |
21900 | ||
21901 | ||
21902 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21903 | PyObject *resultobj; | |
21904 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21905 | wxWindow *result; | |
21906 | PyObject * obj0 = 0 ; | |
21907 | char *kwnames[] = { | |
21908 | (char *) "self", NULL | |
21909 | }; | |
21910 | ||
21911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
21912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21913 | { | |
21914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21915 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
21916 | ||
21917 | wxPyEndAllowThreads(__tstate); | |
21918 | if (PyErr_Occurred()) SWIG_fail; | |
21919 | } | |
21920 | { | |
21921 | resultobj = wxPyMake_wxObject(result); | |
21922 | } | |
21923 | return resultobj; | |
21924 | fail: | |
21925 | return NULL; | |
21926 | } | |
21927 | ||
21928 | ||
21929 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
21930 | PyObject *obj; | |
21931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21932 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
21933 | Py_INCREF(obj); | |
21934 | return Py_BuildValue((char *)""); | |
21935 | } | |
21936 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21939 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21940 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21941 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21942 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21943 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21944 | long arg5 = (long) wxLC_REPORT ; | |
21945 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21946 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21947 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21948 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21949 | wxListView *result; | |
21950 | wxPoint temp3 ; | |
21951 | wxSize temp4 ; | |
423f194a | 21952 | bool temp7 = False ; |
d14a1e28 | 21953 | PyObject * obj0 = 0 ; |
8edf1c75 | 21954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21955 | PyObject * obj2 = 0 ; |
21956 | PyObject * obj3 = 0 ; | |
8edf1c75 | 21957 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21958 | PyObject * obj5 = 0 ; |
21959 | PyObject * obj6 = 0 ; | |
21960 | char *kwnames[] = { | |
21961 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21962 | }; | |
21963 | ||
8edf1c75 | 21964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 21965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21966 | if (obj1) { |
21967 | { | |
21968 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21969 | if (PyErr_Occurred()) SWIG_fail; | |
21970 | } | |
21971 | } | |
d14a1e28 RD |
21972 | if (obj2) { |
21973 | { | |
21974 | arg3 = &temp3; | |
21975 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21976 | } | |
21977 | } | |
21978 | if (obj3) { | |
21979 | { | |
21980 | arg4 = &temp4; | |
21981 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21982 | } | |
21983 | } | |
8edf1c75 RD |
21984 | if (obj4) { |
21985 | { | |
21986 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
21987 | if (PyErr_Occurred()) SWIG_fail; | |
21988 | } | |
21989 | } | |
d14a1e28 RD |
21990 | if (obj5) { |
21991 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21992 | if (arg6 == NULL) { | |
21993 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21994 | } | |
21995 | } | |
21996 | if (obj6) { | |
21997 | { | |
21998 | arg7 = wxString_in_helper(obj6); | |
21999 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22000 | temp7 = True; |
d14a1e28 RD |
22001 | } |
22002 | } | |
22003 | { | |
22004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22005 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22006 | ||
22007 | wxPyEndAllowThreads(__tstate); | |
22008 | if (PyErr_Occurred()) SWIG_fail; | |
22009 | } | |
22010 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22011 | { | |
22012 | if (temp7) | |
22013 | delete arg7; | |
22014 | } | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | { | |
22018 | if (temp7) | |
22019 | delete arg7; | |
22020 | } | |
22021 | return NULL; | |
22022 | } | |
22023 | ||
22024 | ||
22025 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22026 | PyObject *resultobj; | |
22027 | wxListView *result; | |
22028 | char *kwnames[] = { | |
22029 | NULL | |
22030 | }; | |
22031 | ||
22032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22033 | { | |
22034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22035 | result = (wxListView *)new wxListView(); | |
22036 | ||
22037 | wxPyEndAllowThreads(__tstate); | |
22038 | if (PyErr_Occurred()) SWIG_fail; | |
22039 | } | |
22040 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22041 | return resultobj; | |
22042 | fail: | |
22043 | return NULL; | |
22044 | } | |
22045 | ||
22046 | ||
22047 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22048 | PyObject *resultobj; | |
22049 | wxListView *arg1 = (wxListView *) 0 ; | |
22050 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22051 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22052 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22053 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22054 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22055 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22056 | long arg6 = (long) wxLC_REPORT ; | |
22057 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22058 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22059 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22060 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22061 | bool result; | |
22062 | wxPoint temp4 ; | |
22063 | wxSize temp5 ; | |
423f194a | 22064 | bool temp8 = False ; |
d14a1e28 RD |
22065 | PyObject * obj0 = 0 ; |
22066 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22067 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22068 | PyObject * obj3 = 0 ; |
22069 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22070 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22071 | PyObject * obj6 = 0 ; |
22072 | PyObject * obj7 = 0 ; | |
22073 | char *kwnames[] = { | |
22074 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22075 | }; | |
22076 | ||
8edf1c75 | 22077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
22078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
22080 | if (obj2) { |
22081 | { | |
22082 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22083 | if (PyErr_Occurred()) SWIG_fail; | |
22084 | } | |
22085 | } | |
d14a1e28 RD |
22086 | if (obj3) { |
22087 | { | |
22088 | arg4 = &temp4; | |
22089 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22090 | } | |
22091 | } | |
22092 | if (obj4) { | |
22093 | { | |
22094 | arg5 = &temp5; | |
22095 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22096 | } | |
22097 | } | |
8edf1c75 RD |
22098 | if (obj5) { |
22099 | { | |
22100 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
22103 | } | |
d14a1e28 RD |
22104 | if (obj6) { |
22105 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22106 | if (arg7 == NULL) { | |
22107 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22108 | } | |
22109 | } | |
22110 | if (obj7) { | |
22111 | { | |
22112 | arg8 = wxString_in_helper(obj7); | |
22113 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22114 | temp8 = True; |
d14a1e28 RD |
22115 | } |
22116 | } | |
22117 | { | |
22118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22119 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22120 | ||
22121 | wxPyEndAllowThreads(__tstate); | |
22122 | if (PyErr_Occurred()) SWIG_fail; | |
22123 | } | |
02a34c4c | 22124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22125 | { |
22126 | if (temp8) | |
22127 | delete arg8; | |
22128 | } | |
22129 | return resultobj; | |
22130 | fail: | |
22131 | { | |
22132 | if (temp8) | |
22133 | delete arg8; | |
22134 | } | |
22135 | return NULL; | |
22136 | } | |
22137 | ||
22138 | ||
22139 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22140 | PyObject *resultobj; | |
22141 | wxListView *arg1 = (wxListView *) 0 ; | |
22142 | long arg2 ; | |
423f194a | 22143 | bool arg3 = (bool) True ; |
d14a1e28 | 22144 | PyObject * obj0 = 0 ; |
8edf1c75 | 22145 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22146 | PyObject * obj2 = 0 ; |
22147 | char *kwnames[] = { | |
22148 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22149 | }; | |
22150 | ||
8edf1c75 | 22151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22153 | { |
22154 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22155 | if (PyErr_Occurred()) SWIG_fail; | |
22156 | } | |
d14a1e28 | 22157 | if (obj2) { |
2dbef272 | 22158 | { |
8edf1c75 | 22159 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
22160 | if (PyErr_Occurred()) SWIG_fail; |
22161 | } | |
d14a1e28 RD |
22162 | } |
22163 | { | |
22164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22165 | (arg1)->Select(arg2,arg3); | |
22166 | ||
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | Py_INCREF(Py_None); resultobj = Py_None; | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
22174 | } | |
22175 | ||
22176 | ||
22177 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22178 | PyObject *resultobj; | |
22179 | wxListView *arg1 = (wxListView *) 0 ; | |
22180 | long arg2 ; | |
22181 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22182 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22183 | char *kwnames[] = { |
22184 | (char *) "self",(char *) "index", NULL | |
22185 | }; | |
22186 | ||
8edf1c75 | 22187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22189 | { |
22190 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22191 | if (PyErr_Occurred()) SWIG_fail; | |
22192 | } | |
d14a1e28 RD |
22193 | { |
22194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22195 | (arg1)->Focus(arg2); | |
22196 | ||
22197 | wxPyEndAllowThreads(__tstate); | |
22198 | if (PyErr_Occurred()) SWIG_fail; | |
22199 | } | |
22200 | Py_INCREF(Py_None); resultobj = Py_None; | |
22201 | return resultobj; | |
22202 | fail: | |
22203 | return NULL; | |
22204 | } | |
22205 | ||
22206 | ||
22207 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22208 | PyObject *resultobj; | |
22209 | wxListView *arg1 = (wxListView *) 0 ; | |
22210 | long result; | |
22211 | PyObject * obj0 = 0 ; | |
22212 | char *kwnames[] = { | |
22213 | (char *) "self", NULL | |
22214 | }; | |
22215 | ||
22216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22218 | { | |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22221 | ||
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
8edf1c75 | 22225 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22226 | return resultobj; |
22227 | fail: | |
22228 | return NULL; | |
22229 | } | |
22230 | ||
22231 | ||
22232 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22233 | PyObject *resultobj; | |
22234 | wxListView *arg1 = (wxListView *) 0 ; | |
22235 | long arg2 ; | |
22236 | long result; | |
22237 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22238 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22239 | char *kwnames[] = { |
22240 | (char *) "self",(char *) "item", NULL | |
22241 | }; | |
22242 | ||
8edf1c75 | 22243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22245 | { |
22246 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22247 | if (PyErr_Occurred()) SWIG_fail; | |
22248 | } | |
d14a1e28 RD |
22249 | { |
22250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22251 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22252 | ||
22253 | wxPyEndAllowThreads(__tstate); | |
22254 | if (PyErr_Occurred()) SWIG_fail; | |
22255 | } | |
8edf1c75 | 22256 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22257 | return resultobj; |
22258 | fail: | |
22259 | return NULL; | |
22260 | } | |
22261 | ||
22262 | ||
22263 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22264 | PyObject *resultobj; | |
22265 | wxListView *arg1 = (wxListView *) 0 ; | |
22266 | long result; | |
22267 | PyObject * obj0 = 0 ; | |
22268 | char *kwnames[] = { | |
22269 | (char *) "self", NULL | |
22270 | }; | |
22271 | ||
22272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22274 | { | |
22275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22276 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22277 | ||
22278 | wxPyEndAllowThreads(__tstate); | |
22279 | if (PyErr_Occurred()) SWIG_fail; | |
22280 | } | |
8edf1c75 | 22281 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22282 | return resultobj; |
22283 | fail: | |
22284 | return NULL; | |
22285 | } | |
22286 | ||
22287 | ||
22288 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22289 | PyObject *resultobj; | |
22290 | wxListView *arg1 = (wxListView *) 0 ; | |
22291 | long arg2 ; | |
22292 | bool result; | |
22293 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22294 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22295 | char *kwnames[] = { |
22296 | (char *) "self",(char *) "index", NULL | |
22297 | }; | |
22298 | ||
8edf1c75 | 22299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22301 | { |
22302 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22303 | if (PyErr_Occurred()) SWIG_fail; | |
22304 | } | |
d14a1e28 RD |
22305 | { |
22306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22307 | result = (bool)(arg1)->IsSelected(arg2); | |
22308 | ||
22309 | wxPyEndAllowThreads(__tstate); | |
22310 | if (PyErr_Occurred()) SWIG_fail; | |
22311 | } | |
02a34c4c | 22312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22313 | return resultobj; |
22314 | fail: | |
22315 | return NULL; | |
22316 | } | |
22317 | ||
22318 | ||
22319 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22320 | PyObject *resultobj; | |
22321 | wxListView *arg1 = (wxListView *) 0 ; | |
22322 | int arg2 ; | |
22323 | int arg3 ; | |
22324 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22325 | PyObject * obj1 = 0 ; |
22326 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22327 | char *kwnames[] = { |
22328 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22329 | }; | |
22330 | ||
8edf1c75 | 22331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22333 | { |
22334 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22335 | if (PyErr_Occurred()) SWIG_fail; | |
22336 | } | |
22337 | { | |
22338 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22339 | if (PyErr_Occurred()) SWIG_fail; | |
22340 | } | |
d14a1e28 RD |
22341 | { |
22342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22343 | (arg1)->SetColumnImage(arg2,arg3); | |
22344 | ||
22345 | wxPyEndAllowThreads(__tstate); | |
22346 | if (PyErr_Occurred()) SWIG_fail; | |
22347 | } | |
22348 | Py_INCREF(Py_None); resultobj = Py_None; | |
22349 | return resultobj; | |
22350 | fail: | |
22351 | return NULL; | |
22352 | } | |
22353 | ||
22354 | ||
22355 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22356 | PyObject *resultobj; | |
22357 | wxListView *arg1 = (wxListView *) 0 ; | |
22358 | int arg2 ; | |
22359 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22361 | char *kwnames[] = { |
22362 | (char *) "self",(char *) "col", NULL | |
22363 | }; | |
22364 | ||
8edf1c75 | 22365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22367 | { |
22368 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22369 | if (PyErr_Occurred()) SWIG_fail; | |
22370 | } | |
d14a1e28 RD |
22371 | { |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | (arg1)->ClearColumnImage(arg2); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
22378 | Py_INCREF(Py_None); resultobj = Py_None; | |
22379 | return resultobj; | |
22380 | fail: | |
22381 | return NULL; | |
22382 | } | |
22383 | ||
22384 | ||
22385 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22386 | PyObject *obj; | |
22387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22388 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22389 | Py_INCREF(obj); | |
22390 | return Py_BuildValue((char *)""); | |
22391 | } | |
8edf1c75 | 22392 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
22393 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
22394 | return 1; | |
22395 | } | |
22396 | ||
22397 | ||
22398 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22399 | PyObject *pyobj; | |
22400 | ||
22401 | { | |
22402 | #if wxUSE_UNICODE | |
22403 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22404 | #else | |
22405 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22406 | #endif | |
22407 | } | |
22408 | return pyobj; | |
22409 | } | |
22410 | ||
22411 | ||
d14a1e28 RD |
22412 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22413 | PyObject *resultobj; | |
22414 | wxTreeItemId *result; | |
22415 | char *kwnames[] = { | |
22416 | NULL | |
22417 | }; | |
22418 | ||
22419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22420 | { | |
22421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22422 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22423 | ||
22424 | wxPyEndAllowThreads(__tstate); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | } | |
22427 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22428 | return resultobj; | |
22429 | fail: | |
22430 | return NULL; | |
22431 | } | |
22432 | ||
22433 | ||
22434 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22435 | PyObject *resultobj; | |
22436 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22437 | PyObject * obj0 = 0 ; | |
22438 | char *kwnames[] = { | |
22439 | (char *) "self", NULL | |
22440 | }; | |
22441 | ||
22442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
22443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22444 | { | |
22445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22446 | delete arg1; | |
22447 | ||
22448 | wxPyEndAllowThreads(__tstate); | |
22449 | if (PyErr_Occurred()) SWIG_fail; | |
22450 | } | |
22451 | Py_INCREF(Py_None); resultobj = Py_None; | |
22452 | return resultobj; | |
22453 | fail: | |
22454 | return NULL; | |
22455 | } | |
22456 | ||
22457 | ||
22458 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22459 | PyObject *resultobj; | |
22460 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22461 | bool result; | |
22462 | PyObject * obj0 = 0 ; | |
22463 | char *kwnames[] = { | |
22464 | (char *) "self", NULL | |
22465 | }; | |
22466 | ||
22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
22468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22469 | { | |
22470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22471 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
22472 | ||
22473 | wxPyEndAllowThreads(__tstate); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | } | |
02a34c4c | 22476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22477 | return resultobj; |
22478 | fail: | |
22479 | return NULL; | |
22480 | } | |
22481 | ||
22482 | ||
22483 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22484 | PyObject *resultobj; | |
22485 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22486 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22487 | bool result; | |
22488 | PyObject * obj0 = 0 ; | |
22489 | PyObject * obj1 = 0 ; | |
22490 | char *kwnames[] = { | |
22491 | (char *) "self",(char *) "other", NULL | |
22492 | }; | |
22493 | ||
22494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22496 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
22500 | ||
22501 | wxPyEndAllowThreads(__tstate); | |
22502 | if (PyErr_Occurred()) SWIG_fail; | |
22503 | } | |
02a34c4c | 22504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22505 | return resultobj; |
22506 | fail: | |
22507 | return NULL; | |
22508 | } | |
22509 | ||
22510 | ||
22511 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22512 | PyObject *resultobj; | |
22513 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22514 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22515 | bool result; | |
22516 | PyObject * obj0 = 0 ; | |
22517 | PyObject * obj1 = 0 ; | |
22518 | char *kwnames[] = { | |
22519 | (char *) "self",(char *) "other", NULL | |
22520 | }; | |
22521 | ||
22522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22524 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22525 | { | |
22526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22527 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
22528 | ||
22529 | wxPyEndAllowThreads(__tstate); | |
22530 | if (PyErr_Occurred()) SWIG_fail; | |
22531 | } | |
02a34c4c | 22532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22533 | return resultobj; |
22534 | fail: | |
22535 | return NULL; | |
22536 | } | |
22537 | ||
22538 | ||
22539 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22540 | PyObject *resultobj; | |
22541 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22542 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
22543 | PyObject * obj0 = 0 ; |
22544 | PyObject * obj1 = 0 ; | |
22545 | char *kwnames[] = { | |
22546 | (char *) "self",(char *) "m_pItem", NULL | |
22547 | }; | |
22548 | ||
22549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
22550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
22552 | if (arg1) (arg1)->m_pItem = arg2; | |
22553 | ||
22554 | Py_INCREF(Py_None); resultobj = Py_None; | |
22555 | return resultobj; | |
22556 | fail: | |
22557 | return NULL; | |
22558 | } | |
22559 | ||
22560 | ||
22561 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22562 | PyObject *resultobj; | |
22563 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22564 | void *result; |
d14a1e28 RD |
22565 | PyObject * obj0 = 0 ; |
22566 | char *kwnames[] = { | |
22567 | (char *) "self", NULL | |
22568 | }; | |
22569 | ||
22570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
22571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 22572 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 22573 | |
58203fa6 | 22574 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); |
d14a1e28 RD |
22575 | return resultobj; |
22576 | fail: | |
22577 | return NULL; | |
22578 | } | |
22579 | ||
22580 | ||
22581 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
22582 | PyObject *obj; | |
22583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22584 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
22585 | Py_INCREF(obj); | |
22586 | return Py_BuildValue((char *)""); | |
22587 | } | |
22588 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22589 | PyObject *resultobj; | |
22590 | PyObject *arg1 = (PyObject *) NULL ; | |
22591 | wxPyTreeItemData *result; | |
22592 | PyObject * obj0 = 0 ; | |
22593 | char *kwnames[] = { | |
22594 | (char *) "obj", NULL | |
22595 | }; | |
22596 | ||
22597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
22598 | if (obj0) { | |
22599 | arg1 = obj0; | |
22600 | } | |
22601 | { | |
22602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22603 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
22604 | ||
22605 | wxPyEndAllowThreads(__tstate); | |
22606 | if (PyErr_Occurred()) SWIG_fail; | |
22607 | } | |
22608 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
22609 | return resultobj; | |
22610 | fail: | |
22611 | return NULL; | |
22612 | } | |
22613 | ||
22614 | ||
22615 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22616 | PyObject *resultobj; | |
22617 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22618 | PyObject *result; | |
22619 | PyObject * obj0 = 0 ; | |
22620 | char *kwnames[] = { | |
22621 | (char *) "self", NULL | |
22622 | }; | |
22623 | ||
22624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
22625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22626 | { | |
22627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22628 | result = (PyObject *)(arg1)->GetData(); | |
22629 | ||
22630 | wxPyEndAllowThreads(__tstate); | |
22631 | if (PyErr_Occurred()) SWIG_fail; | |
22632 | } | |
22633 | resultobj = result; | |
22634 | return resultobj; | |
22635 | fail: | |
22636 | return NULL; | |
22637 | } | |
22638 | ||
22639 | ||
22640 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22641 | PyObject *resultobj; | |
22642 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22643 | PyObject *arg2 = (PyObject *) 0 ; | |
22644 | PyObject * obj0 = 0 ; | |
22645 | PyObject * obj1 = 0 ; | |
22646 | char *kwnames[] = { | |
22647 | (char *) "self",(char *) "obj", NULL | |
22648 | }; | |
22649 | ||
22650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22652 | arg2 = obj1; | |
22653 | { | |
22654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22655 | (arg1)->SetData(arg2); | |
22656 | ||
22657 | wxPyEndAllowThreads(__tstate); | |
22658 | if (PyErr_Occurred()) SWIG_fail; | |
22659 | } | |
22660 | Py_INCREF(Py_None); resultobj = Py_None; | |
22661 | return resultobj; | |
22662 | fail: | |
22663 | return NULL; | |
22664 | } | |
22665 | ||
22666 | ||
22667 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22668 | PyObject *resultobj; | |
22669 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22670 | wxTreeItemId *result; | |
22671 | PyObject * obj0 = 0 ; | |
22672 | char *kwnames[] = { | |
22673 | (char *) "self", NULL | |
22674 | }; | |
22675 | ||
22676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
22677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22678 | { | |
22679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22680 | { | |
22681 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
22682 | result = (wxTreeItemId *) &_result_ref; | |
22683 | } | |
22684 | ||
22685 | wxPyEndAllowThreads(__tstate); | |
22686 | if (PyErr_Occurred()) SWIG_fail; | |
22687 | } | |
22688 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
22689 | return resultobj; | |
22690 | fail: | |
22691 | return NULL; | |
22692 | } | |
22693 | ||
22694 | ||
22695 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22696 | PyObject *resultobj; | |
22697 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22698 | wxTreeItemId *arg2 = 0 ; | |
22699 | PyObject * obj0 = 0 ; | |
22700 | PyObject * obj1 = 0 ; | |
22701 | char *kwnames[] = { | |
22702 | (char *) "self",(char *) "id", NULL | |
22703 | }; | |
22704 | ||
22705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22707 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22708 | if (arg2 == NULL) { | |
22709 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22710 | } | |
22711 | { | |
22712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22713 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
22714 | ||
22715 | wxPyEndAllowThreads(__tstate); | |
22716 | if (PyErr_Occurred()) SWIG_fail; | |
22717 | } | |
22718 | Py_INCREF(Py_None); resultobj = Py_None; | |
22719 | return resultobj; | |
22720 | fail: | |
22721 | return NULL; | |
22722 | } | |
22723 | ||
22724 | ||
22725 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22726 | PyObject *resultobj; | |
22727 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22728 | PyObject * obj0 = 0 ; | |
22729 | char *kwnames[] = { | |
22730 | (char *) "self", NULL | |
22731 | }; | |
22732 | ||
22733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
22734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22735 | { | |
22736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22737 | wxPyTreeItemData_Destroy(arg1); | |
22738 | ||
22739 | wxPyEndAllowThreads(__tstate); | |
22740 | if (PyErr_Occurred()) SWIG_fail; | |
22741 | } | |
22742 | Py_INCREF(Py_None); resultobj = Py_None; | |
22743 | return resultobj; | |
22744 | fail: | |
22745 | return NULL; | |
22746 | } | |
22747 | ||
22748 | ||
22749 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
22750 | PyObject *obj; | |
22751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22752 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
22753 | Py_INCREF(obj); | |
22754 | return Py_BuildValue((char *)""); | |
22755 | } | |
22756 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22757 | PyObject *resultobj; | |
22758 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22759 | int arg2 = (int) 0 ; | |
22760 | wxTreeEvent *result; | |
8edf1c75 RD |
22761 | PyObject * obj0 = 0 ; |
22762 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
22763 | char *kwnames[] = { |
22764 | (char *) "commandType",(char *) "id", NULL | |
22765 | }; | |
22766 | ||
8edf1c75 RD |
22767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
22768 | if (obj0) { | |
22769 | { | |
22770 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
22771 | if (PyErr_Occurred()) SWIG_fail; | |
22772 | } | |
22773 | } | |
22774 | if (obj1) { | |
22775 | { | |
22776 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22777 | if (PyErr_Occurred()) SWIG_fail; | |
22778 | } | |
22779 | } | |
d14a1e28 RD |
22780 | { |
22781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22782 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
22783 | ||
22784 | wxPyEndAllowThreads(__tstate); | |
22785 | if (PyErr_Occurred()) SWIG_fail; | |
22786 | } | |
22787 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
22788 | return resultobj; | |
22789 | fail: | |
22790 | return NULL; | |
22791 | } | |
22792 | ||
22793 | ||
22794 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22795 | PyObject *resultobj; | |
22796 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22797 | wxTreeItemId result; | |
22798 | PyObject * obj0 = 0 ; | |
22799 | char *kwnames[] = { | |
22800 | (char *) "self", NULL | |
22801 | }; | |
22802 | ||
22803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
22804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22805 | { | |
22806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22807 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
22808 | ||
22809 | wxPyEndAllowThreads(__tstate); | |
22810 | if (PyErr_Occurred()) SWIG_fail; | |
22811 | } | |
22812 | { | |
22813 | wxTreeItemId * resultptr; | |
22814 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22815 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22816 | } | |
22817 | return resultobj; | |
22818 | fail: | |
22819 | return NULL; | |
22820 | } | |
22821 | ||
22822 | ||
22823 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22824 | PyObject *resultobj; | |
22825 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22826 | wxTreeItemId *arg2 = 0 ; | |
22827 | PyObject * obj0 = 0 ; | |
22828 | PyObject * obj1 = 0 ; | |
22829 | char *kwnames[] = { | |
22830 | (char *) "self",(char *) "item", NULL | |
22831 | }; | |
22832 | ||
22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
22834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22835 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22836 | if (arg2 == NULL) { | |
22837 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22838 | } | |
22839 | { | |
22840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22841 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
22842 | ||
22843 | wxPyEndAllowThreads(__tstate); | |
22844 | if (PyErr_Occurred()) SWIG_fail; | |
22845 | } | |
22846 | Py_INCREF(Py_None); resultobj = Py_None; | |
22847 | return resultobj; | |
22848 | fail: | |
22849 | return NULL; | |
22850 | } | |
22851 | ||
22852 | ||
22853 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22854 | PyObject *resultobj; | |
22855 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22856 | wxTreeItemId result; | |
22857 | PyObject * obj0 = 0 ; | |
22858 | char *kwnames[] = { | |
22859 | (char *) "self", NULL | |
22860 | }; | |
22861 | ||
22862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
22863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22864 | { | |
22865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22866 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
22867 | ||
22868 | wxPyEndAllowThreads(__tstate); | |
22869 | if (PyErr_Occurred()) SWIG_fail; | |
22870 | } | |
22871 | { | |
22872 | wxTreeItemId * resultptr; | |
22873 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22874 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22875 | } | |
22876 | return resultobj; | |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
22882 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22883 | PyObject *resultobj; | |
22884 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22885 | wxTreeItemId *arg2 = 0 ; | |
22886 | PyObject * obj0 = 0 ; | |
22887 | PyObject * obj1 = 0 ; | |
22888 | char *kwnames[] = { | |
22889 | (char *) "self",(char *) "item", NULL | |
22890 | }; | |
22891 | ||
22892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
22893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22894 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22895 | if (arg2 == NULL) { | |
22896 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22897 | } | |
22898 | { | |
22899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22900 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
22901 | ||
22902 | wxPyEndAllowThreads(__tstate); | |
22903 | if (PyErr_Occurred()) SWIG_fail; | |
22904 | } | |
22905 | Py_INCREF(Py_None); resultobj = Py_None; | |
22906 | return resultobj; | |
22907 | fail: | |
22908 | return NULL; | |
22909 | } | |
22910 | ||
22911 | ||
22912 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22913 | PyObject *resultobj; | |
22914 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22915 | wxPoint result; | |
22916 | PyObject * obj0 = 0 ; | |
22917 | char *kwnames[] = { | |
22918 | (char *) "self", NULL | |
22919 | }; | |
22920 | ||
22921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
22922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22923 | { | |
22924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22925 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
22926 | ||
22927 | wxPyEndAllowThreads(__tstate); | |
22928 | if (PyErr_Occurred()) SWIG_fail; | |
22929 | } | |
22930 | { | |
22931 | wxPoint * resultptr; | |
22932 | resultptr = new wxPoint((wxPoint &) result); | |
22933 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22934 | } | |
22935 | return resultobj; | |
22936 | fail: | |
22937 | return NULL; | |
22938 | } | |
22939 | ||
22940 | ||
22941 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22942 | PyObject *resultobj; | |
22943 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22944 | wxPoint *arg2 = 0 ; | |
22945 | wxPoint temp2 ; | |
22946 | PyObject * obj0 = 0 ; | |
22947 | PyObject * obj1 = 0 ; | |
22948 | char *kwnames[] = { | |
22949 | (char *) "self",(char *) "pt", NULL | |
22950 | }; | |
22951 | ||
22952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
22953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22954 | { | |
22955 | arg2 = &temp2; | |
22956 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22957 | } | |
22958 | { | |
22959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22960 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
22961 | ||
22962 | wxPyEndAllowThreads(__tstate); | |
22963 | if (PyErr_Occurred()) SWIG_fail; | |
22964 | } | |
22965 | Py_INCREF(Py_None); resultobj = Py_None; | |
22966 | return resultobj; | |
22967 | fail: | |
22968 | return NULL; | |
22969 | } | |
22970 | ||
22971 | ||
22972 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22973 | PyObject *resultobj; | |
22974 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22975 | wxKeyEvent *result; | |
22976 | PyObject * obj0 = 0 ; | |
22977 | char *kwnames[] = { | |
22978 | (char *) "self", NULL | |
22979 | }; | |
22980 | ||
22981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
22982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22983 | { | |
22984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22985 | { | |
22986 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
22987 | result = (wxKeyEvent *) &_result_ref; | |
22988 | } | |
22989 | ||
22990 | wxPyEndAllowThreads(__tstate); | |
22991 | if (PyErr_Occurred()) SWIG_fail; | |
22992 | } | |
22993 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
22994 | return resultobj; | |
22995 | fail: | |
22996 | return NULL; | |
22997 | } | |
22998 | ||
22999 | ||
23000 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23001 | PyObject *resultobj; | |
23002 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23003 | int result; | |
23004 | PyObject * obj0 = 0 ; | |
23005 | char *kwnames[] = { | |
23006 | (char *) "self", NULL | |
23007 | }; | |
23008 | ||
23009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23011 | { | |
23012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23013 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23014 | ||
23015 | wxPyEndAllowThreads(__tstate); | |
23016 | if (PyErr_Occurred()) SWIG_fail; | |
23017 | } | |
8edf1c75 | 23018 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23019 | return resultobj; |
23020 | fail: | |
23021 | return NULL; | |
23022 | } | |
23023 | ||
23024 | ||
23025 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23026 | PyObject *resultobj; | |
23027 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23028 | wxKeyEvent *arg2 = 0 ; | |
23029 | PyObject * obj0 = 0 ; | |
23030 | PyObject * obj1 = 0 ; | |
23031 | char *kwnames[] = { | |
23032 | (char *) "self",(char *) "evt", NULL | |
23033 | }; | |
23034 | ||
23035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23037 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23038 | if (arg2 == NULL) { | |
23039 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23040 | } | |
23041 | { | |
23042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23043 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23044 | ||
23045 | wxPyEndAllowThreads(__tstate); | |
23046 | if (PyErr_Occurred()) SWIG_fail; | |
23047 | } | |
23048 | Py_INCREF(Py_None); resultobj = Py_None; | |
23049 | return resultobj; | |
23050 | fail: | |
23051 | return NULL; | |
23052 | } | |
23053 | ||
23054 | ||
23055 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23056 | PyObject *resultobj; | |
23057 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23058 | wxString *result; | |
23059 | PyObject * obj0 = 0 ; | |
23060 | char *kwnames[] = { | |
23061 | (char *) "self", NULL | |
23062 | }; | |
23063 | ||
23064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23066 | { | |
23067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23068 | { | |
23069 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23070 | result = (wxString *) &_result_ref; | |
23071 | } | |
23072 | ||
23073 | wxPyEndAllowThreads(__tstate); | |
23074 | if (PyErr_Occurred()) SWIG_fail; | |
23075 | } | |
0f774bef RD |
23076 | { |
23077 | #if wxUSE_UNICODE | |
23078 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23079 | #else | |
23080 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23081 | #endif | |
23082 | } | |
d14a1e28 RD |
23083 | return resultobj; |
23084 | fail: | |
23085 | return NULL; | |
23086 | } | |
23087 | ||
23088 | ||
23089 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23090 | PyObject *resultobj; | |
23091 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23092 | wxString *arg2 = 0 ; | |
423f194a | 23093 | bool temp2 = False ; |
d14a1e28 RD |
23094 | PyObject * obj0 = 0 ; |
23095 | PyObject * obj1 = 0 ; | |
23096 | char *kwnames[] = { | |
23097 | (char *) "self",(char *) "label", NULL | |
23098 | }; | |
23099 | ||
23100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23102 | { | |
23103 | arg2 = wxString_in_helper(obj1); | |
23104 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23105 | temp2 = True; |
d14a1e28 RD |
23106 | } |
23107 | { | |
23108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23109 | (arg1)->SetLabel((wxString const &)*arg2); | |
23110 | ||
23111 | wxPyEndAllowThreads(__tstate); | |
23112 | if (PyErr_Occurred()) SWIG_fail; | |
23113 | } | |
23114 | Py_INCREF(Py_None); resultobj = Py_None; | |
23115 | { | |
23116 | if (temp2) | |
23117 | delete arg2; | |
23118 | } | |
23119 | return resultobj; | |
23120 | fail: | |
23121 | { | |
23122 | if (temp2) | |
23123 | delete arg2; | |
23124 | } | |
23125 | return NULL; | |
23126 | } | |
23127 | ||
23128 | ||
23129 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23130 | PyObject *resultobj; | |
23131 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23132 | bool result; | |
23133 | PyObject * obj0 = 0 ; | |
23134 | char *kwnames[] = { | |
23135 | (char *) "self", NULL | |
23136 | }; | |
23137 | ||
23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23140 | { | |
23141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23142 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23143 | ||
23144 | wxPyEndAllowThreads(__tstate); | |
23145 | if (PyErr_Occurred()) SWIG_fail; | |
23146 | } | |
02a34c4c | 23147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23148 | return resultobj; |
23149 | fail: | |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
23154 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23155 | PyObject *resultobj; | |
23156 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23157 | bool arg2 ; | |
23158 | PyObject * obj0 = 0 ; | |
23159 | PyObject * obj1 = 0 ; | |
23160 | char *kwnames[] = { | |
23161 | (char *) "self",(char *) "editCancelled", NULL | |
23162 | }; | |
23163 | ||
23164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23166 | { |
8edf1c75 | 23167 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
23168 | if (PyErr_Occurred()) SWIG_fail; |
23169 | } | |
d14a1e28 RD |
23170 | { |
23171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23172 | (arg1)->SetEditCanceled(arg2); | |
23173 | ||
23174 | wxPyEndAllowThreads(__tstate); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
23176 | } | |
23177 | Py_INCREF(Py_None); resultobj = Py_None; | |
23178 | return resultobj; | |
23179 | fail: | |
23180 | return NULL; | |
23181 | } | |
23182 | ||
23183 | ||
9fd4be55 RD |
23184 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
23185 | PyObject *resultobj; | |
23186 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23187 | wxString *arg2 = 0 ; | |
23188 | bool temp2 = False ; | |
23189 | PyObject * obj0 = 0 ; | |
23190 | PyObject * obj1 = 0 ; | |
23191 | char *kwnames[] = { | |
23192 | (char *) "self",(char *) "toolTip", NULL | |
23193 | }; | |
23194 | ||
23195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23197 | { | |
23198 | arg2 = wxString_in_helper(obj1); | |
23199 | if (arg2 == NULL) SWIG_fail; | |
23200 | temp2 = True; | |
23201 | } | |
23202 | { | |
23203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23204 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23205 | ||
23206 | wxPyEndAllowThreads(__tstate); | |
23207 | if (PyErr_Occurred()) SWIG_fail; | |
23208 | } | |
23209 | Py_INCREF(Py_None); resultobj = Py_None; | |
23210 | { | |
23211 | if (temp2) | |
23212 | delete arg2; | |
23213 | } | |
23214 | return resultobj; | |
23215 | fail: | |
23216 | { | |
23217 | if (temp2) | |
23218 | delete arg2; | |
23219 | } | |
23220 | return NULL; | |
23221 | } | |
23222 | ||
23223 | ||
d14a1e28 RD |
23224 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
23225 | PyObject *obj; | |
23226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23227 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23228 | Py_INCREF(obj); | |
23229 | return Py_BuildValue((char *)""); | |
23230 | } | |
23231 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23232 | PyObject *resultobj; | |
23233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23234 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23235 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23236 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23237 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23238 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23239 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23240 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23241 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
cbd72d4f | 23242 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23243 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
23244 | wxPyTreeCtrl *result; | |
23245 | wxPoint temp3 ; | |
23246 | wxSize temp4 ; | |
423f194a | 23247 | bool temp7 = False ; |
d14a1e28 | 23248 | PyObject * obj0 = 0 ; |
8edf1c75 | 23249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23250 | PyObject * obj2 = 0 ; |
23251 | PyObject * obj3 = 0 ; | |
8edf1c75 | 23252 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23253 | PyObject * obj5 = 0 ; |
23254 | PyObject * obj6 = 0 ; | |
23255 | char *kwnames[] = { | |
23256 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23257 | }; | |
23258 | ||
8edf1c75 | 23259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 23260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23261 | if (obj1) { |
23262 | { | |
23263 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23264 | if (PyErr_Occurred()) SWIG_fail; | |
23265 | } | |
23266 | } | |
d14a1e28 RD |
23267 | if (obj2) { |
23268 | { | |
23269 | arg3 = &temp3; | |
23270 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23271 | } | |
23272 | } | |
23273 | if (obj3) { | |
23274 | { | |
8edf1c75 RD |
23275 | arg4 = &temp4; |
23276 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23277 | } | |
23278 | } | |
23279 | if (obj4) { | |
23280 | { | |
23281 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23283 | } |
23284 | } | |
23285 | if (obj5) { | |
23286 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23287 | if (arg6 == NULL) { | |
23288 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23289 | } | |
23290 | } | |
23291 | if (obj6) { | |
23292 | { | |
23293 | arg7 = wxString_in_helper(obj6); | |
23294 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23295 | temp7 = True; |
d14a1e28 RD |
23296 | } |
23297 | } | |
23298 | { | |
23299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23300 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23301 | ||
23302 | wxPyEndAllowThreads(__tstate); | |
23303 | if (PyErr_Occurred()) SWIG_fail; | |
23304 | } | |
cbd72d4f RD |
23305 | { |
23306 | resultobj = wxPyMake_wxObject(result); | |
23307 | } | |
d14a1e28 RD |
23308 | { |
23309 | if (temp7) | |
23310 | delete arg7; | |
23311 | } | |
23312 | return resultobj; | |
23313 | fail: | |
23314 | { | |
23315 | if (temp7) | |
23316 | delete arg7; | |
23317 | } | |
23318 | return NULL; | |
23319 | } | |
23320 | ||
23321 | ||
23322 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23323 | PyObject *resultobj; | |
23324 | wxPyTreeCtrl *result; | |
23325 | char *kwnames[] = { | |
23326 | NULL | |
23327 | }; | |
23328 | ||
23329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23330 | { | |
23331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23332 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23333 | ||
23334 | wxPyEndAllowThreads(__tstate); | |
23335 | if (PyErr_Occurred()) SWIG_fail; | |
23336 | } | |
cbd72d4f RD |
23337 | { |
23338 | resultobj = wxPyMake_wxObject(result); | |
23339 | } | |
d14a1e28 RD |
23340 | return resultobj; |
23341 | fail: | |
23342 | return NULL; | |
23343 | } | |
23344 | ||
23345 | ||
23346 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23347 | PyObject *resultobj; | |
23348 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23349 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23350 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23351 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23352 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23353 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23354 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23355 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23356 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23357 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
cbd72d4f | 23358 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23359 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
23360 | bool result; | |
23361 | wxPoint temp4 ; | |
23362 | wxSize temp5 ; | |
423f194a | 23363 | bool temp8 = False ; |
d14a1e28 RD |
23364 | PyObject * obj0 = 0 ; |
23365 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23366 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23367 | PyObject * obj3 = 0 ; |
23368 | PyObject * obj4 = 0 ; | |
8edf1c75 | 23369 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23370 | PyObject * obj6 = 0 ; |
23371 | PyObject * obj7 = 0 ; | |
23372 | char *kwnames[] = { | |
23373 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23374 | }; | |
23375 | ||
8edf1c75 | 23376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
23377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23378 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
23379 | if (obj2) { |
23380 | { | |
23381 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23382 | if (PyErr_Occurred()) SWIG_fail; | |
23383 | } | |
23384 | } | |
d14a1e28 RD |
23385 | if (obj3) { |
23386 | { | |
23387 | arg4 = &temp4; | |
23388 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23389 | } | |
23390 | } | |
23391 | if (obj4) { | |
23392 | { | |
23393 | arg5 = &temp5; | |
23394 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23395 | } | |
23396 | } | |
8edf1c75 RD |
23397 | if (obj5) { |
23398 | { | |
23399 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23400 | if (PyErr_Occurred()) SWIG_fail; | |
23401 | } | |
23402 | } | |
d14a1e28 RD |
23403 | if (obj6) { |
23404 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23405 | if (arg7 == NULL) { | |
23406 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23407 | } | |
23408 | } | |
23409 | if (obj7) { | |
23410 | { | |
23411 | arg8 = wxString_in_helper(obj7); | |
23412 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23413 | temp8 = True; |
d14a1e28 RD |
23414 | } |
23415 | } | |
23416 | { | |
23417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23418 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23419 | ||
23420 | wxPyEndAllowThreads(__tstate); | |
23421 | if (PyErr_Occurred()) SWIG_fail; | |
23422 | } | |
02a34c4c | 23423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23424 | { |
23425 | if (temp8) | |
23426 | delete arg8; | |
23427 | } | |
23428 | return resultobj; | |
23429 | fail: | |
23430 | { | |
23431 | if (temp8) | |
23432 | delete arg8; | |
23433 | } | |
23434 | return NULL; | |
23435 | } | |
23436 | ||
23437 | ||
23438 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23439 | PyObject *resultobj; | |
23440 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23441 | PyObject *arg2 = (PyObject *) 0 ; | |
23442 | PyObject *arg3 = (PyObject *) 0 ; | |
23443 | PyObject * obj0 = 0 ; | |
23444 | PyObject * obj1 = 0 ; | |
23445 | PyObject * obj2 = 0 ; | |
23446 | char *kwnames[] = { | |
23447 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23448 | }; | |
23449 | ||
23450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23452 | arg2 = obj1; | |
23453 | arg3 = obj2; | |
23454 | { | |
23455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23456 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23457 | ||
23458 | wxPyEndAllowThreads(__tstate); | |
23459 | if (PyErr_Occurred()) SWIG_fail; | |
23460 | } | |
23461 | Py_INCREF(Py_None); resultobj = Py_None; | |
23462 | return resultobj; | |
23463 | fail: | |
23464 | return NULL; | |
23465 | } | |
23466 | ||
23467 | ||
23468 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23469 | PyObject *resultobj; | |
23470 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23471 | size_t result; | |
23472 | PyObject * obj0 = 0 ; | |
23473 | char *kwnames[] = { | |
23474 | (char *) "self", NULL | |
23475 | }; | |
23476 | ||
23477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
23478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23479 | { | |
23480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23481 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
23482 | ||
23483 | wxPyEndAllowThreads(__tstate); | |
23484 | if (PyErr_Occurred()) SWIG_fail; | |
23485 | } | |
8edf1c75 | 23486 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23487 | return resultobj; |
23488 | fail: | |
23489 | return NULL; | |
23490 | } | |
23491 | ||
23492 | ||
23493 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23494 | PyObject *resultobj; | |
23495 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23496 | unsigned int result; | |
23497 | PyObject * obj0 = 0 ; | |
23498 | char *kwnames[] = { | |
23499 | (char *) "self", NULL | |
23500 | }; | |
23501 | ||
23502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
23503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23504 | { | |
23505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23506 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
23507 | ||
23508 | wxPyEndAllowThreads(__tstate); | |
23509 | if (PyErr_Occurred()) SWIG_fail; | |
23510 | } | |
8edf1c75 | 23511 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23512 | return resultobj; |
23513 | fail: | |
23514 | return NULL; | |
23515 | } | |
23516 | ||
23517 | ||
23518 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23519 | PyObject *resultobj; | |
23520 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23521 | unsigned int arg2 ; | |
23522 | PyObject * obj0 = 0 ; | |
23523 | PyObject * obj1 = 0 ; | |
23524 | char *kwnames[] = { | |
23525 | (char *) "self",(char *) "indent", NULL | |
23526 | }; | |
23527 | ||
23528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
23529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23530 | { |
8edf1c75 | 23531 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
23532 | if (PyErr_Occurred()) SWIG_fail; |
23533 | } | |
d14a1e28 RD |
23534 | { |
23535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23536 | (arg1)->SetIndent(arg2); | |
23537 | ||
23538 | wxPyEndAllowThreads(__tstate); | |
23539 | if (PyErr_Occurred()) SWIG_fail; | |
23540 | } | |
23541 | Py_INCREF(Py_None); resultobj = Py_None; | |
23542 | return resultobj; | |
23543 | fail: | |
23544 | return NULL; | |
23545 | } | |
23546 | ||
23547 | ||
23548 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23549 | PyObject *resultobj; | |
23550 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23551 | unsigned int result; | |
23552 | PyObject * obj0 = 0 ; | |
23553 | char *kwnames[] = { | |
23554 | (char *) "self", NULL | |
23555 | }; | |
23556 | ||
23557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
23558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23559 | { | |
23560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23561 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
23562 | ||
23563 | wxPyEndAllowThreads(__tstate); | |
23564 | if (PyErr_Occurred()) SWIG_fail; | |
23565 | } | |
8edf1c75 | 23566 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23567 | return resultobj; |
23568 | fail: | |
23569 | return NULL; | |
23570 | } | |
23571 | ||
23572 | ||
23573 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23574 | PyObject *resultobj; | |
23575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23576 | unsigned int arg2 ; | |
23577 | PyObject * obj0 = 0 ; | |
23578 | PyObject * obj1 = 0 ; | |
23579 | char *kwnames[] = { | |
23580 | (char *) "self",(char *) "spacing", NULL | |
23581 | }; | |
23582 | ||
23583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
23584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23585 | { |
8edf1c75 | 23586 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
23587 | if (PyErr_Occurred()) SWIG_fail; |
23588 | } | |
d14a1e28 RD |
23589 | { |
23590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23591 | (arg1)->SetSpacing(arg2); | |
23592 | ||
23593 | wxPyEndAllowThreads(__tstate); | |
23594 | if (PyErr_Occurred()) SWIG_fail; | |
23595 | } | |
23596 | Py_INCREF(Py_None); resultobj = Py_None; | |
23597 | return resultobj; | |
23598 | fail: | |
23599 | return NULL; | |
23600 | } | |
23601 | ||
23602 | ||
23603 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23604 | PyObject *resultobj; | |
23605 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23606 | wxImageList *result; | |
23607 | PyObject * obj0 = 0 ; | |
23608 | char *kwnames[] = { | |
23609 | (char *) "self", NULL | |
23610 | }; | |
23611 | ||
23612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
23613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23614 | { | |
23615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23616 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
23617 | ||
23618 | wxPyEndAllowThreads(__tstate); | |
23619 | if (PyErr_Occurred()) SWIG_fail; | |
23620 | } | |
23621 | { | |
23622 | resultobj = wxPyMake_wxObject(result); | |
23623 | } | |
23624 | return resultobj; | |
23625 | fail: | |
23626 | return NULL; | |
23627 | } | |
23628 | ||
23629 | ||
23630 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23631 | PyObject *resultobj; | |
23632 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23633 | wxImageList *result; | |
23634 | PyObject * obj0 = 0 ; | |
23635 | char *kwnames[] = { | |
23636 | (char *) "self", NULL | |
23637 | }; | |
23638 | ||
23639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
23640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23641 | { | |
23642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23643 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
23644 | ||
23645 | wxPyEndAllowThreads(__tstate); | |
23646 | if (PyErr_Occurred()) SWIG_fail; | |
23647 | } | |
23648 | { | |
23649 | resultobj = wxPyMake_wxObject(result); | |
23650 | } | |
23651 | return resultobj; | |
23652 | fail: | |
23653 | return NULL; | |
23654 | } | |
23655 | ||
23656 | ||
23657 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23658 | PyObject *resultobj; | |
23659 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23660 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23661 | PyObject * obj0 = 0 ; | |
23662 | PyObject * obj1 = 0 ; | |
23663 | char *kwnames[] = { | |
23664 | (char *) "self",(char *) "imageList", NULL | |
23665 | }; | |
23666 | ||
23667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
23668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23669 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23670 | { | |
23671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23672 | (arg1)->SetImageList(arg2); | |
23673 | ||
23674 | wxPyEndAllowThreads(__tstate); | |
23675 | if (PyErr_Occurred()) SWIG_fail; | |
23676 | } | |
23677 | Py_INCREF(Py_None); resultobj = Py_None; | |
23678 | return resultobj; | |
23679 | fail: | |
23680 | return NULL; | |
23681 | } | |
23682 | ||
23683 | ||
23684 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23685 | PyObject *resultobj; | |
23686 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23687 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23688 | PyObject * obj0 = 0 ; | |
23689 | PyObject * obj1 = 0 ; | |
23690 | char *kwnames[] = { | |
23691 | (char *) "self",(char *) "imageList", NULL | |
23692 | }; | |
23693 | ||
23694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23696 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23697 | { | |
23698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23699 | (arg1)->SetStateImageList(arg2); | |
23700 | ||
23701 | wxPyEndAllowThreads(__tstate); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | } | |
23704 | Py_INCREF(Py_None); resultobj = Py_None; | |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
23711 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23712 | PyObject *resultobj; | |
23713 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23714 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23715 | PyObject * obj0 = 0 ; | |
23716 | PyObject * obj1 = 0 ; | |
23717 | char *kwnames[] = { | |
23718 | (char *) "self",(char *) "imageList", NULL | |
23719 | }; | |
23720 | ||
23721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
23722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23723 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
23724 | { |
23725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23726 | (arg1)->AssignImageList(arg2); | |
23727 | ||
23728 | wxPyEndAllowThreads(__tstate); | |
23729 | if (PyErr_Occurred()) SWIG_fail; | |
23730 | } | |
23731 | Py_INCREF(Py_None); resultobj = Py_None; | |
23732 | return resultobj; | |
23733 | fail: | |
23734 | return NULL; | |
23735 | } | |
23736 | ||
23737 | ||
23738 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23739 | PyObject *resultobj; | |
23740 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23741 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23742 | PyObject * obj0 = 0 ; | |
23743 | PyObject * obj1 = 0 ; | |
23744 | char *kwnames[] = { | |
23745 | (char *) "self",(char *) "imageList", NULL | |
23746 | }; | |
23747 | ||
23748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
23751 | { |
23752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23753 | (arg1)->AssignStateImageList(arg2); | |
23754 | ||
23755 | wxPyEndAllowThreads(__tstate); | |
23756 | if (PyErr_Occurred()) SWIG_fail; | |
23757 | } | |
23758 | Py_INCREF(Py_None); resultobj = Py_None; | |
23759 | return resultobj; | |
23760 | fail: | |
23761 | return NULL; | |
23762 | } | |
23763 | ||
23764 | ||
23765 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23766 | PyObject *resultobj; | |
23767 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23768 | wxTreeItemId *arg2 = 0 ; | |
23769 | wxString result; | |
23770 | PyObject * obj0 = 0 ; | |
23771 | PyObject * obj1 = 0 ; | |
23772 | char *kwnames[] = { | |
23773 | (char *) "self",(char *) "item", NULL | |
23774 | }; | |
23775 | ||
23776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
23777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23778 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23779 | if (arg2 == NULL) { | |
23780 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23781 | } | |
23782 | { | |
23783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23784 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
23785 | ||
23786 | wxPyEndAllowThreads(__tstate); | |
23787 | if (PyErr_Occurred()) SWIG_fail; | |
23788 | } | |
23789 | { | |
23790 | #if wxUSE_UNICODE | |
23791 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23792 | #else | |
23793 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23794 | #endif | |
23795 | } | |
23796 | return resultobj; | |
23797 | fail: | |
23798 | return NULL; | |
23799 | } | |
23800 | ||
23801 | ||
23802 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23803 | PyObject *resultobj; | |
23804 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23805 | wxTreeItemId *arg2 = 0 ; | |
23806 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
23807 | int result; | |
23808 | PyObject * obj0 = 0 ; | |
23809 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23810 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23811 | char *kwnames[] = { |
23812 | (char *) "self",(char *) "item",(char *) "which", NULL | |
23813 | }; | |
23814 | ||
8edf1c75 | 23815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
23816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23817 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23818 | if (arg2 == NULL) { | |
23819 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23820 | } | |
8edf1c75 RD |
23821 | if (obj2) { |
23822 | { | |
23823 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
23824 | if (PyErr_Occurred()) SWIG_fail; | |
23825 | } | |
23826 | } | |
d14a1e28 RD |
23827 | { |
23828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23829 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
23830 | ||
23831 | wxPyEndAllowThreads(__tstate); | |
23832 | if (PyErr_Occurred()) SWIG_fail; | |
23833 | } | |
8edf1c75 | 23834 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23835 | return resultobj; |
23836 | fail: | |
23837 | return NULL; | |
23838 | } | |
23839 | ||
23840 | ||
23841 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23842 | PyObject *resultobj; | |
23843 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23844 | wxTreeItemId *arg2 = 0 ; | |
23845 | wxPyTreeItemData *result; | |
23846 | PyObject * obj0 = 0 ; | |
23847 | PyObject * obj1 = 0 ; | |
23848 | char *kwnames[] = { | |
23849 | (char *) "self",(char *) "item", NULL | |
23850 | }; | |
23851 | ||
23852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
23853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23855 | if (arg2 == NULL) { | |
23856 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23857 | } | |
23858 | { | |
23859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23860 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
23861 | ||
23862 | wxPyEndAllowThreads(__tstate); | |
23863 | if (PyErr_Occurred()) SWIG_fail; | |
23864 | } | |
23865 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
23866 | return resultobj; | |
23867 | fail: | |
23868 | return NULL; | |
23869 | } | |
23870 | ||
23871 | ||
23872 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23873 | PyObject *resultobj; | |
23874 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23875 | wxTreeItemId *arg2 = 0 ; | |
23876 | PyObject *result; | |
23877 | PyObject * obj0 = 0 ; | |
23878 | PyObject * obj1 = 0 ; | |
23879 | char *kwnames[] = { | |
23880 | (char *) "self",(char *) "item", NULL | |
23881 | }; | |
23882 | ||
23883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
23884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23885 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23886 | if (arg2 == NULL) { | |
23887 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23888 | } | |
23889 | { | |
23890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23891 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
23892 | ||
23893 | wxPyEndAllowThreads(__tstate); | |
23894 | if (PyErr_Occurred()) SWIG_fail; | |
23895 | } | |
23896 | resultobj = result; | |
23897 | return resultobj; | |
23898 | fail: | |
23899 | return NULL; | |
23900 | } | |
23901 | ||
23902 | ||
23903 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23904 | PyObject *resultobj; | |
23905 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23906 | wxTreeItemId *arg2 = 0 ; | |
23907 | wxColour result; | |
23908 | PyObject * obj0 = 0 ; | |
23909 | PyObject * obj1 = 0 ; | |
23910 | char *kwnames[] = { | |
23911 | (char *) "self",(char *) "item", NULL | |
23912 | }; | |
23913 | ||
23914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
23915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23916 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23917 | if (arg2 == NULL) { | |
23918 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23919 | } | |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
23923 | ||
23924 | wxPyEndAllowThreads(__tstate); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | } | |
23927 | { | |
23928 | wxColour * resultptr; | |
23929 | resultptr = new wxColour((wxColour &) result); | |
23930 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
23931 | } | |
23932 | return resultobj; | |
23933 | fail: | |
23934 | return NULL; | |
23935 | } | |
23936 | ||
23937 | ||
23938 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23939 | PyObject *resultobj; | |
23940 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23941 | wxTreeItemId *arg2 = 0 ; | |
23942 | wxColour result; | |
23943 | PyObject * obj0 = 0 ; | |
23944 | PyObject * obj1 = 0 ; | |
23945 | char *kwnames[] = { | |
23946 | (char *) "self",(char *) "item", NULL | |
23947 | }; | |
23948 | ||
23949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23951 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23952 | if (arg2 == NULL) { | |
23953 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23954 | } | |
23955 | { | |
23956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23957 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
23958 | ||
23959 | wxPyEndAllowThreads(__tstate); | |
23960 | if (PyErr_Occurred()) SWIG_fail; | |
23961 | } | |
23962 | { | |
23963 | wxColour * resultptr; | |
23964 | resultptr = new wxColour((wxColour &) result); | |
23965 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
23966 | } | |
23967 | return resultobj; | |
23968 | fail: | |
23969 | return NULL; | |
23970 | } | |
23971 | ||
23972 | ||
23973 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23974 | PyObject *resultobj; | |
23975 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23976 | wxTreeItemId *arg2 = 0 ; | |
23977 | wxFont result; | |
23978 | PyObject * obj0 = 0 ; | |
23979 | PyObject * obj1 = 0 ; | |
23980 | char *kwnames[] = { | |
23981 | (char *) "self",(char *) "item", NULL | |
23982 | }; | |
23983 | ||
23984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
23985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23987 | if (arg2 == NULL) { | |
23988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23989 | } | |
23990 | { | |
23991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23992 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
23993 | ||
23994 | wxPyEndAllowThreads(__tstate); | |
23995 | if (PyErr_Occurred()) SWIG_fail; | |
23996 | } | |
23997 | { | |
23998 | wxFont * resultptr; | |
23999 | resultptr = new wxFont((wxFont &) result); | |
24000 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
24001 | } | |
24002 | return resultobj; | |
24003 | fail: | |
24004 | return NULL; | |
24005 | } | |
24006 | ||
24007 | ||
24008 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24009 | PyObject *resultobj; | |
24010 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24011 | wxTreeItemId *arg2 = 0 ; | |
24012 | wxString *arg3 = 0 ; | |
423f194a | 24013 | bool temp3 = False ; |
d14a1e28 RD |
24014 | PyObject * obj0 = 0 ; |
24015 | PyObject * obj1 = 0 ; | |
24016 | PyObject * obj2 = 0 ; | |
24017 | char *kwnames[] = { | |
24018 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24019 | }; | |
24020 | ||
24021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24023 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24024 | if (arg2 == NULL) { | |
24025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24026 | } | |
24027 | { | |
24028 | arg3 = wxString_in_helper(obj2); | |
24029 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24030 | temp3 = True; |
d14a1e28 RD |
24031 | } |
24032 | { | |
24033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24034 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24035 | ||
24036 | wxPyEndAllowThreads(__tstate); | |
24037 | if (PyErr_Occurred()) SWIG_fail; | |
24038 | } | |
24039 | Py_INCREF(Py_None); resultobj = Py_None; | |
24040 | { | |
24041 | if (temp3) | |
24042 | delete arg3; | |
24043 | } | |
24044 | return resultobj; | |
24045 | fail: | |
24046 | { | |
24047 | if (temp3) | |
24048 | delete arg3; | |
24049 | } | |
24050 | return NULL; | |
24051 | } | |
24052 | ||
24053 | ||
24054 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24055 | PyObject *resultobj; | |
24056 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24057 | wxTreeItemId *arg2 = 0 ; | |
24058 | int arg3 ; | |
24059 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24060 | PyObject * obj0 = 0 ; | |
24061 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24062 | PyObject * obj2 = 0 ; |
24063 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24064 | char *kwnames[] = { |
24065 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24066 | }; | |
24067 | ||
8edf1c75 | 24068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
24069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24071 | if (arg2 == NULL) { | |
24072 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24073 | } | |
8edf1c75 RD |
24074 | { |
24075 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24076 | if (PyErr_Occurred()) SWIG_fail; | |
24077 | } | |
24078 | if (obj3) { | |
24079 | { | |
24080 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
24081 | if (PyErr_Occurred()) SWIG_fail; | |
24082 | } | |
24083 | } | |
d14a1e28 RD |
24084 | { |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24086 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24087 | ||
24088 | wxPyEndAllowThreads(__tstate); | |
24089 | if (PyErr_Occurred()) SWIG_fail; | |
24090 | } | |
24091 | Py_INCREF(Py_None); resultobj = Py_None; | |
24092 | return resultobj; | |
24093 | fail: | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
24098 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24099 | PyObject *resultobj; | |
24100 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24101 | wxTreeItemId *arg2 = 0 ; | |
24102 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24103 | PyObject * obj0 = 0 ; | |
24104 | PyObject * obj1 = 0 ; | |
24105 | PyObject * obj2 = 0 ; | |
24106 | char *kwnames[] = { | |
24107 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24108 | }; | |
24109 | ||
24110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24113 | if (arg2 == NULL) { | |
24114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24115 | } | |
24116 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24117 | { | |
24118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24119 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24120 | ||
24121 | wxPyEndAllowThreads(__tstate); | |
24122 | if (PyErr_Occurred()) SWIG_fail; | |
24123 | } | |
24124 | Py_INCREF(Py_None); resultobj = Py_None; | |
24125 | return resultobj; | |
24126 | fail: | |
24127 | return NULL; | |
24128 | } | |
24129 | ||
24130 | ||
24131 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24132 | PyObject *resultobj; | |
24133 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24134 | wxTreeItemId *arg2 = 0 ; | |
24135 | PyObject *arg3 = (PyObject *) 0 ; | |
24136 | PyObject * obj0 = 0 ; | |
24137 | PyObject * obj1 = 0 ; | |
24138 | PyObject * obj2 = 0 ; | |
24139 | char *kwnames[] = { | |
24140 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24141 | }; | |
24142 | ||
24143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24145 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24146 | if (arg2 == NULL) { | |
24147 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24148 | } | |
24149 | arg3 = obj2; | |
24150 | { | |
24151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24152 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24153 | ||
24154 | wxPyEndAllowThreads(__tstate); | |
24155 | if (PyErr_Occurred()) SWIG_fail; | |
24156 | } | |
24157 | Py_INCREF(Py_None); resultobj = Py_None; | |
24158 | return resultobj; | |
24159 | fail: | |
24160 | return NULL; | |
24161 | } | |
24162 | ||
24163 | ||
24164 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24165 | PyObject *resultobj; | |
24166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24167 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24168 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24169 | PyObject * obj0 = 0 ; |
24170 | PyObject * obj1 = 0 ; | |
24171 | PyObject * obj2 = 0 ; | |
24172 | char *kwnames[] = { | |
24173 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24174 | }; | |
24175 | ||
24176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24179 | if (arg2 == NULL) { | |
24180 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24181 | } | |
24182 | if (obj2) { | |
2dbef272 | 24183 | { |
8edf1c75 | 24184 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24185 | if (PyErr_Occurred()) SWIG_fail; |
24186 | } | |
d14a1e28 RD |
24187 | } |
24188 | { | |
24189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24190 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24191 | ||
24192 | wxPyEndAllowThreads(__tstate); | |
24193 | if (PyErr_Occurred()) SWIG_fail; | |
24194 | } | |
24195 | Py_INCREF(Py_None); resultobj = Py_None; | |
24196 | return resultobj; | |
24197 | fail: | |
24198 | return NULL; | |
24199 | } | |
24200 | ||
24201 | ||
24202 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24203 | PyObject *resultobj; | |
24204 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24205 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24206 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24207 | PyObject * obj0 = 0 ; |
24208 | PyObject * obj1 = 0 ; | |
24209 | PyObject * obj2 = 0 ; | |
24210 | char *kwnames[] = { | |
24211 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24212 | }; | |
24213 | ||
24214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24216 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24217 | if (arg2 == NULL) { | |
24218 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24219 | } | |
24220 | if (obj2) { | |
2dbef272 | 24221 | { |
8edf1c75 | 24222 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24223 | if (PyErr_Occurred()) SWIG_fail; |
24224 | } | |
d14a1e28 RD |
24225 | } |
24226 | { | |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24229 | ||
24230 | wxPyEndAllowThreads(__tstate); | |
24231 | if (PyErr_Occurred()) SWIG_fail; | |
24232 | } | |
24233 | Py_INCREF(Py_None); resultobj = Py_None; | |
24234 | return resultobj; | |
24235 | fail: | |
24236 | return NULL; | |
24237 | } | |
24238 | ||
24239 | ||
24240 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24241 | PyObject *resultobj; | |
24242 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24243 | wxTreeItemId *arg2 = 0 ; | |
24244 | wxColour *arg3 = 0 ; | |
24245 | wxColour temp3 ; | |
24246 | PyObject * obj0 = 0 ; | |
24247 | PyObject * obj1 = 0 ; | |
24248 | PyObject * obj2 = 0 ; | |
24249 | char *kwnames[] = { | |
24250 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24251 | }; | |
24252 | ||
24253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24255 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24256 | if (arg2 == NULL) { | |
24257 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24258 | } | |
24259 | { | |
24260 | arg3 = &temp3; | |
24261 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24262 | } | |
24263 | { | |
24264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24265 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24266 | ||
24267 | wxPyEndAllowThreads(__tstate); | |
24268 | if (PyErr_Occurred()) SWIG_fail; | |
24269 | } | |
24270 | Py_INCREF(Py_None); resultobj = Py_None; | |
24271 | return resultobj; | |
24272 | fail: | |
24273 | return NULL; | |
24274 | } | |
24275 | ||
24276 | ||
24277 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24278 | PyObject *resultobj; | |
24279 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24280 | wxTreeItemId *arg2 = 0 ; | |
24281 | wxColour *arg3 = 0 ; | |
24282 | wxColour temp3 ; | |
24283 | PyObject * obj0 = 0 ; | |
24284 | PyObject * obj1 = 0 ; | |
24285 | PyObject * obj2 = 0 ; | |
24286 | char *kwnames[] = { | |
24287 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24288 | }; | |
24289 | ||
24290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24292 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24293 | if (arg2 == NULL) { | |
24294 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24295 | } | |
24296 | { | |
24297 | arg3 = &temp3; | |
24298 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24299 | } | |
24300 | { | |
24301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24302 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24303 | ||
24304 | wxPyEndAllowThreads(__tstate); | |
24305 | if (PyErr_Occurred()) SWIG_fail; | |
24306 | } | |
24307 | Py_INCREF(Py_None); resultobj = Py_None; | |
24308 | return resultobj; | |
24309 | fail: | |
24310 | return NULL; | |
24311 | } | |
24312 | ||
24313 | ||
24314 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24315 | PyObject *resultobj; | |
24316 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24317 | wxTreeItemId *arg2 = 0 ; | |
24318 | wxFont *arg3 = 0 ; | |
24319 | PyObject * obj0 = 0 ; | |
24320 | PyObject * obj1 = 0 ; | |
24321 | PyObject * obj2 = 0 ; | |
24322 | char *kwnames[] = { | |
24323 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24324 | }; | |
24325 | ||
24326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24328 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24329 | if (arg2 == NULL) { | |
24330 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24331 | } | |
24332 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24333 | if (arg3 == NULL) { | |
24334 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24335 | } | |
24336 | { | |
24337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24338 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24339 | ||
24340 | wxPyEndAllowThreads(__tstate); | |
24341 | if (PyErr_Occurred()) SWIG_fail; | |
24342 | } | |
24343 | Py_INCREF(Py_None); resultobj = Py_None; | |
24344 | return resultobj; | |
24345 | fail: | |
24346 | return NULL; | |
24347 | } | |
24348 | ||
24349 | ||
24350 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24351 | PyObject *resultobj; | |
24352 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24353 | wxTreeItemId *arg2 = 0 ; | |
24354 | bool result; | |
24355 | PyObject * obj0 = 0 ; | |
24356 | PyObject * obj1 = 0 ; | |
24357 | char *kwnames[] = { | |
24358 | (char *) "self",(char *) "item", NULL | |
24359 | }; | |
24360 | ||
24361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24363 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24364 | if (arg2 == NULL) { | |
24365 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24366 | } | |
24367 | { | |
24368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24369 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24370 | ||
24371 | wxPyEndAllowThreads(__tstate); | |
24372 | if (PyErr_Occurred()) SWIG_fail; | |
24373 | } | |
02a34c4c | 24374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24375 | return resultobj; |
24376 | fail: | |
24377 | return NULL; | |
24378 | } | |
24379 | ||
24380 | ||
24381 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24382 | PyObject *resultobj; | |
24383 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24384 | wxTreeItemId *arg2 = 0 ; | |
24385 | bool result; | |
24386 | PyObject * obj0 = 0 ; | |
24387 | PyObject * obj1 = 0 ; | |
24388 | char *kwnames[] = { | |
24389 | (char *) "self",(char *) "item", NULL | |
24390 | }; | |
24391 | ||
24392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24394 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24395 | if (arg2 == NULL) { | |
24396 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24397 | } | |
24398 | { | |
24399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24400 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
24401 | ||
24402 | wxPyEndAllowThreads(__tstate); | |
24403 | if (PyErr_Occurred()) SWIG_fail; | |
24404 | } | |
02a34c4c | 24405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24406 | return resultobj; |
24407 | fail: | |
24408 | return NULL; | |
24409 | } | |
24410 | ||
24411 | ||
24412 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24413 | PyObject *resultobj; | |
24414 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24415 | wxTreeItemId *arg2 = 0 ; | |
24416 | bool result; | |
24417 | PyObject * obj0 = 0 ; | |
24418 | PyObject * obj1 = 0 ; | |
24419 | char *kwnames[] = { | |
24420 | (char *) "self",(char *) "item", NULL | |
24421 | }; | |
24422 | ||
24423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
24424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24425 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24426 | if (arg2 == NULL) { | |
24427 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24428 | } | |
24429 | { | |
24430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24431 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
24432 | ||
24433 | wxPyEndAllowThreads(__tstate); | |
24434 | if (PyErr_Occurred()) SWIG_fail; | |
24435 | } | |
02a34c4c | 24436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24437 | return resultobj; |
24438 | fail: | |
24439 | return NULL; | |
24440 | } | |
24441 | ||
24442 | ||
24443 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24444 | PyObject *resultobj; | |
24445 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24446 | wxTreeItemId *arg2 = 0 ; | |
24447 | bool result; | |
24448 | PyObject * obj0 = 0 ; | |
24449 | PyObject * obj1 = 0 ; | |
24450 | char *kwnames[] = { | |
24451 | (char *) "self",(char *) "item", NULL | |
24452 | }; | |
24453 | ||
24454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24456 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24457 | if (arg2 == NULL) { | |
24458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24459 | } | |
24460 | { | |
24461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24462 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
24463 | ||
24464 | wxPyEndAllowThreads(__tstate); | |
24465 | if (PyErr_Occurred()) SWIG_fail; | |
24466 | } | |
02a34c4c | 24467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24468 | return resultobj; |
24469 | fail: | |
24470 | return NULL; | |
24471 | } | |
24472 | ||
24473 | ||
24474 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24475 | PyObject *resultobj; | |
24476 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24477 | wxTreeItemId *arg2 = 0 ; | |
24478 | bool result; | |
24479 | PyObject * obj0 = 0 ; | |
24480 | PyObject * obj1 = 0 ; | |
24481 | char *kwnames[] = { | |
24482 | (char *) "self",(char *) "item", NULL | |
24483 | }; | |
24484 | ||
24485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
24486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24487 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24488 | if (arg2 == NULL) { | |
24489 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24490 | } | |
24491 | { | |
24492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24493 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
24494 | ||
24495 | wxPyEndAllowThreads(__tstate); | |
24496 | if (PyErr_Occurred()) SWIG_fail; | |
24497 | } | |
02a34c4c | 24498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24499 | return resultobj; |
24500 | fail: | |
24501 | return NULL; | |
24502 | } | |
24503 | ||
24504 | ||
24505 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24506 | PyObject *resultobj; | |
24507 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24508 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24509 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24510 | size_t result; |
24511 | PyObject * obj0 = 0 ; | |
24512 | PyObject * obj1 = 0 ; | |
24513 | PyObject * obj2 = 0 ; | |
24514 | char *kwnames[] = { | |
24515 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
24516 | }; | |
24517 | ||
24518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24520 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24521 | if (arg2 == NULL) { | |
24522 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24523 | } | |
24524 | if (obj2) { | |
2dbef272 | 24525 | { |
8edf1c75 | 24526 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24527 | if (PyErr_Occurred()) SWIG_fail; |
24528 | } | |
d14a1e28 RD |
24529 | } |
24530 | { | |
24531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24532 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
24533 | ||
24534 | wxPyEndAllowThreads(__tstate); | |
24535 | if (PyErr_Occurred()) SWIG_fail; | |
24536 | } | |
8edf1c75 | 24537 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24538 | return resultobj; |
24539 | fail: | |
24540 | return NULL; | |
24541 | } | |
24542 | ||
24543 | ||
24544 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24545 | PyObject *resultobj; | |
24546 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24547 | wxTreeItemId result; | |
24548 | PyObject * obj0 = 0 ; | |
24549 | char *kwnames[] = { | |
24550 | (char *) "self", NULL | |
24551 | }; | |
24552 | ||
24553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
24554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24555 | { | |
24556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24557 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
24558 | ||
24559 | wxPyEndAllowThreads(__tstate); | |
24560 | if (PyErr_Occurred()) SWIG_fail; | |
24561 | } | |
24562 | { | |
24563 | wxTreeItemId * resultptr; | |
24564 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24565 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24566 | } | |
24567 | return resultobj; | |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
24573 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24574 | PyObject *resultobj; | |
24575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24576 | wxTreeItemId result; | |
24577 | PyObject * obj0 = 0 ; | |
24578 | char *kwnames[] = { | |
24579 | (char *) "self", NULL | |
24580 | }; | |
24581 | ||
24582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
24583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24584 | { | |
24585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24586 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
24587 | ||
24588 | wxPyEndAllowThreads(__tstate); | |
24589 | if (PyErr_Occurred()) SWIG_fail; | |
24590 | } | |
24591 | { | |
24592 | wxTreeItemId * resultptr; | |
24593 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24594 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24595 | } | |
24596 | return resultobj; | |
24597 | fail: | |
24598 | return NULL; | |
24599 | } | |
24600 | ||
24601 | ||
24602 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24603 | PyObject *resultobj; | |
24604 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24605 | PyObject *result; | |
24606 | PyObject * obj0 = 0 ; | |
24607 | char *kwnames[] = { | |
24608 | (char *) "self", NULL | |
24609 | }; | |
24610 | ||
24611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
24612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24613 | { | |
24614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24615 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
24616 | ||
24617 | wxPyEndAllowThreads(__tstate); | |
24618 | if (PyErr_Occurred()) SWIG_fail; | |
24619 | } | |
24620 | resultobj = result; | |
24621 | return resultobj; | |
24622 | fail: | |
24623 | return NULL; | |
24624 | } | |
24625 | ||
24626 | ||
24627 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24628 | PyObject *resultobj; | |
24629 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24630 | wxTreeItemId *arg2 = 0 ; | |
24631 | wxTreeItemId result; | |
24632 | PyObject * obj0 = 0 ; | |
24633 | PyObject * obj1 = 0 ; | |
24634 | char *kwnames[] = { | |
24635 | (char *) "self",(char *) "item", NULL | |
24636 | }; | |
24637 | ||
24638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
24639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24640 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24641 | if (arg2 == NULL) { | |
24642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24643 | } | |
24644 | { | |
24645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24646 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
24647 | ||
24648 | wxPyEndAllowThreads(__tstate); | |
24649 | if (PyErr_Occurred()) SWIG_fail; | |
24650 | } | |
24651 | { | |
24652 | wxTreeItemId * resultptr; | |
24653 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24654 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24655 | } | |
24656 | return resultobj; | |
24657 | fail: | |
24658 | return NULL; | |
24659 | } | |
24660 | ||
24661 | ||
24662 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24663 | PyObject *resultobj; | |
24664 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24665 | wxTreeItemId *arg2 = 0 ; | |
24666 | PyObject *result; | |
24667 | PyObject * obj0 = 0 ; | |
24668 | PyObject * obj1 = 0 ; | |
24669 | char *kwnames[] = { | |
24670 | (char *) "self",(char *) "item", NULL | |
24671 | }; | |
24672 | ||
24673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
24674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24675 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24676 | if (arg2 == NULL) { | |
24677 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24678 | } | |
24679 | { | |
24680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24681 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
24682 | ||
24683 | wxPyEndAllowThreads(__tstate); | |
24684 | if (PyErr_Occurred()) SWIG_fail; | |
24685 | } | |
24686 | resultobj = result; | |
24687 | return resultobj; | |
24688 | fail: | |
24689 | return NULL; | |
24690 | } | |
24691 | ||
24692 | ||
24693 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24694 | PyObject *resultobj; | |
24695 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24696 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 24697 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
24698 | PyObject *result; |
24699 | PyObject * obj0 = 0 ; | |
24700 | PyObject * obj1 = 0 ; | |
24701 | PyObject * obj2 = 0 ; | |
24702 | char *kwnames[] = { | |
24703 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
24704 | }; | |
24705 | ||
24706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24708 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24709 | if (arg2 == NULL) { | |
24710 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24711 | } | |
58203fa6 | 24712 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
24713 | { |
24714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 24715 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
24716 | |
24717 | wxPyEndAllowThreads(__tstate); | |
24718 | if (PyErr_Occurred()) SWIG_fail; | |
24719 | } | |
24720 | resultobj = result; | |
24721 | return resultobj; | |
24722 | fail: | |
24723 | return NULL; | |
24724 | } | |
24725 | ||
24726 | ||
24727 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24728 | PyObject *resultobj; | |
24729 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24730 | wxTreeItemId *arg2 = 0 ; | |
24731 | wxTreeItemId result; | |
24732 | PyObject * obj0 = 0 ; | |
24733 | PyObject * obj1 = 0 ; | |
24734 | char *kwnames[] = { | |
24735 | (char *) "self",(char *) "item", NULL | |
24736 | }; | |
24737 | ||
24738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
24739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24740 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24741 | if (arg2 == NULL) { | |
24742 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24743 | } | |
24744 | { | |
24745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24746 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
24747 | ||
24748 | wxPyEndAllowThreads(__tstate); | |
24749 | if (PyErr_Occurred()) SWIG_fail; | |
24750 | } | |
24751 | { | |
24752 | wxTreeItemId * resultptr; | |
24753 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24754 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24755 | } | |
24756 | return resultobj; | |
24757 | fail: | |
24758 | return NULL; | |
24759 | } | |
24760 | ||
24761 | ||
24762 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24763 | PyObject *resultobj; | |
24764 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24765 | wxTreeItemId *arg2 = 0 ; | |
24766 | wxTreeItemId result; | |
24767 | PyObject * obj0 = 0 ; | |
24768 | PyObject * obj1 = 0 ; | |
24769 | char *kwnames[] = { | |
24770 | (char *) "self",(char *) "item", NULL | |
24771 | }; | |
24772 | ||
24773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
24774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24775 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24776 | if (arg2 == NULL) { | |
24777 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24778 | } | |
24779 | { | |
24780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24781 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
24782 | ||
24783 | wxPyEndAllowThreads(__tstate); | |
24784 | if (PyErr_Occurred()) SWIG_fail; | |
24785 | } | |
24786 | { | |
24787 | wxTreeItemId * resultptr; | |
24788 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24789 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24790 | } | |
24791 | return resultobj; | |
24792 | fail: | |
24793 | return NULL; | |
24794 | } | |
24795 | ||
24796 | ||
24797 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24798 | PyObject *resultobj; | |
24799 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24800 | wxTreeItemId *arg2 = 0 ; | |
24801 | wxTreeItemId result; | |
24802 | PyObject * obj0 = 0 ; | |
24803 | PyObject * obj1 = 0 ; | |
24804 | char *kwnames[] = { | |
24805 | (char *) "self",(char *) "item", NULL | |
24806 | }; | |
24807 | ||
24808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
24809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24811 | if (arg2 == NULL) { | |
24812 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24813 | } | |
24814 | { | |
24815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24816 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
24817 | ||
24818 | wxPyEndAllowThreads(__tstate); | |
24819 | if (PyErr_Occurred()) SWIG_fail; | |
24820 | } | |
24821 | { | |
24822 | wxTreeItemId * resultptr; | |
24823 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24824 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24825 | } | |
24826 | return resultobj; | |
24827 | fail: | |
24828 | return NULL; | |
24829 | } | |
24830 | ||
24831 | ||
24832 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24833 | PyObject *resultobj; | |
24834 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24835 | wxTreeItemId result; | |
24836 | PyObject * obj0 = 0 ; | |
24837 | char *kwnames[] = { | |
24838 | (char *) "self", NULL | |
24839 | }; | |
24840 | ||
24841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
24842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24843 | { | |
24844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24845 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
24846 | ||
24847 | wxPyEndAllowThreads(__tstate); | |
24848 | if (PyErr_Occurred()) SWIG_fail; | |
24849 | } | |
24850 | { | |
24851 | wxTreeItemId * resultptr; | |
24852 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24853 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24854 | } | |
24855 | return resultobj; | |
24856 | fail: | |
24857 | return NULL; | |
24858 | } | |
24859 | ||
24860 | ||
24861 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24862 | PyObject *resultobj; | |
24863 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24864 | wxTreeItemId *arg2 = 0 ; | |
24865 | wxTreeItemId result; | |
24866 | PyObject * obj0 = 0 ; | |
24867 | PyObject * obj1 = 0 ; | |
24868 | char *kwnames[] = { | |
24869 | (char *) "self",(char *) "item", NULL | |
24870 | }; | |
24871 | ||
24872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
24873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24874 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24875 | if (arg2 == NULL) { | |
24876 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24877 | } | |
24878 | { | |
24879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24880 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
24881 | ||
24882 | wxPyEndAllowThreads(__tstate); | |
24883 | if (PyErr_Occurred()) SWIG_fail; | |
24884 | } | |
24885 | { | |
24886 | wxTreeItemId * resultptr; | |
24887 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24888 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24889 | } | |
24890 | return resultobj; | |
24891 | fail: | |
24892 | return NULL; | |
24893 | } | |
24894 | ||
24895 | ||
24896 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24897 | PyObject *resultobj; | |
24898 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24899 | wxTreeItemId *arg2 = 0 ; | |
24900 | wxTreeItemId result; | |
24901 | PyObject * obj0 = 0 ; | |
24902 | PyObject * obj1 = 0 ; | |
24903 | char *kwnames[] = { | |
24904 | (char *) "self",(char *) "item", NULL | |
24905 | }; | |
24906 | ||
24907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
24908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24909 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24910 | if (arg2 == NULL) { | |
24911 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24912 | } | |
24913 | { | |
24914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24915 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
24916 | ||
24917 | wxPyEndAllowThreads(__tstate); | |
24918 | if (PyErr_Occurred()) SWIG_fail; | |
24919 | } | |
24920 | { | |
24921 | wxTreeItemId * resultptr; | |
24922 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24923 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24924 | } | |
24925 | return resultobj; | |
24926 | fail: | |
24927 | return NULL; | |
24928 | } | |
24929 | ||
24930 | ||
24931 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24932 | PyObject *resultobj; | |
24933 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24934 | wxString *arg2 = 0 ; | |
24935 | int arg3 = (int) -1 ; | |
24936 | int arg4 = (int) -1 ; | |
24937 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
24938 | wxTreeItemId result; | |
423f194a | 24939 | bool temp2 = False ; |
d14a1e28 RD |
24940 | PyObject * obj0 = 0 ; |
24941 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24942 | PyObject * obj2 = 0 ; |
24943 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24944 | PyObject * obj4 = 0 ; |
24945 | char *kwnames[] = { | |
24946 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
24947 | }; | |
24948 | ||
8edf1c75 | 24949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
24950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24951 | { | |
24952 | arg2 = wxString_in_helper(obj1); | |
24953 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24954 | temp2 = True; |
d14a1e28 | 24955 | } |
8edf1c75 RD |
24956 | if (obj2) { |
24957 | { | |
24958 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24959 | if (PyErr_Occurred()) SWIG_fail; | |
24960 | } | |
24961 | } | |
24962 | if (obj3) { | |
24963 | { | |
24964 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
24965 | if (PyErr_Occurred()) SWIG_fail; | |
24966 | } | |
24967 | } | |
d14a1e28 RD |
24968 | if (obj4) { |
24969 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24970 | } | |
24971 | { | |
24972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24973 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
24974 | ||
24975 | wxPyEndAllowThreads(__tstate); | |
24976 | if (PyErr_Occurred()) SWIG_fail; | |
24977 | } | |
24978 | { | |
24979 | wxTreeItemId * resultptr; | |
24980 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24981 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24982 | } | |
24983 | { | |
24984 | if (temp2) | |
24985 | delete arg2; | |
24986 | } | |
24987 | return resultobj; | |
24988 | fail: | |
24989 | { | |
24990 | if (temp2) | |
24991 | delete arg2; | |
24992 | } | |
24993 | return NULL; | |
24994 | } | |
24995 | ||
24996 | ||
24997 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24998 | PyObject *resultobj; | |
24999 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25000 | wxTreeItemId *arg2 = 0 ; | |
25001 | wxString *arg3 = 0 ; | |
25002 | int arg4 = (int) -1 ; | |
25003 | int arg5 = (int) -1 ; | |
25004 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25005 | wxTreeItemId result; | |
423f194a | 25006 | bool temp3 = False ; |
d14a1e28 RD |
25007 | PyObject * obj0 = 0 ; |
25008 | PyObject * obj1 = 0 ; | |
25009 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25010 | PyObject * obj3 = 0 ; |
25011 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25012 | PyObject * obj5 = 0 ; |
25013 | char *kwnames[] = { | |
25014 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25015 | }; | |
25016 | ||
8edf1c75 | 25017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25019 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25020 | if (arg2 == NULL) { | |
25021 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25022 | } | |
25023 | { | |
25024 | arg3 = wxString_in_helper(obj2); | |
25025 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25026 | temp3 = True; |
d14a1e28 | 25027 | } |
8edf1c75 RD |
25028 | if (obj3) { |
25029 | { | |
25030 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25031 | if (PyErr_Occurred()) SWIG_fail; | |
25032 | } | |
25033 | } | |
25034 | if (obj4) { | |
25035 | { | |
25036 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25037 | if (PyErr_Occurred()) SWIG_fail; | |
25038 | } | |
25039 | } | |
d14a1e28 RD |
25040 | if (obj5) { |
25041 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25042 | } | |
25043 | { | |
25044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25045 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25046 | ||
25047 | wxPyEndAllowThreads(__tstate); | |
25048 | if (PyErr_Occurred()) SWIG_fail; | |
25049 | } | |
25050 | { | |
25051 | wxTreeItemId * resultptr; | |
25052 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25053 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25054 | } | |
25055 | { | |
25056 | if (temp3) | |
25057 | delete arg3; | |
25058 | } | |
25059 | return resultobj; | |
25060 | fail: | |
25061 | { | |
25062 | if (temp3) | |
25063 | delete arg3; | |
25064 | } | |
25065 | return NULL; | |
25066 | } | |
25067 | ||
25068 | ||
25069 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25070 | PyObject *resultobj; | |
25071 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25072 | wxTreeItemId *arg2 = 0 ; | |
25073 | wxTreeItemId *arg3 = 0 ; | |
25074 | wxString *arg4 = 0 ; | |
25075 | int arg5 = (int) -1 ; | |
25076 | int arg6 = (int) -1 ; | |
25077 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25078 | wxTreeItemId result; | |
423f194a | 25079 | bool temp4 = False ; |
d14a1e28 RD |
25080 | PyObject * obj0 = 0 ; |
25081 | PyObject * obj1 = 0 ; | |
25082 | PyObject * obj2 = 0 ; | |
25083 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25084 | PyObject * obj4 = 0 ; |
25085 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25086 | PyObject * obj6 = 0 ; |
25087 | char *kwnames[] = { | |
25088 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25089 | }; | |
25090 | ||
8edf1c75 | 25091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25093 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25094 | if (arg2 == NULL) { | |
25095 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25096 | } | |
25097 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25098 | if (arg3 == NULL) { | |
25099 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25100 | } | |
25101 | { | |
25102 | arg4 = wxString_in_helper(obj3); | |
25103 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25104 | temp4 = True; |
d14a1e28 | 25105 | } |
8edf1c75 RD |
25106 | if (obj4) { |
25107 | { | |
25108 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25109 | if (PyErr_Occurred()) SWIG_fail; | |
25110 | } | |
25111 | } | |
25112 | if (obj5) { | |
25113 | { | |
25114 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25115 | if (PyErr_Occurred()) SWIG_fail; | |
25116 | } | |
25117 | } | |
d14a1e28 RD |
25118 | if (obj6) { |
25119 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25120 | } | |
25121 | { | |
25122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25123 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25124 | ||
25125 | wxPyEndAllowThreads(__tstate); | |
25126 | if (PyErr_Occurred()) SWIG_fail; | |
25127 | } | |
25128 | { | |
25129 | wxTreeItemId * resultptr; | |
25130 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25131 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25132 | } | |
25133 | { | |
25134 | if (temp4) | |
25135 | delete arg4; | |
25136 | } | |
25137 | return resultobj; | |
25138 | fail: | |
25139 | { | |
25140 | if (temp4) | |
25141 | delete arg4; | |
25142 | } | |
25143 | return NULL; | |
25144 | } | |
25145 | ||
25146 | ||
25147 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25148 | PyObject *resultobj; | |
25149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25150 | wxTreeItemId *arg2 = 0 ; | |
25151 | size_t arg3 ; | |
25152 | wxString *arg4 = 0 ; | |
25153 | int arg5 = (int) -1 ; | |
25154 | int arg6 = (int) -1 ; | |
25155 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25156 | wxTreeItemId result; | |
423f194a | 25157 | bool temp4 = False ; |
d14a1e28 RD |
25158 | PyObject * obj0 = 0 ; |
25159 | PyObject * obj1 = 0 ; | |
25160 | PyObject * obj2 = 0 ; | |
25161 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25162 | PyObject * obj4 = 0 ; |
25163 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25164 | PyObject * obj6 = 0 ; |
25165 | char *kwnames[] = { | |
25166 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25167 | }; | |
25168 | ||
8edf1c75 | 25169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25171 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25172 | if (arg2 == NULL) { | |
25173 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25174 | } | |
2dbef272 | 25175 | { |
8edf1c75 | 25176 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
25177 | if (PyErr_Occurred()) SWIG_fail; |
25178 | } | |
d14a1e28 RD |
25179 | { |
25180 | arg4 = wxString_in_helper(obj3); | |
25181 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25182 | temp4 = True; |
d14a1e28 | 25183 | } |
8edf1c75 RD |
25184 | if (obj4) { |
25185 | { | |
25186 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | } | |
25190 | if (obj5) { | |
25191 | { | |
25192 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25193 | if (PyErr_Occurred()) SWIG_fail; | |
25194 | } | |
25195 | } | |
d14a1e28 RD |
25196 | if (obj6) { |
25197 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25198 | } | |
25199 | { | |
25200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25201 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25202 | ||
25203 | wxPyEndAllowThreads(__tstate); | |
25204 | if (PyErr_Occurred()) SWIG_fail; | |
25205 | } | |
25206 | { | |
25207 | wxTreeItemId * resultptr; | |
25208 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25209 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25210 | } | |
25211 | { | |
25212 | if (temp4) | |
25213 | delete arg4; | |
25214 | } | |
25215 | return resultobj; | |
25216 | fail: | |
25217 | { | |
25218 | if (temp4) | |
25219 | delete arg4; | |
25220 | } | |
25221 | return NULL; | |
25222 | } | |
25223 | ||
25224 | ||
25225 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25226 | PyObject *resultobj; | |
25227 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25228 | wxTreeItemId *arg2 = 0 ; | |
25229 | wxString *arg3 = 0 ; | |
25230 | int arg4 = (int) -1 ; | |
25231 | int arg5 = (int) -1 ; | |
25232 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25233 | wxTreeItemId result; | |
423f194a | 25234 | bool temp3 = False ; |
d14a1e28 RD |
25235 | PyObject * obj0 = 0 ; |
25236 | PyObject * obj1 = 0 ; | |
25237 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25238 | PyObject * obj3 = 0 ; |
25239 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25240 | PyObject * obj5 = 0 ; |
25241 | char *kwnames[] = { | |
25242 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25243 | }; | |
25244 | ||
8edf1c75 | 25245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25247 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25248 | if (arg2 == NULL) { | |
25249 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25250 | } | |
25251 | { | |
25252 | arg3 = wxString_in_helper(obj2); | |
25253 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25254 | temp3 = True; |
d14a1e28 | 25255 | } |
8edf1c75 RD |
25256 | if (obj3) { |
25257 | { | |
25258 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25259 | if (PyErr_Occurred()) SWIG_fail; | |
25260 | } | |
25261 | } | |
25262 | if (obj4) { | |
25263 | { | |
25264 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25265 | if (PyErr_Occurred()) SWIG_fail; | |
25266 | } | |
25267 | } | |
d14a1e28 RD |
25268 | if (obj5) { |
25269 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25270 | } | |
25271 | { | |
25272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25273 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25274 | ||
25275 | wxPyEndAllowThreads(__tstate); | |
25276 | if (PyErr_Occurred()) SWIG_fail; | |
25277 | } | |
25278 | { | |
25279 | wxTreeItemId * resultptr; | |
25280 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25281 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25282 | } | |
25283 | { | |
25284 | if (temp3) | |
25285 | delete arg3; | |
25286 | } | |
25287 | return resultobj; | |
25288 | fail: | |
25289 | { | |
25290 | if (temp3) | |
25291 | delete arg3; | |
25292 | } | |
25293 | return NULL; | |
25294 | } | |
25295 | ||
25296 | ||
25297 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25298 | PyObject *resultobj; | |
25299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25300 | wxTreeItemId *arg2 = 0 ; | |
25301 | PyObject * obj0 = 0 ; | |
25302 | PyObject * obj1 = 0 ; | |
25303 | char *kwnames[] = { | |
25304 | (char *) "self",(char *) "item", NULL | |
25305 | }; | |
25306 | ||
25307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25309 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25310 | if (arg2 == NULL) { | |
25311 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25312 | } | |
25313 | { | |
25314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25315 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25316 | ||
25317 | wxPyEndAllowThreads(__tstate); | |
25318 | if (PyErr_Occurred()) SWIG_fail; | |
25319 | } | |
25320 | Py_INCREF(Py_None); resultobj = Py_None; | |
25321 | return resultobj; | |
25322 | fail: | |
25323 | return NULL; | |
25324 | } | |
25325 | ||
25326 | ||
25327 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25328 | PyObject *resultobj; | |
25329 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25330 | wxTreeItemId *arg2 = 0 ; | |
25331 | PyObject * obj0 = 0 ; | |
25332 | PyObject * obj1 = 0 ; | |
25333 | char *kwnames[] = { | |
25334 | (char *) "self",(char *) "item", NULL | |
25335 | }; | |
25336 | ||
25337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25339 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25340 | if (arg2 == NULL) { | |
25341 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25342 | } | |
25343 | { | |
25344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25345 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25346 | ||
25347 | wxPyEndAllowThreads(__tstate); | |
25348 | if (PyErr_Occurred()) SWIG_fail; | |
25349 | } | |
25350 | Py_INCREF(Py_None); resultobj = Py_None; | |
25351 | return resultobj; | |
25352 | fail: | |
25353 | return NULL; | |
25354 | } | |
25355 | ||
25356 | ||
25357 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25358 | PyObject *resultobj; | |
25359 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25360 | PyObject * obj0 = 0 ; | |
25361 | char *kwnames[] = { | |
25362 | (char *) "self", NULL | |
25363 | }; | |
25364 | ||
25365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25367 | { | |
25368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25369 | (arg1)->DeleteAllItems(); | |
25370 | ||
25371 | wxPyEndAllowThreads(__tstate); | |
25372 | if (PyErr_Occurred()) SWIG_fail; | |
25373 | } | |
25374 | Py_INCREF(Py_None); resultobj = Py_None; | |
25375 | return resultobj; | |
25376 | fail: | |
25377 | return NULL; | |
25378 | } | |
25379 | ||
25380 | ||
25381 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25382 | PyObject *resultobj; | |
25383 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25384 | wxTreeItemId *arg2 = 0 ; | |
25385 | PyObject * obj0 = 0 ; | |
25386 | PyObject * obj1 = 0 ; | |
25387 | char *kwnames[] = { | |
25388 | (char *) "self",(char *) "item", NULL | |
25389 | }; | |
25390 | ||
25391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25393 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25394 | if (arg2 == NULL) { | |
25395 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25396 | } | |
25397 | { | |
25398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25399 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25400 | ||
25401 | wxPyEndAllowThreads(__tstate); | |
25402 | if (PyErr_Occurred()) SWIG_fail; | |
25403 | } | |
25404 | Py_INCREF(Py_None); resultobj = Py_None; | |
25405 | return resultobj; | |
25406 | fail: | |
25407 | return NULL; | |
25408 | } | |
25409 | ||
25410 | ||
25411 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25412 | PyObject *resultobj; | |
25413 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25414 | wxTreeItemId *arg2 = 0 ; | |
25415 | PyObject * obj0 = 0 ; | |
25416 | PyObject * obj1 = 0 ; | |
25417 | char *kwnames[] = { | |
25418 | (char *) "self",(char *) "item", NULL | |
25419 | }; | |
25420 | ||
25421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
25422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25423 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25424 | if (arg2 == NULL) { | |
25425 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25426 | } | |
25427 | { | |
25428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25429 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
25430 | ||
25431 | wxPyEndAllowThreads(__tstate); | |
25432 | if (PyErr_Occurred()) SWIG_fail; | |
25433 | } | |
25434 | Py_INCREF(Py_None); resultobj = Py_None; | |
25435 | return resultobj; | |
25436 | fail: | |
25437 | return NULL; | |
25438 | } | |
25439 | ||
25440 | ||
25441 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25442 | PyObject *resultobj; | |
25443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25444 | wxTreeItemId *arg2 = 0 ; | |
25445 | PyObject * obj0 = 0 ; | |
25446 | PyObject * obj1 = 0 ; | |
25447 | char *kwnames[] = { | |
25448 | (char *) "self",(char *) "item", NULL | |
25449 | }; | |
25450 | ||
25451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
25452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25453 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25454 | if (arg2 == NULL) { | |
25455 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25456 | } | |
25457 | { | |
25458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25459 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
25460 | ||
25461 | wxPyEndAllowThreads(__tstate); | |
25462 | if (PyErr_Occurred()) SWIG_fail; | |
25463 | } | |
25464 | Py_INCREF(Py_None); resultobj = Py_None; | |
25465 | return resultobj; | |
25466 | fail: | |
25467 | return NULL; | |
25468 | } | |
25469 | ||
25470 | ||
25471 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25472 | PyObject *resultobj; | |
25473 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25474 | wxTreeItemId *arg2 = 0 ; | |
25475 | PyObject * obj0 = 0 ; | |
25476 | PyObject * obj1 = 0 ; | |
25477 | char *kwnames[] = { | |
25478 | (char *) "self",(char *) "item", NULL | |
25479 | }; | |
25480 | ||
25481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
25482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25483 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25484 | if (arg2 == NULL) { | |
25485 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25486 | } | |
25487 | { | |
25488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25489 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
25490 | ||
25491 | wxPyEndAllowThreads(__tstate); | |
25492 | if (PyErr_Occurred()) SWIG_fail; | |
25493 | } | |
25494 | Py_INCREF(Py_None); resultobj = Py_None; | |
25495 | return resultobj; | |
25496 | fail: | |
25497 | return NULL; | |
25498 | } | |
25499 | ||
25500 | ||
25501 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25502 | PyObject *resultobj; | |
25503 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25504 | PyObject * obj0 = 0 ; | |
25505 | char *kwnames[] = { | |
25506 | (char *) "self", NULL | |
25507 | }; | |
25508 | ||
25509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
25510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25511 | { | |
25512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25513 | (arg1)->Unselect(); | |
25514 | ||
25515 | wxPyEndAllowThreads(__tstate); | |
25516 | if (PyErr_Occurred()) SWIG_fail; | |
25517 | } | |
25518 | Py_INCREF(Py_None); resultobj = Py_None; | |
25519 | return resultobj; | |
25520 | fail: | |
25521 | return NULL; | |
25522 | } | |
25523 | ||
25524 | ||
25525 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25526 | PyObject *resultobj; | |
25527 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25528 | PyObject * obj0 = 0 ; | |
25529 | char *kwnames[] = { | |
25530 | (char *) "self", NULL | |
25531 | }; | |
25532 | ||
25533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
25534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25535 | { | |
25536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25537 | (arg1)->UnselectAll(); | |
25538 | ||
25539 | wxPyEndAllowThreads(__tstate); | |
25540 | if (PyErr_Occurred()) SWIG_fail; | |
25541 | } | |
25542 | Py_INCREF(Py_None); resultobj = Py_None; | |
25543 | return resultobj; | |
25544 | fail: | |
25545 | return NULL; | |
25546 | } | |
25547 | ||
25548 | ||
25549 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25550 | PyObject *resultobj; | |
25551 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25552 | wxTreeItemId *arg2 = 0 ; | |
25553 | PyObject * obj0 = 0 ; | |
25554 | PyObject * obj1 = 0 ; | |
25555 | char *kwnames[] = { | |
25556 | (char *) "self",(char *) "item", NULL | |
25557 | }; | |
25558 | ||
25559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail; | |
25560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25561 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25562 | if (arg2 == NULL) { | |
25563 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25564 | } | |
25565 | { | |
25566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25567 | (arg1)->SelectItem((wxTreeItemId const &)*arg2); | |
25568 | ||
25569 | wxPyEndAllowThreads(__tstate); | |
25570 | if (PyErr_Occurred()) SWIG_fail; | |
25571 | } | |
25572 | Py_INCREF(Py_None); resultobj = Py_None; | |
25573 | return resultobj; | |
25574 | fail: | |
25575 | return NULL; | |
25576 | } | |
25577 | ||
25578 | ||
25579 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25580 | PyObject *resultobj; | |
25581 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25582 | wxTreeItemId *arg2 = 0 ; | |
25583 | PyObject * obj0 = 0 ; | |
25584 | PyObject * obj1 = 0 ; | |
25585 | char *kwnames[] = { | |
25586 | (char *) "self",(char *) "item", NULL | |
25587 | }; | |
25588 | ||
25589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
25590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25591 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25592 | if (arg2 == NULL) { | |
25593 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25594 | } | |
25595 | { | |
25596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25597 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
25598 | ||
25599 | wxPyEndAllowThreads(__tstate); | |
25600 | if (PyErr_Occurred()) SWIG_fail; | |
25601 | } | |
25602 | Py_INCREF(Py_None); resultobj = Py_None; | |
25603 | return resultobj; | |
25604 | fail: | |
25605 | return NULL; | |
25606 | } | |
25607 | ||
25608 | ||
25609 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25610 | PyObject *resultobj; | |
25611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25612 | wxTreeItemId *arg2 = 0 ; | |
25613 | PyObject * obj0 = 0 ; | |
25614 | PyObject * obj1 = 0 ; | |
25615 | char *kwnames[] = { | |
25616 | (char *) "self",(char *) "item", NULL | |
25617 | }; | |
25618 | ||
25619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
25620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25621 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25622 | if (arg2 == NULL) { | |
25623 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25624 | } | |
25625 | { | |
25626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25627 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
25628 | ||
25629 | wxPyEndAllowThreads(__tstate); | |
25630 | if (PyErr_Occurred()) SWIG_fail; | |
25631 | } | |
25632 | Py_INCREF(Py_None); resultobj = Py_None; | |
25633 | return resultobj; | |
25634 | fail: | |
25635 | return NULL; | |
25636 | } | |
25637 | ||
25638 | ||
25639 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25640 | PyObject *resultobj; | |
25641 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25642 | wxTreeItemId *arg2 = 0 ; | |
25643 | PyObject * obj0 = 0 ; | |
25644 | PyObject * obj1 = 0 ; | |
25645 | char *kwnames[] = { | |
25646 | (char *) "self",(char *) "item", NULL | |
25647 | }; | |
25648 | ||
25649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
25650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25651 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25652 | if (arg2 == NULL) { | |
25653 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25654 | } | |
25655 | { | |
25656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25657 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
25658 | ||
25659 | wxPyEndAllowThreads(__tstate); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | } | |
25662 | Py_INCREF(Py_None); resultobj = Py_None; | |
25663 | return resultobj; | |
25664 | fail: | |
25665 | return NULL; | |
25666 | } | |
25667 | ||
25668 | ||
25669 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25670 | PyObject *resultobj; | |
25671 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25672 | wxTextCtrl *result; | |
25673 | PyObject * obj0 = 0 ; | |
25674 | char *kwnames[] = { | |
25675 | (char *) "self", NULL | |
25676 | }; | |
25677 | ||
25678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
25679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25680 | { | |
25681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25682 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
25683 | ||
25684 | wxPyEndAllowThreads(__tstate); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | } | |
25687 | { | |
25688 | resultobj = wxPyMake_wxObject(result); | |
25689 | } | |
25690 | return resultobj; | |
25691 | fail: | |
25692 | return NULL; | |
25693 | } | |
25694 | ||
25695 | ||
25696 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25697 | PyObject *resultobj; | |
25698 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25699 | wxTreeItemId *arg2 = 0 ; | |
25700 | PyObject * obj0 = 0 ; | |
25701 | PyObject * obj1 = 0 ; | |
25702 | char *kwnames[] = { | |
25703 | (char *) "self",(char *) "item", NULL | |
25704 | }; | |
25705 | ||
25706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
25707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25708 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25709 | if (arg2 == NULL) { | |
25710 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25711 | } | |
25712 | { | |
25713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25714 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
25715 | ||
25716 | wxPyEndAllowThreads(__tstate); | |
25717 | if (PyErr_Occurred()) SWIG_fail; | |
25718 | } | |
25719 | Py_INCREF(Py_None); resultobj = Py_None; | |
25720 | return resultobj; | |
25721 | fail: | |
25722 | return NULL; | |
25723 | } | |
25724 | ||
25725 | ||
25726 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25727 | PyObject *resultobj; | |
25728 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25729 | wxPoint *arg2 = 0 ; | |
25730 | int *arg3 = 0 ; | |
25731 | wxTreeItemId result; | |
25732 | wxPoint temp2 ; | |
25733 | int temp3 ; | |
25734 | PyObject * obj0 = 0 ; | |
25735 | PyObject * obj1 = 0 ; | |
25736 | char *kwnames[] = { | |
25737 | (char *) "self",(char *) "point", NULL | |
25738 | }; | |
25739 | ||
25740 | arg3 = &temp3; | |
25741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25743 | { | |
25744 | arg2 = &temp2; | |
25745 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25746 | } | |
25747 | { | |
25748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25749 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25750 | ||
25751 | wxPyEndAllowThreads(__tstate); | |
25752 | if (PyErr_Occurred()) SWIG_fail; | |
25753 | } | |
25754 | { | |
25755 | wxTreeItemId * resultptr; | |
25756 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25757 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25758 | } | |
25759 | { | |
25760 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25761 | resultobj = t_output_helper(resultobj,o); | |
25762 | } | |
25763 | return resultobj; | |
25764 | fail: | |
25765 | return NULL; | |
25766 | } | |
25767 | ||
25768 | ||
25769 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25770 | PyObject *resultobj; | |
25771 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25772 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25773 | bool arg3 = (bool) False ; |
d14a1e28 RD |
25774 | PyObject *result; |
25775 | PyObject * obj0 = 0 ; | |
25776 | PyObject * obj1 = 0 ; | |
25777 | PyObject * obj2 = 0 ; | |
25778 | char *kwnames[] = { | |
25779 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
25780 | }; | |
25781 | ||
25782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25784 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25785 | if (arg2 == NULL) { | |
25786 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25787 | } | |
25788 | if (obj2) { | |
2dbef272 | 25789 | { |
8edf1c75 | 25790 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
25791 | if (PyErr_Occurred()) SWIG_fail; |
25792 | } | |
d14a1e28 RD |
25793 | } |
25794 | { | |
25795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25796 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25797 | ||
25798 | wxPyEndAllowThreads(__tstate); | |
25799 | if (PyErr_Occurred()) SWIG_fail; | |
25800 | } | |
25801 | resultobj = result; | |
25802 | return resultobj; | |
25803 | fail: | |
25804 | return NULL; | |
25805 | } | |
25806 | ||
25807 | ||
25808 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
25809 | PyObject *obj; | |
25810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25811 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
25812 | Py_INCREF(obj); | |
25813 | return Py_BuildValue((char *)""); | |
25814 | } | |
8edf1c75 | 25815 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
cbd72d4f RD |
25816 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
25817 | return 1; | |
25818 | } | |
25819 | ||
25820 | ||
25821 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
25822 | PyObject *pyobj; | |
25823 | ||
25824 | { | |
25825 | #if wxUSE_UNICODE | |
25826 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25827 | #else | |
25828 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25829 | #endif | |
25830 | } | |
25831 | return pyobj; | |
25832 | } | |
25833 | ||
25834 | ||
d14a1e28 RD |
25835 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
25836 | PyObject *resultobj; | |
25837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 25838 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
25839 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
25840 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
25841 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25842 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25843 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25844 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25845 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
25846 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
25847 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25848 | int arg8 = (int) 0 ; | |
cbd72d4f | 25849 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25850 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
25851 | wxGenericDirCtrl *result; | |
423f194a | 25852 | bool temp3 = False ; |
d14a1e28 RD |
25853 | wxPoint temp4 ; |
25854 | wxSize temp5 ; | |
423f194a RD |
25855 | bool temp7 = False ; |
25856 | bool temp9 = False ; | |
d14a1e28 | 25857 | PyObject * obj0 = 0 ; |
8edf1c75 | 25858 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25859 | PyObject * obj2 = 0 ; |
25860 | PyObject * obj3 = 0 ; | |
25861 | PyObject * obj4 = 0 ; | |
8edf1c75 | 25862 | PyObject * obj5 = 0 ; |
d14a1e28 | 25863 | PyObject * obj6 = 0 ; |
8edf1c75 | 25864 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
25865 | PyObject * obj8 = 0 ; |
25866 | char *kwnames[] = { | |
25867 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
25868 | }; | |
25869 | ||
8edf1c75 | 25870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 25871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25872 | if (obj1) { |
25873 | { | |
25874 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
25876 | } | |
25877 | } | |
d14a1e28 RD |
25878 | if (obj2) { |
25879 | { | |
25880 | arg3 = wxString_in_helper(obj2); | |
25881 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25882 | temp3 = True; |
d14a1e28 RD |
25883 | } |
25884 | } | |
25885 | if (obj3) { | |
25886 | { | |
25887 | arg4 = &temp4; | |
25888 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25889 | } | |
25890 | } | |
25891 | if (obj4) { | |
25892 | { | |
25893 | arg5 = &temp5; | |
25894 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25895 | } | |
25896 | } | |
8edf1c75 RD |
25897 | if (obj5) { |
25898 | { | |
25899 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
25900 | if (PyErr_Occurred()) SWIG_fail; | |
25901 | } | |
25902 | } | |
d14a1e28 RD |
25903 | if (obj6) { |
25904 | { | |
25905 | arg7 = wxString_in_helper(obj6); | |
25906 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 25907 | temp7 = True; |
d14a1e28 RD |
25908 | } |
25909 | } | |
8edf1c75 RD |
25910 | if (obj7) { |
25911 | { | |
25912 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
25913 | if (PyErr_Occurred()) SWIG_fail; | |
25914 | } | |
25915 | } | |
d14a1e28 RD |
25916 | if (obj8) { |
25917 | { | |
25918 | arg9 = wxString_in_helper(obj8); | |
25919 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 25920 | temp9 = True; |
d14a1e28 RD |
25921 | } |
25922 | } | |
25923 | { | |
25924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25925 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
25926 | ||
25927 | wxPyEndAllowThreads(__tstate); | |
25928 | if (PyErr_Occurred()) SWIG_fail; | |
25929 | } | |
25930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
25931 | { | |
25932 | if (temp3) | |
25933 | delete arg3; | |
25934 | } | |
25935 | { | |
25936 | if (temp7) | |
25937 | delete arg7; | |
25938 | } | |
25939 | { | |
25940 | if (temp9) | |
25941 | delete arg9; | |
25942 | } | |
25943 | return resultobj; | |
25944 | fail: | |
25945 | { | |
25946 | if (temp3) | |
25947 | delete arg3; | |
25948 | } | |
25949 | { | |
25950 | if (temp7) | |
25951 | delete arg7; | |
25952 | } | |
25953 | { | |
25954 | if (temp9) | |
25955 | delete arg9; | |
25956 | } | |
25957 | return NULL; | |
25958 | } | |
25959 | ||
25960 | ||
25961 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25962 | PyObject *resultobj; | |
25963 | wxGenericDirCtrl *result; | |
25964 | char *kwnames[] = { | |
25965 | NULL | |
25966 | }; | |
25967 | ||
25968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
25969 | { | |
25970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25971 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
25972 | ||
25973 | wxPyEndAllowThreads(__tstate); | |
25974 | if (PyErr_Occurred()) SWIG_fail; | |
25975 | } | |
25976 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
25977 | return resultobj; | |
25978 | fail: | |
25979 | return NULL; | |
25980 | } | |
25981 | ||
25982 | ||
25983 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25984 | PyObject *resultobj; | |
25985 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
25986 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 25987 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
25988 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
25989 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25990 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
25991 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
25992 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
25993 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
25994 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
25995 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
25996 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25997 | int arg9 = (int) 0 ; | |
cbd72d4f | 25998 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25999 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
26000 | bool result; | |
423f194a | 26001 | bool temp4 = False ; |
d14a1e28 RD |
26002 | wxPoint temp5 ; |
26003 | wxSize temp6 ; | |
423f194a RD |
26004 | bool temp8 = False ; |
26005 | bool temp10 = False ; | |
d14a1e28 RD |
26006 | PyObject * obj0 = 0 ; |
26007 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26008 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26009 | PyObject * obj3 = 0 ; |
26010 | PyObject * obj4 = 0 ; | |
26011 | PyObject * obj5 = 0 ; | |
8edf1c75 | 26012 | PyObject * obj6 = 0 ; |
d14a1e28 | 26013 | PyObject * obj7 = 0 ; |
8edf1c75 | 26014 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
26015 | PyObject * obj9 = 0 ; |
26016 | char *kwnames[] = { | |
26017 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26018 | }; | |
26019 | ||
8edf1c75 | 26020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 RD |
26021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26022 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26023 | if (obj2) { |
26024 | { | |
26025 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26026 | if (PyErr_Occurred()) SWIG_fail; | |
26027 | } | |
26028 | } | |
d14a1e28 RD |
26029 | if (obj3) { |
26030 | { | |
26031 | arg4 = wxString_in_helper(obj3); | |
26032 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26033 | temp4 = True; |
d14a1e28 RD |
26034 | } |
26035 | } | |
26036 | if (obj4) { | |
26037 | { | |
26038 | arg5 = &temp5; | |
26039 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
26040 | } | |
26041 | } | |
26042 | if (obj5) { | |
26043 | { | |
26044 | arg6 = &temp6; | |
26045 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
26046 | } | |
26047 | } | |
8edf1c75 RD |
26048 | if (obj6) { |
26049 | { | |
26050 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
26051 | if (PyErr_Occurred()) SWIG_fail; | |
26052 | } | |
26053 | } | |
d14a1e28 RD |
26054 | if (obj7) { |
26055 | { | |
26056 | arg8 = wxString_in_helper(obj7); | |
26057 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 26058 | temp8 = True; |
d14a1e28 RD |
26059 | } |
26060 | } | |
8edf1c75 RD |
26061 | if (obj8) { |
26062 | { | |
26063 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
26064 | if (PyErr_Occurred()) SWIG_fail; | |
26065 | } | |
26066 | } | |
d14a1e28 RD |
26067 | if (obj9) { |
26068 | { | |
26069 | arg10 = wxString_in_helper(obj9); | |
26070 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 26071 | temp10 = True; |
d14a1e28 RD |
26072 | } |
26073 | } | |
26074 | { | |
26075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26076 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
26077 | ||
26078 | wxPyEndAllowThreads(__tstate); | |
26079 | if (PyErr_Occurred()) SWIG_fail; | |
26080 | } | |
02a34c4c | 26081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26082 | { |
26083 | if (temp4) | |
26084 | delete arg4; | |
26085 | } | |
26086 | { | |
26087 | if (temp8) | |
26088 | delete arg8; | |
26089 | } | |
26090 | { | |
26091 | if (temp10) | |
26092 | delete arg10; | |
26093 | } | |
26094 | return resultobj; | |
26095 | fail: | |
26096 | { | |
26097 | if (temp4) | |
26098 | delete arg4; | |
26099 | } | |
26100 | { | |
26101 | if (temp8) | |
26102 | delete arg8; | |
26103 | } | |
26104 | { | |
26105 | if (temp10) | |
26106 | delete arg10; | |
26107 | } | |
26108 | return NULL; | |
26109 | } | |
26110 | ||
26111 | ||
26112 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26113 | PyObject *resultobj; | |
26114 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26115 | wxString *arg2 = 0 ; | |
26116 | bool result; | |
423f194a | 26117 | bool temp2 = False ; |
d14a1e28 RD |
26118 | PyObject * obj0 = 0 ; |
26119 | PyObject * obj1 = 0 ; | |
26120 | char *kwnames[] = { | |
26121 | (char *) "self",(char *) "path", NULL | |
26122 | }; | |
26123 | ||
26124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
26125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26126 | { | |
26127 | arg2 = wxString_in_helper(obj1); | |
26128 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26129 | temp2 = True; |
d14a1e28 RD |
26130 | } |
26131 | { | |
26132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26133 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
26134 | ||
26135 | wxPyEndAllowThreads(__tstate); | |
26136 | if (PyErr_Occurred()) SWIG_fail; | |
26137 | } | |
02a34c4c | 26138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26139 | { |
26140 | if (temp2) | |
26141 | delete arg2; | |
26142 | } | |
26143 | return resultobj; | |
26144 | fail: | |
26145 | { | |
26146 | if (temp2) | |
26147 | delete arg2; | |
26148 | } | |
26149 | return NULL; | |
26150 | } | |
26151 | ||
26152 | ||
26153 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26154 | PyObject *resultobj; | |
26155 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26156 | wxString result; | |
26157 | PyObject * obj0 = 0 ; | |
26158 | char *kwnames[] = { | |
26159 | (char *) "self", NULL | |
26160 | }; | |
26161 | ||
26162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
26163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26164 | { | |
26165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26166 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
26167 | ||
26168 | wxPyEndAllowThreads(__tstate); | |
26169 | if (PyErr_Occurred()) SWIG_fail; | |
26170 | } | |
26171 | { | |
26172 | #if wxUSE_UNICODE | |
26173 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26174 | #else | |
26175 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26176 | #endif | |
26177 | } | |
26178 | return resultobj; | |
26179 | fail: | |
26180 | return NULL; | |
26181 | } | |
26182 | ||
26183 | ||
26184 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26185 | PyObject *resultobj; | |
26186 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26187 | wxString *arg2 = 0 ; | |
423f194a | 26188 | bool temp2 = False ; |
d14a1e28 RD |
26189 | PyObject * obj0 = 0 ; |
26190 | PyObject * obj1 = 0 ; | |
26191 | char *kwnames[] = { | |
26192 | (char *) "self",(char *) "path", NULL | |
26193 | }; | |
26194 | ||
26195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26197 | { | |
26198 | arg2 = wxString_in_helper(obj1); | |
26199 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26200 | temp2 = True; |
d14a1e28 RD |
26201 | } |
26202 | { | |
26203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26204 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26205 | ||
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
26209 | Py_INCREF(Py_None); resultobj = Py_None; | |
26210 | { | |
26211 | if (temp2) | |
26212 | delete arg2; | |
26213 | } | |
26214 | return resultobj; | |
26215 | fail: | |
26216 | { | |
26217 | if (temp2) | |
26218 | delete arg2; | |
26219 | } | |
26220 | return NULL; | |
26221 | } | |
26222 | ||
26223 | ||
26224 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26225 | PyObject *resultobj; | |
26226 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26227 | wxString result; | |
26228 | PyObject * obj0 = 0 ; | |
26229 | char *kwnames[] = { | |
26230 | (char *) "self", NULL | |
26231 | }; | |
26232 | ||
26233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26235 | { | |
26236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26237 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26238 | ||
26239 | wxPyEndAllowThreads(__tstate); | |
26240 | if (PyErr_Occurred()) SWIG_fail; | |
26241 | } | |
26242 | { | |
26243 | #if wxUSE_UNICODE | |
26244 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26245 | #else | |
26246 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26247 | #endif | |
26248 | } | |
26249 | return resultobj; | |
26250 | fail: | |
26251 | return NULL; | |
26252 | } | |
26253 | ||
26254 | ||
26255 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26256 | PyObject *resultobj; | |
26257 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26258 | wxString result; | |
26259 | PyObject * obj0 = 0 ; | |
26260 | char *kwnames[] = { | |
26261 | (char *) "self", NULL | |
26262 | }; | |
26263 | ||
26264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26266 | { | |
26267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26268 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26269 | ||
26270 | wxPyEndAllowThreads(__tstate); | |
26271 | if (PyErr_Occurred()) SWIG_fail; | |
26272 | } | |
26273 | { | |
26274 | #if wxUSE_UNICODE | |
26275 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26276 | #else | |
26277 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26278 | #endif | |
26279 | } | |
26280 | return resultobj; | |
26281 | fail: | |
26282 | return NULL; | |
26283 | } | |
26284 | ||
26285 | ||
26286 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26287 | PyObject *resultobj; | |
26288 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26289 | wxString *arg2 = 0 ; | |
423f194a | 26290 | bool temp2 = False ; |
d14a1e28 RD |
26291 | PyObject * obj0 = 0 ; |
26292 | PyObject * obj1 = 0 ; | |
26293 | char *kwnames[] = { | |
26294 | (char *) "self",(char *) "path", NULL | |
26295 | }; | |
26296 | ||
26297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
26298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26299 | { | |
26300 | arg2 = wxString_in_helper(obj1); | |
26301 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26302 | temp2 = True; |
d14a1e28 RD |
26303 | } |
26304 | { | |
26305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26306 | (arg1)->SetPath((wxString const &)*arg2); | |
26307 | ||
26308 | wxPyEndAllowThreads(__tstate); | |
26309 | if (PyErr_Occurred()) SWIG_fail; | |
26310 | } | |
26311 | Py_INCREF(Py_None); resultobj = Py_None; | |
26312 | { | |
26313 | if (temp2) | |
26314 | delete arg2; | |
26315 | } | |
26316 | return resultobj; | |
26317 | fail: | |
26318 | { | |
26319 | if (temp2) | |
26320 | delete arg2; | |
26321 | } | |
26322 | return NULL; | |
26323 | } | |
26324 | ||
26325 | ||
26326 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26327 | PyObject *resultobj; | |
26328 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26329 | bool arg2 ; | |
26330 | PyObject * obj0 = 0 ; | |
26331 | PyObject * obj1 = 0 ; | |
26332 | char *kwnames[] = { | |
26333 | (char *) "self",(char *) "show", NULL | |
26334 | }; | |
26335 | ||
26336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
26337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 26338 | { |
8edf1c75 | 26339 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
26340 | if (PyErr_Occurred()) SWIG_fail; |
26341 | } | |
d14a1e28 RD |
26342 | { |
26343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26344 | (arg1)->ShowHidden(arg2); | |
26345 | ||
26346 | wxPyEndAllowThreads(__tstate); | |
26347 | if (PyErr_Occurred()) SWIG_fail; | |
26348 | } | |
26349 | Py_INCREF(Py_None); resultobj = Py_None; | |
26350 | return resultobj; | |
26351 | fail: | |
26352 | return NULL; | |
26353 | } | |
26354 | ||
26355 | ||
26356 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26357 | PyObject *resultobj; | |
26358 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26359 | bool result; | |
26360 | PyObject * obj0 = 0 ; | |
26361 | char *kwnames[] = { | |
26362 | (char *) "self", NULL | |
26363 | }; | |
26364 | ||
26365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
26366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26367 | { | |
26368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26369 | result = (bool)(arg1)->GetShowHidden(); | |
26370 | ||
26371 | wxPyEndAllowThreads(__tstate); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
02a34c4c | 26374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26375 | return resultobj; |
26376 | fail: | |
26377 | return NULL; | |
26378 | } | |
26379 | ||
26380 | ||
26381 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26382 | PyObject *resultobj; | |
26383 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26384 | wxString result; | |
26385 | PyObject * obj0 = 0 ; | |
26386 | char *kwnames[] = { | |
26387 | (char *) "self", NULL | |
26388 | }; | |
26389 | ||
26390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
26391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26392 | { | |
26393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26394 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
26395 | ||
26396 | wxPyEndAllowThreads(__tstate); | |
26397 | if (PyErr_Occurred()) SWIG_fail; | |
26398 | } | |
26399 | { | |
26400 | #if wxUSE_UNICODE | |
26401 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26402 | #else | |
26403 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26404 | #endif | |
26405 | } | |
26406 | return resultobj; | |
26407 | fail: | |
26408 | return NULL; | |
26409 | } | |
26410 | ||
26411 | ||
26412 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26413 | PyObject *resultobj; | |
26414 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26415 | wxString *arg2 = 0 ; | |
423f194a | 26416 | bool temp2 = False ; |
d14a1e28 RD |
26417 | PyObject * obj0 = 0 ; |
26418 | PyObject * obj1 = 0 ; | |
26419 | char *kwnames[] = { | |
26420 | (char *) "self",(char *) "filter", NULL | |
26421 | }; | |
26422 | ||
26423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
26424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26425 | { | |
26426 | arg2 = wxString_in_helper(obj1); | |
26427 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26428 | temp2 = True; |
d14a1e28 RD |
26429 | } |
26430 | { | |
26431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26432 | (arg1)->SetFilter((wxString const &)*arg2); | |
26433 | ||
26434 | wxPyEndAllowThreads(__tstate); | |
26435 | if (PyErr_Occurred()) SWIG_fail; | |
26436 | } | |
26437 | Py_INCREF(Py_None); resultobj = Py_None; | |
26438 | { | |
26439 | if (temp2) | |
26440 | delete arg2; | |
26441 | } | |
26442 | return resultobj; | |
26443 | fail: | |
26444 | { | |
26445 | if (temp2) | |
26446 | delete arg2; | |
26447 | } | |
26448 | return NULL; | |
26449 | } | |
26450 | ||
26451 | ||
26452 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26453 | PyObject *resultobj; | |
26454 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26455 | int result; | |
26456 | PyObject * obj0 = 0 ; | |
26457 | char *kwnames[] = { | |
26458 | (char *) "self", NULL | |
26459 | }; | |
26460 | ||
26461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
26462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26463 | { | |
26464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26465 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
26466 | ||
26467 | wxPyEndAllowThreads(__tstate); | |
26468 | if (PyErr_Occurred()) SWIG_fail; | |
26469 | } | |
8edf1c75 | 26470 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26471 | return resultobj; |
26472 | fail: | |
26473 | return NULL; | |
26474 | } | |
26475 | ||
26476 | ||
26477 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26478 | PyObject *resultobj; | |
26479 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26480 | int arg2 ; | |
26481 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26482 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26483 | char *kwnames[] = { |
26484 | (char *) "self",(char *) "n", NULL | |
26485 | }; | |
26486 | ||
8edf1c75 | 26487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 26488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26489 | { |
26490 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26491 | if (PyErr_Occurred()) SWIG_fail; | |
26492 | } | |
d14a1e28 RD |
26493 | { |
26494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26495 | (arg1)->SetFilterIndex(arg2); | |
26496 | ||
26497 | wxPyEndAllowThreads(__tstate); | |
26498 | if (PyErr_Occurred()) SWIG_fail; | |
26499 | } | |
26500 | Py_INCREF(Py_None); resultobj = Py_None; | |
26501 | return resultobj; | |
26502 | fail: | |
26503 | return NULL; | |
26504 | } | |
26505 | ||
26506 | ||
26507 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26508 | PyObject *resultobj; | |
26509 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26510 | wxTreeItemId result; | |
26511 | PyObject * obj0 = 0 ; | |
26512 | char *kwnames[] = { | |
26513 | (char *) "self", NULL | |
26514 | }; | |
26515 | ||
26516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
26517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26518 | { | |
26519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26520 | result = (arg1)->GetRootId(); | |
26521 | ||
26522 | wxPyEndAllowThreads(__tstate); | |
26523 | if (PyErr_Occurred()) SWIG_fail; | |
26524 | } | |
26525 | { | |
26526 | wxTreeItemId * resultptr; | |
26527 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26528 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26529 | } | |
26530 | return resultobj; | |
26531 | fail: | |
26532 | return NULL; | |
26533 | } | |
26534 | ||
26535 | ||
26536 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26537 | PyObject *resultobj; | |
26538 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
cbd72d4f | 26539 | wxPyTreeCtrl *result; |
d14a1e28 RD |
26540 | PyObject * obj0 = 0 ; |
26541 | char *kwnames[] = { | |
26542 | (char *) "self", NULL | |
26543 | }; | |
26544 | ||
26545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
26546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26547 | { | |
26548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cbd72d4f | 26549 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
26550 | |
26551 | wxPyEndAllowThreads(__tstate); | |
26552 | if (PyErr_Occurred()) SWIG_fail; | |
26553 | } | |
26554 | { | |
26555 | resultobj = wxPyMake_wxObject(result); | |
26556 | } | |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
26563 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26564 | PyObject *resultobj; | |
26565 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26566 | wxDirFilterListCtrl *result; | |
26567 | PyObject * obj0 = 0 ; | |
26568 | char *kwnames[] = { | |
26569 | (char *) "self", NULL | |
26570 | }; | |
26571 | ||
26572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
26573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26574 | { | |
26575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26576 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
26577 | ||
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
26588 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26589 | PyObject *resultobj; | |
26590 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26591 | wxTreeItemId arg2 ; | |
26592 | wxString *arg3 = 0 ; | |
26593 | bool *arg4 = 0 ; | |
26594 | wxTreeItemId result; | |
26595 | wxTreeItemId *argp2 ; | |
423f194a | 26596 | bool temp3 = False ; |
d14a1e28 RD |
26597 | bool temp4 ; |
26598 | PyObject * obj0 = 0 ; | |
26599 | PyObject * obj1 = 0 ; | |
26600 | PyObject * obj2 = 0 ; | |
26601 | char *kwnames[] = { | |
26602 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
26603 | }; | |
26604 | ||
26605 | arg4 = &temp4; | |
26606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26608 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
26609 | arg2 = *argp2; | |
26610 | { | |
26611 | arg3 = wxString_in_helper(obj2); | |
26612 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26613 | temp3 = True; |
d14a1e28 RD |
26614 | } |
26615 | { | |
26616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26617 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
26618 | ||
26619 | wxPyEndAllowThreads(__tstate); | |
26620 | if (PyErr_Occurred()) SWIG_fail; | |
26621 | } | |
26622 | { | |
26623 | wxTreeItemId * resultptr; | |
26624 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26625 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26626 | } | |
26627 | { | |
26628 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26629 | resultobj = t_output_helper(resultobj,o); | |
26630 | } | |
26631 | { | |
26632 | if (temp3) | |
26633 | delete arg3; | |
26634 | } | |
26635 | return resultobj; | |
26636 | fail: | |
26637 | { | |
26638 | if (temp3) | |
26639 | delete arg3; | |
26640 | } | |
26641 | return NULL; | |
26642 | } | |
26643 | ||
26644 | ||
26645 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26646 | PyObject *resultobj; | |
26647 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26648 | PyObject * obj0 = 0 ; | |
26649 | char *kwnames[] = { | |
26650 | (char *) "self", NULL | |
26651 | }; | |
26652 | ||
26653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
26654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26655 | { | |
26656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26657 | (arg1)->DoResize(); | |
26658 | ||
26659 | wxPyEndAllowThreads(__tstate); | |
26660 | if (PyErr_Occurred()) SWIG_fail; | |
26661 | } | |
26662 | Py_INCREF(Py_None); resultobj = Py_None; | |
26663 | return resultobj; | |
26664 | fail: | |
26665 | return NULL; | |
26666 | } | |
26667 | ||
26668 | ||
26669 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26670 | PyObject *resultobj; | |
26671 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26672 | PyObject * obj0 = 0 ; | |
26673 | char *kwnames[] = { | |
26674 | (char *) "self", NULL | |
26675 | }; | |
26676 | ||
26677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
26678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26679 | { | |
26680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26681 | (arg1)->ReCreateTree(); | |
26682 | ||
26683 | wxPyEndAllowThreads(__tstate); | |
26684 | if (PyErr_Occurred()) SWIG_fail; | |
26685 | } | |
26686 | Py_INCREF(Py_None); resultobj = Py_None; | |
26687 | return resultobj; | |
26688 | fail: | |
26689 | return NULL; | |
26690 | } | |
26691 | ||
26692 | ||
26693 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
26694 | PyObject *obj; | |
26695 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26696 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
26697 | Py_INCREF(obj); | |
26698 | return Py_BuildValue((char *)""); | |
26699 | } | |
26700 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26701 | PyObject *resultobj; | |
26702 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 26703 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26704 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
26705 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26706 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26707 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26708 | long arg5 = (long) 0 ; | |
26709 | wxDirFilterListCtrl *result; | |
26710 | wxPoint temp3 ; | |
26711 | wxSize temp4 ; | |
26712 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26713 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26714 | PyObject * obj2 = 0 ; |
26715 | PyObject * obj3 = 0 ; | |
8edf1c75 | 26716 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
26717 | char *kwnames[] = { |
26718 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26719 | }; | |
26720 | ||
8edf1c75 | 26721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 26722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26723 | if (obj1) { |
26724 | { | |
26725 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26726 | if (PyErr_Occurred()) SWIG_fail; | |
26727 | } | |
26728 | } | |
d14a1e28 RD |
26729 | if (obj2) { |
26730 | { | |
26731 | arg3 = &temp3; | |
26732 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26733 | } | |
26734 | } | |
26735 | if (obj3) { | |
26736 | { | |
26737 | arg4 = &temp4; | |
26738 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26739 | } | |
26740 | } | |
8edf1c75 RD |
26741 | if (obj4) { |
26742 | { | |
26743 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
26744 | if (PyErr_Occurred()) SWIG_fail; | |
26745 | } | |
26746 | } | |
d14a1e28 RD |
26747 | { |
26748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26749 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
26750 | ||
26751 | wxPyEndAllowThreads(__tstate); | |
26752 | if (PyErr_Occurred()) SWIG_fail; | |
26753 | } | |
26754 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26755 | return resultobj; | |
26756 | fail: | |
26757 | return NULL; | |
26758 | } | |
26759 | ||
26760 | ||
26761 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26762 | PyObject *resultobj; | |
26763 | wxDirFilterListCtrl *result; | |
26764 | char *kwnames[] = { | |
26765 | NULL | |
26766 | }; | |
26767 | ||
26768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
26769 | { | |
26770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26771 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
26772 | ||
26773 | wxPyEndAllowThreads(__tstate); | |
26774 | if (PyErr_Occurred()) SWIG_fail; | |
26775 | } | |
26776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26777 | return resultobj; | |
26778 | fail: | |
26779 | return NULL; | |
26780 | } | |
26781 | ||
26782 | ||
26783 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26784 | PyObject *resultobj; | |
26785 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
26786 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 26787 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26788 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
26789 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26790 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26791 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26792 | long arg6 = (long) 0 ; | |
26793 | bool result; | |
26794 | wxPoint temp4 ; | |
26795 | wxSize temp5 ; | |
26796 | PyObject * obj0 = 0 ; | |
26797 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26798 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26799 | PyObject * obj3 = 0 ; |
26800 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26801 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
26802 | char *kwnames[] = { |
26803 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26804 | }; | |
26805 | ||
8edf1c75 | 26806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
26807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26808 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26809 | if (obj2) { |
26810 | { | |
26811 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26812 | if (PyErr_Occurred()) SWIG_fail; | |
26813 | } | |
26814 | } | |
d14a1e28 RD |
26815 | if (obj3) { |
26816 | { | |
26817 | arg4 = &temp4; | |
26818 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26819 | } | |
26820 | } | |
26821 | if (obj4) { | |
26822 | { | |
26823 | arg5 = &temp5; | |
26824 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26825 | } | |
26826 | } | |
8edf1c75 RD |
26827 | if (obj5) { |
26828 | { | |
26829 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26830 | if (PyErr_Occurred()) SWIG_fail; | |
26831 | } | |
26832 | } | |
d14a1e28 RD |
26833 | { |
26834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26835 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
26836 | ||
26837 | wxPyEndAllowThreads(__tstate); | |
26838 | if (PyErr_Occurred()) SWIG_fail; | |
26839 | } | |
02a34c4c | 26840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26841 | return resultobj; |
26842 | fail: | |
26843 | return NULL; | |
26844 | } | |
26845 | ||
26846 | ||
26847 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26848 | PyObject *resultobj; | |
26849 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
26850 | wxString *arg2 = 0 ; | |
26851 | int arg3 ; | |
423f194a | 26852 | bool temp2 = False ; |
d14a1e28 RD |
26853 | PyObject * obj0 = 0 ; |
26854 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26855 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26856 | char *kwnames[] = { |
26857 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
26858 | }; | |
26859 | ||
8edf1c75 | 26860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
26861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26862 | { | |
26863 | arg2 = wxString_in_helper(obj1); | |
26864 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26865 | temp2 = True; |
d14a1e28 | 26866 | } |
8edf1c75 RD |
26867 | { |
26868 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26869 | if (PyErr_Occurred()) SWIG_fail; | |
26870 | } | |
d14a1e28 RD |
26871 | { |
26872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26873 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
26874 | ||
26875 | wxPyEndAllowThreads(__tstate); | |
26876 | if (PyErr_Occurred()) SWIG_fail; | |
26877 | } | |
26878 | Py_INCREF(Py_None); resultobj = Py_None; | |
26879 | { | |
26880 | if (temp2) | |
26881 | delete arg2; | |
26882 | } | |
26883 | return resultobj; | |
26884 | fail: | |
26885 | { | |
26886 | if (temp2) | |
26887 | delete arg2; | |
26888 | } | |
26889 | return NULL; | |
26890 | } | |
26891 | ||
26892 | ||
26893 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
26894 | PyObject *obj; | |
26895 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26896 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
26897 | Py_INCREF(obj); | |
26898 | return Py_BuildValue((char *)""); | |
26899 | } | |
26900 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26901 | PyObject *resultobj; | |
26902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 26903 | int arg2 ; |
d14a1e28 RD |
26904 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
26905 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26906 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26907 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26908 | long arg5 = (long) 0 ; | |
26909 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26910 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26911 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
26912 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26913 | wxPyControl *result; | |
26914 | wxPoint temp3 ; | |
26915 | wxSize temp4 ; | |
423f194a | 26916 | bool temp7 = False ; |
d14a1e28 | 26917 | PyObject * obj0 = 0 ; |
8edf1c75 | 26918 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26919 | PyObject * obj2 = 0 ; |
26920 | PyObject * obj3 = 0 ; | |
8edf1c75 | 26921 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
26922 | PyObject * obj5 = 0 ; |
26923 | PyObject * obj6 = 0 ; | |
26924 | char *kwnames[] = { | |
26925 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26926 | }; | |
26927 | ||
8edf1c75 | 26928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 26929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26930 | { |
26931 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26932 | if (PyErr_Occurred()) SWIG_fail; | |
26933 | } | |
d14a1e28 RD |
26934 | if (obj2) { |
26935 | { | |
26936 | arg3 = &temp3; | |
26937 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26938 | } | |
26939 | } | |
26940 | if (obj3) { | |
26941 | { | |
26942 | arg4 = &temp4; | |
26943 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26944 | } | |
26945 | } | |
8edf1c75 RD |
26946 | if (obj4) { |
26947 | { | |
26948 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
26949 | if (PyErr_Occurred()) SWIG_fail; | |
26950 | } | |
26951 | } | |
d14a1e28 RD |
26952 | if (obj5) { |
26953 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26954 | if (arg6 == NULL) { | |
26955 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26956 | } | |
26957 | } | |
26958 | if (obj6) { | |
26959 | { | |
26960 | arg7 = wxString_in_helper(obj6); | |
26961 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 26962 | temp7 = True; |
d14a1e28 RD |
26963 | } |
26964 | } | |
26965 | { | |
26966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26967 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26968 | ||
26969 | wxPyEndAllowThreads(__tstate); | |
26970 | if (PyErr_Occurred()) SWIG_fail; | |
26971 | } | |
26972 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
26973 | { | |
26974 | if (temp7) | |
26975 | delete arg7; | |
26976 | } | |
26977 | return resultobj; | |
26978 | fail: | |
26979 | { | |
26980 | if (temp7) | |
26981 | delete arg7; | |
26982 | } | |
26983 | return NULL; | |
26984 | } | |
26985 | ||
26986 | ||
26987 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26988 | PyObject *resultobj; | |
26989 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
26990 | PyObject *arg2 = (PyObject *) 0 ; | |
26991 | PyObject *arg3 = (PyObject *) 0 ; | |
26992 | PyObject * obj0 = 0 ; | |
26993 | PyObject * obj1 = 0 ; | |
26994 | PyObject * obj2 = 0 ; | |
26995 | char *kwnames[] = { | |
26996 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26997 | }; | |
26998 | ||
26999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27001 | arg2 = obj1; | |
27002 | arg3 = obj2; | |
27003 | { | |
27004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27005 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27006 | ||
27007 | wxPyEndAllowThreads(__tstate); | |
27008 | if (PyErr_Occurred()) SWIG_fail; | |
27009 | } | |
27010 | Py_INCREF(Py_None); resultobj = Py_None; | |
27011 | return resultobj; | |
27012 | fail: | |
27013 | return NULL; | |
27014 | } | |
27015 | ||
27016 | ||
27017 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27018 | PyObject *resultobj; | |
27019 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27020 | int arg2 ; | |
27021 | int arg3 ; | |
27022 | int arg4 ; | |
27023 | int arg5 ; | |
27024 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27025 | PyObject * obj1 = 0 ; |
27026 | PyObject * obj2 = 0 ; | |
27027 | PyObject * obj3 = 0 ; | |
27028 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27029 | char *kwnames[] = { |
27030 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
27031 | }; | |
27032 | ||
8edf1c75 | 27033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27035 | { |
27036 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27037 | if (PyErr_Occurred()) SWIG_fail; | |
27038 | } | |
27039 | { | |
27040 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27041 | if (PyErr_Occurred()) SWIG_fail; | |
27042 | } | |
27043 | { | |
27044 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27045 | if (PyErr_Occurred()) SWIG_fail; | |
27046 | } | |
27047 | { | |
27048 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27049 | if (PyErr_Occurred()) SWIG_fail; | |
27050 | } | |
d14a1e28 RD |
27051 | { |
27052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27053 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
27054 | ||
27055 | wxPyEndAllowThreads(__tstate); | |
27056 | if (PyErr_Occurred()) SWIG_fail; | |
27057 | } | |
27058 | Py_INCREF(Py_None); resultobj = Py_None; | |
27059 | return resultobj; | |
27060 | fail: | |
27061 | return NULL; | |
27062 | } | |
27063 | ||
27064 | ||
27065 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27066 | PyObject *resultobj; | |
27067 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27068 | int arg2 ; | |
27069 | int arg3 ; | |
27070 | int arg4 ; | |
27071 | int arg5 ; | |
27072 | int arg6 = (int) wxSIZE_AUTO ; | |
27073 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27074 | PyObject * obj1 = 0 ; |
27075 | PyObject * obj2 = 0 ; | |
27076 | PyObject * obj3 = 0 ; | |
27077 | PyObject * obj4 = 0 ; | |
27078 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27079 | char *kwnames[] = { |
27080 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
27081 | }; | |
27082 | ||
8edf1c75 | 27083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27085 | { |
27086 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27087 | if (PyErr_Occurred()) SWIG_fail; | |
27088 | } | |
27089 | { | |
27090 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27091 | if (PyErr_Occurred()) SWIG_fail; | |
27092 | } | |
27093 | { | |
27094 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27095 | if (PyErr_Occurred()) SWIG_fail; | |
27096 | } | |
27097 | { | |
27098 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27099 | if (PyErr_Occurred()) SWIG_fail; | |
27100 | } | |
27101 | if (obj5) { | |
27102 | { | |
27103 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
27104 | if (PyErr_Occurred()) SWIG_fail; | |
27105 | } | |
27106 | } | |
d14a1e28 RD |
27107 | { |
27108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27109 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
27110 | ||
27111 | wxPyEndAllowThreads(__tstate); | |
27112 | if (PyErr_Occurred()) SWIG_fail; | |
27113 | } | |
27114 | Py_INCREF(Py_None); resultobj = Py_None; | |
27115 | return resultobj; | |
27116 | fail: | |
27117 | return NULL; | |
27118 | } | |
27119 | ||
27120 | ||
27121 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27122 | PyObject *resultobj; | |
27123 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27124 | int arg2 ; | |
27125 | int arg3 ; | |
27126 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27127 | PyObject * obj1 = 0 ; |
27128 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27129 | char *kwnames[] = { |
27130 | (char *) "self",(char *) "width",(char *) "height", NULL | |
27131 | }; | |
27132 | ||
8edf1c75 | 27133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27135 | { |
27136 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27137 | if (PyErr_Occurred()) SWIG_fail; | |
27138 | } | |
27139 | { | |
27140 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27141 | if (PyErr_Occurred()) SWIG_fail; | |
27142 | } | |
d14a1e28 RD |
27143 | { |
27144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27145 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
27146 | ||
27147 | wxPyEndAllowThreads(__tstate); | |
27148 | if (PyErr_Occurred()) SWIG_fail; | |
27149 | } | |
27150 | Py_INCREF(Py_None); resultobj = Py_None; | |
27151 | return resultobj; | |
27152 | fail: | |
27153 | return NULL; | |
27154 | } | |
27155 | ||
27156 | ||
27157 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27158 | PyObject *resultobj; | |
27159 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27160 | int arg2 ; | |
27161 | int arg3 ; | |
27162 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27163 | PyObject * obj1 = 0 ; |
27164 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27165 | char *kwnames[] = { |
27166 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27167 | }; | |
27168 | ||
8edf1c75 | 27169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27171 | { |
27172 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | } | |
27175 | { | |
27176 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27177 | if (PyErr_Occurred()) SWIG_fail; | |
27178 | } | |
d14a1e28 RD |
27179 | { |
27180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27181 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27182 | ||
27183 | wxPyEndAllowThreads(__tstate); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | } | |
27186 | Py_INCREF(Py_None); resultobj = Py_None; | |
27187 | return resultobj; | |
27188 | fail: | |
27189 | return NULL; | |
27190 | } | |
27191 | ||
27192 | ||
27193 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27194 | PyObject *resultobj; | |
27195 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27196 | int *arg2 = (int *) 0 ; | |
27197 | int *arg3 = (int *) 0 ; | |
27198 | int temp2 ; | |
27199 | int temp3 ; | |
27200 | PyObject * obj0 = 0 ; | |
27201 | char *kwnames[] = { | |
27202 | (char *) "self", NULL | |
27203 | }; | |
27204 | ||
27205 | arg2 = &temp2; | |
27206 | arg3 = &temp3; | |
27207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27209 | { | |
27210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27211 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27212 | ||
27213 | wxPyEndAllowThreads(__tstate); | |
27214 | if (PyErr_Occurred()) SWIG_fail; | |
27215 | } | |
27216 | Py_INCREF(Py_None); resultobj = Py_None; | |
27217 | { | |
27218 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27219 | resultobj = t_output_helper(resultobj,o); | |
27220 | } | |
27221 | { | |
27222 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27223 | resultobj = t_output_helper(resultobj,o); | |
27224 | } | |
27225 | return resultobj; | |
27226 | fail: | |
27227 | return NULL; | |
27228 | } | |
27229 | ||
27230 | ||
27231 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27232 | PyObject *resultobj; | |
27233 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27234 | int *arg2 = (int *) 0 ; | |
27235 | int *arg3 = (int *) 0 ; | |
27236 | int temp2 ; | |
27237 | int temp3 ; | |
27238 | PyObject * obj0 = 0 ; | |
27239 | char *kwnames[] = { | |
27240 | (char *) "self", NULL | |
27241 | }; | |
27242 | ||
27243 | arg2 = &temp2; | |
27244 | arg3 = &temp3; | |
27245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27247 | { | |
27248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27249 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27250 | ||
27251 | wxPyEndAllowThreads(__tstate); | |
27252 | if (PyErr_Occurred()) SWIG_fail; | |
27253 | } | |
27254 | Py_INCREF(Py_None); resultobj = Py_None; | |
27255 | { | |
27256 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27257 | resultobj = t_output_helper(resultobj,o); | |
27258 | } | |
27259 | { | |
27260 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27261 | resultobj = t_output_helper(resultobj,o); | |
27262 | } | |
27263 | return resultobj; | |
27264 | fail: | |
27265 | return NULL; | |
27266 | } | |
27267 | ||
27268 | ||
27269 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27270 | PyObject *resultobj; | |
27271 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27272 | int *arg2 = (int *) 0 ; | |
27273 | int *arg3 = (int *) 0 ; | |
27274 | int temp2 ; | |
27275 | int temp3 ; | |
27276 | PyObject * obj0 = 0 ; | |
27277 | char *kwnames[] = { | |
27278 | (char *) "self", NULL | |
27279 | }; | |
27280 | ||
27281 | arg2 = &temp2; | |
27282 | arg3 = &temp3; | |
27283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27285 | { | |
27286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27287 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27288 | ||
27289 | wxPyEndAllowThreads(__tstate); | |
27290 | if (PyErr_Occurred()) SWIG_fail; | |
27291 | } | |
27292 | Py_INCREF(Py_None); resultobj = Py_None; | |
27293 | { | |
27294 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27295 | resultobj = t_output_helper(resultobj,o); | |
27296 | } | |
27297 | { | |
27298 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27299 | resultobj = t_output_helper(resultobj,o); | |
27300 | } | |
27301 | return resultobj; | |
27302 | fail: | |
27303 | return NULL; | |
27304 | } | |
27305 | ||
27306 | ||
27307 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27308 | PyObject *resultobj; | |
27309 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27310 | wxSize result; | |
27311 | PyObject * obj0 = 0 ; | |
27312 | char *kwnames[] = { | |
27313 | (char *) "self", NULL | |
27314 | }; | |
27315 | ||
27316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
27317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27318 | { | |
27319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27320 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
27321 | ||
27322 | wxPyEndAllowThreads(__tstate); | |
27323 | if (PyErr_Occurred()) SWIG_fail; | |
27324 | } | |
27325 | { | |
27326 | wxSize * resultptr; | |
27327 | resultptr = new wxSize((wxSize &) result); | |
27328 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27329 | } | |
27330 | return resultobj; | |
27331 | fail: | |
27332 | return NULL; | |
27333 | } | |
27334 | ||
27335 | ||
27336 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27337 | PyObject *resultobj; | |
27338 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27339 | wxSize result; | |
27340 | PyObject * obj0 = 0 ; | |
27341 | char *kwnames[] = { | |
27342 | (char *) "self", NULL | |
27343 | }; | |
27344 | ||
27345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
27346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27347 | { | |
27348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27349 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
27350 | ||
27351 | wxPyEndAllowThreads(__tstate); | |
27352 | if (PyErr_Occurred()) SWIG_fail; | |
27353 | } | |
27354 | { | |
27355 | wxSize * resultptr; | |
27356 | resultptr = new wxSize((wxSize &) result); | |
27357 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27358 | } | |
27359 | return resultobj; | |
27360 | fail: | |
27361 | return NULL; | |
27362 | } | |
27363 | ||
27364 | ||
27365 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27366 | PyObject *resultobj; | |
27367 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27368 | PyObject * obj0 = 0 ; | |
27369 | char *kwnames[] = { | |
27370 | (char *) "self", NULL | |
27371 | }; | |
27372 | ||
27373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
27374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27375 | { | |
27376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27377 | (arg1)->base_InitDialog(); | |
27378 | ||
27379 | wxPyEndAllowThreads(__tstate); | |
27380 | if (PyErr_Occurred()) SWIG_fail; | |
27381 | } | |
27382 | Py_INCREF(Py_None); resultobj = Py_None; | |
27383 | return resultobj; | |
27384 | fail: | |
27385 | return NULL; | |
27386 | } | |
27387 | ||
27388 | ||
27389 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27390 | PyObject *resultobj; | |
27391 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27392 | bool result; | |
27393 | PyObject * obj0 = 0 ; | |
27394 | char *kwnames[] = { | |
27395 | (char *) "self", NULL | |
27396 | }; | |
27397 | ||
27398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
27399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27400 | { | |
27401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27402 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
27403 | ||
27404 | wxPyEndAllowThreads(__tstate); | |
27405 | if (PyErr_Occurred()) SWIG_fail; | |
27406 | } | |
02a34c4c | 27407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27408 | return resultobj; |
27409 | fail: | |
27410 | return NULL; | |
27411 | } | |
27412 | ||
27413 | ||
27414 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27415 | PyObject *resultobj; | |
27416 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27417 | bool result; | |
27418 | PyObject * obj0 = 0 ; | |
27419 | char *kwnames[] = { | |
27420 | (char *) "self", NULL | |
27421 | }; | |
27422 | ||
27423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
27424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27425 | { | |
27426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27427 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
27428 | ||
27429 | wxPyEndAllowThreads(__tstate); | |
27430 | if (PyErr_Occurred()) SWIG_fail; | |
27431 | } | |
02a34c4c | 27432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27433 | return resultobj; |
27434 | fail: | |
27435 | return NULL; | |
27436 | } | |
27437 | ||
27438 | ||
27439 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27440 | PyObject *resultobj; | |
27441 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27442 | bool result; | |
27443 | PyObject * obj0 = 0 ; | |
27444 | char *kwnames[] = { | |
27445 | (char *) "self", NULL | |
27446 | }; | |
27447 | ||
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
27449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27450 | { | |
27451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27452 | result = (bool)(arg1)->base_Validate(); | |
27453 | ||
27454 | wxPyEndAllowThreads(__tstate); | |
27455 | if (PyErr_Occurred()) SWIG_fail; | |
27456 | } | |
02a34c4c | 27457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27458 | return resultobj; |
27459 | fail: | |
27460 | return NULL; | |
27461 | } | |
27462 | ||
27463 | ||
27464 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27465 | PyObject *resultobj; | |
27466 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27467 | bool result; | |
27468 | PyObject * obj0 = 0 ; | |
27469 | char *kwnames[] = { | |
27470 | (char *) "self", NULL | |
27471 | }; | |
27472 | ||
27473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
27474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27475 | { | |
27476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27477 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
27478 | ||
27479 | wxPyEndAllowThreads(__tstate); | |
27480 | if (PyErr_Occurred()) SWIG_fail; | |
27481 | } | |
02a34c4c | 27482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27483 | return resultobj; |
27484 | fail: | |
27485 | return NULL; | |
27486 | } | |
27487 | ||
27488 | ||
27489 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27490 | PyObject *resultobj; | |
27491 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27492 | bool result; | |
27493 | PyObject * obj0 = 0 ; | |
27494 | char *kwnames[] = { | |
27495 | (char *) "self", NULL | |
27496 | }; | |
27497 | ||
27498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
27499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27500 | { | |
27501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27502 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
27503 | ||
27504 | wxPyEndAllowThreads(__tstate); | |
27505 | if (PyErr_Occurred()) SWIG_fail; | |
27506 | } | |
02a34c4c | 27507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27508 | return resultobj; |
27509 | fail: | |
27510 | return NULL; | |
27511 | } | |
27512 | ||
27513 | ||
27514 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27515 | PyObject *resultobj; | |
27516 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27517 | wxSize result; | |
27518 | PyObject * obj0 = 0 ; | |
27519 | char *kwnames[] = { | |
27520 | (char *) "self", NULL | |
27521 | }; | |
27522 | ||
27523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
27524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27525 | { | |
27526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27527 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
27528 | ||
27529 | wxPyEndAllowThreads(__tstate); | |
27530 | if (PyErr_Occurred()) SWIG_fail; | |
27531 | } | |
27532 | { | |
27533 | wxSize * resultptr; | |
27534 | resultptr = new wxSize((wxSize &) result); | |
27535 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27536 | } | |
27537 | return resultobj; | |
27538 | fail: | |
27539 | return NULL; | |
27540 | } | |
27541 | ||
27542 | ||
27543 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27544 | PyObject *resultobj; | |
27545 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27546 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27547 | PyObject * obj0 = 0 ; | |
27548 | PyObject * obj1 = 0 ; | |
27549 | char *kwnames[] = { | |
27550 | (char *) "self",(char *) "child", NULL | |
27551 | }; | |
27552 | ||
27553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
27554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27555 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27556 | { | |
27557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27558 | (arg1)->base_AddChild(arg2); | |
27559 | ||
27560 | wxPyEndAllowThreads(__tstate); | |
27561 | if (PyErr_Occurred()) SWIG_fail; | |
27562 | } | |
27563 | Py_INCREF(Py_None); resultobj = Py_None; | |
27564 | return resultobj; | |
27565 | fail: | |
27566 | return NULL; | |
27567 | } | |
27568 | ||
27569 | ||
27570 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27571 | PyObject *resultobj; | |
27572 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27573 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27574 | PyObject * obj0 = 0 ; | |
27575 | PyObject * obj1 = 0 ; | |
27576 | char *kwnames[] = { | |
27577 | (char *) "self",(char *) "child", NULL | |
27578 | }; | |
27579 | ||
27580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
27581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27582 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27583 | { | |
27584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27585 | (arg1)->base_RemoveChild(arg2); | |
27586 | ||
27587 | wxPyEndAllowThreads(__tstate); | |
27588 | if (PyErr_Occurred()) SWIG_fail; | |
27589 | } | |
27590 | Py_INCREF(Py_None); resultobj = Py_None; | |
27591 | return resultobj; | |
27592 | fail: | |
27593 | return NULL; | |
27594 | } | |
27595 | ||
27596 | ||
27597 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
27598 | PyObject *obj; | |
27599 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27600 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
27601 | Py_INCREF(obj); | |
27602 | return Py_BuildValue((char *)""); | |
27603 | } | |
27604 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27605 | PyObject *resultobj; | |
27606 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 27607 | int arg2 = (int) 0 ; |
d14a1e28 RD |
27608 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27609 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27610 | wxHelpEvent *result; | |
27611 | wxPoint temp3 ; | |
8edf1c75 RD |
27612 | PyObject * obj0 = 0 ; |
27613 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
27614 | PyObject * obj2 = 0 ; |
27615 | char *kwnames[] = { | |
27616 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
27617 | }; | |
27618 | ||
8edf1c75 RD |
27619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27620 | if (obj0) { | |
27621 | { | |
27622 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
27623 | if (PyErr_Occurred()) SWIG_fail; | |
27624 | } | |
27625 | } | |
27626 | if (obj1) { | |
27627 | { | |
27628 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27629 | if (PyErr_Occurred()) SWIG_fail; | |
27630 | } | |
27631 | } | |
d14a1e28 RD |
27632 | if (obj2) { |
27633 | { | |
27634 | arg3 = &temp3; | |
27635 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27636 | } | |
27637 | } | |
27638 | { | |
27639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27640 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
27641 | ||
27642 | wxPyEndAllowThreads(__tstate); | |
27643 | if (PyErr_Occurred()) SWIG_fail; | |
27644 | } | |
27645 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
27646 | return resultobj; | |
27647 | fail: | |
27648 | return NULL; | |
27649 | } | |
27650 | ||
27651 | ||
27652 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27653 | PyObject *resultobj; | |
27654 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27655 | wxPoint *result; | |
27656 | PyObject * obj0 = 0 ; | |
27657 | char *kwnames[] = { | |
27658 | (char *) "self", NULL | |
27659 | }; | |
27660 | ||
27661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
27662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27663 | { | |
27664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27665 | { | |
27666 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
27667 | result = (wxPoint *) &_result_ref; | |
27668 | } | |
27669 | ||
27670 | wxPyEndAllowThreads(__tstate); | |
27671 | if (PyErr_Occurred()) SWIG_fail; | |
27672 | } | |
27673 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
27674 | return resultobj; | |
27675 | fail: | |
27676 | return NULL; | |
27677 | } | |
27678 | ||
27679 | ||
27680 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27681 | PyObject *resultobj; | |
27682 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27683 | wxPoint *arg2 = 0 ; | |
27684 | wxPoint temp2 ; | |
27685 | PyObject * obj0 = 0 ; | |
27686 | PyObject * obj1 = 0 ; | |
27687 | char *kwnames[] = { | |
27688 | (char *) "self",(char *) "pos", NULL | |
27689 | }; | |
27690 | ||
27691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
27692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27693 | { | |
27694 | arg2 = &temp2; | |
27695 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27696 | } | |
27697 | { | |
27698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27699 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
27700 | ||
27701 | wxPyEndAllowThreads(__tstate); | |
27702 | if (PyErr_Occurred()) SWIG_fail; | |
27703 | } | |
27704 | Py_INCREF(Py_None); resultobj = Py_None; | |
27705 | return resultobj; | |
27706 | fail: | |
27707 | return NULL; | |
27708 | } | |
27709 | ||
27710 | ||
27711 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27712 | PyObject *resultobj; | |
27713 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27714 | wxString *result; | |
27715 | PyObject * obj0 = 0 ; | |
27716 | char *kwnames[] = { | |
27717 | (char *) "self", NULL | |
27718 | }; | |
27719 | ||
27720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
27721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27722 | { | |
27723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27724 | { | |
27725 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
27726 | result = (wxString *) &_result_ref; | |
27727 | } | |
27728 | ||
27729 | wxPyEndAllowThreads(__tstate); | |
27730 | if (PyErr_Occurred()) SWIG_fail; | |
27731 | } | |
0f774bef RD |
27732 | { |
27733 | #if wxUSE_UNICODE | |
27734 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27735 | #else | |
27736 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27737 | #endif | |
27738 | } | |
d14a1e28 RD |
27739 | return resultobj; |
27740 | fail: | |
27741 | return NULL; | |
27742 | } | |
27743 | ||
27744 | ||
27745 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27746 | PyObject *resultobj; | |
27747 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27748 | wxString *arg2 = 0 ; | |
423f194a | 27749 | bool temp2 = False ; |
d14a1e28 RD |
27750 | PyObject * obj0 = 0 ; |
27751 | PyObject * obj1 = 0 ; | |
27752 | char *kwnames[] = { | |
27753 | (char *) "self",(char *) "link", NULL | |
27754 | }; | |
27755 | ||
27756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
27757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27758 | { | |
27759 | arg2 = wxString_in_helper(obj1); | |
27760 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27761 | temp2 = True; |
d14a1e28 RD |
27762 | } |
27763 | { | |
27764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27765 | (arg1)->SetLink((wxString const &)*arg2); | |
27766 | ||
27767 | wxPyEndAllowThreads(__tstate); | |
27768 | if (PyErr_Occurred()) SWIG_fail; | |
27769 | } | |
27770 | Py_INCREF(Py_None); resultobj = Py_None; | |
27771 | { | |
27772 | if (temp2) | |
27773 | delete arg2; | |
27774 | } | |
27775 | return resultobj; | |
27776 | fail: | |
27777 | { | |
27778 | if (temp2) | |
27779 | delete arg2; | |
27780 | } | |
27781 | return NULL; | |
27782 | } | |
27783 | ||
27784 | ||
27785 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27786 | PyObject *resultobj; | |
27787 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27788 | wxString *result; | |
27789 | PyObject * obj0 = 0 ; | |
27790 | char *kwnames[] = { | |
27791 | (char *) "self", NULL | |
27792 | }; | |
27793 | ||
27794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
27795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27796 | { | |
27797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27798 | { | |
27799 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
27800 | result = (wxString *) &_result_ref; | |
27801 | } | |
27802 | ||
27803 | wxPyEndAllowThreads(__tstate); | |
27804 | if (PyErr_Occurred()) SWIG_fail; | |
27805 | } | |
0f774bef RD |
27806 | { |
27807 | #if wxUSE_UNICODE | |
27808 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27809 | #else | |
27810 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27811 | #endif | |
27812 | } | |
d14a1e28 RD |
27813 | return resultobj; |
27814 | fail: | |
27815 | return NULL; | |
27816 | } | |
27817 | ||
27818 | ||
27819 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27820 | PyObject *resultobj; | |
27821 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27822 | wxString *arg2 = 0 ; | |
423f194a | 27823 | bool temp2 = False ; |
d14a1e28 RD |
27824 | PyObject * obj0 = 0 ; |
27825 | PyObject * obj1 = 0 ; | |
27826 | char *kwnames[] = { | |
27827 | (char *) "self",(char *) "target", NULL | |
27828 | }; | |
27829 | ||
27830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
27831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27832 | { | |
27833 | arg2 = wxString_in_helper(obj1); | |
27834 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27835 | temp2 = True; |
d14a1e28 RD |
27836 | } |
27837 | { | |
27838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27839 | (arg1)->SetTarget((wxString const &)*arg2); | |
27840 | ||
27841 | wxPyEndAllowThreads(__tstate); | |
27842 | if (PyErr_Occurred()) SWIG_fail; | |
27843 | } | |
27844 | Py_INCREF(Py_None); resultobj = Py_None; | |
27845 | { | |
27846 | if (temp2) | |
27847 | delete arg2; | |
27848 | } | |
27849 | return resultobj; | |
27850 | fail: | |
27851 | { | |
27852 | if (temp2) | |
27853 | delete arg2; | |
27854 | } | |
27855 | return NULL; | |
27856 | } | |
27857 | ||
27858 | ||
27859 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
27860 | PyObject *obj; | |
27861 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27862 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
27863 | Py_INCREF(obj); | |
27864 | return Py_BuildValue((char *)""); | |
27865 | } | |
27866 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27867 | PyObject *resultobj; | |
27868 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 27869 | bool arg2 = (bool) True ; |
d14a1e28 RD |
27870 | wxContextHelp *result; |
27871 | PyObject * obj0 = 0 ; | |
27872 | PyObject * obj1 = 0 ; | |
27873 | char *kwnames[] = { | |
27874 | (char *) "window",(char *) "doNow", NULL | |
27875 | }; | |
27876 | ||
27877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
27878 | if (obj0) { | |
27879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27880 | } | |
27881 | if (obj1) { | |
2dbef272 | 27882 | { |
8edf1c75 | 27883 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
27884 | if (PyErr_Occurred()) SWIG_fail; |
27885 | } | |
d14a1e28 RD |
27886 | } |
27887 | { | |
27888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27889 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
27890 | ||
27891 | wxPyEndAllowThreads(__tstate); | |
27892 | if (PyErr_Occurred()) SWIG_fail; | |
27893 | } | |
27894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
27895 | return resultobj; | |
27896 | fail: | |
27897 | return NULL; | |
27898 | } | |
27899 | ||
27900 | ||
27901 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27902 | PyObject *resultobj; | |
27903 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
27904 | PyObject * obj0 = 0 ; | |
27905 | char *kwnames[] = { | |
27906 | (char *) "self", NULL | |
27907 | }; | |
27908 | ||
27909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
27910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27911 | { | |
27912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27913 | delete arg1; | |
27914 | ||
27915 | wxPyEndAllowThreads(__tstate); | |
27916 | if (PyErr_Occurred()) SWIG_fail; | |
27917 | } | |
27918 | Py_INCREF(Py_None); resultobj = Py_None; | |
27919 | return resultobj; | |
27920 | fail: | |
27921 | return NULL; | |
27922 | } | |
27923 | ||
27924 | ||
27925 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27926 | PyObject *resultobj; | |
27927 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
27928 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27929 | bool result; | |
27930 | PyObject * obj0 = 0 ; | |
27931 | PyObject * obj1 = 0 ; | |
27932 | char *kwnames[] = { | |
27933 | (char *) "self",(char *) "window", NULL | |
27934 | }; | |
27935 | ||
27936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
27937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27938 | if (obj1) { | |
27939 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27940 | } | |
27941 | { | |
27942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27943 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
27944 | ||
27945 | wxPyEndAllowThreads(__tstate); | |
27946 | if (PyErr_Occurred()) SWIG_fail; | |
27947 | } | |
02a34c4c | 27948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27949 | return resultobj; |
27950 | fail: | |
27951 | return NULL; | |
27952 | } | |
27953 | ||
27954 | ||
27955 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27956 | PyObject *resultobj; | |
27957 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
27958 | bool result; | |
27959 | PyObject * obj0 = 0 ; | |
27960 | char *kwnames[] = { | |
27961 | (char *) "self", NULL | |
27962 | }; | |
27963 | ||
27964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
27965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27966 | { | |
27967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27968 | result = (bool)(arg1)->EndContextHelp(); | |
27969 | ||
27970 | wxPyEndAllowThreads(__tstate); | |
27971 | if (PyErr_Occurred()) SWIG_fail; | |
27972 | } | |
02a34c4c | 27973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27974 | return resultobj; |
27975 | fail: | |
27976 | return NULL; | |
27977 | } | |
27978 | ||
27979 | ||
27980 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
27981 | PyObject *obj; | |
27982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27983 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
27984 | Py_INCREF(obj); | |
27985 | return Py_BuildValue((char *)""); | |
27986 | } | |
27987 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27988 | PyObject *resultobj; | |
27989 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27990 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
27991 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27992 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27993 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27994 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27995 | long arg5 = (long) wxBU_AUTODRAW ; | |
27996 | wxContextHelpButton *result; | |
27997 | wxPoint temp3 ; | |
27998 | wxSize temp4 ; | |
27999 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28000 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28001 | PyObject * obj2 = 0 ; |
28002 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28003 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28004 | char *kwnames[] = { |
28005 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28006 | }; | |
28007 | ||
8edf1c75 | 28008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28010 | if (obj1) { |
28011 | { | |
28012 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28013 | if (PyErr_Occurred()) SWIG_fail; | |
28014 | } | |
28015 | } | |
d14a1e28 RD |
28016 | if (obj2) { |
28017 | { | |
28018 | arg3 = &temp3; | |
28019 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28020 | } | |
28021 | } | |
28022 | if (obj3) { | |
28023 | { | |
28024 | arg4 = &temp4; | |
28025 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28026 | } | |
28027 | } | |
8edf1c75 RD |
28028 | if (obj4) { |
28029 | { | |
28030 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
28031 | if (PyErr_Occurred()) SWIG_fail; | |
28032 | } | |
28033 | } | |
d14a1e28 RD |
28034 | { |
28035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28036 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28037 | ||
28038 | wxPyEndAllowThreads(__tstate); | |
28039 | if (PyErr_Occurred()) SWIG_fail; | |
28040 | } | |
28041 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
28042 | return resultobj; | |
28043 | fail: | |
28044 | return NULL; | |
28045 | } | |
28046 | ||
28047 | ||
28048 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
28049 | PyObject *obj; | |
28050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28051 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
28052 | Py_INCREF(obj); | |
28053 | return Py_BuildValue((char *)""); | |
28054 | } | |
28055 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28056 | PyObject *resultobj; | |
28057 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28058 | wxHelpProvider *result; | |
28059 | PyObject * obj0 = 0 ; | |
28060 | char *kwnames[] = { | |
28061 | (char *) "helpProvider", NULL | |
28062 | }; | |
28063 | ||
28064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
28065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28066 | { | |
28067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28068 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
28069 | ||
28070 | wxPyEndAllowThreads(__tstate); | |
28071 | if (PyErr_Occurred()) SWIG_fail; | |
28072 | } | |
28073 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28074 | return resultobj; | |
28075 | fail: | |
28076 | return NULL; | |
28077 | } | |
28078 | ||
28079 | ||
28080 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28081 | PyObject *resultobj; | |
28082 | wxHelpProvider *result; | |
28083 | char *kwnames[] = { | |
28084 | NULL | |
28085 | }; | |
28086 | ||
28087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
28088 | { | |
28089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28090 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
28091 | ||
28092 | wxPyEndAllowThreads(__tstate); | |
28093 | if (PyErr_Occurred()) SWIG_fail; | |
28094 | } | |
28095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28096 | return resultobj; | |
28097 | fail: | |
28098 | return NULL; | |
28099 | } | |
28100 | ||
28101 | ||
28102 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28103 | PyObject *resultobj; | |
28104 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28105 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28106 | wxString result; | |
28107 | PyObject * obj0 = 0 ; | |
28108 | PyObject * obj1 = 0 ; | |
28109 | char *kwnames[] = { | |
28110 | (char *) "self",(char *) "window", NULL | |
28111 | }; | |
28112 | ||
28113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28115 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28116 | { | |
28117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28118 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
28119 | ||
28120 | wxPyEndAllowThreads(__tstate); | |
28121 | if (PyErr_Occurred()) SWIG_fail; | |
28122 | } | |
28123 | { | |
28124 | #if wxUSE_UNICODE | |
28125 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28126 | #else | |
28127 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28128 | #endif | |
28129 | } | |
28130 | return resultobj; | |
28131 | fail: | |
28132 | return NULL; | |
28133 | } | |
28134 | ||
28135 | ||
28136 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28137 | PyObject *resultobj; | |
28138 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28139 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28140 | bool result; | |
28141 | PyObject * obj0 = 0 ; | |
28142 | PyObject * obj1 = 0 ; | |
28143 | char *kwnames[] = { | |
28144 | (char *) "self",(char *) "window", NULL | |
28145 | }; | |
28146 | ||
28147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
28148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28149 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28150 | { | |
28151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28152 | result = (bool)(arg1)->ShowHelp(arg2); | |
28153 | ||
28154 | wxPyEndAllowThreads(__tstate); | |
28155 | if (PyErr_Occurred()) SWIG_fail; | |
28156 | } | |
02a34c4c | 28157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28158 | return resultobj; |
28159 | fail: | |
28160 | return NULL; | |
28161 | } | |
28162 | ||
28163 | ||
28164 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28165 | PyObject *resultobj; | |
28166 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28167 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28168 | wxString *arg3 = 0 ; | |
423f194a | 28169 | bool temp3 = False ; |
d14a1e28 RD |
28170 | PyObject * obj0 = 0 ; |
28171 | PyObject * obj1 = 0 ; | |
28172 | PyObject * obj2 = 0 ; | |
28173 | char *kwnames[] = { | |
28174 | (char *) "self",(char *) "window",(char *) "text", NULL | |
28175 | }; | |
28176 | ||
28177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28179 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28180 | { | |
28181 | arg3 = wxString_in_helper(obj2); | |
28182 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28183 | temp3 = True; |
d14a1e28 RD |
28184 | } |
28185 | { | |
28186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28187 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28188 | ||
28189 | wxPyEndAllowThreads(__tstate); | |
28190 | if (PyErr_Occurred()) SWIG_fail; | |
28191 | } | |
28192 | Py_INCREF(Py_None); resultobj = Py_None; | |
28193 | { | |
28194 | if (temp3) | |
28195 | delete arg3; | |
28196 | } | |
28197 | return resultobj; | |
28198 | fail: | |
28199 | { | |
28200 | if (temp3) | |
28201 | delete arg3; | |
28202 | } | |
28203 | return NULL; | |
28204 | } | |
28205 | ||
28206 | ||
28207 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28208 | PyObject *resultobj; | |
28209 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 28210 | int arg2 ; |
d14a1e28 | 28211 | wxString *arg3 = 0 ; |
423f194a | 28212 | bool temp3 = False ; |
d14a1e28 | 28213 | PyObject * obj0 = 0 ; |
8edf1c75 | 28214 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28215 | PyObject * obj2 = 0 ; |
28216 | char *kwnames[] = { | |
28217 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28218 | }; | |
28219 | ||
8edf1c75 | 28220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28222 | { |
28223 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28224 | if (PyErr_Occurred()) SWIG_fail; | |
28225 | } | |
d14a1e28 RD |
28226 | { |
28227 | arg3 = wxString_in_helper(obj2); | |
28228 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28229 | temp3 = True; |
d14a1e28 RD |
28230 | } |
28231 | { | |
28232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28233 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28234 | ||
28235 | wxPyEndAllowThreads(__tstate); | |
28236 | if (PyErr_Occurred()) SWIG_fail; | |
28237 | } | |
28238 | Py_INCREF(Py_None); resultobj = Py_None; | |
28239 | { | |
28240 | if (temp3) | |
28241 | delete arg3; | |
28242 | } | |
28243 | return resultobj; | |
28244 | fail: | |
28245 | { | |
28246 | if (temp3) | |
28247 | delete arg3; | |
28248 | } | |
28249 | return NULL; | |
28250 | } | |
28251 | ||
28252 | ||
28253 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28254 | PyObject *resultobj; | |
28255 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28256 | PyObject * obj0 = 0 ; | |
28257 | char *kwnames[] = { | |
28258 | (char *) "self", NULL | |
28259 | }; | |
28260 | ||
28261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28263 | { | |
28264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28265 | wxHelpProvider_Destroy(arg1); | |
28266 | ||
28267 | wxPyEndAllowThreads(__tstate); | |
28268 | if (PyErr_Occurred()) SWIG_fail; | |
28269 | } | |
28270 | Py_INCREF(Py_None); resultobj = Py_None; | |
28271 | return resultobj; | |
28272 | fail: | |
28273 | return NULL; | |
28274 | } | |
28275 | ||
28276 | ||
28277 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28278 | PyObject *obj; | |
28279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28280 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28281 | Py_INCREF(obj); | |
28282 | return Py_BuildValue((char *)""); | |
28283 | } | |
28284 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28285 | PyObject *resultobj; | |
28286 | wxSimpleHelpProvider *result; | |
28287 | char *kwnames[] = { | |
28288 | NULL | |
28289 | }; | |
28290 | ||
28291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28292 | { | |
28293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28294 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
28295 | ||
28296 | wxPyEndAllowThreads(__tstate); | |
28297 | if (PyErr_Occurred()) SWIG_fail; | |
28298 | } | |
28299 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
28300 | return resultobj; | |
28301 | fail: | |
28302 | return NULL; | |
28303 | } | |
28304 | ||
28305 | ||
28306 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28307 | PyObject *obj; | |
28308 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28309 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
28310 | Py_INCREF(obj); | |
28311 | return Py_BuildValue((char *)""); | |
28312 | } | |
423f194a RD |
28313 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
28314 | PyObject *resultobj; | |
28315 | wxBitmap *arg1 = 0 ; | |
28316 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28317 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28318 | wxGenericDragImage *result; | |
28319 | PyObject * obj0 = 0 ; | |
28320 | PyObject * obj1 = 0 ; | |
28321 | char *kwnames[] = { | |
28322 | (char *) "image",(char *) "cursor", NULL | |
28323 | }; | |
28324 | ||
28325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
28326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28327 | if (arg1 == NULL) { | |
28328 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28329 | } | |
28330 | if (obj1) { | |
28331 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28332 | if (arg2 == NULL) { | |
28333 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28334 | } | |
28335 | } | |
28336 | { | |
28337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28338 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
28339 | ||
28340 | wxPyEndAllowThreads(__tstate); | |
28341 | if (PyErr_Occurred()) SWIG_fail; | |
28342 | } | |
28343 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28344 | return resultobj; | |
28345 | fail: | |
28346 | return NULL; | |
28347 | } | |
28348 | ||
28349 | ||
28350 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28351 | PyObject *resultobj; | |
28352 | wxIcon *arg1 = 0 ; | |
28353 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28354 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28355 | wxGenericDragImage *result; | |
28356 | PyObject * obj0 = 0 ; | |
28357 | PyObject * obj1 = 0 ; | |
28358 | char *kwnames[] = { | |
28359 | (char *) "image",(char *) "cursor", NULL | |
28360 | }; | |
28361 | ||
28362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
28363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28364 | if (arg1 == NULL) { | |
28365 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28366 | } | |
28367 | if (obj1) { | |
28368 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28369 | if (arg2 == NULL) { | |
28370 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28371 | } | |
28372 | } | |
28373 | { | |
28374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28375 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
28376 | ||
28377 | wxPyEndAllowThreads(__tstate); | |
28378 | if (PyErr_Occurred()) SWIG_fail; | |
28379 | } | |
28380 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28381 | return resultobj; | |
28382 | fail: | |
28383 | return NULL; | |
28384 | } | |
28385 | ||
28386 | ||
28387 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28388 | PyObject *resultobj; | |
28389 | wxString *arg1 = 0 ; | |
28390 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28391 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28392 | wxGenericDragImage *result; | |
28393 | bool temp1 = False ; | |
28394 | PyObject * obj0 = 0 ; | |
28395 | PyObject * obj1 = 0 ; | |
28396 | char *kwnames[] = { | |
28397 | (char *) "str",(char *) "cursor", NULL | |
28398 | }; | |
28399 | ||
28400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
28401 | { | |
28402 | arg1 = wxString_in_helper(obj0); | |
28403 | if (arg1 == NULL) SWIG_fail; | |
28404 | temp1 = True; | |
28405 | } | |
28406 | if (obj1) { | |
28407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28408 | if (arg2 == NULL) { | |
28409 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28410 | } | |
28411 | } | |
28412 | { | |
28413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28414 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
28415 | ||
28416 | wxPyEndAllowThreads(__tstate); | |
28417 | if (PyErr_Occurred()) SWIG_fail; | |
28418 | } | |
28419 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28420 | { | |
28421 | if (temp1) | |
28422 | delete arg1; | |
28423 | } | |
28424 | return resultobj; | |
28425 | fail: | |
28426 | { | |
28427 | if (temp1) | |
28428 | delete arg1; | |
28429 | } | |
28430 | return NULL; | |
28431 | } | |
28432 | ||
28433 | ||
28434 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28435 | PyObject *resultobj; | |
28436 | wxPyTreeCtrl *arg1 = 0 ; | |
28437 | wxTreeItemId *arg2 = 0 ; | |
28438 | wxGenericDragImage *result; | |
28439 | PyObject * obj0 = 0 ; | |
28440 | PyObject * obj1 = 0 ; | |
28441 | char *kwnames[] = { | |
28442 | (char *) "treeCtrl",(char *) "id", NULL | |
28443 | }; | |
28444 | ||
28445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
28446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28447 | if (arg1 == NULL) { | |
28448 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28449 | } | |
28450 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28451 | if (arg2 == NULL) { | |
28452 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28453 | } | |
28454 | { | |
28455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28456 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
28457 | ||
28458 | wxPyEndAllowThreads(__tstate); | |
28459 | if (PyErr_Occurred()) SWIG_fail; | |
28460 | } | |
28461 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28462 | return resultobj; | |
28463 | fail: | |
28464 | return NULL; | |
28465 | } | |
28466 | ||
28467 | ||
28468 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28469 | PyObject *resultobj; | |
28470 | wxPyListCtrl *arg1 = 0 ; | |
28471 | long arg2 ; | |
28472 | wxGenericDragImage *result; | |
28473 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28474 | PyObject * obj1 = 0 ; |
423f194a RD |
28475 | char *kwnames[] = { |
28476 | (char *) "listCtrl",(char *) "id", NULL | |
28477 | }; | |
28478 | ||
8edf1c75 | 28479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
423f194a RD |
28480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
28481 | if (arg1 == NULL) { | |
28482 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28483 | } | |
8edf1c75 RD |
28484 | { |
28485 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
28486 | if (PyErr_Occurred()) SWIG_fail; | |
28487 | } | |
423f194a RD |
28488 | { |
28489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28490 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
28491 | ||
28492 | wxPyEndAllowThreads(__tstate); | |
28493 | if (PyErr_Occurred()) SWIG_fail; | |
28494 | } | |
28495 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28496 | return resultobj; | |
28497 | fail: | |
28498 | return NULL; | |
28499 | } | |
28500 | ||
28501 | ||
28502 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28503 | PyObject *resultobj; | |
28504 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28505 | PyObject * obj0 = 0 ; | |
28506 | char *kwnames[] = { | |
28507 | (char *) "self", NULL | |
28508 | }; | |
28509 | ||
28510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
28511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28512 | { | |
28513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28514 | delete arg1; | |
28515 | ||
28516 | wxPyEndAllowThreads(__tstate); | |
28517 | if (PyErr_Occurred()) SWIG_fail; | |
28518 | } | |
28519 | Py_INCREF(Py_None); resultobj = Py_None; | |
28520 | return resultobj; | |
28521 | fail: | |
28522 | return NULL; | |
28523 | } | |
28524 | ||
28525 | ||
28526 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28527 | PyObject *resultobj; | |
28528 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28529 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
28530 | PyObject * obj0 = 0 ; | |
28531 | PyObject * obj1 = 0 ; | |
28532 | char *kwnames[] = { | |
28533 | (char *) "self",(char *) "bitmap", NULL | |
28534 | }; | |
28535 | ||
28536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28538 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28539 | { | |
28540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28541 | (arg1)->SetBackingBitmap(arg2); | |
28542 | ||
28543 | wxPyEndAllowThreads(__tstate); | |
28544 | if (PyErr_Occurred()) SWIG_fail; | |
28545 | } | |
28546 | Py_INCREF(Py_None); resultobj = Py_None; | |
28547 | return resultobj; | |
28548 | fail: | |
28549 | return NULL; | |
28550 | } | |
28551 | ||
28552 | ||
28553 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28554 | PyObject *resultobj; | |
28555 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28556 | wxPoint *arg2 = 0 ; | |
28557 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28558 | bool arg4 = (bool) False ; | |
28559 | wxRect *arg5 = (wxRect *) NULL ; | |
28560 | bool result; | |
28561 | wxPoint temp2 ; | |
28562 | PyObject * obj0 = 0 ; | |
28563 | PyObject * obj1 = 0 ; | |
28564 | PyObject * obj2 = 0 ; | |
28565 | PyObject * obj3 = 0 ; | |
28566 | PyObject * obj4 = 0 ; | |
28567 | char *kwnames[] = { | |
28568 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
28569 | }; | |
28570 | ||
28571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28573 | { | |
28574 | arg2 = &temp2; | |
28575 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28576 | } | |
28577 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28578 | if (obj3) { | |
2dbef272 | 28579 | { |
8edf1c75 | 28580 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
28581 | if (PyErr_Occurred()) SWIG_fail; |
28582 | } | |
423f194a RD |
28583 | } |
28584 | if (obj4) { | |
28585 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28586 | } | |
28587 | { | |
28588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28589 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
28590 | ||
28591 | wxPyEndAllowThreads(__tstate); | |
28592 | if (PyErr_Occurred()) SWIG_fail; | |
28593 | } | |
02a34c4c | 28594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28595 | return resultobj; |
28596 | fail: | |
28597 | return NULL; | |
28598 | } | |
28599 | ||
28600 | ||
28601 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28602 | PyObject *resultobj; | |
28603 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28604 | wxPoint *arg2 = 0 ; | |
28605 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28606 | wxWindow *arg4 = (wxWindow *) 0 ; | |
28607 | bool result; | |
28608 | wxPoint temp2 ; | |
28609 | PyObject * obj0 = 0 ; | |
28610 | PyObject * obj1 = 0 ; | |
28611 | PyObject * obj2 = 0 ; | |
28612 | PyObject * obj3 = 0 ; | |
28613 | char *kwnames[] = { | |
28614 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
28615 | }; | |
28616 | ||
28617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28619 | { | |
28620 | arg2 = &temp2; | |
28621 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28622 | } | |
28623 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28624 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28625 | { | |
28626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28627 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
28628 | ||
28629 | wxPyEndAllowThreads(__tstate); | |
28630 | if (PyErr_Occurred()) SWIG_fail; | |
28631 | } | |
02a34c4c | 28632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28633 | return resultobj; |
28634 | fail: | |
28635 | return NULL; | |
28636 | } | |
28637 | ||
28638 | ||
28639 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28640 | PyObject *resultobj; | |
28641 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28642 | bool result; | |
28643 | PyObject * obj0 = 0 ; | |
28644 | char *kwnames[] = { | |
28645 | (char *) "self", NULL | |
28646 | }; | |
28647 | ||
28648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
28649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28650 | { | |
28651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28652 | result = (bool)(arg1)->EndDrag(); | |
28653 | ||
28654 | wxPyEndAllowThreads(__tstate); | |
28655 | if (PyErr_Occurred()) SWIG_fail; | |
28656 | } | |
02a34c4c | 28657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28658 | return resultobj; |
28659 | fail: | |
28660 | return NULL; | |
28661 | } | |
28662 | ||
28663 | ||
28664 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28665 | PyObject *resultobj; | |
28666 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28667 | wxPoint *arg2 = 0 ; | |
28668 | bool result; | |
28669 | wxPoint temp2 ; | |
28670 | PyObject * obj0 = 0 ; | |
28671 | PyObject * obj1 = 0 ; | |
28672 | char *kwnames[] = { | |
28673 | (char *) "self",(char *) "pt", NULL | |
28674 | }; | |
28675 | ||
28676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
28677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28678 | { | |
28679 | arg2 = &temp2; | |
28680 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28681 | } | |
28682 | { | |
28683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28684 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
28685 | ||
28686 | wxPyEndAllowThreads(__tstate); | |
28687 | if (PyErr_Occurred()) SWIG_fail; | |
28688 | } | |
02a34c4c | 28689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28690 | return resultobj; |
28691 | fail: | |
28692 | return NULL; | |
28693 | } | |
28694 | ||
28695 | ||
28696 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28697 | PyObject *resultobj; | |
28698 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28699 | bool result; | |
28700 | PyObject * obj0 = 0 ; | |
28701 | char *kwnames[] = { | |
28702 | (char *) "self", NULL | |
28703 | }; | |
28704 | ||
28705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
28706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28707 | { | |
28708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28709 | result = (bool)(arg1)->Show(); | |
28710 | ||
28711 | wxPyEndAllowThreads(__tstate); | |
28712 | if (PyErr_Occurred()) SWIG_fail; | |
28713 | } | |
02a34c4c | 28714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28715 | return resultobj; |
28716 | fail: | |
28717 | return NULL; | |
28718 | } | |
28719 | ||
28720 | ||
28721 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28722 | PyObject *resultobj; | |
28723 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28724 | bool result; | |
28725 | PyObject * obj0 = 0 ; | |
28726 | char *kwnames[] = { | |
28727 | (char *) "self", NULL | |
28728 | }; | |
28729 | ||
28730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
28731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28732 | { | |
28733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28734 | result = (bool)(arg1)->Hide(); | |
28735 | ||
28736 | wxPyEndAllowThreads(__tstate); | |
28737 | if (PyErr_Occurred()) SWIG_fail; | |
28738 | } | |
02a34c4c | 28739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28740 | return resultobj; |
28741 | fail: | |
28742 | return NULL; | |
28743 | } | |
28744 | ||
28745 | ||
28746 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28747 | PyObject *resultobj; | |
28748 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28749 | wxPoint *arg2 = 0 ; | |
28750 | wxRect result; | |
28751 | wxPoint temp2 ; | |
28752 | PyObject * obj0 = 0 ; | |
28753 | PyObject * obj1 = 0 ; | |
28754 | char *kwnames[] = { | |
28755 | (char *) "self",(char *) "pos", NULL | |
28756 | }; | |
28757 | ||
28758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
28759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28760 | { | |
28761 | arg2 = &temp2; | |
28762 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28763 | } | |
28764 | { | |
28765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28766 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
28767 | ||
28768 | wxPyEndAllowThreads(__tstate); | |
28769 | if (PyErr_Occurred()) SWIG_fail; | |
28770 | } | |
28771 | { | |
28772 | wxRect * resultptr; | |
28773 | resultptr = new wxRect((wxRect &) result); | |
28774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
28775 | } | |
28776 | return resultobj; | |
28777 | fail: | |
28778 | return NULL; | |
28779 | } | |
28780 | ||
28781 | ||
28782 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28783 | PyObject *resultobj; | |
28784 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28785 | wxDC *arg2 = 0 ; | |
28786 | wxPoint *arg3 = 0 ; | |
28787 | bool result; | |
28788 | wxPoint temp3 ; | |
28789 | PyObject * obj0 = 0 ; | |
28790 | PyObject * obj1 = 0 ; | |
28791 | PyObject * obj2 = 0 ; | |
28792 | char *kwnames[] = { | |
28793 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
28794 | }; | |
28795 | ||
28796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28798 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28799 | if (arg2 == NULL) { | |
28800 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28801 | } | |
28802 | { | |
28803 | arg3 = &temp3; | |
28804 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28805 | } | |
28806 | { | |
28807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28808 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
28809 | ||
28810 | wxPyEndAllowThreads(__tstate); | |
28811 | if (PyErr_Occurred()) SWIG_fail; | |
28812 | } | |
02a34c4c | 28813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28814 | return resultobj; |
28815 | fail: | |
28816 | return NULL; | |
28817 | } | |
28818 | ||
28819 | ||
28820 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28821 | PyObject *resultobj; | |
28822 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28823 | wxDC *arg2 = 0 ; | |
28824 | wxMemoryDC *arg3 = 0 ; | |
28825 | wxRect *arg4 = 0 ; | |
28826 | wxRect *arg5 = 0 ; | |
28827 | bool result; | |
28828 | wxRect temp4 ; | |
28829 | wxRect temp5 ; | |
28830 | PyObject * obj0 = 0 ; | |
28831 | PyObject * obj1 = 0 ; | |
28832 | PyObject * obj2 = 0 ; | |
28833 | PyObject * obj3 = 0 ; | |
28834 | PyObject * obj4 = 0 ; | |
28835 | char *kwnames[] = { | |
28836 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
28837 | }; | |
28838 | ||
28839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28841 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28842 | if (arg2 == NULL) { | |
28843 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28844 | } | |
28845 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28846 | if (arg3 == NULL) { | |
28847 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28848 | } | |
28849 | { | |
28850 | arg4 = &temp4; | |
28851 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
28852 | } | |
28853 | { | |
28854 | arg5 = &temp5; | |
28855 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
28856 | } | |
28857 | { | |
28858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28859 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
28860 | ||
28861 | wxPyEndAllowThreads(__tstate); | |
28862 | if (PyErr_Occurred()) SWIG_fail; | |
28863 | } | |
02a34c4c | 28864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28865 | return resultobj; |
28866 | fail: | |
28867 | return NULL; | |
28868 | } | |
28869 | ||
28870 | ||
28871 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28872 | PyObject *resultobj; | |
28873 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28874 | wxPoint *arg2 = 0 ; | |
28875 | wxPoint *arg3 = 0 ; | |
28876 | bool arg4 ; | |
28877 | bool arg5 ; | |
28878 | bool result; | |
28879 | wxPoint temp2 ; | |
28880 | wxPoint temp3 ; | |
28881 | PyObject * obj0 = 0 ; | |
28882 | PyObject * obj1 = 0 ; | |
28883 | PyObject * obj2 = 0 ; | |
28884 | PyObject * obj3 = 0 ; | |
28885 | PyObject * obj4 = 0 ; | |
28886 | char *kwnames[] = { | |
28887 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
28888 | }; | |
28889 | ||
28890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28892 | { | |
28893 | arg2 = &temp2; | |
28894 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28895 | } | |
28896 | { | |
28897 | arg3 = &temp3; | |
28898 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28899 | } | |
2dbef272 | 28900 | { |
8edf1c75 | 28901 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
28902 | if (PyErr_Occurred()) SWIG_fail; |
28903 | } | |
28904 | { | |
8edf1c75 | 28905 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
2dbef272 RD |
28906 | if (PyErr_Occurred()) SWIG_fail; |
28907 | } | |
423f194a RD |
28908 | { |
28909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28910 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
28911 | ||
28912 | wxPyEndAllowThreads(__tstate); | |
28913 | if (PyErr_Occurred()) SWIG_fail; | |
28914 | } | |
02a34c4c | 28915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28916 | return resultobj; |
28917 | fail: | |
28918 | return NULL; | |
28919 | } | |
28920 | ||
28921 | ||
28922 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
28923 | PyObject *obj; | |
28924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28925 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
28926 | Py_INCREF(obj); | |
28927 | return Py_BuildValue((char *)""); | |
28928 | } | |
28929 | static PyMethodDef SwigMethods[] = { | |
28930 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
28931 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
28932 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
28933 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
28934 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
28935 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
28936 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
28937 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
28938 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
28939 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
28940 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
28941 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
28942 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
28943 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
28944 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
28945 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
28946 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
28947 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
28948 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
28949 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
28950 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
28951 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
28952 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
28953 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28954 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28955 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
28956 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28957 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
28958 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
28959 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
28960 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
28961 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
28962 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
28963 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
28964 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
28965 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
28966 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
28967 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
28968 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
28969 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
28970 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
28971 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
28972 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
28973 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28974 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28975 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28976 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
28977 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
28978 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
28979 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
28980 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
28981 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
28982 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
100c4552 | 28983 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
28984 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
28985 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
28986 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
28987 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
28988 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
28989 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
28990 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
28991 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
28992 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
28993 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
28994 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28995 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28996 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
28997 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
28998 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
28999 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29000 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29001 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
29002 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29003 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29004 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29005 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
29006 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29007 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29008 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
29009 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29010 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29011 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
29012 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
29013 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
29014 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
29015 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
29016 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29017 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29018 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
29019 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29020 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29021 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
29022 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
29023 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
29024 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
29025 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29026 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
29027 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
29028 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
29029 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29030 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29031 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
29032 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
29033 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29034 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29035 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29036 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
29037 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
29038 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29039 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29040 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
29041 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
29042 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29043 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29044 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29045 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29046 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
29047 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29048 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
29049 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
29050 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 29051 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29052 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
29053 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29054 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29055 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29056 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29057 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29058 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29059 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29060 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29061 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29062 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29063 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29064 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29065 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
29066 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29067 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29068 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
29069 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29070 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29071 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29072 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29073 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29074 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29075 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29076 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29077 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
29078 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
29079 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
29080 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29081 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29082 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29083 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29084 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29085 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29086 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
29087 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
29088 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
29089 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
29090 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
29091 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
29092 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
29093 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29094 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29095 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29096 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
29097 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29098 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
29099 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
29100 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
29101 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
29102 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
29103 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
29104 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
29105 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
29106 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29107 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29108 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29109 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29110 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
29111 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
29112 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
02a34c4c | 29113 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29114 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
29115 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29116 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29117 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
29118 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
29119 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
29120 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29121 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
29122 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
29123 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
29124 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29125 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29126 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29127 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29128 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29129 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
29130 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29131 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
29132 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29133 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
29134 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29135 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
29136 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
29137 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
29138 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
29139 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29140 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29141 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29142 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29143 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
29144 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29145 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29146 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29147 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29148 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
29149 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
29150 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29151 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29152 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29153 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29154 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29155 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29156 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29157 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29158 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29159 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29160 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29161 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
29162 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29163 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29164 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29165 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29166 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29167 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
29168 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29169 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29170 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29171 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29172 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
d896a793 RD |
29173 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
29174 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29175 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29176 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29177 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
29178 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
29179 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29180 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29181 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29182 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29183 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29184 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29185 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29186 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29187 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29188 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29189 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29190 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29191 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29192 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29193 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29194 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29195 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29196 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29197 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29198 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29199 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29200 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29201 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29202 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29203 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29204 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29205 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29206 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29207 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29208 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29209 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29210 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29211 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29212 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29213 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29214 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29215 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29216 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29217 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29218 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29219 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29220 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29221 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29222 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29223 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29224 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29225 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29226 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29227 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29228 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29229 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29230 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29231 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29232 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29233 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29234 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29235 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29236 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29237 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29238 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29239 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29240 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29241 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29242 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29243 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29244 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29245 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29246 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29247 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29248 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29249 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29250 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29251 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29252 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29253 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29254 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29255 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29256 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29257 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29258 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29259 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29260 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29261 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29262 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29263 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29264 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29265 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29266 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29267 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29268 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29269 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29270 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29271 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29272 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29273 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29274 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29275 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29276 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29277 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29278 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29279 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29280 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29281 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
29282 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29283 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29284 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29285 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
29286 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
29287 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29288 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29289 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
29290 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29291 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
29292 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
29293 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29294 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29295 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29296 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29297 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29298 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29299 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
29300 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29301 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29302 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29303 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29304 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29305 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29306 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29307 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
29308 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
29309 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29310 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29311 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
29312 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
29313 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f RD |
29314 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
29315 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29316 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
29317 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
29318 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
29319 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29320 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29321 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
29322 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
29323 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
29324 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
29325 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
29326 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
29327 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
29328 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29329 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29330 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29331 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
29332 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
29333 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29334 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29335 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29336 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29337 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29338 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
29339 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29340 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29341 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29342 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
29343 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29344 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29345 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29346 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
29347 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
29348 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
29349 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
29350 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29351 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29352 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
29353 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f | 29354 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29355 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
29356 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
29357 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29358 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29359 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29360 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
29361 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
29362 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
29363 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29364 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29365 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29366 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29367 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29368 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29369 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29370 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29371 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29372 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29373 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
29374 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29375 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29376 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29377 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29378 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
29379 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29380 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29381 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
29382 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
29383 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
29384 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
29385 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29386 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29387 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29388 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29389 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29390 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29391 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29392 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29393 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29394 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
29395 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29396 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29397 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29398 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29399 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29400 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29401 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29402 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29403 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29404 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29405 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
29406 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
29407 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
29408 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
29409 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29410 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29411 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
29412 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
29413 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
29414 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
29415 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
29416 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
29417 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
29418 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
29419 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
29420 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
29421 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
29422 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
29423 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
29424 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
29425 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
29426 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
29427 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
29428 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
29429 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29430 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29431 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29432 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29433 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29434 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29435 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
29436 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
29437 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
29438 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29439 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
29440 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29441 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29442 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29443 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29444 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29445 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29446 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29447 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29448 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
29449 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
29450 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29451 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
29452 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
29453 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29454 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29455 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29456 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29457 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29458 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29459 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29460 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29461 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29462 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29463 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
29464 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
29465 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29466 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29467 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29468 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29469 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29470 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29471 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29472 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29473 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29474 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29475 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29476 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
29477 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29478 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29479 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29480 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29481 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29482 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29483 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29484 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29485 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
29486 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
29487 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
29488 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29489 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29490 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29491 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29492 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
29493 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
29494 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
29495 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
29496 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
29497 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29498 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
29499 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
29500 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
29501 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29502 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29503 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
29504 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
29505 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
29506 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29507 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29508 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29509 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
29510 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29511 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
29512 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
29513 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29514 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
29515 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29516 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29517 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29518 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29519 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
29520 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
29521 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
29522 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
29523 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
29524 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
29525 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
29526 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
29527 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
29528 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
29529 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
29530 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29531 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29532 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29533 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
29534 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29535 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29536 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
29537 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
29538 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
29539 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
29540 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
29541 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
29542 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
29543 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29544 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29545 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29546 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29547 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29548 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
29549 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
29550 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29551 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29552 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29553 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29554 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29555 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29556 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29557 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29558 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29559 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29560 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29561 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29562 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 29563 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29564 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
29565 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29566 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29567 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29568 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29569 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29570 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29571 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29572 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29573 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29574 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29575 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29576 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29577 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29578 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29579 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29580 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29581 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29582 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29583 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29584 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29585 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29586 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29587 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29588 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29589 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29590 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29591 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29592 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
29593 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29594 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29595 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29596 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
29597 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29598 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
29599 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29600 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
29601 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
29602 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
29603 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29604 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29605 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
29606 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
29607 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
29608 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
29609 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
29610 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
29611 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
29612 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
29613 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
29614 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
29615 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
29616 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29617 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
29618 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
29619 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
29620 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
29621 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29622 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
29623 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
29624 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
29625 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29626 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
29627 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29628 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
29629 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29630 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
29631 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29632 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
29633 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
29634 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29635 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
29636 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
29637 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29638 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29639 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29640 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
29641 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29642 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29643 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
29644 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
29645 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
29646 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29647 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29648 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29649 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29650 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29651 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29652 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
29653 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29654 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29655 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
29656 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
29657 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
29658 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
29659 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29660 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29661 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29662 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
29663 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
29664 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
29665 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29666 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
29667 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
29668 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29669 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29670 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
29671 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29672 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29673 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29674 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
29675 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
29676 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
29677 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29678 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
29679 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
29680 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
29681 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
29682 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
29683 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
29684 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
29685 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
29686 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29687 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29688 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
29689 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
29690 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29691 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29692 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
29693 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29694 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29695 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29696 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29697 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
29698 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
29699 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
29700 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
29701 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
29702 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
29703 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
29704 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
29705 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
29706 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29707 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
29708 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
29709 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
29710 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
29711 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
29712 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
29713 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
29714 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
29715 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
29716 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29717 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
29718 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
29719 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
29720 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
29721 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
29722 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
29723 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
29724 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29725 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29726 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29727 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29728 | { NULL, NULL } |
29729 | }; | |
29730 | ||
29731 | ||
29732 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29733 | ||
29734 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
29735 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29736 | } | |
29737 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
29738 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29739 | } | |
29740 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
29741 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
29742 | } | |
29743 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
29744 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29745 | } | |
29746 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
29747 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29748 | } | |
29749 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
29750 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
29751 | } | |
29752 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
29753 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29754 | } | |
29755 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
29756 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
29757 | } | |
29758 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
29759 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
29760 | } | |
29761 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
29762 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
29763 | } | |
29764 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29765 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29766 | } | |
29767 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29768 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29769 | } | |
29770 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29771 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29772 | } | |
29773 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29774 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29775 | } | |
29776 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29777 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29778 | } | |
29779 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
29780 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
29781 | } | |
29782 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29783 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29784 | } | |
29785 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29786 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29787 | } | |
29788 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29789 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29790 | } | |
29791 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
29792 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
29793 | } | |
29794 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
29795 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
29796 | } | |
29797 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29798 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29799 | } | |
29800 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29801 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29802 | } | |
29803 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
29804 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
29805 | } | |
29806 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
29807 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29808 | } | |
29809 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
29810 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29811 | } | |
29812 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
29813 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
29814 | } | |
29815 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29816 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29817 | } | |
29818 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29819 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29820 | } | |
29821 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29822 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29823 | } | |
29824 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29825 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29826 | } | |
29827 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29828 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29829 | } | |
29830 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29831 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29832 | } | |
29833 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29834 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29835 | } | |
29836 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29837 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29838 | } | |
29839 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29840 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29841 | } | |
29842 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29843 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29844 | } | |
29845 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29846 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29847 | } | |
29848 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29849 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29850 | } | |
29851 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29852 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29853 | } | |
29854 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29855 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29856 | } | |
29857 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29858 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29859 | } | |
29860 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29861 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29862 | } | |
29863 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29864 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29865 | } | |
29866 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29867 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29868 | } | |
29869 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29870 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29871 | } | |
29872 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29873 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29874 | } | |
29875 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29876 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29877 | } | |
29878 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29879 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29880 | } | |
29881 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29882 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29883 | } | |
29884 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29885 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29886 | } | |
29887 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29888 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29889 | } | |
d896a793 RD |
29890 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
29891 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
29892 | } | |
d14a1e28 RD |
29893 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
29894 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
29895 | } | |
29896 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
29897 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
29898 | } | |
29899 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
29900 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
29901 | } | |
29902 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
29903 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
29904 | } | |
29905 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
29906 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
29907 | } | |
29908 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
29909 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
29910 | } | |
29911 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
29912 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
29913 | } | |
29914 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
29915 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
29916 | } | |
29917 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
29918 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
29919 | } | |
29920 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
29921 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
29922 | } | |
29923 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
29924 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
29925 | } | |
29926 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
29927 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
29928 | } | |
29929 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
29930 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
29931 | } | |
29932 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
29933 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
29934 | } | |
29935 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
29936 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
29937 | } | |
29938 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
29939 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
29940 | } | |
29941 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
29942 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
29943 | } | |
29944 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
29945 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
29946 | } | |
29947 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
29948 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
29949 | } | |
29950 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
29951 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
29952 | } | |
29953 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
29954 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
29955 | } | |
29956 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
29957 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
29958 | } | |
29959 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
29960 | return (void *)((wxControl *) ((wxGauge *) x)); | |
29961 | } | |
29962 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
29963 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
29964 | } | |
29965 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
29966 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
29967 | } | |
29968 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
29969 | return (void *)((wxControl *) ((wxButton *) x)); | |
29970 | } | |
29971 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
29972 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
29973 | } | |
29974 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
29975 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
29976 | } | |
29977 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
29978 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
29979 | } | |
29980 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
29981 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
29982 | } | |
29983 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
29984 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
29985 | } | |
29986 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
29987 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
29988 | } | |
29989 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
29990 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
29991 | } | |
29992 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
29993 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
29994 | } | |
29995 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
29996 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
29997 | } | |
29998 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
29999 | return (void *)((wxControl *) ((wxSlider *) x)); | |
30000 | } | |
30001 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
30002 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
30003 | } | |
30004 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
30005 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
30006 | } | |
30007 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
30008 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
30009 | } | |
30010 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
30011 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
30012 | } | |
30013 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
30014 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
30015 | } | |
30016 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
30017 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30018 | } | |
30019 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
30020 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30021 | } | |
30022 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
30023 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30024 | } | |
30025 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
30026 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
30027 | } | |
d896a793 RD |
30028 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
30029 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30030 | } | |
d14a1e28 RD |
30031 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
30032 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30033 | } | |
30034 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
30035 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30036 | } | |
30037 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
30038 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30039 | } | |
30040 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30041 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30042 | } | |
30043 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30044 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30045 | } | |
30046 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30047 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30048 | } | |
30049 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
30050 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30051 | } | |
30052 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30053 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30054 | } | |
30055 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
30056 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30057 | } | |
30058 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
30059 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30060 | } | |
30061 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30062 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30063 | } | |
30064 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30065 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30066 | } | |
30067 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
30068 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30069 | } | |
30070 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
30071 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30072 | } | |
30073 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
30074 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30075 | } | |
30076 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
30077 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30078 | } | |
30079 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
30080 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30081 | } | |
30082 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30083 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30084 | } | |
30085 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
30086 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30087 | } | |
30088 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
30089 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30090 | } | |
30091 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30092 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30093 | } | |
30094 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
30095 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30096 | } | |
30097 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
30098 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30099 | } | |
30100 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
30101 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30102 | } | |
30103 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
30104 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30105 | } | |
30106 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
30107 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30108 | } | |
30109 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
30110 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30111 | } | |
30112 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
30113 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30114 | } | |
30115 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
30116 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30117 | } | |
30118 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
30119 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30120 | } | |
30121 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
30122 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30123 | } | |
30124 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
30125 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30126 | } | |
30127 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
30128 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30129 | } | |
30130 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
30131 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30132 | } | |
30133 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
30134 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30135 | } | |
30136 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
30137 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30138 | } | |
30139 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
30140 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30141 | } | |
30142 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
30143 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30144 | } | |
30145 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
30146 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
30147 | } | |
30148 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
30149 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30150 | } | |
30151 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
30152 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30153 | } | |
30154 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
30155 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30156 | } | |
30157 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
30158 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
30159 | } | |
30160 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
30161 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
30162 | } | |
30163 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
30164 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
30165 | } | |
30166 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
30167 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
30168 | } | |
30169 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
30170 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30171 | } | |
30172 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
30173 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30174 | } | |
30175 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
30176 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
30177 | } | |
30178 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30179 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30180 | } | |
30181 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30182 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30183 | } | |
30184 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30185 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30186 | } | |
30187 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30188 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30189 | } | |
30190 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30191 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30192 | } | |
30193 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30194 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30195 | } | |
30196 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30197 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30198 | } | |
30199 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30200 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30201 | } | |
30202 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30203 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30204 | } | |
30205 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30206 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30207 | } | |
30208 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30209 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30210 | } | |
30211 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30212 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30213 | } | |
30214 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30215 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30216 | } | |
30217 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30218 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30219 | } | |
30220 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30221 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30222 | } | |
30223 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30224 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30225 | } | |
30226 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30227 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30228 | } | |
30229 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30230 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30231 | } | |
30232 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30233 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30234 | } | |
30235 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30236 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30237 | } | |
30238 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30239 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30240 | } | |
30241 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30242 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30243 | } | |
30244 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30245 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30246 | } | |
30247 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30248 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30249 | } | |
30250 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30251 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30252 | } | |
30253 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30254 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30255 | } | |
30256 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30257 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30258 | } | |
30259 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30260 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30261 | } | |
30262 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30263 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30264 | } | |
30265 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30266 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30267 | } | |
30268 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30269 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30270 | } | |
30271 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30272 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30273 | } | |
30274 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
30275 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30276 | } | |
30277 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
30278 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30279 | } | |
30280 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30281 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30282 | } | |
30283 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
30284 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30285 | } | |
30286 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30287 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30288 | } | |
30289 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30290 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30291 | } | |
30292 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
30293 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30294 | } | |
30295 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
30296 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30297 | } | |
30298 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
30299 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30300 | } | |
30301 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30302 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30303 | } | |
30304 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30305 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30306 | } | |
30307 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
30308 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30309 | } | |
30310 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30311 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30312 | } | |
30313 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
30314 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30315 | } | |
30316 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
30317 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30318 | } | |
30319 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30320 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30321 | } | |
30322 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30323 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30324 | } | |
30325 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30326 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30327 | } | |
30328 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30329 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30330 | } | |
30331 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30332 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30333 | } | |
30334 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30335 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30336 | } | |
30337 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30338 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30339 | } | |
30340 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30341 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30342 | } | |
30343 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30344 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30345 | } | |
30346 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
30347 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30348 | } | |
30349 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
30350 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
30351 | } | |
30352 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30353 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30354 | } | |
30355 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30356 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30357 | } | |
30358 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30359 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30360 | } | |
30361 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30362 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30363 | } | |
30364 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30365 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30366 | } | |
30367 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30368 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30369 | } | |
30370 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30371 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30372 | } | |
30373 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30374 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30375 | } | |
30376 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30377 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30378 | } | |
30379 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30380 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30381 | } | |
30382 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30383 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30384 | } | |
30385 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30386 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30387 | } | |
30388 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30389 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30390 | } | |
30391 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
30392 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30393 | } | |
30394 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
30395 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30396 | } | |
30397 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
30398 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30399 | } | |
30400 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
30401 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30402 | } | |
d14a1e28 RD |
30403 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
30404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
30405 | } | |
41f1cec7 RD |
30406 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
30407 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30408 | } | |
d14a1e28 RD |
30409 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
30410 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30411 | } | |
30412 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
30413 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30414 | } | |
41f1cec7 RD |
30415 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
30416 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30417 | } | |
d14a1e28 RD |
30418 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
30419 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30420 | } | |
30421 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
30422 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30423 | } | |
30424 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
30425 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30426 | } | |
30427 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
30428 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
30429 | } | |
30430 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
30431 | return (void *)((wxObject *) ((wxListItem *) x)); | |
30432 | } | |
30433 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30434 | return (void *)((wxObject *) ((wxImage *) x)); | |
30435 | } | |
30436 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
30437 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
30438 | } | |
30439 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30440 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30441 | } | |
d896a793 RD |
30442 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
30443 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30444 | } | |
423f194a RD |
30445 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
30446 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
30447 | } | |
d14a1e28 RD |
30448 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
30449 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30450 | } | |
30451 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
30452 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30453 | } | |
30454 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
30455 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30456 | } | |
30457 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30458 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30459 | } | |
30460 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30461 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30462 | } | |
30463 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30464 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30465 | } | |
30466 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30467 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30468 | } | |
30469 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30470 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30471 | } | |
30472 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30473 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30474 | } | |
30475 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30476 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30477 | } | |
30478 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30479 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30480 | } | |
30481 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30482 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30483 | } | |
30484 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30485 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30486 | } | |
30487 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30488 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30489 | } | |
30490 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30491 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30492 | } | |
30493 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30494 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30495 | } | |
30496 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
30497 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30498 | } | |
30499 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30500 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30501 | } | |
30502 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30503 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30504 | } | |
30505 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
30506 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30507 | } | |
30508 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30509 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30510 | } | |
30511 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30512 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30513 | } | |
30514 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30515 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30516 | } | |
30517 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30518 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30519 | } | |
30520 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
30521 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
30522 | } | |
30523 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
30524 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30525 | } | |
30526 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30527 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30528 | } | |
30529 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30530 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30531 | } | |
30532 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
30533 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
30534 | } | |
30535 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
30536 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
30537 | } | |
30538 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30539 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30540 | } | |
30541 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
30542 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30543 | } | |
30544 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
30545 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
30546 | } | |
30547 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
30548 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
30549 | } | |
30550 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
30551 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
30552 | } | |
30553 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30554 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30555 | } | |
30556 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
30557 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
30558 | } | |
30559 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
30560 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30561 | } | |
30562 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
30563 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
30564 | } | |
30565 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
30566 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
30567 | } | |
30568 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
30569 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
30570 | } | |
30571 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
30572 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
30573 | } | |
30574 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30575 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30576 | } | |
30577 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
30578 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
30579 | } | |
30580 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
30581 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
30582 | } | |
30583 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
30584 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30585 | } | |
30586 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
30587 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
30588 | } | |
30589 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
30590 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
30591 | } | |
30592 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
30593 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
30594 | } | |
30595 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
30596 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30597 | } | |
30598 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
30599 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30600 | } | |
30601 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
30602 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30603 | } | |
30604 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
30605 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30606 | } | |
30607 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
30608 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30609 | } | |
30610 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
30611 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
30612 | } | |
30613 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
30614 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
30615 | } | |
30616 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
30617 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
30618 | } | |
30619 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
30620 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
30621 | } | |
30622 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
30623 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
30624 | } | |
30625 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
30626 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
30627 | } | |
30628 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
30629 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
30630 | } | |
30631 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
30632 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30633 | } | |
30634 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
30635 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30636 | } | |
30637 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
30638 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
30639 | } | |
30640 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
30641 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30642 | } | |
30643 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
30644 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30645 | } | |
30646 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
30647 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30648 | } | |
30649 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
30650 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
30651 | } | |
30652 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
30653 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30654 | } | |
30655 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
30656 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30657 | } | |
30658 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
30659 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30660 | } | |
30661 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
30662 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30663 | } | |
30664 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
30665 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30666 | } | |
30667 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
30668 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
30669 | } | |
30670 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
30671 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30672 | } | |
30673 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
30674 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30675 | } | |
d896a793 RD |
30676 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
30677 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30678 | } | |
d14a1e28 RD |
30679 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
30680 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
30681 | } | |
30682 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
30683 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30684 | } | |
30685 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
30686 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30687 | } | |
30688 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
30689 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30690 | } | |
30691 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
30692 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
30693 | } | |
30694 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
30695 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
30696 | } | |
30697 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
30698 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
30699 | } | |
30700 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
30701 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
30702 | } | |
30703 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
30704 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0},{"_p_wxBookCtrlEvent"},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent},{0}}; | |
30705 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer},{0}}; | |
d14a1e28 RD |
30706 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; |
30707 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
d896a793 | 30708 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; |
d14a1e28 RD |
30709 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
30710 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
30711 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
30712 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
30713 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
30714 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
30715 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
30716 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl},{"_p_wxControl"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl},{"_p_wxListbook", _p_wxListbookTo_p_wxControl},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl},{"_p_wxListView", _p_wxListViewTo_p_wxControl},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl},{"_p_wxSlider", _p_wxSliderTo_p_wxControl},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl},{"_p_wxButton", _p_wxButtonTo_p_wxControl},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl},{0}}; | |
30717 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
30718 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
30719 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
30720 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
30721 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
30722 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
30723 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
423f194a | 30724 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 | 30725 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
58203fa6 | 30726 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; |
d14a1e28 RD |
30727 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
30728 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 30729 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
30730 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
30731 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
30732 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
30733 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
d896a793 | 30734 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}}; |
d14a1e28 RD |
30735 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
30736 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
30737 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
30738 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
30739 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
30740 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
30741 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
30742 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
30743 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler},{0}}; | |
30744 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
30745 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
30746 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
30747 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl},{"_p_wxBookCtrl"},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl},{0}}; | |
30748 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
30749 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0},{"_p_wxButton"},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton},{0}}; | |
30750 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
30751 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
30752 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
30753 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
30754 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
8edf1c75 | 30755 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
30756 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; |
30757 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
30758 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
30759 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
30760 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
d896a793 | 30761 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
423f194a | 30762 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
30763 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
30764 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
30765 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
30766 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
30767 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
30768 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
30769 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
30770 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
d896a793 | 30771 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxListView", _p_wxListViewTo_p_wxObject},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxListbook", _p_wxListbookTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject},{"_p_wxSlider", _p_wxSliderTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject},{"_p_wxButton", _p_wxButtonTo_p_wxObject},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject},{"_p_wxListItem", _p_wxListItemTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}}; |
423f194a | 30772 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
30773 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
30774 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow},{"_p_wxListView", _p_wxListViewTo_p_wxWindow},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow},{"_p_wxButton", _p_wxButtonTo_p_wxWindow},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow},{0}}; | |
30775 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
30776 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
30777 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
30778 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
d896a793 | 30779 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{0}}; |
d14a1e28 RD |
30780 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
30781 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems},{"_p_wxControlWithItems"},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems},{0}}; | |
30782 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
30783 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
30784 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
30785 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
30786 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
30787 | ||
30788 | static swig_type_info *swig_types_initial[] = { | |
30789 | _swigt__p_wxTextUrlEvent, | |
30790 | _swigt__p_wxBookCtrlEvent, | |
30791 | _swigt__p_wxSizer, | |
d14a1e28 RD |
30792 | _swigt__p_wxCheckBox, |
30793 | _swigt__p_wxPyTreeCtrl, | |
30794 | _swigt__p_wxEvent, | |
30795 | _swigt__p_wxGenericDirCtrl, | |
30796 | _swigt__p_bool, | |
30797 | _swigt__p_wxPyTreeItemData, | |
30798 | _swigt__p_wxItemContainer, | |
30799 | _swigt__p_wxDirFilterListCtrl, | |
30800 | _swigt__p_wxPyListCtrl, | |
30801 | _swigt__p_wxStaticLine, | |
30802 | _swigt__p_wxControl, | |
30803 | _swigt__p_wxPyControl, | |
30804 | _swigt__p_wxGauge, | |
30805 | _swigt__p_wxToolBarBase, | |
30806 | _swigt__p_wxFont, | |
30807 | _swigt__p_wxToggleButton, | |
30808 | _swigt__p_wxRadioButton, | |
30809 | _swigt__p_wxChoice, | |
423f194a | 30810 | _swigt__p_wxMemoryDC, |
d14a1e28 | 30811 | _swigt__p_wxListItemAttr, |
58203fa6 | 30812 | _swigt__p_void, |
d14a1e28 RD |
30813 | _swigt__p_int, |
30814 | _swigt__p_wxSize, | |
423f194a | 30815 | _swigt__p_wxDC, |
d14a1e28 RD |
30816 | _swigt__p_wxListView, |
30817 | _swigt__p_wxIcon, | |
30818 | _swigt__p_wxTextCtrl, | |
30819 | _swigt__p_wxNotebook, | |
30820 | _swigt__p_wxNotifyEvent, | |
30821 | _swigt__p_wxArrayString, | |
30822 | _swigt__p_wxListbook, | |
30823 | _swigt__p_wxStaticBitmap, | |
30824 | _swigt__p_wxSlider, | |
30825 | _swigt__p_wxStaticBox, | |
30826 | _swigt__p_wxArrayInt, | |
30827 | _swigt__p_wxContextHelp, | |
30828 | _swigt__p_long, | |
30829 | _swigt__p_wxEvtHandler, | |
30830 | _swigt__p_wxListEvent, | |
30831 | _swigt__p_wxListBox, | |
30832 | _swigt__p_wxCheckListBox, | |
30833 | _swigt__p_wxBookCtrl, | |
30834 | _swigt__p_wxSpinButton, | |
30835 | _swigt__p_wxButton, | |
30836 | _swigt__p_wxBitmapButton, | |
30837 | _swigt__p_wxRect, | |
30838 | _swigt__p_wxContextHelpButton, | |
30839 | _swigt__p_wxRadioBox, | |
30840 | _swigt__p_wxScrollBar, | |
8edf1c75 | 30841 | _swigt__p_char, |
d14a1e28 RD |
30842 | _swigt__p_wxTreeItemId, |
30843 | _swigt__p_wxComboBox, | |
30844 | _swigt__p_wxHelpEvent, | |
30845 | _swigt__p_wxListItem, | |
30846 | _swigt__p_wxNotebookSizer, | |
d896a793 | 30847 | _swigt__p_wxSpinEvent, |
423f194a | 30848 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
30849 | _swigt__p_wxSpinCtrl, |
30850 | _swigt__p_wxImageList, | |
30851 | _swigt__p_wxHelpProvider, | |
30852 | _swigt__p_wxTextAttr, | |
30853 | _swigt__p_wxSimpleHelpProvider, | |
30854 | _swigt__p_wxPoint, | |
30855 | _swigt__p_wxListbookEvent, | |
30856 | _swigt__p_wxNotebookEvent, | |
30857 | _swigt__p_wxObject, | |
423f194a | 30858 | _swigt__p_wxCursor, |
d14a1e28 RD |
30859 | _swigt__p_wxKeyEvent, |
30860 | _swigt__p_wxWindow, | |
30861 | _swigt__p_wxString, | |
30862 | _swigt__p_wxBitmap, | |
30863 | _swigt__p_wxTreeEvent, | |
30864 | _swigt__p_wxMouseEvent, | |
30865 | _swigt__p_wxCommandEvent, | |
30866 | _swigt__p_wxStaticText, | |
30867 | _swigt__p_wxControlWithItems, | |
30868 | _swigt__p_wxToolBarToolBase, | |
30869 | _swigt__p_wxColour, | |
30870 | _swigt__p_wxToolBar, | |
30871 | _swigt__p_wxBookCtrlSizer, | |
30872 | _swigt__p_wxValidator, | |
30873 | 0 | |
30874 | }; | |
30875 | ||
30876 | ||
30877 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30878 | ||
30879 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
30880 | {0}}; |
30881 | ||
30882 | #ifdef __cplusplus | |
30883 | } | |
30884 | #endif | |
30885 | ||
30886 | #ifdef __cplusplus | |
30887 | extern "C" | |
30888 | #endif | |
30889 | SWIGEXPORT(void) SWIG_init(void) { | |
30890 | static PyObject *SWIG_globals = 0; | |
30891 | static int typeinit = 0; | |
30892 | PyObject *m, *d; | |
30893 | int i; | |
30894 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30895 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30896 | d = PyModule_GetDict(m); | |
30897 | ||
30898 | if (!typeinit) { | |
30899 | for (i = 0; swig_types_initial[i]; i++) { | |
30900 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30901 | } | |
30902 | typeinit = 1; | |
30903 | } | |
30904 | SWIG_InstallConstants(d,swig_const_table); | |
30905 | ||
cbd72d4f RD |
30906 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
30907 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
8edf1c75 RD |
30908 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); |
30909 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
30910 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
30911 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
30912 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
30913 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
cbd72d4f | 30914 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
8edf1c75 RD |
30915 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); |
30916 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
30917 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
30918 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
30919 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
30920 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
cbd72d4f RD |
30921 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
30922 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
30923 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
8edf1c75 RD |
30924 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); |
30925 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
30926 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
30927 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
cbd72d4f RD |
30928 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
30929 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
30930 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
30931 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
30932 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
8edf1c75 RD |
30933 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); |
30934 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
30935 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
30936 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
30937 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
30938 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
30939 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
30940 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
30941 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
30942 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
30943 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
30944 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
30945 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
30946 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
30947 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
30948 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
30949 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
30950 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
30951 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
30952 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
30953 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
30954 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
30955 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
30956 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
30957 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
30958 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
30959 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
30960 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
30961 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
30962 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
30963 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
30964 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
30965 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
30966 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
30967 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
30968 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
02a34c4c RD |
30969 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN)); |
30970 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE)); | |
30971 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT)); | |
30972 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW)); | |
30973 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
30974 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
30975 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
30976 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
30977 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
cbd72d4f RD |
30978 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
30979 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
30980 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
8edf1c75 RD |
30981 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); |
30982 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
30983 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
30984 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 30985 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
cbd72d4f RD |
30986 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
30987 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
30988 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
30989 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 30990 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
cbd72d4f | 30991 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
8edf1c75 RD |
30992 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); |
30993 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
30994 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
30995 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
30996 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
30997 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
30998 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
30999 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
31000 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
31001 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
31002 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
31003 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31004 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); |
31005 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
31006 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
31007 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
31008 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
31009 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
31010 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
31011 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31012 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); |
31013 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
31014 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
31015 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
31016 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
31017 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
31018 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
31019 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
31020 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
31021 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
31022 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
31023 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
31024 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
31025 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
cbd72d4f | 31026 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
8edf1c75 RD |
31027 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); |
31028 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
31029 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
31030 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
31031 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
31032 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
31033 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
31034 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
31035 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
31036 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
31037 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
31038 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
31039 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
31040 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
31041 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
31042 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
31043 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
31044 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
31045 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
31046 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
31047 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
31048 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
31049 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
31050 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
31051 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
31052 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
31053 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
31054 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
31055 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
31056 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
31057 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
31058 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
31059 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
31060 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
31061 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
31062 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
31063 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
31064 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
31065 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
31066 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
31067 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
31068 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
31069 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
31070 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
31071 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
31072 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
31073 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
31074 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
31075 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
31076 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
31077 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
31078 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
31079 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
31080 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
31081 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
31082 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
31083 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
31084 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
31085 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
31086 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
31087 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
31088 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
31089 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
31090 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
31091 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
31092 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
31093 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
31094 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
31095 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
31096 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
31097 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
31098 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
31099 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
31100 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
31101 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
31102 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
31103 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
31104 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
31105 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
31106 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
31107 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
31108 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
31109 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
31110 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
31111 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
31112 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
31113 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
31114 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
31115 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
31116 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
31117 | ||
31118 | // Map renamed classes back to their common name for OOR | |
31119 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
31120 | ||
cbd72d4f | 31121 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
8edf1c75 RD |
31122 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); |
31123 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
31124 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
31125 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
31126 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
31127 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
31128 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
31129 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
31130 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
31131 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
31132 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
31133 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
31134 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
31135 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
31136 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
31137 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
31138 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
31139 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
31140 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
31141 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
31142 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
31143 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
31144 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
31145 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
31146 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
31147 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
31148 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
31149 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
31150 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
31151 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
31152 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
31153 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
31154 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
31155 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
31156 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
31157 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
31158 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
31159 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
31160 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
31161 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
31162 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
31163 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
31164 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
31165 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
31166 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
31167 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
31168 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
31169 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
31170 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
31171 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
31172 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
31173 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
31174 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
31175 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 31176 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
31177 | |
31178 | // Map renamed classes back to their common name for OOR | |
31179 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
31180 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
31181 | ||
cbd72d4f | 31182 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
8edf1c75 RD |
31183 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
31184 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
31185 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31186 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31187 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31188 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31189 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
31190 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
31191 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
31192 | |
31193 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31194 | ||
d14a1e28 RD |
31195 | } |
31196 |